Manual: improve out-of-memory documentation.
[gnulib.git] / ChangeLog
1 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2
3         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5         for Emacs.
6         * build-aux/pmccabe2html: Make Makefile.am example code more
7         cut-and-paste friendly.
8
9 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10
11         * tests/test-net_if.c: New file.
12         * modules/net_if-tests: New file.
13
14 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15
16         pthread: add pthread_spin_destroy
17         * lib/pthread.in.h (pthread_spin_destroy): New function.
18
19 2010-09-19  Bruno Haible  <bruno@clisp.org>
20
21         gnulib-tool: Fix --help output.
22         * gnulib-tool (func_usage): Fix help message.
23         Reported by Reuben Thomas <rrt@sc3d.org>.
24
25 2010-09-18  Jim Meyering  <meyering@redhat.com>
26
27         maint.mk: avoid unexpanded \n in two diagnostics
28         * top/maint.mk (sc_prohibit_always_true_header_tests):
29         Don't use a literal \n in a halt=... assignment.  It would not be
30         expanded, and the two \n bytes would appear in the diagnostic output
31         rather than the desired newline.  Use halt=$$(printf ... instead.
32         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33
34 2010-09-18  Bruno Haible  <bruno@clisp.org>
35
36         netinet_in: Doc tweak.
37         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
38         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
39
40 2010-09-18  Jim Meyering  <meyering@redhat.com>
41
42         init.sh: correct an outdated comment
43         * tests/init.sh (create_exe_shims_):  s/function/alias/
44
45         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
47         a file named "*.exe" is removed between the glob expansion and the
48         processing of that oddly named file.
49
50 2010-09-17  Eric Blake  <eblake@redhat.com>
51
52         mirbsd: add some more support
53         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
54         in BSD family.
55         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
56         devices as OpenBSD.
57         * m4/host-os.m4 (mirbsd): Add MirBSD.
58
59         tests: fix unportable assumption on sys/wait.h
60         * tests/test-sys_wait.c (main): Relax test.
61         * tests/test-stdlib.c (main): Likewise.
62
63         init.sh: accomodate directory with no .exes
64         * tests/init.sh: Accomodate directory containing only scripts.
65
66         tests: avoid compiler warning
67         * tests/test-stdlib.c (main): Use the variable.
68
69         fdutimens, fdutimensat: update signature, again
70         * lib/utimens.h (gl_futimens): Delete, and move signature...
71         (fdutimens): ...here.
72         (fdutimensat): Rearrange signature.
73         (lutimensat): Rename variable for clarity.
74         * lib/fdutimensat.c (fdutimensat): Update signature.
75         * lib/utimens.c (fdutimens): Likewise.
76         (gl_futimens): Delete.
77         (utimens, lutimens): Update callers.
78         * lib/futimens.c (futimens): Likewise.
79         * tests/test-fdutimensat.c: Likewise.
80         * tests/test-utimens.c: Likewise.
81         * tests/test-futimens.h: Update comment.
82         * NEWS: Mention this.
83         Suggested by Paul Eggert.
84
85 2010-09-17  Bruno Haible  <bruno@clisp.org>
86
87         Take over the maintenance of some older macros from Autoconf.
88         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
89         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
90         GNU Autoconf.
91         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
92         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
93
94 2010-09-17  Eric Blake  <eblake@redhat.com>
95
96         fdutimensat: drop atflag validation
97         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
98         with valid fd, to close a race scenario where futimens is
99         unsupported and FILE was replaced by a symlink.
100         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
101         accordingly.
102         Suggested by Paul Eggert.
103
104 2010-09-16  Bruno Haible  <bruno@clisp.org>
105
106         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
107         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
108
109 2010-09-16  Bruno Haible  <bruno@clisp.org>
110
111         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
112         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
113         login_tty exists.
114         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
115
116 2010-09-16  Bruno Haible  <bruno@clisp.org>
117
118         login_tty: Make the replacement code work on BSD systems.
119         * lib/login_tty.c: Include <sys/ioctl.h>.
120         (login_tty): Use ioctl TIOCSCTTY when available.
121         * modules/login_tty (Depends-on): Add sys_ioctl.
122         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
123
124 2010-09-16  Bruno Haible  <bruno@clisp.org>
125
126         login_tty: Stricter unit test.
127         * modules/login_tty-tests (Depends-on): Add tcgetsid.
128         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
129         and tcgetsid() after login_tty.
130         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
131
132 2010-09-16  Bruno Haible  <bruno@clisp.org>
133
134         New module 'tcgetsid'.
135         * lib/tcgetsid.c: New file.
136         * m4/tcgetsid.m4: New file.
137         * modules/tcgetsid: New file.
138         * modules/termios (Depends-on): Add c++defs, warn-on-use.
139         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
140         GNULIB_TCGETSID, HAVE_TCGETSID.
141         * lib/termios.in.h: Include <sys/types.h>.
142         (tcgetsid): New declaration.
143         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
144         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
145         * doc/posix-functions/tcgetsid.texi: Mention the new module.
146         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
147
148 2010-09-16  Bruno Haible  <bruno@clisp.org>
149
150         Tests for module 'termios'.
151         * modules/termios-c++-tests: New file.
152         * modules/termios-tests: New file.
153         * tests/test-termios-c++.cc: New file.
154         * tests/test-termios.c: New file.
155
156         New module 'termios'.
157         * modules/termios: New file.
158         * lib/termios.in.h: New file.
159         * m4/termios_h.m4: New file.
160         * doc/posix-headers/termios.texi: Mention the new module.
161
162 2010-09-16  Eric Blake  <eblake@redhat.com>
163
164         fdutimensat: add an atflag parameter
165         * lib/fdutimensat.c (fdutimensat): Add new parameter.
166         * lib/utimens.h (fdutimensat): Update prototype.
167         * tests/test-fdutimensat.c: Adjust test to match.
168         * NEWS: Document the change.
169         Suggested by Paul Eggert.
170
171 2010-09-16  Bruno Haible  <bruno@clisp.org>
172
173         Fix typos in comments.
174         * lib/striconveh.h: Fix typo in comment.
175         * lib/login_tty.c (login_tty): Likewise.
176
177 2010-09-15  Bruno Haible  <bruno@clisp.org>
178
179         stdlib: clarify MirBSD WEXITSTATUS bug
180         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
181         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
182
183 2010-09-15  Eric Blake  <eblake@redhat.com>
184
185         stdlib: work around MirBSD WEXITSTATUS bug
186         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
187         * modules/stdlib (Depends-on): Add sys_wait.
188         * tests/test-sys_wait.c (main): Enhance test.
189         * tests/test-stdlib.c (main): Likewise.
190         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
191
192         docs: mention MacOS issue with WEXITSTATUS(constant)
193         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
194         issue.
195         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
196
197         strnlen: add tests
198         * modules/strnlen-tests: New file.
199         * tests/test-strnlen.c: Likewise.
200
201 2010-09-14  Bruno Haible  <bruno@clisp.org>
202
203         unistr/base: Avoid link errors when module 'libunistring' is also used.
204         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
205         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
206         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
207         Declare also when HAVE_LIBUNISTRING is set.
208         Reported by Pádraig Brady <P@draigbrady.com>.
209
210 2010-09-14  Eric Blake  <eblake@redhat.com>
211
212         test-rawmemchr: make more robust
213         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
214         (Depends-on, configure.ac): Add needed prerequisites to use it.
215         * modules/memchr-tests (Files, Depends-on, configure.ac):
216         Likewise, to avoid implicit reliance on memchr module prereqs.
217         * tests/test-memchr.c (main): Ensure proper masking.
218         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
219         reads.
220
221         memchr: detect glibc Alpha bug
222         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
223         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
224         Alpha.
225         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
226         * tests/test-memchr.c (main): Enhance test.
227         Reported by Nelson H. F. Beebe.
228
229 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
230
231         fts, getcwd, glob: audit for dirfd returning -1
232         * lib/fts.c (opendir): Remove #define; no longer used.
233         (opendirat): New arg PDIR_FD.  All callers changed.
234         (fts_build, _opendir2): Use new opendirat to avoid the need for
235         dirfd, or for checking whether dirfd returns a negative value.
236         Don't use opendir; always use openat followed by fdopendir.
237         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
238         it.
239         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
240         returns -1 here.
241         * modules/fts (Depends-on): Remove dirfd.
242         * modules/getcwd (Depends-on): Likewise.
243
244 2010-09-13  Eric Blake  <eblake@redhat.com>
245
246         float: fix broken MirBSD header
247         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
248         * doc/posix-headers/float.texi (float.h): Document it.
249
250 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
251
252         fts: use O_NOFOLLOW to avoid race condition when opening a directory
253         * lib/fts.c (opendirat): New arg extra_flags.
254         (__opendir2): Use it to avoid following symlinks when opening
255         a directory, if symlinks are not supposed to be followed.  See
256         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
257
258         fdopendir: preserve argument fd before returning
259         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
260         (fdopendir_with_dup, fd_clone_opendir): New static functions.
261         (fdopendir): Use them, arranging for FD to be open to the same
262         directory that it was when it started.  (It might be temporarily
263         closed while fdopendir is running, so this not thread- or
264         signal-safe.)  Be careful to do the right thing even when file
265         descriptors are scarce and dup fails with errno == EMFILE.  See
266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
267
268 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
269
270         regex: Pass the system regex if its only problem is 32-bit regoff_t.
271         * NEWS: Document change.
272         * m4/regex.m4: Disable test for regoff_t size.
273
274 2010-09-13  Jim Meyering  <meyering@redhat.com>
275
276         fts: don't operate on an invalid file descriptor after failed dup
277         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
278         negative file descriptor.
279
280 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
281
282         savedir: add streamsavedir, deprecate fdsavedir
283         * NEWS: Mention deprecation of fdsavedir.
284         * lib/savedir.c (streamsavedir): New extern function, whose name
285         ends in "savedir" to be consistent with the others.  This differs
286         from savedirstream in that it doesn't close its argument.  The
287         next version of GNU tar will use this instead of fdsavedir, to
288         avoid some race conditions and conserve file descriptors.
289         (savedirstream): Reimplement as a wrapper around streamsavedir.
290         (fdsavedir): Add a comment deprecating this function.  As far as
291         I know, only GNU tar used it, and GNU tar doesn't need it any more.
292         * lib/savedir.h (streamsavedir): New decl.
293         (fdsavedir): Add a comment deprecating this.
294
295 2010-09-10  Bruno Haible  <bruno@clisp.org>
296
297         langinfo: Fix last commit.
298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
299         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
301
302 2010-09-10  Bruno Haible  <bruno@clisp.org>
303
304         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
305         * lib/progreloc.c (O_EXEC): Define fallback.
306
307 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
308
309         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
310         * NEWS: Document recent changes to fcntl-h.
311         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
312         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
313         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
314         Similarly for O_SEARCH; this last was already true, but not documented.
315         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
316         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
317         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
318         Likewise.
319         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
320         is zero, not whether it is defined.
321         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
322         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
323         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
324
325 2010-09-10  Bruno Haible  <bruno@clisp.org>
326
327         langinfo, nl_langinfo: Fix for IRIX 5.3.
328         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
329         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
330         HAVE_LANGINFO_YESEXPR.
331         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
332         HAVE_LANGINFO_YESEXPR.
333         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
334         HAVE_LANGINFO_T_FMT_AMPM is 0.
335         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
336         HAVE_LANGINFO_YESEXPR is 0.
337         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
338         NOEXPR.
339         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
340         * doc/posix-functions/nl_langinfo.texi: Likewise.
341         Reported by Eric Blake.
342
343 2010-09-10  Bruno Haible  <bruno@clisp.org>
344
345         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
346         * doc/glibc-functions/login_tty.texi: Mention the include file problem
347         on FreeBSD 8.0 and OpenBSD 4.6.
348         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
349         * m4/pty_h.m4 (gl_PTY_H): Likewise.
350         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
351         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
352         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
353         ac_includes_default.
354         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
355
356 2010-09-09  Eric Blake  <eblake@redhat.com>
357
358         strsignal: work around NetBSD bug
359         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
360         * lib/string.in.h (includes): Likewise.
361         * doc/posix-functions/strsignal.texi (strsignal): Document the
362         bug.
363         Reported by Nelson H. F. Beebe.
364
365         gnulib-tool: work with NetBSD /bin/sh
366         * gnulib-tool (func_cache_var, func_cache_lookup_module)
367         (func_get_description, func_get_comment, func_get_status)
368         (func_get_notice, func_get_applicability, func_get_filelist)
369         (func_get_dependencies, func_get_autoconf_early_snippet)
370         (func_get_autoconf_snippet, func_get_automake_snippet)
371         (func_get_include_directive, func_get_link_directive)
372         (func_get_license, func_get_maintainer, func_import): Avoid
373         shell syntax errors from parsing syntax extensions.
374
375 2010-09-09  Bruno Haible  <bruno@clisp.org>
376
377         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
378         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
379         a reliable way to determine whether the 'alias' command works.
380
381 2010-09-08  Jim Meyering  <meyering@redhat.com>
382
383         init.sh: penalize a set-x-impaired shell; don't disqualify it
384         * tests/init.sh: Too many shells corrupt application stderr when
385         you set -x, so we can't afford to disqualify them, since at least
386         on Irix-6.5, that would disqualify all bourne shells.
387         Instead, use a two-pass approach.
388         On the first pass, try to find a shell that meets the stricter
389         condition that set -x does not corrupt stderr.
390         If no shell meets the stricter condition, retest each candidate
391         shell, but without that extra condition.  Finally, when
392         VERBOSE=yes is requested and set -x might cause trouble, simply
393         issue a warning and refrain from enabling debug output.
394
395 2010-09-08  Eric Blake  <eblake@redhat.com>
396
397         unsetenv: fix OpenBSD bug
398         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
399         * doc/posix-functions/unsetenv.texi (unsetenv): Update
400         documentation.
401         Reported by Jim Meyering.
402
403         strtod: work around IRIX 6.5 bug
404         * lib/strtod.c (strtod): Reparse number on shorter string if
405         exponent parse was invalid.
406         * tests/test-strtod.c (main): Add check for "0x1p 2".
407         Reported by Tom G. Christensen.
408
409         getopt: optimize previous patch
410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
411         empty variable.  Speed up awk script.
412         Reported by Paolo Bonzini.
413
414 2010-09-08  Jim Meyering  <meyering@redhat.com>
415
416         test.sh: disqualify shells for which set -x corrupts stderr
417         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
418         and OpenBSD 4.7.  They make it so with "set -x", environment settings
419         appear in stderr output.  For example, this command:
420             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
421         prints "P=1" on those two systems:
422
423 2010-09-08  Bruno Haible  <bruno@clisp.org>
424
425         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
426         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
427         commands, because some shells ignore redirections when there is an
428         error in the command lookup.
429         Reported by Eric Blake.
430
431 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
432
433         * lib/regex.h: Fix a mention of `regex_compile' (should be
434         `re_compile_pattern').
435         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
436         (re_set_registers): Correct name of parameter in comment.
437
438         * doc/regex.texi: Add documentation for missing syntax flags.
439         Remove commented-out documentation of defunct syntax option
440         RE_NO_EMPTY_ALTS.
441         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
442         Add documentation of re_set_registers.
443         Document trick to re-use a pattern buffer by setting fastmap manually.
444         Update documentation of struct re_pattern_buffer per public members.
445         Uncomment documentation of equivalence class operators and
446         collating symbol operators, since they are now implemented,
447         Explain leftmost-longest matching in relation to alternatives.
448         Tidy documentation of substring matching.
449         Remove POSIX documentation, which is done better in
450         glibc, and refer the reader there. Keep BSD API documentation, as
451         that is not readily available elsewhere.
452
453 2010-09-07  Eric Blake  <eblake@redhat.com>
454
455         getopt: handle POSIXLY_CORRECT set but not exported
456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
457         export state of POSIXLY_CORRECT, due to bash set -o posix.
458         Reported by Dustin J. Mitchell.
459
460 2010-09-05  Bruno Haible  <bruno@clisp.org>
461
462         gnulib-tool: Highlight the changed options.
463         * gnulib-tool (func_usage): Display the --import, --add-import,
464         --remove-import explanations in bold font.
465
466 2010-09-06  Karl Berry  <karl@gnu.org>
467
468         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
469
470 2010-09-05  Bruno Haible  <bruno@clisp.org>
471
472         uniwidth/width: Update comment.
473         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
474         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
475
476 2010-09-05  Bruno Haible  <bruno@clisp.org>
477
478         isinf, isnan: Relax license.
479         * modules/isinf (License): Change from GPL to LGPL, with consent from
480         Ben Pfaff.
481         * modules/isnan (License): Likewise.
482         Requested by Ludovic Courtès.
483
484 2010-09-04  Bruno Haible  <bruno@clisp.org>
485
486         gnulib-tool: Help migration from --import to --add-import or --update.
487         * gnulib-tool: Emit a verbose error message when --import is used
488         without any module name.
489
490 2010-09-04  Bruno Haible  <bruno@clisp.org>
491
492         Update doc about gnulib-tool.
493         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
494         'gnulib-tool --update' in more detail.
495         Reported by Eric Blake.
496
497 2010-09-04  Bruno Haible  <bruno@clisp.org>
498
499         gnulib-tool: Change --import. New options --add/remove-import.
500         * gnulib-tool: New options --add-import, --remove-import.
501         (func_usage): Document them.
502         (have_associative): Define always.
503         (func_import): In import mode, don't merge the specified settings with
504         the cached settings. Implement remove-import mode.
505         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
506         Explain when to use them versus --import.
507         (Simple update): Use --add-import instead of --import.
508         * NEWS: Mention the change.
509
510 2010-09-04  Bruno Haible  <bruno@clisp.org>
511
512         * doc/gnulib-tool.texi (Initial import): Update paragraph about
513         separate gnulib.mk.
514
515 2010-09-04  Bruno Haible  <bruno@clisp.org>
516
517         gnulib-tool: Don't talk about CVS any more.
518         * gnulib-tool (func_usage, func_import): Write "version control"
519         instead of CVS.
520
521 2010-09-04  Jim Meyering  <meyering@redhat.com>
522
523         maint.mk: avoid obscure sc_copyright_check failure in coreutils
524         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
525         false positives (whose names may be ill-chosen) when searching
526         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
527         would cause a false-positive.
528
529         avoid coreutils "make distcheck" failure
530         Coreutils tests with an absolute build directory name that contains
531         a space.  Not quoting this directory name caused a failure.
532         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
533         * tests/test-vc-list-files-cvs.sh: Likewise.
534
535 2010-09-04  Bruno Haible  <bruno@clisp.org>
536
537         gnulib-tool: Avoid error when run in a package without Makefile.am.
538         * gnulib-tool: When collecting the m4dirs in a package that does not
539         have a Makefile.am, eliminate those directories that contain no
540         gnulib-cache.m4. Fix expression that counts these directories.
541
542 2010-09-04  Bruno Haible  <bruno@clisp.org>
543
544         update-copyright test: Improve output when perl is missing or too old.
545         * tests/test-update-copyright.sh: Move test of Perl version down after
546         the test whether Perl exists. Provide an explanation relating Perl's
547         error message to Automake's SKIP: message.
548
549 2010-09-04  Bruno Haible  <bruno@clisp.org>
550
551         Don't augment PATH in TESTS_ENVIRONMENT.
552         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
553         set abs_aux_dir instead of augmenting PATH.
554         * modules/vc-list-files-tests (Makefile.am): Likewise.
555         * tests/test-update-copyright.sh: Augment PATH here.
556         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
557         path_prepend_.
558         * tests/test-vc-list-files-git.sh: Likewise.
559
560 2010-09-04  Jim Meyering  <meyering@redhat.com>
561
562         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
563         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
564
565 2010-09-04  Bruno Haible  <bruno@clisp.org>
566
567         strdup: Fix compilation error in C++ mode.
568         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
569         the macro.
570
571 2010-09-04  Bruno Haible  <bruno@clisp.org>
572
573         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
574         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
575         macro into a function.
576         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
577
578 2010-09-04  Bruno Haible  <bruno@clisp.org>
579
580         Set PATH_SEPARATOR the same way autoconf does.
581         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
582         the value of PATH_SEPARATOR the same way autoconf-generated configure
583         scripts do.
584         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
585         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
586
587 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
588
589         Set PATH_SEPARATOR the same way autoconf does.
590         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
591         the same way autoconf-generated configure scripts do.
592         * posix-modules: Likewise.
593
594 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
595
596         hash: fix safe_hasher const typo
597         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
598         const; otherwise, there is a type error later.
599
600 2010-09-02  Jim Meyering  <meyering@redhat.com>
601
602         test-update-copyright.sh: require perl 5.8.0
603         * tests/test-update-copyright.sh: Require 5.8.0,
604         which Tom G. Christensen has confirmed is adequate,
605         while 5.6.1 is not.
606
607 2010-09-02  Eric Blake  <eblake@redhat.com>
608
609         tests: init.sh improvements for re-exec'ing with zsh
610         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
611         -vx through shell re-exec.
612         Reported by Tom G. Christensen.
613
614         wctype: fix typo in previous commit
615         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
616         Reported by Ludovic Courtès.
617
618 2010-09-02  Jim Meyering  <meyering@redhat.com>
619
620         test-update-copyright.sh: skip test if Perl is too old
621         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
622         Reported by Tom G. Christensen.
623
624 2010-09-02  Bruno Haible  <bruno@clisp.org>
625
626         wctype: Avoid compilation error on IRIX 6.5.30.
627         * lib/wctype.in.h (iswblank): Declare with a replacement if
628         REPLACE_ISWBLANK is set.
629         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
630         declared. Set REPLACE_ISWBLANK.
631         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
632         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
633         * doc/posix-headers/wctype.texi: Likewise.
634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
635
636 2010-09-01  Bruno Haible  <bruno@clisp.org>
637
638         New module 'socketlib'.
639         * modules/socketlib: New file.
640         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
641         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
642         * modules/sockets (Depends-on): Add socketlib.
643         Suggested by Sam Steingold <sds@gnu.org>.
644
645 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
646
647         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
648
649         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
650         when one needs search access to a directory but not read access.
651         On systems where it is available, it works in some cases where
652         O_RDONLY does not, namely on directories that are searchable but
653         not readable, and which need only to be searchable.  If O_SEARCH
654         is not available, fall back to the traditional method of using
655         O_RDONLY.
656
657         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
658         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
659         when opening a directory that needs only to be searchable.
660         * lib/chdir-safer.c (chdir_no_follow): Likewise.
661         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
662         * lib/openat-proc.c (openat_proc_name): Likewise.
663         * lib/openat.c (openat_needs_fchdir): Likewise.
664         * lib/save-cwd.c (save_cwd): Likewise.
665         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
666
667 2010-08-28  Bruno Haible  <bruno@clisp.org>
668
669         New module 'host-cpu-c-abi'.
670         * modules/host-cpu-c-abi: New file.
671         * m4/host-cpu-c-abi.m4: New file, based on part of
672         clisp/src/m4/general.m4.
673         Requested by Sam Steingold <sds@gnu.org>.
674
675 2010-08-31  Eric Blake  <eblake@redhat.com>
676         and Jim Meyering  <meyering@redhat.com>
677
678         hash: factor, and guard against misbehaving hasher function
679         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
680         of table->hasher's return value.  Also protect against a hash value
681         so large that adding it to table->bucket results in a NULL pointer.
682         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
683         Use it in place of open-coded check-and-abort.
684
685 2010-08-30  Bruno Haible  <bruno@clisp.org>
686
687         hash: silence spurious clang warning
688         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
689         Reported by Eric Blake.
690
691 2010-08-30  Eric Blake  <eblake@redhat.com>
692
693         strstr, memmem, strcasestr: avoid leaked shell message
694         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
695         FreeBSD.
696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
698
699         tests: silence clang warning
700         * tests/test-malloca.c (do_allocation): Avoid dead store.
701
702 2010-08-29  Bruno Haible  <bruno@clisp.org>
703
704         gettext: Fix recent mistake.
705         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
706
707 2010-08-29  Bruno Haible  <bruno@clisp.org>
708
709         selinux-h: Offer a --without-selinux option.
710         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
711         --without-selinux was specified, skip all tests and define
712         HAVE_SELINUX_SELINUX_H to 0.
713         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
714         set LIB_SELINUX to empty.
715         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
716         gl_LIBSELINUX. If --without-selinux was specified, replace
717         selinux/context.h.
718         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
719
720 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
721             Bruno Haible  <bruno@clisp.org>
722
723         Make the module 'realloc-gnu' work again on AIX and OSF/1.
724         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
725         of HAVE_REALLOC.
726         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
727         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
728         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
729         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
730
731 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
732             Bruno Haible  <bruno@clisp.org>
733
734         Make the module 'calloc-gnu' work again on AIX and OSF/1.
735         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
736         HAVE_CALLOC.
737         * lib/xmalloc.c: Update accordingly.
738         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
739         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
740         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
741
742 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
743             Bruno Haible  <bruno@clisp.org>
744
745         Make the module 'malloc-gnu' work again on AIX and OSF/1.
746         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
747         HAVE_MALLOC.
748         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
749         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
750         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
751
752 2010-08-29  Bruno Haible  <bruno@clisp.org>
753
754         Update modules list.
755         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
756         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
757         (String handling <string.h>): Add astrxfrm.
758         (File system functions): Add readlinkat.
759
760 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
761
762         Tests for module 'realloc-gnu'.
763         * modules/realloc-gnu-tests: New file.
764         * tests/test-realloc-gnu.c: New file.
765
766         Tests for module 'calloc-gnu'.
767         * modules/calloc-gnu-tests: New file.
768         * tests/test-calloc-gnu.c: New file.
769
770         Tests for module 'malloc-gnu'.
771         * modules/malloc-gnu-tests: New file.
772         * tests/test-malloc-gnu.c: New file.
773
774 2010-08-28  Bruno Haible  <bruno@clisp.org>
775
776         Rename module 'realloc' -> 'realloc-gnu'.
777         * modules/realloc-gnu: New file, copied from modules/realloc.
778         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
779         obsolete.
780         * modules/mgetgroups (Depends-on): Update.
781         * doc/posix-functions/realloc.texi: Update.
782         * NEWS: Mention the change.
783
784         Rename module 'calloc' -> 'calloc-gnu'.
785         * modules/calloc-gnu: New file, copied from modules/calloc.
786         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
787         obsolete.
788         * doc/posix-functions/calloc.texi: Update.
789         * NEWS: Mention the change.
790
791         Rename module 'malloc' -> 'malloc-gnu'.
792         * modules/malloc-gnu: New file, copied from modules/malloc.
793         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
794         obsolete.
795         * modules/argp (Depends-on): Update.
796         * modules/regex (Depends-on): Update.
797         * doc/posix-functions/malloc.texi: Update.
798         * NEWS: Mention the change.
799
800 2010-08-28  Eric Blake  <eblake@redhat.com>
801
802         pread, pwrite: add missing dependency
803         * modules/pread (Depends-on): Add extensions.
804         * modules/pwrite (Depends-on): Likewise.
805
806 2010-08-28  Bruno Haible  <bruno@clisp.org>
807
808         unistr/u*-strchr: Fix tests dependencies.
809         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
810         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
811         Reported by Ian Beckwith <ianb@erislabs.net>.
812
813 2010-08-28  Bruno Haible  <bruno@clisp.org>
814
815         read-file: Don't occupy too much unused memory.
816         * lib/read-file.c (fread_file): Shrink the buffer at the end.
817
818 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
819             Eric Blake  <eblake@redhat.com>
820             Bruno Haible  <bruno@clisp.org>
821
822         read-file: Avoid memory reallocations with regular files.
823         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
824         (fread_file): With regular files, use the remaining length as the
825         initial buffer size.  Check against overflow.
826         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
827         sys_stat.
828
829 2010-08-28  Bruno Haible  <bruno@clisp.org>
830
831         ftello: Relax license.
832         * modules/ftello (License): Relax to LGPLv2+.
833         Reported by Eric Blake.
834
835 2010-08-28  Bruno Haible  <bruno@clisp.org>
836
837         Avoid relocwrapper link errors due to gnulib replacement functions.
838         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
839         function.
840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
841
842 2010-08-28  Bruno Haible  <bruno@clisp.org>
843
844         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
845         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
846         defined.
847         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
848         Suggested by Eric Blake.
849
850 2010-08-28  Bruno Haible  <bruno@clisp.org>
851
852         sys_socket, netdb: Ensure socklen_t gets defined.
853         * modules/sys_socket (Depends-on): Add socklen.
854         * modules/netdb (Depends-on): Likewise.
855         * modules/getaddrinfo (Depends-on): Remove socklen.
856         * modules/getsockopt (Depends-on): Likewise.
857         * modules/setsockopt (Depends-on): Likewise.
858         * tests/test-sys_socket.c: Check that socklen_t is defined.
859         * tests/test-netdb.c: Likewise.
860         * m4/socklen.m4: Update comments.
861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
862
863 2010-08-27  Eric Blake  <eblake@redhat.com>
864
865         login_tty: add missing dependency
866         * modules/login_tty (Depends-on): Add pty.
867
868 2010-08-26  Eric Blake  <eblake@redhat.com>
869
870         lib-symbol-versions: fix m4 quoting
871         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
872         format for AC_LINK_IFELSE.
873
874         glob: fix compile test
875         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
876
877         btowc: fix missing file
878         * modules/btowc (Files): Also ship locale-fr.m4.
879
880         lseek: fix link test
881         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
882         AC_LINK_IFELSE.
883
884         include_next: silence autoconf 2.68 warning
885         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
886         AC_COMPILE_IFELSE as special.
887         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
888         autoconf < 2.68.
889
890         acl: fix compilation test
891         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
892         AC_COMPILE_IFELSE.
893
894 2010-08-26  Bruno Haible  <bruno@clisp.org>
895
896         Modernize AC_TRY_RUN invocations.
897         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
898         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
899         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
900         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
901         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
902         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
905         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
906         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
908         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
909         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
910         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
911         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
912         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
913         gl_MBRLEN_NUL_RETVAL): Likewise.
914         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
915         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
916         Likewise.
917         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
918         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
919         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
920         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
921         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
922         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
923         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
924         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
925         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
926         Likewise.
927         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
928         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
930         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
931         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
932         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
933         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
934         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
935         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
937
938 2010-08-26  Bruno Haible  <bruno@clisp.org>
939
940         Modernize AC_TRY_LINK invocations.
941         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
942         AC_TRY_LINK.
943         * m4/argp.m4 (gl_ARGP): Likewise.
944         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
945         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
946         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
947         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
948         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
949         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
950         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
951         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
952         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
953         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
954         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
955         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
956         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
957         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
958         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
959         * m4/hostent.m4 (gl_HOSTENT): Likewise.
960         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
961         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
962         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
963         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
964         Likewise.
965         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
966         Likewise.
967         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
968         Likewise.
969         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
971         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
972         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
973         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
974         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
975         * m4/servent.m4 (gl_SERVENT): Likewise.
976         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
977         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
978         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
979         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
980         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
981         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
982         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
983         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
984         * modules/tsearch-tests (configure.ac): Likewise.
985
986 2010-08-26  Bruno Haible  <bruno@clisp.org>
987
988         Modernize AC_TRY_COMPILE invocations.
989         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
990         AC_TRY_COMPILE.
991         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
992         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
993         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
994         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
995         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
996         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
997         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
998         * m4/lock.m4 (gl_LOCK): Likewise.
999         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1001         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1002         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1003         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1004         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1005         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1007         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1008         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1009         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1010         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1011         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1012         extraneous semicolon.
1013
1014 2010-08-26  Jim Meyering  <meyering@redhat.com>
1015
1016         stat-time: relax license LGPL
1017         * modules/stat-time (License): Change from GPL to LGPL,
1018         with consent from all contributors, for use in libguile.
1019         Requested by Ludovic Courtès.
1020
1021 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1022
1023         poll: return immediately on POLLHUP.
1024         * lib/poll.c (poll): Always set timeout before wait_timeout is
1025         computed.
1026
1027 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1028
1029         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1030         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1031         rmdir ("dir/.//"), unlinkat.
1032
1033 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1034
1035         stdbool: avoid spurious failure with modern xlc
1036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1037
1038 2010-08-24  Bruno Haible  <bruno@clisp.org>
1039
1040         getloadavg: simplify code
1041         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1042         gl_have_func. Update comments.
1043
1044 2010-08-24  Eric Blake  <eblake@redhat.com>
1045
1046         getloadavg: don't define SVR4 on cygwin
1047         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1048         only define SVR4 when -lkvm is required.
1049         Reported by Yaakov Selkowitz.
1050
1051 2010-08-24  Bruno Haible  <bruno@clisp.org>
1052
1053         priv-set: fix comment
1054         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1055
1056 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         priv-set: fix comments
1059         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1060         to match code, as suggested by David Bartley in:
1061         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1062
1063 2010-08-23  Eric Blake  <eblake@redhat.com>
1064
1065         stdbool: avoid rejecting clang
1066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1067         * tests/test-stdbool.c: Enable more tests if using the system
1068         <stdbool.h> instead of the gnulib replacement.
1069         (main): Move xlc bug test to a runtime test for all compilers.
1070         Reported by Anders Kaseorg.
1071
1072         argz: fix shell quoting issue
1073         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1074         Reported by Charles Wilson.
1075
1076 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1077             Erik Faye-Lund <kusmabite@gmail.com>
1078
1079         poll, select: handle ERROR_BROKEN_PIPE.
1080         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1081         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1082         * lib/select.c (win32_compute_revents): Do not mark a pipe
1083         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1084
1085 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1086
1087         fts: allow compilation with C++
1088         * lib/fts_.h: Specify extern "C" linkage with C++.
1089
1090 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1091
1092         Fix gnulib-tool sed script de-commentation for AIX sed.
1093         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1094         sed.
1095
1096 2010-08-17  Eric Blake  <eblake@redhat.com>
1097
1098         test-stddef: test for (some) offsetof bugs
1099         * tests/test-stddef.c: Enhance test to ensure correct type of
1100         offsetof.
1101         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1102         that we are not fixing at this time.
1103
1104 2010-08-15  Bruno Haible  <bruno@clisp.org>
1105
1106         stpncpy: Allow stpncpy to be defined as a macro.
1107         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1108         if it's already correctly declared.
1109         * lib/string.in.h (stpncpy): Undefine before redefining.
1110         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1111
1112 2010-08-14  Bruno Haible  <bruno@clisp.org>
1113
1114         Rename module 'memxfrm' to 'amemxfrm'.
1115         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1116         (amemxfrm): Renamed from memxfrm.
1117         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1118         (amemxfrm): Renamed from memxfrm.
1119         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1120         * NEWS: Mention the change.
1121         * MODULES.html.sh (String handling <string.h>): Update.
1122         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1123         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1124         * lib/unicase/u16-casexfrm.c: Likewise.
1125         * lib/unicase/u32-casexfrm.c: Likewise.
1126         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1127         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1128         * lib/uninorm/u16-normxfrm.c: Likewise.
1129         * lib/uninorm/u32-normxfrm.c: Likewise.
1130         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1131         memxfrm.
1132         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1133         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1134         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1135         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1136         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1137         Suggested by Paul Eggert.
1138
1139 2010-08-14  Bruno Haible  <bruno@clisp.org>
1140
1141         Tests for module 'astrxfrm'.
1142         * modules/astrxfrm-tests: New file.
1143         * tests/test-astrxfrm.c: New file.
1144
1145         New module 'astrxfrm'.
1146         * lib/astrxfrm.h: New file.
1147         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1148         * modules/astrxfrm: New file.
1149
1150 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1151
1152         regex: Tweak doc.
1153         * doc/regex.texi (Overview): Don't mention regex.c.
1154         (GNU Regular Expression Compiling): Likewise.
1155         (Match-end-of-line Operator): Mention 'not_eol'.
1156
1157 2010-08-14  Brian Gough  <bjg@gnu.org>
1158             Bruno Haible  <bruno@clisp.org>
1159
1160         git-merge-changelog: add doc relating to use with bzr and hg.
1161         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1162
1163 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1164
1165         pthread: fix pthread.h creation for srcdir != builddir
1166         * modules/pthread (Makefile.am): Fix the rule to work also in a
1167         non-srcdir build.
1168
1169 2010-08-13  Karl Berry  <karl@gnu.org>
1170
1171         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1172         * doc/posix-*/*: force line break before @url of POSIX
1173         specifications.
1174         Suggested by Werner Lemberg.
1175
1176 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         strtod: fix const diagnostic
1179         * lib/strtod.c (strtod): Don't assign const char * to char *,
1180         as this elicits a warning from GCC when warnings are enabled.
1181
1182 2010-08-10  Pádraig Brady <P@draigbrady.com>
1183         and Eric Blake  <eblake@redhat.com>
1184
1185         copy-acl: ignore ENOTSUP on HP-UX
1186         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1187         so that it is available for HP-UX.
1188         * lib/copy-acl.c (qcopy_acl): Use it.
1189         Reported by Patrick M. Callahan.
1190
1191 2010-08-10  Eric Blake  <eblake@redhat.com>
1192
1193         open, chown: relax license
1194         * modules/open (License): Change to LGPLv2+, with consent by all
1195         authors, for use in augeas.
1196         * modules/chown (License): Likewise.
1197         * modules/lchown (Likewise): Likewise.
1198         Requested by Adam Stokes.
1199
1200 2010-08-09  Karl Berry  <karl@gnu.org>
1201
1202         * build-aux/ar-lib: new file, import from Automake.
1203         * config/srclist.txt: autocheck for updates.
1204
1205 2010-08-09  Eric Blake  <eblake@redhat.com>
1206
1207         readlinkat: adjust client modules
1208         * modules/areadlinkat (Depends-on): Use readlinkat, not
1209         symlinkat.
1210         * modules/areadlinkat-with-size (Depends-on): Likewise.
1211
1212         mknod: be more vocal about danger of running tests as root
1213         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1214         root, since that is just asking for problems.
1215         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1216
1217         readlinkat: split into its own module
1218         * modules/symlinkat: Split readlinkat...
1219         * modules/readlinkat: ...into separate module.
1220         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1221         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1222         * lib/symlinkat.c (readlinkat): Move...
1223         * lib/readlinkat.c: ...into new file.
1224         * modules/symlinkat-tests: Split readlinkat test...
1225         * modules/readlinkat-tests: ...into separate module.
1226         * tests/test-symlinkat.c: Split...
1227         * tests/test-readlinkat.c: ...into new file.
1228         * NEWS: Document the split.
1229         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1230         * lib/unistd.in.h (readlinkat): Likewise.
1231         Suggested by Bruno Haible.
1232
1233 2010-08-08  Bruno Haible  <bruno@clisp.org>
1234
1235         memxfrm: Speed up.
1236         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1237         that usually only one call to strxfrm is necessary for each string
1238         part.
1239         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1240
1241 2010-08-07  Karl Berry  <karl@gnu.org>
1242
1243         * doc/posix-headers/limits.texi,
1244         * doc/posix-functions/malloc.texi,
1245         * doc/posix-functions/strsignal.texi: missing @item.
1246         * doc/ld-version-script.texi: spurious leading i.
1247         * doc/regex.texi (Interval Operators): no commas inside @var.
1248
1249 2010-08-01  Bruno Haible  <bruno@clisp.org>
1250
1251         Integrate the regex documentation.
1252         * doc/gnulib.texi: Define 'cn' index.
1253         (Regular expressions): New a chapter that includes regex.texi and
1254         regexprops-generic.texi.
1255         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1256         syntax.
1257
1258         Whitespace cleanup.
1259         * doc/regex.texi: Remove trailing spaces.
1260
1261         Add regex documentation.
1262         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1263         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1264         Written by Kathy A. Hargreaves and Karl Berry.
1265
1266 2010-08-01  Bruno Haible  <bruno@clisp.org>
1267
1268         link: Update documentation.
1269         * doc/posix-functions/link.texi: Update regarding Solaris.
1270
1271 2010-07-31  Bruno Haible  <bruno@clisp.org>
1272
1273         Update modules list.
1274         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1275         (String handling <string.h>): Add memcmp2, memxfrm.
1276         (Container data structures): Add xlist, xsublist, xoset.
1277         (Core language properties): Add alignof, unused-parameter.
1278         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1279         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1280         (Unibyte characters <ctype.h>): New section.
1281         (String handling <string.h>): New section.
1282         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1283         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1284         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1285         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1286         tan, tanh, tanl, y0, y1, yn.
1287         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1288         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1289         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1290         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1291         unlockpt, vdprintf, vdprintf-posix.
1292         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1293         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1294         xconcat-filename.
1295         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1296         getdtablesize, pipe2, pipe2-safer.
1297         (Security): New section.
1298         (Networking functions): Add accept4.
1299         (Signal handling): Add sigpipe.
1300         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1301         mbmemcasecoll.
1302         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1303         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1304         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1305         pipe-filter-ii.
1306         (Misc): Add argp-version-etc, login_tty, parse-duration.
1307
1308 2010-07-31  Bruno Haible  <bruno@clisp.org>
1309
1310         Improve doc in MODULES.html.
1311         * modules/linkat (Description): Add the word "function".
1312         * modules/mkfifo (Description): Likewise.
1313         * modules/mknod (Description): Likewise.
1314         * modules/remove (Description): Likewise.
1315         * modules/renameat (Description): Likewise.
1316         * modules/stat (Description): Likewise.
1317         * modules/symlink (Description): Likewise.
1318         * modules/unlink (Description): Likewise.
1319
1320 2010-07-31  Bruno Haible  <bruno@clisp.org>
1321
1322         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1323         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1324         option --enable/disable-c++ instead of --enable/disable-cxx.
1325         * NEWS: Mention the change.
1326
1327 2010-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         readlink, areadlink: Relax test a bit.
1330         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1331         alternative to ENOTDIR.
1332         * tests/test-areadlink.h (test_areadlink): Likewise.
1333         Reported by Rainer Tammer.
1334
1335 2010-07-31  Bruno Haible  <bruno@clisp.org>
1336
1337         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1338         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1339         character, perform the search using U_STRCHR.
1340         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1341         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1342         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1343         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1344         Suggested by Paolo Bonzini.
1345
1346 2010-07-31  Bruno Haible  <bruno@clisp.org>
1347
1348         unistr/u*-strstr: Fix dependencies.
1349         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1350         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1351         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1352
1353 2010-07-31  Bruno Haible  <bruno@clisp.org>
1354
1355         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1356         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1357         the beginning of the loop.
1358         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1359         cases in 'switch' statement.
1360
1361         unistr/u8-strchr: Fix several bugs.
1362         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1363         the string. When not found, return NULL, not a pointer near the end.
1364
1365         More tests for unistr/u8-strchr.
1366         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1367         that the function does not read past the first occurrence of the byte
1368         being searched.
1369         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1370         * tests/unistr/test-u16-strchr.c (main): New function.
1371         * tests/unistr/test-u32-strchr.c (main): New function.
1372
1373 2010-07-31  Bruno Haible  <bruno@clisp.org>
1374
1375         posix-modules: Ignore backup files of documentation files.
1376         * posix-modules: grep only through files named *.texi.
1377
1378 2010-07-31  Bruno Haible  <bruno@clisp.org>
1379
1380         symlinkat: Fix documentation.
1381         * doc/posix-functions/readlinkat.texi: Fix module name.
1382
1383 2010-07-31  Bruno Haible  <bruno@clisp.org>
1384
1385         fchownat: Replace also when chown has the trailing slash bug.
1386         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1387         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1388         introduced on 2010-04-10.
1389         Reported by Rainer Tammer.
1390
1391 2010-07-31  Bruno Haible  <bruno@clisp.org>
1392
1393         linkat: Work around AIX 7.1 bug.
1394         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1395         whether linkat handles trailing slash correctly. If not, replace linkat
1396         and define LINKAT_TRAILING_SLASH_BUG.
1397         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1398         check whether (fd1,file1) points to a directory if file1 or file2 ends
1399         in a slash. Code taken from lib/link.c.
1400         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1401         Reported by Rainer Tammer.
1402
1403 2010-07-31  Bruno Haible  <bruno@clisp.org>
1404
1405         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1406         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1407         This disables an xlc optimization that was causing wrong test results.
1408         Reported by Rainer Tammer.
1409
1410 2010-07-31  Bruno Haible  <bruno@clisp.org>
1411
1412         iconv: Work around AIX 6.1..7.1 bug.
1413         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1414         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1415         cross-compiling, guess no on all versions of AIX.
1416         Reported by Rainer Tammer.
1417
1418 2010-07-31  Bruno Haible  <bruno@clisp.org>
1419
1420         readlink: Relax test a bit.
1421         * tests/test-readlink.h (test_readlink): Allow different errno value
1422         when readlink is called with a file name that ends in / and refers to
1423         a file.
1424         Suggested by Eric Blake.
1425         Reported by Rainer Tammer.
1426
1427 2010-07-31  Bruno Haible  <bruno@clisp.org>
1428
1429         copysign: Does not require -lm on glibc systems.
1430         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1431         gl_COMMON_DOUBLE_MATHFUNC.
1432         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1433
1434 2010-07-31  Bruno Haible  <bruno@clisp.org>
1435
1436         duplocale: Work around AIX 7.1 bug.
1437         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1438         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1439         * lib/duplocale.c (rpl_duplocale): Update comment.
1440         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1441         Reported by Rainer Tammer.
1442
1443 2010-07-30  Bruno Haible  <bruno@clisp.org>
1444
1445         dirfd: Avoid link error on AIX 7.1.
1446         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1447         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1448         exist, set REPLACE_DIRFD.
1449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1450         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1451         * doc/posix-functions/dirfd.texi: Update.
1452         Reported by Rainer Tammer.
1453
1454 2010-07-30  Eric Blake  <eblake@redhat.com>
1455
1456         strtod: next round of AIX fixes
1457         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1458         exponent.
1459         * tests/test-strtod.c (main): Enhance tests.
1460         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1461         Reported by Rainer Tammer.
1462
1463         futimens: fix configure check
1464         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1465         Reported by Bruno Haible.
1466
1467 2010-07-30  Bruno Haible  <bruno@clisp.org>
1468
1469         getline: Update regarding AIX.
1470         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1471         Reported by Rainer Tammer.
1472
1473 2010-07-30  Bruno Haible  <bruno@clisp.org>
1474
1475         wcwidth: Drop replacement on AIX 7.
1476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1477         AIX 7.
1478         Reported by Rainer Tammer.
1479
1480 2010-07-30  Bruno Haible  <bruno@clisp.org>
1481
1482         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1483         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1484         a 'char *'.
1485         Reported by Rainer Tammer.
1486
1487 2010-07-30  Bruno Haible  <bruno@clisp.org>
1488
1489         unlink: Update regarding AIX.
1490         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1491         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1492         Reported by Rainer Tammer.
1493
1494 2010-07-30  Bruno Haible  <bruno@clisp.org>
1495
1496         symlink: Update regarding AIX.
1497         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1498         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1499         Reported by Rainer Tammer.
1500
1501 2010-07-30  Bruno Haible  <bruno@clisp.org>
1502
1503         strndup: Update regarding AIX.
1504         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1505         AIX 7.
1506         Reported by Rainer Tammer.
1507
1508 2010-07-30  Bruno Haible  <bruno@clisp.org>
1509
1510         stat: Update regarding AIX.
1511         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1512         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1513         Reported by Rainer Tammer.
1514
1515 2010-07-30  Bruno Haible  <bruno@clisp.org>
1516
1517         truncl: Fix autoconf test.
1518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1519         whether truncl works.
1520         Reported by Rainer Tammer.
1521
1522 2010-07-30  Bruno Haible  <bruno@clisp.org>
1523
1524         round: Update regarding AIX.
1525         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1526         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1527         Reported by Rainer Tammer.
1528
1529 2010-07-30  Bruno Haible  <bruno@clisp.org>
1530
1531         rename: Update regarding AIX.
1532         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1533         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1534         Reported by Rainer Tammer.
1535
1536 2010-07-30  Bruno Haible  <bruno@clisp.org>
1537
1538         printf.m4: Update regarding AIX.
1539         * m4/printf.m4: Update comments regarding AIX.
1540         Reported by Rainer Tammer.
1541
1542 2010-07-30  Bruno Haible  <bruno@clisp.org>
1543
1544         iconv: Update regarding AIX.
1545         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1546         AIX 7.
1547         Reported by Rainer Tammer.
1548
1549 2010-07-30  Bruno Haible  <bruno@clisp.org>
1550
1551         getopt: Update regarding AIX.
1552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1553         no on AIX.
1554         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1555         Reported by Rainer Tammer.
1556
1557 2010-07-30  Bruno Haible  <bruno@clisp.org>
1558
1559         ldexpl; Update regarding AIX.
1560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1561         on AIX 7.
1562         Reported by Rainer Tammer.
1563
1564 2010-07-30  Bruno Haible  <bruno@clisp.org>
1565
1566         frexpl: Update regarding AIX.
1567         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1568         on AIX 7.
1569         Reported by Rainer Tammer.
1570
1571 2010-07-30  Bruno Haible  <bruno@clisp.org>
1572
1573         open, fopen: Update regarding AIX.
1574         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1575         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1576         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1577         * doc/posix-functions/fopen.texi: Likewise.
1578         Reported by Rainer Tammer.
1579
1580 2010-07-30  Bruno Haible  <bruno@clisp.org>
1581
1582         chown: Update doc regarding AIX.
1583         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1584         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1585         Reported by Rainer Tammer.
1586
1587 2010-07-30  Eric Blake  <eblake@redhat.com>
1588
1589         strtod: fix bug in replacement function on AIX
1590         * lib/strtod.c (strtod): Special case broken "0x" parse in
1591         underlying strtod.
1592         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1593         * doc/posix-functions/strtod.texi (strtod): Likewise.
1594         Reported by Rainer Tammer.
1595
1596 2010-07-30  Bruno Haible  <bruno@clisp.org>
1597
1598         mbrlen: Fix cross-compilation guess for AIX.
1599         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1600         guess. Leftover from 2008-12-22.
1601
1602 2010-07-30  Bruno Haible  <bruno@clisp.org>
1603
1604         mbrtowc: Fix cross-compilation guess for AIX.
1605         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1606         guess. Leftover from 2008-12-21.
1607
1608 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1609
1610         init.sh: work around trap limitation of some shells
1611         * tests/init.sh (setup_): Move exit trap outside of shell function.
1612
1613 2010-07-29  Eric Blake  <eblake@redhat.com>
1614
1615         strtod: aid debugging
1616         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1617         understanding why strtod is rejected.
1618
1619 2010-07-28  Bruno Haible  <bruno@clisp.org>
1620
1621         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1622         * lib/unistr/u8-chr.c: Include <string.h>.
1623         * tests/unistr/test-u8-chr.c: Likewise.
1624         * tests/unistr/test-u16-chr.c: Likewise.
1625         * tests/unistr/test-u32-chr.c: Likewise.
1626         * tests/unistr/test-u8-strchr.c: Likewise.
1627         * tests/unistr/test-u16-strchr.c: Likewise.
1628         * tests/unistr/test-u32-strchr.c: Likewise.
1629         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1630         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1631         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1632         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1633
1634 2010-07-28  Bruno Haible  <bruno@clisp.org>
1635
1636         Use spaces for indentation, not tabs.
1637         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1638
1639 2010-07-27  Bruno Haible  <bruno@clisp.org>
1640
1641         mbspcasecmp: Fix function specification.
1642         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1643         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1644         Reported by Eric Blake <eblake@redhat.com>.
1645
1646 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1647
1648         timespec: use cast and not conditional, as truncation isn't possible
1649         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1650         instead of a conditional.  Comment about the situation in more detail.
1651         This undoes most of the 2009-10-29 patch.
1652
1653 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1654
1655         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1656         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1657         * lib/unistr/u8-strchr.c: Likewise.
1658         * modules/unistr/u8-chr: Depend on memchr.
1659
1660         unistr/u*-strchr: add tests
1661         * modules/unistr/u8-strchr-tests: New file.
1662         * modules/unistr/u16-strchr-tests: New file.
1663         * modules/unistr/u32-strchr-tests: New file.
1664         * tests/unistr/test-strchr.h: New file.
1665         * tests/unistr/test-u8-strchr.c: New file.
1666         * tests/unistr/test-u16-strchr.c: New file.
1667         * tests/unistr/test-u32-strchr.c: New file.
1668
1669         unistr/u*-chr: test multibyte sequences more
1670         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1671         test vector.
1672         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1673         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1674         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1675
1676         unistr/u*-chr: test multibyte sequences
1677         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1678
1679         unistr/u*-chr: prepare for multibyte tests
1680         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1681         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1682         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1683         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1684         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1685         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1686
1687 2010-07-18  Bruno Haible  <bruno@clisp.org>
1688
1689         unistr/u8-strchr: Optimize non-ASCII argument case.
1690         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1691         because the first byte often matches anyway.
1692         Reported by Pádraig Brady <P@draigbrady.com>.
1693
1694 2010-07-15  Karl Berry  <karl@gnu.org>
1695
1696         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1697
1698 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1699
1700         getcwd: on Solaris, work better if ancestors are inaccessible
1701         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1702         buffer and size, try again with a large buffer.  This works better
1703         on Solaris, since its getcwd succeeds even if the path to the root
1704         is inaccessible, and this is helpful in common cases such as .zfs
1705         hidden directories.  Problem reported by J Chapman Flack in
1706         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1707         Use system getcwd if it's declared, not merely if it's partly
1708         working; use the partly-working test only to avoid needless effort
1709         if the system getcwd fails.
1710         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1711         comment that was already obsolete and is now even more obsolete.
1712         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1713         now might call strdup.
1714
1715 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1716
1717         pthread: Add enough so that coreutils/src/sort.c compiles.
1718         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1719         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1720         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1721         Include <sys/types.h>, in case it defines pthread_t.
1722         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1723         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1724         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1725         (pthread_rwlockattr_t, pthread_spinlock_t):
1726         New typedefs, if HAVE_PTHREAD_T is not defined.
1727         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1728         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1729         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1730         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1731         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1732         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1733         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1734         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1735         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1736         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1737         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1738         New macros.
1739         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1740         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1741         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1742         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1743         (pthread_spin_unlock): New dummy functions.
1744         (pthread_create): Return EAGAIN; don't set errno.
1745         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1746         require AC_C_INLINE.
1747         * modules/pthread (Depends-on): Add sched, time.
1748         (pthread.h): Use AM_V_GEN.
1749
1750 2010-07-13  Bruno Haible  <bruno@clisp.org>
1751
1752         striconveh: Don't malloc memory if the result buffer is sufficient.
1753         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1754         buffer if its size is sufficient.
1755         Reported by Ludovic Courtès <ludo@gnu.org>.
1756
1757 2010-07-13  Bruno Haible  <bruno@clisp.org>
1758
1759         strtod: Add safety check.
1760         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1761
1762 2010-07-12  Bruno Haible  <bruno@clisp.org>
1763
1764         Unify tests that set gl_cv_func_ldexpl_no_libm.
1765         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1766         gl_FUNC_LDEXPL.
1767         (gl_FUNC_LDEXPL): Invoke it.
1768         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1769
1770 2010-07-12  Bruno Haible  <bruno@clisp.org>
1771
1772         Unify tests that set gl_cv_func_ldexp_no_libm.
1773         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1774         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1775         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1776         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1777         * modules/strtod (Files): Add m4/ldexp.m4.
1778
1779 2010-07-12  Bruno Haible  <bruno@clisp.org>
1780
1781         Unify tests that set gl_cv_func_frexpl_no_libm.
1782         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1783         gl_FUNC_FREXPL_NO_LIBM.
1784         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1785         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1786
1787 2010-07-12  Bruno Haible  <bruno@clisp.org>
1788
1789         Unify tests that set gl_cv_func_frexp_no_libm.
1790         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1791         gl_FUNC_FREXP_NO_LIBM.
1792         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1793         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1794
1795 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1796
1797         memcoll: clarify sizes versus lengths, document better, and tweak perf
1798         * lib/memcoll.c (strcoll_loop, memcoll0):
1799         Improve quality of descriptive comments.  Name variables
1800         consistently as to whether they are lengths (which do not include
1801         terminating null) versus sizes (which do).
1802         * lib/xmemcoll.c (xmemcoll0): Likewise.
1803         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1804         returned when s1size == 0; this is easier to compile and saves
1805         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1806
1807 2010-07-12  Bruno Haible  <bruno@clisp.org>
1808
1809         Tests for module '_Exit'.
1810         * modules/_Exit-tests: New file.
1811         * tests/test-_Exit.sh: New file.
1812         * tests/test-_Exit.c: New file.
1813
1814         New module '_Exit'.
1815         * lib/stdlib.in.h (__attribute__): New macro.
1816         (_Exit): New declaration.
1817         * lib/_Exit.c: New file.
1818         * m4/_Exit.m4: New file.
1819         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1820         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1821         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1822         * modules/_Exit: New file.
1823         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1824         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1825
1826 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1827
1828         strtod: make it more-accurate typically, and don't require libm
1829         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1830         Include limits.h.  Don't include string.h.
1831         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1832         (locale_isspace): New function, so that no casts are needed to
1833         check whether *s is a space.
1834         (ldexp): Provide an unused dummy if not available.
1835         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1836         (strtod): Use them.  This implementation prefers to use the
1837         underlying strtod if available, falling back on our own code
1838         only to fix known bugs.  This is more likely to produce an
1839         accurate result.  Also, it avoids the use of libm functions.
1840         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1841         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1842         was absent, but it caused a test failure with coreutils.
1843         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1844         with libm.
1845         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1846         * modules/strtod-tests (Makefile.am): Likewise.
1847
1848 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1849             Bruno Haible  <bruno@clisp.org>
1850
1851         unistr/u8-strchr: Optimize ASCII argument case.
1852         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1853
1854 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1855
1856         (x)memcoll: minor tweaks
1857         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1858         is after the type that it qualifies.
1859         (memcoll0): Likewise.
1860         * lib/memcoll.h (memcoll0): Likewise.
1861         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1862         * lib/xmemcoll.h (xmemcoll0): Likewise.
1863         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1864         differs from memcoll in that the NUL byte is part of the argument.
1865         Omit the abort-checks, as performance is a real issue here.  Plus,
1866         the checks were wrong anyway (an off-by-one error).  Omit local
1867         variable 'diff', as it's a bit clearer that way.
1868         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1869         no longer needed.
1870
1871 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1872
1873         (x)memcoll: speedup when input is known to be NUL delimited
1874         * lib/memcoll.c: Include stdlib.
1875         (memcoll0) New function.
1876         (strcoll_loop) New function, refactored for use in both memcoll
1877         and memcoll0.
1878         * lib/memcoll.h: Add prototype for memcoll0.
1879         * lib/xmemcoll.c: (xmemcoll0) New function.
1880         (collate_error) New function, refactored for use in both xmemcoll
1881         and xmemcoll0.
1882         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1883         * m4/memcoll.m4: add inline invocation.
1884
1885 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1886
1887         * build-aux/bootstrap: Remove any local translations
1888         from the translation project synchronization directory,
1889         so that local only translations are not distributed.
1890
1891 2010-07-04  Bruno Haible  <bruno@clisp.org>
1892
1893         fsusage: Clarify which code applies to which platforms.
1894         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1895         platform.
1896         * lib/fsusage.c (get_fs_usage): Likewise.
1897
1898 2010-07-04  Bruno Haible  <bruno@clisp.org>
1899
1900         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1901         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1902         Reported by Martin Lambers <marlam@marlam.de>.
1903
1904 2010-07-04  Jim Meyering  <meyering@redhat.com>
1905
1906         hash: once again explicitly disallow insertion of NULL
1907         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1908         inserting a NULL pointer cannot work with these functions.
1909         Add a comment with details.
1910         This reverts part of the 2010-07-01 commit, 5bef1a35
1911         "hash: extend module to deal with non-pointer keys".
1912
1913 2010-07-01  Bruno Haible  <bruno@clisp.org>
1914
1915         stdbool: Update doc.
1916         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1917         Info from Christian Weisgerber <naddy@mips.inka.de>.
1918
1919 2010-07-01  Jim Meyering  <meyering@redhat.com>
1920
1921         hash: extend module to deal with non-pointer keys
1922         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1923         but that allows insertion of non-pointer entries.
1924         Do not disallow an ENTRY value of NULL.
1925         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1926         * lib/hash.h (hash_insert0): Declare.
1927
1928 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1929
1930         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1931         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1932         not present (i.e. with autoconf 2.59 and when using gettextize, not
1933         gnulib), require AC_GNU_SOURCE instead.
1934
1935 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1936
1937         idpriv-drop: Fix tests.
1938         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1939         not to the test-idpriv-droptemp program.
1940
1941 2010-06-29  Bruno Haible  <bruno@clisp.org>
1942
1943         string: Fix syntax error with g++ 2.96.
1944         * lib/string.in.h (__pure__): Remove definition.
1945         (_GL_ATTRIBUTE_PURE): New macro.
1946         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1947         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1948         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1949
1950 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1951
1952         unitypes: Fix bug introduced on 2010-05-18.
1953         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1954
1955 2010-06-22  Eric Blake  <eblake@redhat.com>
1956
1957         memmem: slight optimization
1958         * lib/str-two-way.h (critical_factorization): Update comments.
1959         Reduce work during factorization phase.
1960         Reported by Carlos Bueno <carlos@bueno.org>.
1961
1962 2010-06-21  Bruno Haible  <bruno@clisp.org>
1963
1964         Fix HAVE_CALLOC_POSIX misnomer.
1965         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1966         !HAVE_CALLOC_POSIX.
1967         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1968         HAVE_CALLOC_POSIX.
1969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1970         instead of HAVE_CALLOC_POSIX.
1971         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1972         HAVE_CALLOC_POSIX.
1973
1974         Use modern idiom for calloc() replacement.
1975         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1976         AC_FUNC_CALLOC.
1977         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1978         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1979         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1980         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1981         (gl_REPLACE_CALLOC): New macro.
1982
1983 2010-06-21  Bruno Haible  <bruno@clisp.org>
1984
1985         Fix HAVE_REALLOC_POSIX misnomer.
1986         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1987         !HAVE_REALLOC_POSIX.
1988         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1989         HAVE_REALLOC_POSIX.
1990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1991         instead of HAVE_REALLOC_POSIX.
1992         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1993         HAVE_REALLOC_POSIX.
1994
1995         Use modern idiom for realloc() replacement.
1996         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1997         AC_FUNC_REALLOC.
1998         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1999         Autoconf's AC_FUNC_REALLOC.
2000         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2001         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2002         (gl_REPLACE_REALLOC): New macro.
2003         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2004
2005 2010-06-21  Bruno Haible  <bruno@clisp.org>
2006
2007         Fix HAVE_MALLOC_POSIX misnomer.
2008         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2009         !HAVE_MALLOC_POSIX.
2010         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2011         HAVE_MALLOC_POSIX.
2012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2013         instead of HAVE_MALLOC_POSIX.
2014         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2015         HAVE_MALLOC_POSIX.
2016
2017         Use modern idiom for malloc() replacement.
2018         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2019         AC_FUNC_MALLOC.
2020         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2021         Autoconf's AC_FUNC_MALLOC.
2022         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2023         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2024         (gl_REPLACE_MALLOC): New macro.
2025         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2026
2027 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2028
2029         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2030         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2031         This macro takes 3 arguments, not 4.
2032
2033 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2034
2035         ipv6: fix detection under mingw
2036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2037         in6_addr.
2038
2039 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2040
2041         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2042         that strtod() works when cross-compiling to a glibc version known
2043         to work.
2044
2045 2010-06-15  Bruno Haible  <bruno@clisp.org>
2046
2047         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2048
2049 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2050
2051         select: Correct timeout.
2052         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2053
2054 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2055
2056         git-version-gen: init shell var to avoid env var influence
2057         * build-aux/git-version-gen (v): Init shell var to empty.
2058
2059 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2060
2061         priv-set: Don't assume that priv.h exists merely because getppriv does.
2062         See Jan Andersen's bug report about AIX 5L in
2063         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2064         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2065         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2066         * lib/priv-set.h: Likewise.
2067         * tests/test-priv-set.c: Likewise.
2068
2069 2010-06-13  Bruno Haible  <bruno@clisp.org>
2070
2071         relocatable: Make it easier to test whether to install wrappers.
2072         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2073         RELOCATABLE_VIA_WRAPPER.
2074
2075 2010-06-13  Bruno Haible  <bruno@clisp.org>
2076
2077         gnulib-tool: Display specified modules and dependencies differently.
2078         * gnulib-tool (func_show_module_list): New function.
2079         (func_import, func_create_testdir): Invoke it.
2080         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2081
2082 2010-06-13  Bruno Haible  <bruno@clisp.org>
2083
2084         gnulib-tool: Align code of func_import and func_create_testdir.
2085         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2086         specified_modules.
2087
2088 2010-06-12  Jim Meyering  <meyering@redhat.com>
2089
2090         test-inttostr: avoid spurious failure on Solaris 9
2091         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2092         to accept "%ju".  Reported by Bruno Haible.
2093
2094 2010-06-11  Jim Meyering  <meyering@redhat.com>
2095
2096         test-sys_socket: mark variables as used more readably
2097         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2098         as "used" explicitly via (void) statement casts.  This is more
2099         readable than using them in an artificial return expression.
2100         Suggestion from Bruno Haible.
2101
2102 2010-06-11  Bruno Haible  <bruno@clisp.org>
2103
2104         Avoid some more warnings from "gcc -Wwrite-strings".
2105         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2106         to 'const char *'.
2107         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2108         * tests/test-c-strcasestr.c (main): Likewise.
2109         * tests/test-mbscasestr1.c (main): Likewise.
2110         * tests/test-mbscasestr2.c (main): Likewise.
2111         * tests/test-memmem.c (main): Likewise.
2112         * tests/test-strstr.c (main): Likewise.
2113         * tests/test-strcasestr.c (main): Likewise.
2114
2115 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2116
2117         init.sh: change framework_failure_ to fail with status 99, not 1
2118         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2119         automake's parallel-tests rule that this is an unexpected failure,
2120         even if the test is listed in XFAIL_TESTS.
2121
2122 2010-06-11  Jim Meyering  <meyering@redhat.com>
2123
2124         test-inttostr: avoid warnings about 4-6KB literal strings
2125         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2126         Include "macros.h", for its definition of ASSERT.
2127         (CK): s/assert/ASSERT/
2128         * modules/inttostr-tests (Files): Add macros.h.
2129
2130         init.sh: don't use $ME_ or skip_ before they are defined
2131         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2132         their first uses.  Also hoist their companions: warn_, fail_,
2133         framework_failure_, $stderr_fileno.  Prompted by a patch from
2134         Stefano Lattarini.
2135
2136         test-sys_socket: avoid set-but-not-used warnings from gcc
2137         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2138         avoid warning about set-but-not-used variables.
2139
2140         test-xvasprintf: avoid 'const' discard warnings
2141         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2142         "const" when assigning from literal strings.
2143         (test_xasprintf): Add "void" in function argument list to placate
2144         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2145
2146         tests: avoid compilation warnings in argmatch and exclude tests...
2147         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2148         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2149         Since it always exits, declare with the "noreturn" attribute.
2150         * tests/test-argmatch.c: Likewise.
2151
2152         tests: avoid 'const' discard warnings in mbsstr tests
2153         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2154         * tests/test-mbsstr2.c (main): Likewise.
2155
2156         test-verify: avoid warning from gcc's -Wmissing-declarations
2157         * tests/test-verify.c (function): Declare to be static.
2158
2159         test-inttostr.c: include <string.h> for use of strcmp
2160         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2161
2162         test-linkat: avoid failed assertion on "other" architectures
2163         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2164         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2165         sparc: https://bugs.launchpad.net/bugs/591968
2166
2167 2010-06-11  Jim Meyering  <meyering@redhat.com>
2168
2169         printf.m4: avoid autoconf's "Expanded Before Required" warning
2170         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2171         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2172         autoconf warning.
2173
2174 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2175
2176         Replacement header templates are now named with ".in", not "_".
2177         * doc/gnulib-intro.texi: Correct.
2178
2179 2010-06-10  Jim Meyering  <meyering@redhat.com>
2180
2181         inttostr-tests: depend on snprintf, not snprintf-posix
2182         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2183         snprintf-posix, to avoid this aclocal failure:
2184           missing file gnulib-tests/vasnprintf.c
2185           configure.ac:45: error: expected source file, required through \
2186           AC_LIBSOURCES, not found
2187
2188 2010-06-10  Jim Meyering  <meyering@redhat.com>
2189
2190         inttostr: add a new function, inttostr, and tests
2191         The namesake function was not available.  The existence of the
2192         template file, inttostr.c makes its addition nontrivial.
2193         * lib/anytostr.c: Rename from inttostr.c.
2194         (anytostr): Rename from inttostr.
2195         * lib/inttostr.c: New file.
2196         * modules/inttostr (Files): Add anytostr.c.
2197         (Makefile.am): Set lib_SOURCES instead of ...
2198         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2199         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2200         * lib/offtostr.c: Likewise.
2201         * lib/uinttostr.c: Likewise.
2202         * lib/umaxtostr.c: Likewise.
2203         * modules/inttostr-tests: New file.
2204         * tests/test-inttostr.c: New file.  Test these functions.
2205
2206 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2207             Bruno Haible  <bruno@clisp.org>
2208
2209         Add "Extending Gnulib" chapter to manual.
2210         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2211         chapter.
2212         (Extending Gnulib): New chapter.
2213         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2214         chapter.
2215
2216 2010-06-09  Bruno Haible  <bruno@clisp.org>
2217
2218         Avoid relocwrapper link errors due to gnulib replacement functions.
2219         * lib/areadlink.c: Use the system's malloc, realloc functions.
2220         (areadlink): Set errno to ENOMEM explicitly.
2221         * modules/areadlink (Depends-on): Remove malloc-posix.
2222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2223
2224 2010-06-09  Bruno Haible  <bruno@clisp.org>
2225
2226         Avoid relocwrapper link errors due to gnulib replacement functions.
2227         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2228         * lib/malloca.c: Likewise.
2229         * lib/relocatable.c: Likewise.
2230         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2231         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2232         * lib/setenv.c: Use the system's malloc, realloc functions.
2233         * lib/strerror.c: Use the system's sprintf function.
2234         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2235
2236 2010-06-04  Bruno Haible  <bruno@clisp.org>
2237
2238         Prefer documented low-level autoconf macro names.
2239         * m4/lib-link.m4: Use m4_translit instead of translit.
2240         * m4/environ.m4: Likewise.
2241         * m4/mathfunc.m4: Likewise.
2242         * m4/onceonly.m4: Likewise.
2243         * m4/stdint.m4: Likewise.
2244         Suggested by Eric Blake.
2245
2246 2010-06-04  Martin Lambers  <marlam@marlam.de>
2247             Bruno Haible  <bruno@clisp.org>
2248
2249         havelib: Allow library names with '+' characters.
2250         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2251         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2252
2253 2010-06-09  Bruno Haible  <bruno@clisp.org>
2254
2255         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2256         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2257         realloc failed.
2258
2259 2010-06-08  Peter Simons  <simons@cryp.to>
2260
2261         maint.mk: make the news-check rule more configurable
2262         * top/maint.mk (news-check-lines-spec) New variable.
2263         (news-check): Use "sed -n 1,10p" in place of "head".
2264
2265 2010-06-07  Jim Meyering  <meyering@redhat.com>
2266
2267         do-release-commit-and-tag: fix typo in --help
2268         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2269
2270         regex: avoid new dead-code warning with gcc-4.6.0
2271         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2272         if-block containing a while-loop.  It's been unused for at least
2273         5 years.
2274
2275 2010-06-05  Bruno Haible  <bruno@clisp.org>
2276
2277         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2278         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2279
2280 2010-06-04  Bruno Haible  <bruno@clisp.org>
2281
2282         Update to GNU gettext 0.18.1.
2283         * modules/gettext (configure.ac): Require gettext infrastructure from
2284         version 0.18.1.
2285
2286 2010-06-03  Bruno Haible  <bruno@clisp.org>
2287
2288         Don't use AC_LIBOBJ with file names in subdirectories.
2289         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2290         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2291         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2292         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2293         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2294         gl_LIBUNISTRING_LIBSOURCE.
2295         (Makefile.am): Augment lib_SOURCES here, conditionally.
2296         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2297
2298 2010-06-03  Bruno Haible  <bruno@clisp.org>
2299
2300         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2301         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2302         expansion does not end with a newline.
2303         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2304         unnecessary newline.
2305
2306 2010-06-03  Bruno Haible  <bruno@clisp.org>
2307
2308         Reduce dependencies.
2309         * tests/test-quotearg.h: New file, extracted from
2310         tests/test-quotearg.c.
2311         * tests/test-quotearg-simple.c: New file, extracted from
2312         tests/test-quotearg.c.
2313         * tests/test-quotearg.c: Don't include <ctype.h>.
2314         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2315         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2316         use_quote_double_quotes, use_quotearg_colon): Moved to
2317         tests/test-quotearg.h.
2318         (results_g, flag_results, custom_quotes, custom_results): Moved
2319         to tests/test-quotearg-simple.c.
2320         (main): Moved the part that does not depend on gettext to
2321         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2322         performed.
2323         * modules/quotearg-simple: New file.
2324         * modules/quotearg-simple-tests: New file.
2325         * modules/quotearg (Depends-on): Add quotearg-simple.
2326         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2327         (Files): Add tests/test-quotearg.h.
2328         Reported by Paolo Bonzini.
2329
2330 2010-06-03  Bruno Haible  <bruno@clisp.org>
2331
2332         Reduce dependencies.
2333         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2334
2335 2010-06-03  Bruno Haible  <bruno@clisp.org>
2336
2337         time: Undefine more broken macros.
2338         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2339         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2340         Reported by Eric Blake.
2341
2342 2010-06-03  Bruno Haible  <bruno@clisp.org>
2343
2344         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2345         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2346         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2347         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2348         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2349         Reported by Ludovic Courtès <ludo@gnu.org>.
2350
2351 2010-06-02  Eric Blake  <eblake@redhat.com>
2352
2353         time: work with mingw + pthreads-win32 library
2354         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2355         if timespec is defined only in pthread.h.
2356         * modules/time (Makefile.am): Substitute it.
2357         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2358         <pthread.h>, when needed.
2359         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2360         from the library.
2361
2362 2010-05-31  Bruno Haible  <bruno@clisp.org>
2363
2364         Avoid expanding two macros in the wrong order.
2365         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2366         gl_LIBUNISTRING if it is defined.
2367         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2368         autoconf >= 2.64.
2369         Reported by Ludovic Courtès <ludo@gnu.org>.
2370
2371 2010-05-27  Jim Meyering  <meyering@redhat.com>
2372
2373         maint.mk: also prohibit "#undef" of always-defined symbols
2374         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2375         Allow more than one space before the symbol name.
2376         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2377         the regexp uses alternation.
2378
2379 2010-05-26  Eric Blake  <eblake@redhat.com>
2380
2381         maint.mk: avoid echo -e
2382         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2383         Convert all uses of echo -* to printf.
2384         Reported by Matthias Bolte.
2385
2386 2010-05-25  Bruno Haible  <bruno@clisp.org>
2387
2388         Update to GNU gettext 0.18, part 2.
2389         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2390         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2391
2392 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2393
2394         Add missing include in test-pwrite.c.
2395         * tests/test-pwrite.c: Include string.h, for strcmp.
2396
2397 2010-05-24  Bruno Haible  <bruno@clisp.org>
2398
2399         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2400
2401 2010-05-24  Bruno Haible  <bruno@clisp.org>
2402
2403         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2404         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2405         iconveh_error argument.
2406         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2407         U_STRCONV_TO_LOCALE.
2408         * lib/unistr/u16-strcoll.c: Likewise.
2409         * lib/unistr/u32-strcoll.c: Likewise.
2410         * modules/unistr/u8-strcoll (Depends-on): Add
2411         uniconv/u8-strconv-to-enc, localcharset. Remove
2412         uniconv/u8-strconv-to-locale.
2413         (configure.ac): Bump version number.
2414         * modules/unistr/u16-strcoll (Depends-on): Add
2415         uniconv/u16-strconv-to-enc, localcharset. Remove
2416         uniconv/u16-strconv-to-locale.
2417         (configure.ac): Bump version number.
2418         * modules/unistr/u32-strcoll (Depends-on): Add
2419         uniconv/u32-strconv-to-enc, localcharset. Remove
2420         uniconv/u32-strconv-to-locale.
2421         (configure.ac): Bump version number.
2422
2423 2010-05-24  Bruno Haible  <bruno@clisp.org>
2424
2425         Avoid a test failure on NetBSD 5.0.
2426         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2427         an iconv() bug.
2428
2429 2010-05-24  Bruno Haible  <bruno@clisp.org>
2430
2431         Adjust #include directive style.
2432         * modules/regex (Includes): Recommend to write <regex.h>.
2433
2434 2010-05-24  Bruno Haible  <bruno@clisp.org>
2435
2436         regex: Don't require alloca.
2437         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2438         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2439         only inside if (0).
2440
2441 2010-05-23  Jim Meyering  <meyering@redhat.com>
2442
2443         test-renameat.c: include <sys/stat.h>
2444         * tests/test-renameat.c: Include <sys/stat.h>; required for
2445         definition of S_IS* macros.
2446
2447 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2448
2449         Update maintainer documentation for 'relocatable-prog' module.
2450         * doc/relocatable-maint.texi: Update.
2451         Comments by Bruno Haible.
2452
2453 2010-05-23  Bruno Haible  <bruno@clisp.org>
2454
2455         git-merge-changelog: Enable --split-merged-entry by default.
2456         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2457         (usage): Don't mention this option any more.
2458         Reported by Ralf Wildenhues.
2459
2460 2010-05-23  Jim Meyering  <meyering@redhat.com>
2461
2462         test-pwrite: do not leave behind a test file named "out"
2463         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2464         The trivial-looking use of init.sh is really necessary.
2465         It ensures that the temporary file, "out", is created in
2466         a temporary directory, and removed upon termination.
2467         * tests/test-pwrite.sh: Re-add file.
2468         * modules/pwrite-tests: Reference it.
2469
2470 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2471
2472         Fix output redirection buglet in init.sh.
2473         * tests/init.sh: Fix redirection of stderr.
2474
2475 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2476
2477         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2478
2479 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2480
2481         * modules/valgrind-tests: New file.
2482         * m4/valgrind-tests.m4: New file.
2483         * doc/valgrind-tests.texi: New file.
2484         * doc/gnulib.texi (Running self-tests under valgrind): New
2485         section.
2486
2487 2010-05-19  Bruno Haible  <bruno@clisp.org>
2488
2489         Clean up dead code in recent commit.
2490         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2491         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2492         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2493         Suggested by Paolo Bonzini.
2494
2495 2010-05-19  Bruno Haible  <bruno@clisp.org>
2496
2497         Avoid valgrind error reports from libunistring.
2498         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2499         * modules/libunistring (Files): Add it.
2500         * modules/libunistring-optional (Files): Likewise.
2501
2502 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2503             Bruno Haible  <bruno@clisp.org>
2504
2505         New module 'libunistring-optional'.
2506         * modules/libunistring-optional: New file.
2507         * m4/libunistring-base.m4: New file.
2508         * m4/libunistring-optional.m4: New file.
2509         * lib/unicase.in.h: Renamed from lib/unicase.h.
2510         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2511         * lib/unictype.in.h: Renamed from lib/unictype.h.
2512         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2513         * lib/uniname.in.h: Renamed from lib/uniname.h.
2514         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2515         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2516         * lib/unistr.in.h: Renamed from lib/unistr.h.
2517         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2518         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2519         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2520         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2521         gl_LIBUNISTRING. If the library was found, determine the installed
2522         version and set LIBUNISTRING_VERSION.
2523         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2524         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2525         handle a configuration option --with-included-libunistring.
2526         * modules/libunistring (Files): Add m4/absolute-header.m4.
2527         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2528         Add m4/libunistring-base.m4.
2529         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2530         (Makefile.am): Build unicase.h from unicase.in.h.
2531         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2532         Add m4/libunistring-base.m4.
2533         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2534         (Makefile.am): Build uniconv.h from uniconv.in.h.
2535         * modules/unictype/base (Files): Use unictype.in.h instead of
2536         unictype.h. Add m4/libunistring-base.m4.
2537         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2538         (Makefile.am): Build unictype.h from unictype.in.h.
2539         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2540         Add m4/libunistring-base.m4.
2541         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2542         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2543         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2544         Add m4/libunistring-base.m4.
2545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2546         (Makefile.am): Build uniname.h from uniname.in.h.
2547         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2548         Add m4/libunistring-base.m4.
2549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2550         (Makefile.am): Build uninorm.h from uninorm.in.h.
2551         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2552         unistdio.h. Add m4/libunistring-base.m4.
2553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2554         (Makefile.am): Build unistdio.h from unistdio.in.h.
2555         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2556         Add m4/libunistring-base.m4.
2557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2558         (Makefile.am): Build unistr.h from unistr.in.h.
2559         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2560         Add m4/libunistring-base.m4.
2561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2562         (Makefile.am): Build unitypes.h from unitypes.in.h.
2563         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2564         Add m4/libunistring-base.m4.
2565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2566         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2567         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2568         uniwidth.h. Add m4/libunistring-base.m4.
2569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2570         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2571         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2572         instead of augmenting lib_SOURCES.
2573         * modules/unicase/empty-suffix-context: Likewise.
2574         * modules/unicase/locale-language: Likewise.
2575         * modules/unicase/tolower: Likewise.
2576         * modules/unicase/totitle: Likewise.
2577         * modules/unicase/toupper: Likewise.
2578         * modules/unicase/u8-casecmp: Likewise.
2579         * modules/unicase/u8-casecoll: Likewise.
2580         * modules/unicase/u8-casefold: Likewise.
2581         * modules/unicase/u8-casexfrm: Likewise.
2582         * modules/unicase/u8-ct-casefold: Likewise.
2583         * modules/unicase/u8-ct-tolower: Likewise.
2584         * modules/unicase/u8-ct-totitle: Likewise.
2585         * modules/unicase/u8-ct-toupper: Likewise.
2586         * modules/unicase/u8-is-cased: Likewise.
2587         * modules/unicase/u8-is-casefolded: Likewise.
2588         * modules/unicase/u8-is-lowercase: Likewise.
2589         * modules/unicase/u8-is-titlecase: Likewise.
2590         * modules/unicase/u8-is-uppercase: Likewise.
2591         * modules/unicase/u8-prefix-context: Likewise.
2592         * modules/unicase/u8-suffix-context: Likewise.
2593         * modules/unicase/u8-tolower: Likewise.
2594         * modules/unicase/u8-totitle: Likewise.
2595         * modules/unicase/u8-toupper: Likewise.
2596         * modules/unicase/u16-casecmp: Likewise.
2597         * modules/unicase/u16-casecoll: Likewise.
2598         * modules/unicase/u16-casefold: Likewise.
2599         * modules/unicase/u16-casexfrm: Likewise.
2600         * modules/unicase/u16-ct-casefold: Likewise.
2601         * modules/unicase/u16-ct-tolower: Likewise.
2602         * modules/unicase/u16-ct-totitle: Likewise.
2603         * modules/unicase/u16-ct-toupper: Likewise.
2604         * modules/unicase/u16-is-cased: Likewise.
2605         * modules/unicase/u16-is-casefolded: Likewise.
2606         * modules/unicase/u16-is-lowercase: Likewise.
2607         * modules/unicase/u16-is-titlecase: Likewise.
2608         * modules/unicase/u16-is-uppercase: Likewise.
2609         * modules/unicase/u16-prefix-context: Likewise.
2610         * modules/unicase/u16-suffix-context: Likewise.
2611         * modules/unicase/u16-tolower: Likewise.
2612         * modules/unicase/u16-totitle: Likewise.
2613         * modules/unicase/u16-toupper: Likewise.
2614         * modules/unicase/u32-casecmp: Likewise.
2615         * modules/unicase/u32-casecoll: Likewise.
2616         * modules/unicase/u32-casefold: Likewise.
2617         * modules/unicase/u32-casexfrm: Likewise.
2618         * modules/unicase/u32-ct-casefold: Likewise.
2619         * modules/unicase/u32-ct-tolower: Likewise.
2620         * modules/unicase/u32-ct-totitle: Likewise.
2621         * modules/unicase/u32-ct-toupper: Likewise.
2622         * modules/unicase/u32-is-cased: Likewise.
2623         * modules/unicase/u32-is-casefolded: Likewise.
2624         * modules/unicase/u32-is-lowercase: Likewise.
2625         * modules/unicase/u32-is-titlecase: Likewise.
2626         * modules/unicase/u32-is-uppercase: Likewise.
2627         * modules/unicase/u32-prefix-context: Likewise.
2628         * modules/unicase/u32-suffix-context: Likewise.
2629         * modules/unicase/u32-tolower: Likewise.
2630         * modules/unicase/u32-totitle: Likewise.
2631         * modules/unicase/u32-toupper: Likewise.
2632         * modules/unicase/ulc-casecmp: Likewise.
2633         * modules/unicase/ulc-casecoll: Likewise.
2634         * modules/unicase/ulc-casexfrm: Likewise.
2635         * modules/uniconv/u8-conv-from-enc: Likewise.
2636         * modules/uniconv/u8-conv-to-enc: Likewise.
2637         * modules/uniconv/u8-strconv-from-enc: Likewise.
2638         * modules/uniconv/u8-strconv-from-locale: Likewise.
2639         * modules/uniconv/u8-strconv-to-enc: Likewise.
2640         * modules/uniconv/u8-strconv-to-locale: Likewise.
2641         * modules/uniconv/u16-conv-from-enc: Likewise.
2642         * modules/uniconv/u16-conv-to-enc: Likewise.
2643         * modules/uniconv/u16-strconv-from-enc: Likewise.
2644         * modules/uniconv/u16-strconv-from-locale: Likewise.
2645         * modules/uniconv/u16-strconv-to-enc: Likewise.
2646         * modules/uniconv/u16-strconv-to-locale: Likewise.
2647         * modules/uniconv/u32-conv-from-enc: Likewise.
2648         * modules/uniconv/u32-conv-to-enc: Likewise.
2649         * modules/uniconv/u32-strconv-from-enc: Likewise.
2650         * modules/uniconv/u32-strconv-from-locale: Likewise.
2651         * modules/uniconv/u32-strconv-to-enc: Likewise.
2652         * modules/uniconv/u32-strconv-to-locale: Likewise.
2653         * modules/unictype/bidicategory-byname: Likewise.
2654         * modules/unictype/bidicategory-name: Likewise.
2655         * modules/unictype/bidicategory-of: Likewise.
2656         * modules/unictype/bidicategory-test: Likewise.
2657         * modules/unictype/block-list: Likewise.
2658         * modules/unictype/block-test: Likewise.
2659         * modules/unictype/category-C: Likewise.
2660         * modules/unictype/category-Cc: Likewise.
2661         * modules/unictype/category-Cf: Likewise.
2662         * modules/unictype/category-Cn: Likewise.
2663         * modules/unictype/category-Co: Likewise.
2664         * modules/unictype/category-Cs: Likewise.
2665         * modules/unictype/category-L: Likewise.
2666         * modules/unictype/category-Ll: Likewise.
2667         * modules/unictype/category-Lm: Likewise.
2668         * modules/unictype/category-Lo: Likewise.
2669         * modules/unictype/category-Lt: Likewise.
2670         * modules/unictype/category-Lu: Likewise.
2671         * modules/unictype/category-M: Likewise.
2672         * modules/unictype/category-Mc: Likewise.
2673         * modules/unictype/category-Me: Likewise.
2674         * modules/unictype/category-Mn: Likewise.
2675         * modules/unictype/category-N: Likewise.
2676         * modules/unictype/category-Nd: Likewise.
2677         * modules/unictype/category-Nl: Likewise.
2678         * modules/unictype/category-No: Likewise.
2679         * modules/unictype/category-P: Likewise.
2680         * modules/unictype/category-Pc: Likewise.
2681         * modules/unictype/category-Pd: Likewise.
2682         * modules/unictype/category-Pe: Likewise.
2683         * modules/unictype/category-Pf: Likewise.
2684         * modules/unictype/category-Pi: Likewise.
2685         * modules/unictype/category-Po: Likewise.
2686         * modules/unictype/category-Ps: Likewise.
2687         * modules/unictype/category-S: Likewise.
2688         * modules/unictype/category-Sc: Likewise.
2689         * modules/unictype/category-Sk: Likewise.
2690         * modules/unictype/category-Sm: Likewise.
2691         * modules/unictype/category-So: Likewise.
2692         * modules/unictype/category-Z: Likewise.
2693         * modules/unictype/category-Zl: Likewise.
2694         * modules/unictype/category-Zp: Likewise.
2695         * modules/unictype/category-Zs: Likewise.
2696         * modules/unictype/category-and: Likewise.
2697         * modules/unictype/category-and-not: Likewise.
2698         * modules/unictype/category-byname: Likewise.
2699         * modules/unictype/category-name: Likewise.
2700         * modules/unictype/category-none: Likewise.
2701         * modules/unictype/category-of: Likewise.
2702         * modules/unictype/category-or: Likewise.
2703         * modules/unictype/category-test: Likewise.
2704         * modules/unictype/combining-class: Likewise.
2705         * modules/unictype/ctype-alnum: Likewise.
2706         * modules/unictype/ctype-alpha: Likewise.
2707         * modules/unictype/ctype-blank: Likewise.
2708         * modules/unictype/ctype-cntrl: Likewise.
2709         * modules/unictype/ctype-digit: Likewise.
2710         * modules/unictype/ctype-graph: Likewise.
2711         * modules/unictype/ctype-lower: Likewise.
2712         * modules/unictype/ctype-print: Likewise.
2713         * modules/unictype/ctype-punct: Likewise.
2714         * modules/unictype/ctype-space: Likewise.
2715         * modules/unictype/ctype-upper: Likewise.
2716         * modules/unictype/ctype-xdigit: Likewise.
2717         * modules/unictype/decimal-digit: Likewise.
2718         * modules/unictype/digit: Likewise.
2719         * modules/unictype/mirror: Likewise.
2720         * modules/unictype/numeric: Likewise.
2721         * modules/unictype/property-alphabetic: Likewise.
2722         * modules/unictype/property-ascii-hex-digit: Likewise.
2723         * modules/unictype/property-bidi-arabic-digit: Likewise.
2724         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2725         * modules/unictype/property-bidi-block-separator: Likewise.
2726         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2727         * modules/unictype/property-bidi-common-separator: Likewise.
2728         * modules/unictype/property-bidi-control: Likewise.
2729         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2730         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2731         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2732         * modules/unictype/property-bidi-european-digit: Likewise.
2733         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2734         * modules/unictype/property-bidi-left-to-right: Likewise.
2735         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2736         * modules/unictype/property-bidi-other-neutral: Likewise.
2737         * modules/unictype/property-bidi-pdf: Likewise.
2738         * modules/unictype/property-bidi-segment-separator: Likewise.
2739         * modules/unictype/property-bidi-whitespace: Likewise.
2740         * modules/unictype/property-byname: Likewise.
2741         * modules/unictype/property-combining: Likewise.
2742         * modules/unictype/property-composite: Likewise.
2743         * modules/unictype/property-currency-symbol: Likewise.
2744         * modules/unictype/property-dash: Likewise.
2745         * modules/unictype/property-decimal-digit: Likewise.
2746         * modules/unictype/property-default-ignorable-code-point: Likewise.
2747         * modules/unictype/property-deprecated: Likewise.
2748         * modules/unictype/property-diacritic: Likewise.
2749         * modules/unictype/property-extender: Likewise.
2750         * modules/unictype/property-format-control: Likewise.
2751         * modules/unictype/property-grapheme-base: Likewise.
2752         * modules/unictype/property-grapheme-extend: Likewise.
2753         * modules/unictype/property-grapheme-link: Likewise.
2754         * modules/unictype/property-hex-digit: Likewise.
2755         * modules/unictype/property-hyphen: Likewise.
2756         * modules/unictype/property-id-continue: Likewise.
2757         * modules/unictype/property-id-start: Likewise.
2758         * modules/unictype/property-ideographic: Likewise.
2759         * modules/unictype/property-ids-binary-operator: Likewise.
2760         * modules/unictype/property-ids-trinary-operator: Likewise.
2761         * modules/unictype/property-ignorable-control: Likewise.
2762         * modules/unictype/property-iso-control: Likewise.
2763         * modules/unictype/property-join-control: Likewise.
2764         * modules/unictype/property-left-of-pair: Likewise.
2765         * modules/unictype/property-line-separator: Likewise.
2766         * modules/unictype/property-logical-order-exception: Likewise.
2767         * modules/unictype/property-lowercase: Likewise.
2768         * modules/unictype/property-math: Likewise.
2769         * modules/unictype/property-non-break: Likewise.
2770         * modules/unictype/property-not-a-character: Likewise.
2771         * modules/unictype/property-numeric: Likewise.
2772         * modules/unictype/property-other-alphabetic: Likewise.
2773         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2774         * modules/unictype/property-other-grapheme-extend: Likewise.
2775         * modules/unictype/property-other-id-continue: Likewise.
2776         * modules/unictype/property-other-id-start: Likewise.
2777         * modules/unictype/property-other-lowercase: Likewise.
2778         * modules/unictype/property-other-math: Likewise.
2779         * modules/unictype/property-other-uppercase: Likewise.
2780         * modules/unictype/property-paired-punctuation: Likewise.
2781         * modules/unictype/property-paragraph-separator: Likewise.
2782         * modules/unictype/property-pattern-syntax: Likewise.
2783         * modules/unictype/property-pattern-white-space: Likewise.
2784         * modules/unictype/property-private-use: Likewise.
2785         * modules/unictype/property-punctuation: Likewise.
2786         * modules/unictype/property-quotation-mark: Likewise.
2787         * modules/unictype/property-radical: Likewise.
2788         * modules/unictype/property-sentence-terminal: Likewise.
2789         * modules/unictype/property-soft-dotted: Likewise.
2790         * modules/unictype/property-space: Likewise.
2791         * modules/unictype/property-terminal-punctuation: Likewise.
2792         * modules/unictype/property-test: Likewise.
2793         * modules/unictype/property-titlecase: Likewise.
2794         * modules/unictype/property-unassigned-code-value: Likewise.
2795         * modules/unictype/property-unified-ideograph: Likewise.
2796         * modules/unictype/property-uppercase: Likewise.
2797         * modules/unictype/property-variation-selector: Likewise.
2798         * modules/unictype/property-white-space: Likewise.
2799         * modules/unictype/property-xid-continue: Likewise.
2800         * modules/unictype/property-xid-start: Likewise.
2801         * modules/unictype/property-zero-width: Likewise.
2802         * modules/unictype/scripts: Likewise.
2803         * modules/unictype/syntax-c-ident: Likewise.
2804         * modules/unictype/syntax-c-whitespace: Likewise.
2805         * modules/unictype/syntax-java-ident: Likewise.
2806         * modules/unictype/syntax-java-whitespace: Likewise.
2807         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2808         * modules/unilbrk/u8-width-linebreaks: Likewise.
2809         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2810         * modules/unilbrk/u16-width-linebreaks: Likewise.
2811         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2812         * modules/unilbrk/u32-width-linebreaks: Likewise.
2813         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2814         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2815         * modules/uniname/uniname: Likewise.
2816         * modules/uninorm/canonical-decomposition: Likewise.
2817         * modules/uninorm/composition: Likewise.
2818         * modules/uninorm/decomposing-form: Likewise.
2819         * modules/uninorm/decomposition: Likewise.
2820         * modules/uninorm/filter: Likewise.
2821         * modules/uninorm/nfc: Likewise.
2822         * modules/uninorm/nfd: Likewise.
2823         * modules/uninorm/nfkc: Likewise.
2824         * modules/uninorm/nfkd: Likewise.
2825         * modules/uninorm/u8-normalize: Likewise.
2826         * modules/uninorm/u8-normcmp: Likewise.
2827         * modules/uninorm/u8-normcoll: Likewise.
2828         * modules/uninorm/u8-normxfrm: Likewise.
2829         * modules/uninorm/u16-normalize: Likewise.
2830         * modules/uninorm/u16-normcmp: Likewise.
2831         * modules/uninorm/u16-normcoll: Likewise.
2832         * modules/uninorm/u16-normxfrm: Likewise.
2833         * modules/uninorm/u32-normalize: Likewise.
2834         * modules/uninorm/u32-normcmp: Likewise.
2835         * modules/uninorm/u32-normcoll: Likewise.
2836         * modules/uninorm/u32-normxfrm: Likewise.
2837         * modules/unistdio/u8-asnprintf: Likewise.
2838         * modules/unistdio/u8-asprintf: Likewise.
2839         * modules/unistdio/u8-snprintf: Likewise.
2840         * modules/unistdio/u8-sprintf: Likewise.
2841         * modules/unistdio/u8-u8-asnprintf: Likewise.
2842         * modules/unistdio/u8-u8-asprintf: Likewise.
2843         * modules/unistdio/u8-u8-snprintf: Likewise.
2844         * modules/unistdio/u8-u8-sprintf: Likewise.
2845         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2846         * modules/unistdio/u8-u8-vasprintf: Likewise.
2847         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2848         * modules/unistdio/u8-u8-vsprintf: Likewise.
2849         * modules/unistdio/u8-vasnprintf: Likewise.
2850         * modules/unistdio/u8-vasprintf: Likewise.
2851         * modules/unistdio/u8-vsnprintf: Likewise.
2852         * modules/unistdio/u8-vsprintf: Likewise.
2853         * modules/unistdio/u16-asnprintf: Likewise.
2854         * modules/unistdio/u16-asprintf: Likewise.
2855         * modules/unistdio/u16-snprintf: Likewise.
2856         * modules/unistdio/u16-sprintf: Likewise.
2857         * modules/unistdio/u16-u16-asnprintf: Likewise.
2858         * modules/unistdio/u16-u16-asprintf: Likewise.
2859         * modules/unistdio/u16-u16-snprintf: Likewise.
2860         * modules/unistdio/u16-u16-sprintf: Likewise.
2861         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2862         * modules/unistdio/u16-u16-vasprintf: Likewise.
2863         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2864         * modules/unistdio/u16-u16-vsprintf: Likewise.
2865         * modules/unistdio/u16-vasnprintf: Likewise.
2866         * modules/unistdio/u16-vasprintf: Likewise.
2867         * modules/unistdio/u16-vsnprintf: Likewise.
2868         * modules/unistdio/u16-vsprintf: Likewise.
2869         * modules/unistdio/u32-asnprintf: Likewise.
2870         * modules/unistdio/u32-asprintf: Likewise.
2871         * modules/unistdio/u32-snprintf: Likewise.
2872         * modules/unistdio/u32-sprintf: Likewise.
2873         * modules/unistdio/u32-u32-asnprintf: Likewise.
2874         * modules/unistdio/u32-u32-asprintf: Likewise.
2875         * modules/unistdio/u32-u32-snprintf: Likewise.
2876         * modules/unistdio/u32-u32-sprintf: Likewise.
2877         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2878         * modules/unistdio/u32-u32-vasprintf: Likewise.
2879         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2880         * modules/unistdio/u32-u32-vsprintf: Likewise.
2881         * modules/unistdio/u32-vasnprintf: Likewise.
2882         * modules/unistdio/u32-vasprintf: Likewise.
2883         * modules/unistdio/u32-vsnprintf: Likewise.
2884         * modules/unistdio/u32-vsprintf: Likewise.
2885         * modules/unistdio/ulc-asnprintf: Likewise.
2886         * modules/unistdio/ulc-asprintf: Likewise.
2887         * modules/unistdio/ulc-fprintf: Likewise.
2888         * modules/unistdio/ulc-snprintf: Likewise.
2889         * modules/unistdio/ulc-sprintf: Likewise.
2890         * modules/unistdio/ulc-vasnprintf: Likewise.
2891         * modules/unistdio/ulc-vasprintf: Likewise.
2892         * modules/unistdio/ulc-vfprintf: Likewise.
2893         * modules/unistdio/ulc-vsnprintf: Likewise.
2894         * modules/unistdio/ulc-vsprintf: Likewise.
2895         * modules/unistr/u8-check: Likewise.
2896         * modules/unistr/u8-chr: Likewise.
2897         * modules/unistr/u8-cmp: Likewise.
2898         * modules/unistr/u8-cmp2: Likewise.
2899         * modules/unistr/u8-cpy: Likewise.
2900         * modules/unistr/u8-cpy-alloc: Likewise.
2901         * modules/unistr/u8-endswith: Likewise.
2902         * modules/unistr/u8-mblen: Likewise.
2903         * modules/unistr/u8-mbsnlen: Likewise.
2904         * modules/unistr/u8-mbtouc: Likewise.
2905         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2906         * modules/unistr/u8-mbtoucr: Likewise.
2907         * modules/unistr/u8-move: Likewise.
2908         * modules/unistr/u8-next: Likewise.
2909         * modules/unistr/u8-prev: Likewise.
2910         * modules/unistr/u8-set: Likewise.
2911         * modules/unistr/u8-startswith: Likewise.
2912         * modules/unistr/u8-stpcpy: Likewise.
2913         * modules/unistr/u8-stpncpy: Likewise.
2914         * modules/unistr/u8-strcat: Likewise.
2915         * modules/unistr/u8-strchr: Likewise.
2916         * modules/unistr/u8-strcmp: Likewise.
2917         * modules/unistr/u8-strcoll: Likewise.
2918         * modules/unistr/u8-strcpy: Likewise.
2919         * modules/unistr/u8-strcspn: Likewise.
2920         * modules/unistr/u8-strdup: Likewise.
2921         * modules/unistr/u8-strlen: Likewise.
2922         * modules/unistr/u8-strmblen: Likewise.
2923         * modules/unistr/u8-strmbtouc: Likewise.
2924         * modules/unistr/u8-strncat: Likewise.
2925         * modules/unistr/u8-strncmp: Likewise.
2926         * modules/unistr/u8-strncpy: Likewise.
2927         * modules/unistr/u8-strnlen: Likewise.
2928         * modules/unistr/u8-strpbrk: Likewise.
2929         * modules/unistr/u8-strrchr: Likewise.
2930         * modules/unistr/u8-strspn: Likewise.
2931         * modules/unistr/u8-strstr: Likewise.
2932         * modules/unistr/u8-strtok: Likewise.
2933         * modules/unistr/u8-to-u16: Likewise.
2934         * modules/unistr/u8-to-u32: Likewise.
2935         * modules/unistr/u8-uctomb: Likewise.
2936         * modules/unistr/u16-check: Likewise.
2937         * modules/unistr/u16-chr: Likewise.
2938         * modules/unistr/u16-cmp: Likewise.
2939         * modules/unistr/u16-cmp2: Likewise.
2940         * modules/unistr/u16-cpy: Likewise.
2941         * modules/unistr/u16-cpy-alloc: Likewise.
2942         * modules/unistr/u16-endswith: Likewise.
2943         * modules/unistr/u16-mblen: Likewise.
2944         * modules/unistr/u16-mbsnlen: Likewise.
2945         * modules/unistr/u16-mbtouc: Likewise.
2946         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2947         * modules/unistr/u16-mbtoucr: Likewise.
2948         * modules/unistr/u16-move: Likewise.
2949         * modules/unistr/u16-next: Likewise.
2950         * modules/unistr/u16-prev: Likewise.
2951         * modules/unistr/u16-set: Likewise.
2952         * modules/unistr/u16-startswith: Likewise.
2953         * modules/unistr/u16-stpcpy: Likewise.
2954         * modules/unistr/u16-stpncpy: Likewise.
2955         * modules/unistr/u16-strcat: Likewise.
2956         * modules/unistr/u16-strchr: Likewise.
2957         * modules/unistr/u16-strcmp: Likewise.
2958         * modules/unistr/u16-strcoll: Likewise.
2959         * modules/unistr/u16-strcpy: Likewise.
2960         * modules/unistr/u16-strcspn: Likewise.
2961         * modules/unistr/u16-strdup: Likewise.
2962         * modules/unistr/u16-strlen: Likewise.
2963         * modules/unistr/u16-strmblen: Likewise.
2964         * modules/unistr/u16-strmbtouc: Likewise.
2965         * modules/unistr/u16-strncat: Likewise.
2966         * modules/unistr/u16-strncmp: Likewise.
2967         * modules/unistr/u16-strncpy: Likewise.
2968         * modules/unistr/u16-strnlen: Likewise.
2969         * modules/unistr/u16-strpbrk: Likewise.
2970         * modules/unistr/u16-strrchr: Likewise.
2971         * modules/unistr/u16-strspn: Likewise.
2972         * modules/unistr/u16-strstr: Likewise.
2973         * modules/unistr/u16-strtok: Likewise.
2974         * modules/unistr/u16-to-u32: Likewise.
2975         * modules/unistr/u16-to-u8: Likewise.
2976         * modules/unistr/u16-uctomb: Likewise.
2977         * modules/unistr/u32-check: Likewise.
2978         * modules/unistr/u32-chr: Likewise.
2979         * modules/unistr/u32-cmp: Likewise.
2980         * modules/unistr/u32-cmp2: Likewise.
2981         * modules/unistr/u32-cpy: Likewise.
2982         * modules/unistr/u32-cpy-alloc: Likewise.
2983         * modules/unistr/u32-endswith: Likewise.
2984         * modules/unistr/u32-mblen: Likewise.
2985         * modules/unistr/u32-mbsnlen: Likewise.
2986         * modules/unistr/u32-mbtouc: Likewise.
2987         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2988         * modules/unistr/u32-mbtoucr: Likewise.
2989         * modules/unistr/u32-move: Likewise.
2990         * modules/unistr/u32-next: Likewise.
2991         * modules/unistr/u32-prev: Likewise.
2992         * modules/unistr/u32-set: Likewise.
2993         * modules/unistr/u32-startswith: Likewise.
2994         * modules/unistr/u32-stpcpy: Likewise.
2995         * modules/unistr/u32-stpncpy: Likewise.
2996         * modules/unistr/u32-strcat: Likewise.
2997         * modules/unistr/u32-strchr: Likewise.
2998         * modules/unistr/u32-strcmp: Likewise.
2999         * modules/unistr/u32-strcoll: Likewise.
3000         * modules/unistr/u32-strcpy: Likewise.
3001         * modules/unistr/u32-strcspn: Likewise.
3002         * modules/unistr/u32-strdup: Likewise.
3003         * modules/unistr/u32-strlen: Likewise.
3004         * modules/unistr/u32-strmblen: Likewise.
3005         * modules/unistr/u32-strmbtouc: Likewise.
3006         * modules/unistr/u32-strncat: Likewise.
3007         * modules/unistr/u32-strncmp: Likewise.
3008         * modules/unistr/u32-strncpy: Likewise.
3009         * modules/unistr/u32-strnlen: Likewise.
3010         * modules/unistr/u32-strpbrk: Likewise.
3011         * modules/unistr/u32-strrchr: Likewise.
3012         * modules/unistr/u32-strspn: Likewise.
3013         * modules/unistr/u32-strstr: Likewise.
3014         * modules/unistr/u32-strtok: Likewise.
3015         * modules/unistr/u32-to-u16: Likewise.
3016         * modules/unistr/u32-to-u8: Likewise.
3017         * modules/unistr/u32-uctomb: Likewise.
3018         * modules/uniwbrk/u8-wordbreaks: Likewise.
3019         * modules/uniwbrk/u16-wordbreaks: Likewise.
3020         * modules/uniwbrk/u32-wordbreaks: Likewise.
3021         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3022         * modules/uniwbrk/wordbreak-property: Likewise.
3023         * modules/uniwidth/u8-strwidth: Likewise.
3024         * modules/uniwidth/u8-width: Likewise.
3025         * modules/uniwidth/u16-strwidth: Likewise.
3026         * modules/uniwidth/u16-width: Likewise.
3027         * modules/uniwidth/u32-strwidth: Likewise.
3028         * modules/uniwidth/u32-width: Likewise.
3029         * modules/uniwidth/width: Likewise.
3030         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3031         with $(LIBUNISTRING).
3032         * modules/unicase/ignorable-tests: Likewise.
3033         * modules/unicase/locale-language-tests: Likewise.
3034         * modules/unicase/tolower-tests: Likewise.
3035         * modules/unicase/totitle-tests: Likewise.
3036         * modules/unicase/toupper-tests: Likewise.
3037         * modules/unicase/u8-casecmp-tests: Likewise.
3038         * modules/unicase/u8-casecoll-tests: Likewise.
3039         * modules/unicase/u8-casefold-tests: Likewise.
3040         * modules/unicase/u8-is-cased-tests: Likewise.
3041         * modules/unicase/u8-is-casefolded-tests: Likewise.
3042         * modules/unicase/u8-is-lowercase-tests: Likewise.
3043         * modules/unicase/u8-is-titlecase-tests: Likewise.
3044         * modules/unicase/u8-is-uppercase-tests: Likewise.
3045         * modules/unicase/u8-tolower-tests: Likewise.
3046         * modules/unicase/u8-totitle-tests: Likewise.
3047         * modules/unicase/u8-toupper-tests: Likewise.
3048         * modules/unicase/u16-casecmp-tests: Likewise.
3049         * modules/unicase/u16-casecoll-tests: Likewise.
3050         * modules/unicase/u16-casefold-tests: Likewise.
3051         * modules/unicase/u16-is-cased-tests: Likewise.
3052         * modules/unicase/u16-is-casefolded-tests: Likewise.
3053         * modules/unicase/u16-is-lowercase-tests: Likewise.
3054         * modules/unicase/u16-is-titlecase-tests: Likewise.
3055         * modules/unicase/u16-is-uppercase-tests: Likewise.
3056         * modules/unicase/u16-tolower-tests: Likewise.
3057         * modules/unicase/u16-totitle-tests: Likewise.
3058         * modules/unicase/u16-toupper-tests: Likewise.
3059         * modules/unicase/u32-casecmp-tests: Likewise.
3060         * modules/unicase/u32-casecoll-tests: Likewise.
3061         * modules/unicase/u32-casefold-tests: Likewise.
3062         * modules/unicase/u32-is-cased-tests: Likewise.
3063         * modules/unicase/u32-is-casefolded-tests: Likewise.
3064         * modules/unicase/u32-is-lowercase-tests: Likewise.
3065         * modules/unicase/u32-is-titlecase-tests: Likewise.
3066         * modules/unicase/u32-is-uppercase-tests: Likewise.
3067         * modules/unicase/u32-tolower-tests: Likewise.
3068         * modules/unicase/u32-totitle-tests: Likewise.
3069         * modules/unicase/u32-toupper-tests: Likewise.
3070         * modules/unicase/ulc-casecmp-tests: Likewise.
3071         * modules/unicase/ulc-casecoll-tests: Likewise.
3072         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3073         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3074         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3075         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3076         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3077         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3078         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3079         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3080         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3081         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3082         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3083         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3084         * modules/unictype/bidicategory-byname-tests: Likewise.
3085         * modules/unictype/bidicategory-name-tests: Likewise.
3086         * modules/unictype/bidicategory-of-tests: Likewise.
3087         * modules/unictype/bidicategory-test-tests: Likewise.
3088         * modules/unictype/block-list-tests: Likewise.
3089         * modules/unictype/block-of-tests: Likewise.
3090         * modules/unictype/block-test-tests: Likewise.
3091         * modules/unictype/category-C-tests: Likewise.
3092         * modules/unictype/category-Cc-tests: Likewise.
3093         * modules/unictype/category-Cf-tests: Likewise.
3094         * modules/unictype/category-Cn-tests: Likewise.
3095         * modules/unictype/category-Co-tests: Likewise.
3096         * modules/unictype/category-Cs-tests: Likewise.
3097         * modules/unictype/category-L-tests: Likewise.
3098         * modules/unictype/category-Ll-tests: Likewise.
3099         * modules/unictype/category-Lm-tests: Likewise.
3100         * modules/unictype/category-Lo-tests: Likewise.
3101         * modules/unictype/category-Lt-tests: Likewise.
3102         * modules/unictype/category-Lu-tests: Likewise.
3103         * modules/unictype/category-M-tests: Likewise.
3104         * modules/unictype/category-Mc-tests: Likewise.
3105         * modules/unictype/category-Me-tests: Likewise.
3106         * modules/unictype/category-Mn-tests: Likewise.
3107         * modules/unictype/category-N-tests: Likewise.
3108         * modules/unictype/category-Nd-tests: Likewise.
3109         * modules/unictype/category-Nl-tests: Likewise.
3110         * modules/unictype/category-No-tests: Likewise.
3111         * modules/unictype/category-P-tests: Likewise.
3112         * modules/unictype/category-Pc-tests: Likewise.
3113         * modules/unictype/category-Pd-tests: Likewise.
3114         * modules/unictype/category-Pe-tests: Likewise.
3115         * modules/unictype/category-Pf-tests: Likewise.
3116         * modules/unictype/category-Pi-tests: Likewise.
3117         * modules/unictype/category-Po-tests: Likewise.
3118         * modules/unictype/category-Ps-tests: Likewise.
3119         * modules/unictype/category-S-tests: Likewise.
3120         * modules/unictype/category-Sc-tests: Likewise.
3121         * modules/unictype/category-Sk-tests: Likewise.
3122         * modules/unictype/category-Sm-tests: Likewise.
3123         * modules/unictype/category-So-tests: Likewise.
3124         * modules/unictype/category-Z-tests: Likewise.
3125         * modules/unictype/category-Zl-tests: Likewise.
3126         * modules/unictype/category-Zp-tests: Likewise.
3127         * modules/unictype/category-Zs-tests: Likewise.
3128         * modules/unictype/category-and-not-tests: Likewise.
3129         * modules/unictype/category-and-tests: Likewise.
3130         * modules/unictype/category-byname-tests: Likewise.
3131         * modules/unictype/category-name-tests: Likewise.
3132         * modules/unictype/category-none-tests: Likewise.
3133         * modules/unictype/category-of-tests: Likewise.
3134         * modules/unictype/category-or-tests: Likewise.
3135         * modules/unictype/category-test-withtable-tests: Likewise.
3136         * modules/unictype/combining-class-tests: Likewise.
3137         * modules/unictype/ctype-alnum-tests: Likewise.
3138         * modules/unictype/ctype-alpha-tests: Likewise.
3139         * modules/unictype/ctype-blank-tests: Likewise.
3140         * modules/unictype/ctype-cntrl-tests: Likewise.
3141         * modules/unictype/ctype-digit-tests: Likewise.
3142         * modules/unictype/ctype-graph-tests: Likewise.
3143         * modules/unictype/ctype-lower-tests: Likewise.
3144         * modules/unictype/ctype-print-tests: Likewise.
3145         * modules/unictype/ctype-punct-tests: Likewise.
3146         * modules/unictype/ctype-space-tests: Likewise.
3147         * modules/unictype/ctype-upper-tests: Likewise.
3148         * modules/unictype/ctype-xdigit-tests: Likewise.
3149         * modules/unictype/decimal-digit-tests: Likewise.
3150         * modules/unictype/digit-tests: Likewise.
3151         * modules/unictype/mirror-tests: Likewise.
3152         * modules/unictype/numeric-tests: Likewise.
3153         * modules/unictype/property-alphabetic-tests: Likewise.
3154         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3155         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3156         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3157         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3158         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3159         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3160         * modules/unictype/property-bidi-control-tests: Likewise.
3161         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3162         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3163         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3164         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3165         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3166         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3167         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3168         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3169         * modules/unictype/property-bidi-pdf-tests: Likewise.
3170         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3171         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3172         * modules/unictype/property-byname-tests: Likewise.
3173         * modules/unictype/property-combining-tests: Likewise.
3174         * modules/unictype/property-composite-tests: Likewise.
3175         * modules/unictype/property-currency-symbol-tests: Likewise.
3176         * modules/unictype/property-dash-tests: Likewise.
3177         * modules/unictype/property-decimal-digit-tests: Likewise.
3178         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3179         * modules/unictype/property-deprecated-tests: Likewise.
3180         * modules/unictype/property-diacritic-tests: Likewise.
3181         * modules/unictype/property-extender-tests: Likewise.
3182         * modules/unictype/property-format-control-tests: Likewise.
3183         * modules/unictype/property-grapheme-base-tests: Likewise.
3184         * modules/unictype/property-grapheme-extend-tests: Likewise.
3185         * modules/unictype/property-grapheme-link-tests: Likewise.
3186         * modules/unictype/property-hex-digit-tests: Likewise.
3187         * modules/unictype/property-hyphen-tests: Likewise.
3188         * modules/unictype/property-id-continue-tests: Likewise.
3189         * modules/unictype/property-id-start-tests: Likewise.
3190         * modules/unictype/property-ideographic-tests: Likewise.
3191         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3192         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3193         * modules/unictype/property-ignorable-control-tests: Likewise.
3194         * modules/unictype/property-iso-control-tests: Likewise.
3195         * modules/unictype/property-join-control-tests: Likewise.
3196         * modules/unictype/property-left-of-pair-tests: Likewise.
3197         * modules/unictype/property-line-separator-tests: Likewise.
3198         * modules/unictype/property-logical-order-exception-tests: Likewise.
3199         * modules/unictype/property-lowercase-tests: Likewise.
3200         * modules/unictype/property-math-tests: Likewise.
3201         * modules/unictype/property-non-break-tests: Likewise.
3202         * modules/unictype/property-not-a-character-tests: Likewise.
3203         * modules/unictype/property-numeric-tests: Likewise.
3204         * modules/unictype/property-other-alphabetic-tests: Likewise.
3205         * modules/unictype/property-other-default-ignorable-code-point-tests:
3206         Likewise.
3207         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3208         * modules/unictype/property-other-id-continue-tests: Likewise.
3209         * modules/unictype/property-other-id-start-tests: Likewise.
3210         * modules/unictype/property-other-lowercase-tests: Likewise.
3211         * modules/unictype/property-other-math-tests: Likewise.
3212         * modules/unictype/property-other-uppercase-tests: Likewise.
3213         * modules/unictype/property-paired-punctuation-tests: Likewise.
3214         * modules/unictype/property-paragraph-separator-tests: Likewise.
3215         * modules/unictype/property-pattern-syntax-tests: Likewise.
3216         * modules/unictype/property-pattern-white-space-tests: Likewise.
3217         * modules/unictype/property-private-use-tests: Likewise.
3218         * modules/unictype/property-punctuation-tests: Likewise.
3219         * modules/unictype/property-quotation-mark-tests: Likewise.
3220         * modules/unictype/property-radical-tests: Likewise.
3221         * modules/unictype/property-sentence-terminal-tests: Likewise.
3222         * modules/unictype/property-soft-dotted-tests: Likewise.
3223         * modules/unictype/property-space-tests: Likewise.
3224         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3225         * modules/unictype/property-test-tests: Likewise.
3226         * modules/unictype/property-titlecase-tests: Likewise.
3227         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3228         * modules/unictype/property-unified-ideograph-tests: Likewise.
3229         * modules/unictype/property-uppercase-tests: Likewise.
3230         * modules/unictype/property-variation-selector-tests: Likewise.
3231         * modules/unictype/property-white-space-tests: Likewise.
3232         * modules/unictype/property-xid-continue-tests: Likewise.
3233         * modules/unictype/property-xid-start-tests: Likewise.
3234         * modules/unictype/property-zero-width-tests: Likewise.
3235         * modules/unictype/scripts-tests: Likewise.
3236         * modules/unictype/syntax-c-ident-tests: Likewise.
3237         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3238         * modules/unictype/syntax-java-ident-tests: Likewise.
3239         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3240         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3241         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3242         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3243         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3244         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3245         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3246         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3247         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3248         * modules/uniname/uniname-tests: Likewise.
3249         * modules/uninorm/canonical-decomposition-tests: Likewise.
3250         * modules/uninorm/compat-decomposition-tests: Likewise.
3251         * modules/uninorm/composition-tests: Likewise.
3252         * modules/uninorm/decomposing-form-tests: Likewise.
3253         * modules/uninorm/decomposition-tests: Likewise.
3254         * modules/uninorm/filter-tests: Likewise.
3255         * modules/uninorm/nfc-tests: Likewise.
3256         * modules/uninorm/nfd-tests: Likewise.
3257         * modules/uninorm/nfkc-tests: Likewise.
3258         * modules/uninorm/nfkd-tests: Likewise.
3259         * modules/uninorm/u8-normcmp-tests: Likewise.
3260         * modules/uninorm/u8-normcoll-tests: Likewise.
3261         * modules/uninorm/u16-normcmp-tests: Likewise.
3262         * modules/uninorm/u16-normcoll-tests: Likewise.
3263         * modules/uninorm/u32-normcmp-tests: Likewise.
3264         * modules/uninorm/u32-normcoll-tests: Likewise.
3265         * modules/unistdio/u8-asnprintf-tests: Likewise.
3266         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3267         * modules/unistdio/u8-vasprintf-tests: Likewise.
3268         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3269         * modules/unistdio/u8-vsprintf-tests: Likewise.
3270         * modules/unistdio/u16-asnprintf-tests: Likewise.
3271         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3272         * modules/unistdio/u16-vasprintf-tests: Likewise.
3273         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3274         * modules/unistdio/u16-vsprintf-tests: Likewise.
3275         * modules/unistdio/u32-asnprintf-tests: Likewise.
3276         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3277         * modules/unistdio/u32-vasprintf-tests: Likewise.
3278         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3279         * modules/unistdio/u32-vsprintf-tests: Likewise.
3280         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3281         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3282         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3283         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3284         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3285         * modules/unistr/u8-check-tests: Likewise.
3286         * modules/unistr/u8-chr-tests: Likewise.
3287         * modules/unistr/u8-cmp-tests: Likewise.
3288         * modules/unistr/u8-cmp2-tests: Likewise.
3289         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3290         * modules/unistr/u8-cpy-tests: Likewise.
3291         * modules/unistr/u8-mblen-tests: Likewise.
3292         * modules/unistr/u8-mbsnlen-tests: Likewise.
3293         * modules/unistr/u8-mbtouc-tests: Likewise.
3294         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3295         * modules/unistr/u8-mbtoucr-tests: Likewise.
3296         * modules/unistr/u8-move-tests: Likewise.
3297         * modules/unistr/u8-next-tests: Likewise.
3298         * modules/unistr/u8-prev-tests: Likewise.
3299         * modules/unistr/u8-set-tests: Likewise.
3300         * modules/unistr/u8-stpcpy-tests: Likewise.
3301         * modules/unistr/u8-stpncpy-tests: Likewise.
3302         * modules/unistr/u8-strcat-tests: Likewise.
3303         * modules/unistr/u8-strcmp-tests: Likewise.
3304         * modules/unistr/u8-strcoll-tests: Likewise.
3305         * modules/unistr/u8-strcpy-tests: Likewise.
3306         * modules/unistr/u8-strdup-tests: Likewise.
3307         * modules/unistr/u8-strlen-tests: Likewise.
3308         * modules/unistr/u8-strmblen-tests: Likewise.
3309         * modules/unistr/u8-strmbtouc-tests: Likewise.
3310         * modules/unistr/u8-strncat-tests: Likewise.
3311         * modules/unistr/u8-strncmp-tests: Likewise.
3312         * modules/unistr/u8-strncpy-tests: Likewise.
3313         * modules/unistr/u8-strnlen-tests: Likewise.
3314         * modules/unistr/u8-to-u16-tests: Likewise.
3315         * modules/unistr/u8-to-u32-tests: Likewise.
3316         * modules/unistr/u8-uctomb-tests: Likewise.
3317         * modules/unistr/u16-check-tests: Likewise.
3318         * modules/unistr/u16-chr-tests: Likewise.
3319         * modules/unistr/u16-cmp-tests: Likewise.
3320         * modules/unistr/u16-cmp2-tests: Likewise.
3321         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3322         * modules/unistr/u16-cpy-tests: Likewise.
3323         * modules/unistr/u16-mblen-tests: Likewise.
3324         * modules/unistr/u16-mbsnlen-tests: Likewise.
3325         * modules/unistr/u16-mbtouc-tests: Likewise.
3326         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3327         * modules/unistr/u16-mbtoucr-tests: Likewise.
3328         * modules/unistr/u16-move-tests: Likewise.
3329         * modules/unistr/u16-next-tests: Likewise.
3330         * modules/unistr/u16-prev-tests: Likewise.
3331         * modules/unistr/u16-set-tests: Likewise.
3332         * modules/unistr/u16-stpcpy-tests: Likewise.
3333         * modules/unistr/u16-stpncpy-tests: Likewise.
3334         * modules/unistr/u16-strcat-tests: Likewise.
3335         * modules/unistr/u16-strcmp-tests: Likewise.
3336         * modules/unistr/u16-strcoll-tests: Likewise.
3337         * modules/unistr/u16-strcpy-tests: Likewise.
3338         * modules/unistr/u16-strdup-tests: Likewise.
3339         * modules/unistr/u16-strlen-tests: Likewise.
3340         * modules/unistr/u16-strmblen-tests: Likewise.
3341         * modules/unistr/u16-strmbtouc-tests: Likewise.
3342         * modules/unistr/u16-strncat-tests: Likewise.
3343         * modules/unistr/u16-strncmp-tests: Likewise.
3344         * modules/unistr/u16-strncpy-tests: Likewise.
3345         * modules/unistr/u16-strnlen-tests: Likewise.
3346         * modules/unistr/u16-to-u32-tests: Likewise.
3347         * modules/unistr/u16-to-u8-tests: Likewise.
3348         * modules/unistr/u16-uctomb-tests: Likewise.
3349         * modules/unistr/u32-check-tests: Likewise.
3350         * modules/unistr/u32-chr-tests: Likewise.
3351         * modules/unistr/u32-cmp-tests: Likewise.
3352         * modules/unistr/u32-cmp2-tests: Likewise.
3353         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3354         * modules/unistr/u32-cpy-tests: Likewise.
3355         * modules/unistr/u32-mblen-tests: Likewise.
3356         * modules/unistr/u32-mbsnlen-tests: Likewise.
3357         * modules/unistr/u32-mbtouc-tests: Likewise.
3358         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3359         * modules/unistr/u32-mbtoucr-tests: Likewise.
3360         * modules/unistr/u32-move-tests: Likewise.
3361         * modules/unistr/u32-next-tests: Likewise.
3362         * modules/unistr/u32-prev-tests: Likewise.
3363         * modules/unistr/u32-set-tests: Likewise.
3364         * modules/unistr/u32-stpcpy-tests: Likewise.
3365         * modules/unistr/u32-stpncpy-tests: Likewise.
3366         * modules/unistr/u32-strcat-tests: Likewise.
3367         * modules/unistr/u32-strcmp-tests: Likewise.
3368         * modules/unistr/u32-strcoll-tests: Likewise.
3369         * modules/unistr/u32-strcpy-tests: Likewise.
3370         * modules/unistr/u32-strdup-tests: Likewise.
3371         * modules/unistr/u32-strlen-tests: Likewise.
3372         * modules/unistr/u32-strmblen-tests: Likewise.
3373         * modules/unistr/u32-strmbtouc-tests: Likewise.
3374         * modules/unistr/u32-strncat-tests: Likewise.
3375         * modules/unistr/u32-strncmp-tests: Likewise.
3376         * modules/unistr/u32-strncpy-tests: Likewise.
3377         * modules/unistr/u32-strnlen-tests: Likewise.
3378         * modules/unistr/u32-to-u16-tests: Likewise.
3379         * modules/unistr/u32-to-u8-tests: Likewise.
3380         * modules/unistr/u32-uctomb-tests: Likewise.
3381         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3382         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3383         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3384         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3385         * modules/uniwidth/u8-strwidth-tests: Likewise.
3386         * modules/uniwidth/u8-width-tests: Likewise.
3387         * modules/uniwidth/u16-strwidth-tests: Likewise.
3388         * modules/uniwidth/u16-width-tests: Likewise.
3389         * modules/uniwidth/u32-strwidth-tests: Likewise.
3390         * modules/uniwidth/u32-width-tests: Likewise.
3391         * modules/uniwidth/width-tests: Likewise.
3392
3393 2010-05-18  Richard Jones  <rjones@redhat.com>
3394
3395         doc: users.txt: list hivex
3396         * users.txt: Add hivex.
3397
3398 2010-05-18  Richard Jones  <rjones@redhat.com>
3399
3400         doc: users.txt: list febootstrap
3401         * users.txt: Add febootstrap.
3402
3403 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3404
3405         bootstrap: fix an error when gnulib is not used as a git submodule
3406         * build-aux/bootstrap (gnulib_path): If its length is zero then
3407         assign "gnulib" to it.
3408         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3409
3410 2010-05-16  Bruno Haible  <bruno@clisp.org>
3411
3412         Avoid autoconf warnings about AM_ICONV.
3413         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3414         2.64.
3415
3416 2010-05-16  Bruno Haible  <bruno@clisp.org>
3417
3418         absolute-header: Make the macro usable in more situations.
3419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3420         from gl_ABSOLUTE_HEADER.
3421         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3422
3423 2010-05-16  James Youngman  <jay@gnu.org>
3424
3425         doc: update users.txt
3426         * users.txt: Add CSSC.
3427
3428 2010-05-16  Jim Meyering  <meyering@redhat.com>
3429
3430         init.sh: fix an error in the previous change; add more comments
3431         * tests/init.sh: Compare exit code in loop against 9, not 2.
3432         Patch by Bruno Haible.
3433         Make the two tests more similar by adding an empty "then" clause.
3434         Add comments.
3435
3436         init.sh: avoid unnecessary shell re-exec
3437         * tests/init.sh: Improve the re-exec-required check to first test the
3438         current shell.  If it passes the test, do not search for a shell that
3439         does pass, and do not re-exec.  This test is particularly contorted to
3440         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3441         of $(...) evokes a syntax error and causes immediate shell exit with
3442         status 2.  Bruno Haible reported that the re-exec made it impossible
3443         to single-step through any init.sh-using script.
3444
3445 2010-05-16  Bruno Haible  <bruno@clisp.org>
3446
3447         Fix collision between gnulib's and libintl's printf replacements.
3448         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3449         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3450         (printf): When using GNU C, map the __printf__ function to rpl_printf
3451         via __asm__. When not using GNU C, define rpl_printf instead of
3452         __printf__.
3453         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3454         commit.
3455         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3456         commit.
3457         * m4/asm-underscore.m4: New file.
3458         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3459         * modules/stdio (Files): Add m4/asm-underscore.m4.
3460         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3461         Reported by Ben Pfaff.
3462
3463 2010-05-16  Bruno Haible  <bruno@clisp.org>
3464
3465         verify: Avoid skipping the test on openSUSE 11.0.
3466         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3467
3468 2010-05-13  Bruno Haible  <bruno@clisp.org>
3469
3470         Avoid useless warnings from G++.
3471         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3472         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3474
3475 2010-05-11  Jim Meyering  <meyering@redhat.com>
3476
3477         maint.mk: tweak preceding change
3478         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3479         regexps tighter by anchoring at EOL, and make the new group "shy"
3480         for slightly decreased overhead.
3481
3482 2010-05-11  Eric Blake  <eblake@redhat.com>
3483
3484         maint.mk: gnulib doesn't guarantee NSIG
3485         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3486
3487 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3488
3489         test-pwrite.c: Remove unused variable declaration.
3490         * tests/test-pwrite.c (main): Remove read_buf declaration.
3491
3492         Remove useless test-pwrite.sh file.
3493         * tests/test-pwrite.sh: Delete file.
3494         * modules/pwrite-tests: Remove references.
3495         Reported by Bruno Haible.
3496
3497 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3498
3499         init.sh: fix a typo
3500         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3501
3502 2010-05-10  Jim Meyering  <meyering@redhat.com>
3503
3504         maint.mk: avoid using a temporary file in the always-defined-macros check
3505         * top/maint.mk (.re-defmac): Remove rule.
3506         (gl_trap_): Remove definition.
3507         (sc_prohibit_always-defined_macros): Rewrite not to create and
3508         depend on a temporary file.  Instead, depend on GNU grep's ability
3509         to read a list of regular expressions from stdin when given "-f -".
3510
3511 2010-05-09  Bruno Haible  <bruno@clisp.org>
3512
3513         Update to GNU gettext 0.18, part 1.
3514         * m4/gettext.m4: Update to GNU gettext 0.18.
3515         * m4/intl.m4: Likewise.
3516         * m4/po.m4: Likewise.
3517         * modules/gettext (Files): Add m4/fcntl-o.m4.
3518         (configure.ac): Require gettext infrastructure from version 0.18.
3519
3520 2010-05-09  Jim Meyering  <meyering@redhat.com>
3521
3522         init.sh: enable MALLOC_PERTURB_
3523         * tests/init.sh: Enable glibc's malloc-perturbing option.
3524
3525         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3526         With my recent change in init.sh from the two-line form:
3527             -#   : ${srcdir=.}
3528             -#   . "$srcdir/init.sh"; path_prepend_ .
3529             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3530         I noticed that using the one-line form would cause this test
3531         to fail with a false-positive, or to stop working altogether,
3532         depending on whether help-version changed or all the tests did.
3533         * top/maint.mk (_hv_regex): Remove this definition.
3534         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3535         (_hv_regex_strong): Use a stronger regex to check for conformance.
3536         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3537         Give a separate diagnostic for lack of conforming use.
3538
3539         maint.mk: prohibit definition of symbols defined by gnulib
3540         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3541         definition of symbols defined by gnulib.
3542
3543 2010-05-09  Bruno Haible  <bruno@clisp.org>
3544
3545         acl: Avoid test failure on Cygwin-hosted mingw.
3546         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3547
3548 2010-05-09  Bruno Haible  <bruno@clisp.org>
3549
3550         error: Use system's fcntl function.
3551         * lib/error.c (fcntl): Undefine.
3552
3553 2010-05-09  Jim Meyering  <meyering@redhat.com>
3554
3555         verify: adjust formatting to be more consistent
3556         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3557         argument-list '('s, and after one comma.
3558
3559 2010-05-09  Bruno Haible  <bruno@clisp.org>
3560
3561         error: More reliable output on mingw.
3562         * lib/error.c: Include <windows.h>.
3563         (is_open): New function.
3564         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3565         defined.
3566
3567 2010-05-09  Bruno Haible  <bruno@clisp.org>
3568
3569         vasnprintf: Fix syntax errors in libintl build on mingw.
3570         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3571         pad_ourselves and prec_ourselves after use.
3572
3573 2010-05-08  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/config.charset: Update comments for Cygwin 1.7.
3576         * lib/localcharset.c: Likewise.
3577
3578 2010-05-07  Jim Meyering  <meyering@redhat.com>
3579
3580         init.sh: improve comments
3581         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3582         . "${srcdir=.}/init.sh"; path_prepend_ .
3583         Add a note about path_prepend_ and the alternative of using
3584         TESTS_ENVIRONMENT.
3585
3586 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3587
3588         exclude: Unescape hashed patterns in wildcard mode.
3589         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3590         to the hash list.
3591         * tests/test-exclude8.sh: New test case.
3592         * modules/exclude-tests: Add new test.
3593
3594 2010-05-05  Eric Blake  <eblake@redhat.com>
3595
3596         verify: automate tests
3597         * modules/verify-tests: New module.
3598         * tests/test-verify.sh: New file.
3599         * tests/test-verify.c: Guard each negative test with a unique id.
3600         Also avoid warning about unused left hand of comma expressions.
3601
3602 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         Further improvements to verify.h, suggested by Eric Blake.
3605         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3606         the GL_* versions, to avoid collision with OpenGL.
3607         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3608         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3609         than testing merely whether it's defined.
3610
3611         Modify verify.h to pacify gcc -Wredundant_decls.
3612         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3613         These use the prefix "GL_" since they're likely to be useful elsewhere.
3614         We may need to break them out into a different .h file.
3615         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3616         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3617         of verify_function__.
3618
3619 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3620
3621         Tests for module pwrite.
3622         * modules/pwrite-tests: New file.
3623         * tests/test-pwrite.sh: New file.
3624         * tests/test-pwrite.c: New file.
3625
3626         New module pwrite.
3627         * lib/unistd.in.h (pwrite): New declaration.
3628         * lib/pwrite.c: New file, from glibc with modifications.
3629         * m4/pwrite.m4: New file.
3630         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3632         REPLACE_PWRITE.
3633         * modules/pwrite: New file.
3634         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3635         REPLACE_PWRITE.
3636         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3637         * doc/posix-functions/pwrite.texi: Mention the new module.
3638
3639 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3640
3641         pread: Update documentation.
3642         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3643
3644 2010-05-04  Eric Blake  <eblake@redhat.com>
3645
3646         docs: update cygwin progress
3647         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3648         this bug.
3649         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3650         Added in cygwin 1.7.2.
3651         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3652         Likewise.
3653         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3654         Likewise.
3655         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3656         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3657         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3658         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3659         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3660         Mention nproc module.
3661         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3662         bug in cygwin 1.7.5 addition.
3663         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3664         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3665         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3666         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3667         1.7.5.
3668         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3669         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3670         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3671         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3672         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3673         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3674         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3675         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3676         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3677         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3678         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3679         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3680         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3681         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3682         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3683         Likewise.
3684         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3685         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3686         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3687         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3688         Likewise.
3689         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3690         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3691         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3692         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3693         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3694         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3695         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3696         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3697         Likewise.
3698         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3699         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3700         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3701         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3702         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3703         Likewise.
3704         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3705         Likewise.
3706         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3707         Likewise.
3708         * doc/glibc-functions/xdrrec_endofrecord.texi
3709         (xdrrec_endofrecord): Likewise.
3710         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3711         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3712         Likewise.
3713         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3714         Likewise.
3715
3716 2010-05-04  Jim Meyering  <meyering@redhat.com>
3717
3718         gendocs.sh: make its "-s FILE" option more useful
3719         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3720         $PACKAGE to reflect the probably-different basename of "FILE".
3721
3722 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3723
3724         bootstrap: don't ignore download_po_files failure
3725         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3726         failure.
3727
3728 2010-05-03  Jim Meyering  <meyering@redhat.com>
3729
3730         maint.mk: allow to pass options to gendocs.sh
3731         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3732         (gendocs_options_): New overridable variable.
3733
3734         gnu-web-doc-update: don't ignore configure or build failure
3735         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3736
3737         announce-gen: backslash-escape '@'s in --help output
3738         * build-aux/announce-gen: Fix syntax errors.
3739
3740         maint.mk, announce-gen: allow project-specific announcement mail headers
3741         * top/maint.mk (translation_project_): Define default.
3742         (announcement_Cc_, announcement_mail_headers_): Likewise.
3743         (announcement): Invoke announce-gen with new --mail-headers option.
3744         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3745
3746         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3747         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3748         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3749         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3750         line in the "err2" output file when running "make check" in verbose
3751         mode (i.e., with set -x enabled).
3752
3753 2010-05-03  Bruno Haible  <bruno@clisp.org>
3754
3755         wctob: Fix for weird platforms.
3756         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3757         argument value.
3758
3759 2010-05-03  Jim Meyering  <meyering@redhat.com>
3760
3761         maint.mk: prohibit unwarranted use of <strings.h>
3762         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3763         strings.h in a file that does not also use strcasecmp, strncasecmp,
3764         ffs or ffsll.
3765
3766         maint.mk: remove obsolete comments
3767         * top/maint.mk: Remove stale, commented-out rules.
3768
3769 2010-05-02  Bruno Haible  <bruno@clisp.org>
3770
3771         wcwidth: Declare also when it's aliased.
3772         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3773         macro.
3774
3775 2010-05-02  Bruno Haible  <bruno@clisp.org>
3776
3777         Fix regression from 2010-04-25.
3778         * gnulib-tool (func_modules_transitive_closure): Check the status of
3779         all modules, not only of the tests that are of the form foo-tests where
3780         foo is a module.
3781
3782 2010-05-02  Bruno Haible  <bruno@clisp.org>
3783
3784         wctob: Work around nasty Cygwin 1.7.2 bug.
3785         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3786         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3787
3788 2010-05-01  Bruno Haible  <bruno@clisp.org>
3789
3790         fpurge: Sharper test.
3791         * tests/test-fpurge.c (main): Add one more ftell check.
3792         * modules/fpurge-tests (Depends-on): Add ftell.
3793         Suggested by Eric Blake.
3794
3795 2010-05-01  Bruno Haible  <bruno@clisp.org>
3796
3797         ftello: Another test.
3798         * tests/test-ftello3.c: New file.
3799         * modules/ftello-tests (Files): Add it.
3800         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3801         MOSTLYCLEANFILES.
3802
3803         ftell: Another test.
3804         * tests/test-ftell3.c: New file.
3805         * modules/ftell-tests (Files): Add it.
3806         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3807         MOSTLYCLEANFILES.
3808
3809 2010-05-01  Bruno Haible  <bruno@clisp.org>
3810
3811         ftell, ftello: Work around Solaris bug.
3812         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3813         * lib/ftello.c: Include stdio-impl.h.
3814         (ftello): On Solaris, when _IOWRT is set, compute the result without
3815         looking at _IOREAD.
3816         * modules/ftello (Files): Add lib/stdio-impl.h.
3817         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3818         * doc/posix-functions/ftello.texi: Likewise.
3819         Reported by Eric Blake.
3820
3821 2010-05-01  Bruno Haible  <bruno@clisp.org>
3822
3823         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3824         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3825         the _IOWRT flag is also set.
3826
3827 2010-05-01  Bruno Haible  <bruno@clisp.org>
3828
3829         Fix doc about a HP-UX stdio bug.
3830         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3831         * doc/posix-functions/ftello.texi: Likewise.
3832
3833 2010-05-01  Bruno Haible  <bruno@clisp.org>
3834
3835         lseek test: Fix failure on Solaris.
3836         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3837         output.
3838
3839 2010-04-30  Jim Meyering  <meyering@redhat.com>
3840
3841         bootstrap: don't ignore failure to generate po*/Makevars
3842         * build-aux/bootstrap (with_gettext): Don't ignore failure
3843         to create po/Makevars or runtime-po/Makevars.
3844
3845 2010-04-29  Eric Blake  <eblake@redhat.com>
3846
3847         headers: relax license to LGPLv2+
3848         * modules/fcntl-h (License): Relax license.
3849         * modules/getopt-posix (License): Likewise.
3850         * modules/locale (License): Likewise.
3851         * modules/math (License): Likewise.
3852         * modules/pty (License): Likewise.
3853         * modules/sched (License): Likewise.
3854         * modules/search (License): Likewise.
3855         * modules/spawn (License): Likewise.
3856         * modules/stdarg (License): Likewise.
3857         * modules/sysexits (License): Likewise.
3858
3859 2010-04-29  Jim Meyering  <meyering@redhat.com>
3860
3861         inttypes: relax license to LGPLv2+
3862         * modules/inttypes (License): Relax license.
3863
3864 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3865
3866         * top/maint.mk (indent): Run twice to produce idempotent results.
3867
3868 2010-04-28  Bruno Haible  <bruno@clisp.org>
3869
3870         getdate: Generate getdate.c in the source directory.
3871         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3872         MOSTLYCLEANFILES.
3873         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3874
3875 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3876
3877         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3878         is not declared as a const *; avoid warnings in that case.
3879
3880 2010-04-28  Eric Blake  <eblake@redhat.com>
3881
3882         canonicalize-lgpl: avoid compiler warning
3883         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3884         declaration' / 'extraneous semicolon' warning with some compilers.
3885         Reported by Andreas Gruenbacher.
3886
3887 2010-04-28  Jim Meyering  <meyering@redhat.com>
3888
3889         init.sh: ensure a more reliable exit status when exiting via trap
3890         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3891         Inspired by patches from Dmitry V. Levin.
3892         Also trap on signal 3 (SIGQUIT).
3893
3894 2010-04-27  Bruno Haible  <bruno@clisp.org>
3895
3896         Update doc about utimes().
3897         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3898         'utimens' module.
3899         Reported by Andreas Gruenbacher <agruen@suse.de>.
3900
3901 2010-04-27  Eric Blake  <eblake@redhat.com>
3902
3903         full-read, full-write: relax license
3904         * modules/full-read (License): Drop to LGPLv2+.
3905         * modules/full-write (License): Likewise.
3906         * modules/safe-read (License): Likewise.
3907         * modules/safe-write (License): Likewise.
3908
3909         pthread: mention library for linking
3910         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3911
3912 2010-04-27  Jim Meyering  <meyering@redhat.com>
3913
3914         maint.mk: fix a bug introduced in last change
3915         * top/maint.mk (gl_assured_headers_): Now that all names are on
3916         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3917         is not anchored to end of word, it should be adequate.
3918
3919         maint.mk: avoid side-effect in latest syntax-check
3920         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3921         to run commands via $(shell...), and hence to incur cost only when
3922         the new rule is actually run.
3923
3924         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3925         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3926         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3927         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3928         (gl_assured_headers_, az_, AZ_): Define.
3929         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3930
3931 2010-04-26  Jim Meyering  <jim@meyering.net>
3932             Bruno Haible  <bruno@clisp.org>
3933
3934         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3935         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3936         Prompted by an exchange with Gilles Espinasse.
3937
3938 2010-04-26  Jim Meyering  <meyering@redhat.com>
3939
3940         git-version-gen: aesthetic tweak
3941         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3942         so that the command remains on a single line.
3943
3944 2010-04-26  Eric Blake  <eblake@redhat.com>
3945
3946         git-version-gen: allow use on EBCDIC hosts
3947         * build-aux/git-version-gen (dirty): Use literal rather than tying
3948         ourselves to ascii.
3949         Reported by Steve Goetze.
3950
3951 2010-04-25  Bruno Haible  <bruno@clisp.org>
3952
3953         netdb: Add support for GNULIB_POSIXCHECK.
3954         * lib/netdb.in.h: Include warn-on-use.h.
3955         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3956         functions are used when GNULIB_POSIXCHECK is defined and the
3957         getaddrinfo module is not in use.
3958         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3959         freeaddrinfo, gai_strerror, getnameinfo are declared.
3960         * modules/netdb (Depends-on): Add warn-on-use.
3961         (Makefile.am): Include warn-on-use.h in netdb.h.
3962
3963 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3964
3965         build: avoid "make check" failure without .git/ directory
3966         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3967         there is no .git/ directory.
3968
3969 2010-04-25  Bruno Haible  <bruno@clisp.org>
3970
3971         ptsname: Fix misuse of ttyname_r.
3972         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3973         of errno.
3974
3975 2010-04-25  Bruno Haible  <bruno@clisp.org>
3976
3977         ttyname_r: Make it work on Solaris 10.
3978         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3979         if the system function has the POSIX declaration. Test whether the
3980         function fails if the buffer is less than 128 bytes large.
3981         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3982         system's ttyname_r function. Provide a reasonably large buffer.
3983         * modules/ttyname_r (Depends-on): Add extensions.
3984         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3985
3986 2010-04-25  Bruno Haible  <bruno@clisp.org>
3987
3988         Use the 'extensions' module for some more functions on Solaris.
3989         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3990         module.
3991         * doc/posix-functions/ctime_r.texi: Likewise.
3992         * doc/posix-functions/getgrgid_r.texi: Likewise.
3993         * doc/posix-functions/getgrnam_r.texi: Likewise.
3994         * doc/posix-functions/getpwnam_r.texi: Likewise.
3995         * doc/posix-functions/getpwuid_r.texi: Likewise.
3996         * doc/posix-functions/readdir_r.texi: Likewise.
3997         * doc/posix-functions/sigwait.texi: Likewise.
3998         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3999         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4000
4001 2010-04-25  Bruno Haible  <bruno@clisp.org>
4002
4003         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4004         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4005         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4006         * lib/ttyname_r.c: Include <limits.h>.
4007         (ttyname_r): Define using the system's ttyname_r function, if it exists
4008         and not on Solaris.
4009         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4010         set.
4011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4012         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4013         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4014         Reported by Simon Josefsson.
4015
4016 2010-04-25  Bruno Haible  <bruno@clisp.org>
4017
4018         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4019         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4020         * doc/posix-functions/ctime_r.texi: Likewise.
4021         * doc/posix-functions/getgrgid_r.texi: Likewise.
4022         * doc/posix-functions/getgrnam_r.texi: Likewise.
4023         * doc/posix-functions/getlogin_r.texi: Likewise.
4024         * doc/posix-functions/getpwnam_r.texi: Likewise.
4025         * doc/posix-functions/getpwuid_r.texi: Likewise.
4026         * doc/posix-functions/readdir_r.texi: Likewise.
4027         * doc/posix-functions/sigwait.texi: Likewise.
4028         * doc/posix-functions/ttyname_r.texi: Likewise.
4029         Reported by Simon Josefsson.
4030
4031 2010-04-25  Bruno Haible  <bruno@clisp.org>
4032
4033         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4034         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4035         also to --create-testdir.
4036         (func_acceptable): Don't consider the status of *-tests modules here.
4037         (func_modules_transitive_closure): Consider it here, before including a
4038         test module.
4039         (func_import, func_create_testdir): Set inc_all_direct_tests,
4040         inc_all_indirect_tests.
4041         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4042         --create-testdir and --create-megatestdir.
4043
4044 2010-04-25  Bruno Haible  <bruno@clisp.org>
4045
4046         gnulib-tool: Add --without-*-tests options.
4047         * gnulib-tool (func_usage): Document the --without-*-tests options.
4048         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4049         excl_unportable_tests): New variables.
4050         Fail if they are specified with --import or --update.
4051         (func_acceptable): Respect the excl_*_tests variables.
4052         (func_import): Set the excl_*_tests variables to empty.
4053
4054 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4055             Bruno Haible  <bruno@clisp.org>
4056
4057         Work around a MacOS X 10.4 bug with openpty.
4058         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4059         * tests/test-openpty.c (main): Close the master side explicitly.
4060
4061 2010-04-25  Bruno Haible  <bruno@clisp.org>
4062
4063         strnlen: Fix a C++ test error on MacOS X and Solaris.
4064         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4065         the function is not declared.
4066         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4067         Simon Josefsson.
4068
4069 2010-04-24  Bruno Haible  <bruno@clisp.org>
4070
4071         Avoid a gcc warning.
4072         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4073         of correct type for %08lx directive.
4074         Reported by Eric Blake.
4075
4076 2010-04-24  Bruno Haible  <bruno@clisp.org>
4077
4078         vasnprintf: Correct errno value in case of out-of-memory.
4079         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4080         or sprintf. Use the errno value from SNPRINTF or sprintf.
4081         Reported by Ian Beckwith <ianb@erislabs.net>.
4082
4083 2010-04-24  Bruno Haible  <bruno@clisp.org>
4084
4085         ansi-c++-opt: Find correct compiler when cross-compiling.
4086         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4087         AC_CHECK_PROGS.
4088         Reported by Simon Josefsson.
4089
4090 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4091
4092         vc-list-files: Add support for subversion
4093         * build-aux/vc-list-files: Use "svn list" to generate the list of
4094         files controlled by subversion.
4095
4096 2010-04-23  Jim Meyering  <meyering@redhat.com>
4097
4098         vc-list-files tests: convert to use init.sh
4099         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4100         path_prepend_.
4101         Use Exit, not exit.
4102         Use skip_ rather than open coding it.
4103         Remove trap set-up and compare definitions.
4104         * tests/test-vc-list-files-git.sh: Likewise.
4105         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4106
4107 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4108
4109         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4110         backup files.
4111
4112 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4113
4114         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4115
4116 2010-04-20  Eric Blake  <eblake@redhat.com>
4117
4118         tests: be robust to ignored SIGPIPE
4119         * tests/test-select-in.sh: Consume all output.
4120         * tests/test-lseek.sh: Check correct exit status, while avoiding
4121         EPIPE.
4122
4123 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4124             Bruno Haible  <bruno@clisp.org>
4125
4126         visibility: Don't use -fvisibility if it leads to a warning.
4127         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4128         yes, don't pretend that visibility works if it leads to a warning.
4129         Reported by Mike Gran <spk121@yahoo.com>.
4130
4131 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4132
4133         * build-aux/bootstrap: Use "git -h" for testing for supported options
4134         instead of "git --help".  The short-form option only shows a summary,
4135         and doesn't layout the full man page.  Grep for the full option name
4136         in the summary, too.
4137
4138 2010-04-19  Bruno Haible  <bruno@clisp.org>
4139
4140         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4141         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4142         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4143         mention of RELOCATABLE_STRIP.
4144         Reported by Sylvain Beucler <beuc@beuc.net>.
4145
4146 2010-04-19  Bruno Haible  <bruno@clisp.org>
4147
4148         * lib/diffseq.h: Fix typo in comment.
4149         Reported by Eric Blake.
4150
4151 2010-04-19  Bruno Haible  <bruno@clisp.org>
4152
4153         ioctl: Move autoconf macro to a .m4 file.
4154         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4155         * modules/ioctl (Files): Add it.
4156         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4157         Reported by Ian Beckwith <ianb@erislabs.net>.
4158
4159 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4160             Bruno Haible  <bruno@clisp.org>
4161
4162         diffseq: Accommodate use-case with abstract arrays.
4163         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4164         is not defined.
4165         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4166         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4167
4168 2010-04-18  Bruno Haible  <bruno@clisp.org>
4169
4170         * doc/posix-headers/stdbool.texi: More precise wording.
4171
4172 2010-04-17  Jim Meyering  <meyering@redhat.com>
4173
4174         maint.mk: use gnu-style indentation in an embedded perl script
4175         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4176         Rename variable: s/two/last_two_bytes/
4177
4178 2010-04-16  Eric Blake  <eblake@redhat.com>
4179
4180         test-stdbool: skip test that fails with Solaris CC
4181         * tests/test-stdbool.c (f): Skip test that causes compilation
4182         error under buggy C++ compiler.
4183         * lib/stdbool.in.h: Document the limitation.
4184         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4185
4186         setenv: allow compilation with C++
4187         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4188         register keyword.
4189
4190         stdint: allow test to pass with C++
4191         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4192
4193         getopt: allow compilation with C++
4194         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4195         struct.
4196         * lib/getopt.c (_getopt_internal_r): Use correct type.
4197         Reported by Dagobert Michelson, via Joel E. Denny.
4198
4199 2010-04-16  Bruno Haible  <bruno@clisp.org>
4200
4201         Override netdb.h always.
4202         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4203         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4204         Reported by Ludovic Courtès <ludo@gnu.org>.
4205
4206 2010-04-15  Bruno Haible  <bruno@clisp.org>
4207
4208         openpty: Fix mistake from 2010-03-21.
4209         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4210         Reported by Simon Josefsson.
4211
4212 2010-04-15  Eric Blake  <eblake@redhat.com>
4213
4214         test-forkpty: fix expected signature
4215         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4216         Reported by Simon Josefsson.
4217
4218 2010-04-15  Jim Meyering  <meyering@redhat.com>
4219
4220         maint.mk: texinfo_suffix_re_: correct the default regexp
4221         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4222
4223         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4224         make it configurable via texinfo_suffix_re_.
4225
4226 2010-04-14  Eric Blake  <eblake@redhat.com>
4227
4228         strtok_r: relax license to LGPLv2+
4229         * modules/strtok_r (License): Relax license.
4230         Reported by Matthias Bolte.
4231
4232 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4233
4234         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4235         version 1.4.4 by default instead of requiring the libgcrypt
4236         version used during build.  This makes it possible to use the
4237         application with older but still binary compatible libgcrypt
4238         versions.
4239
4240 2010-04-13  Eric Blake  <eblake@redhat.com>
4241
4242         getopt-gnu: match recent glibc fixes and posix ruling
4243         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4244         '+' handling, when requesting extensions.
4245         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4246         'W;' handling.
4247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4248         * doc/posix-functions/getopt.texi (getopt): Document this.
4249         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4250         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4251         Likewise.
4252
4253         getopt: merge bug fixes from glibc
4254         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4255         diagnostics.  Honor '+:' correctly.  Reject ';'.
4256
4257         getopt-posix: detect MacOS bug
4258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4259         optind when missing a required argument.
4260         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4261         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4263         Likewise.
4264
4265         getopt-posix: avoid spurious failure on Solaris
4266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4267         an indicator that setting optind=1 is sufficient for reset.
4268
4269         getopt-posix: avoid spurious failure on FreeBSD
4270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4271         in POSIX mode, since the m4 test uses it.
4272
4273         gnulib-tool: silence warning on BSD sh
4274         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4275
4276 2010-04-13  Jim Meyering  <meyering@redhat.com>
4277
4278         doc: users.txt: GNU patch now uses gnulib
4279         * users.txt: Add patch.
4280
4281 2010-04-12  Jim Meyering  <meyering@redhat.com>
4282
4283         maint.mk: generate more concise timing data for syntax-check rules
4284         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4285         " done" from each line that reports a syntax-check test duration.
4286
4287 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4288
4289         git-version-gen: use "git update-index..." rather than "git status"
4290         * build-aux/git-version-gen: Use git update-index --refresh, not
4291         "git status".  With some versions of git, "git status" would fail
4292         to update the index and result in an unwarranted "-dirty" suffix.
4293
4294 2010-04-11  Jim Meyering  <meyering@redhat.com>
4295
4296         openat: correct formatting (no semantic change)
4297         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4298         Suggested by Bruno Haible.
4299
4300 2010-04-11  Bruno Haible  <bruno@clisp.org>
4301
4302         Stricter declaration checking in testdirs.
4303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4304         If for_tests is true, augment AM_CPPFLAGS to define
4305         GNULIB_STRICT_CHECKING.
4306         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4307         GNULIB_STRICT_CHECKING is defined, verify that the function is
4308         declared.
4309
4310 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4311             Bruno Haible  <bruno@clisp.org>
4312
4313         libunistring: Improve configure output.
4314         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4315         Don't say "consider installing GNU libunistring" when checking again
4316         with libiconv.
4317
4318 2010-04-11  Bruno Haible  <bruno@clisp.org>
4319
4320         libunistring: Correct value of $LTLIBUNISTRING.
4321         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4322         correct the value of $LTLIBUNISTRING.
4323
4324 2010-04-11  Bruno Haible  <bruno@clisp.org>
4325
4326         havelib: Add static libraries to LIBS in the right order.
4327         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4328         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4329
4330 2010-04-11  Bruno Haible  <bruno@clisp.org>
4331
4332         libunistring: Detect libunistring also when it depends on libiconv.
4333         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4334         the second AC_LIB_HAVE_LINKFLAGS invocation.
4335
4336 2010-04-11  James Youngman  <jay@gnu.org>
4337
4338         close-stream: declare local scalars to be "const"
4339         * lib/close-stream.c (close_stream): Make boolean variables const
4340         to document the fact that we set but do not change them.
4341
4342 2010-04-11  Bruno Haible  <bruno@clisp.org>
4343
4344         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4345
4346 2010-04-11  Jim Meyering  <meyering@redhat.com>
4347
4348         maint.mk: don't include dist-check.mk
4349         * top/maint.mk: Remove bogus include directive.
4350
4351         maint.mk: improve empty-line-at-EOF check
4352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4353         solution, rather than tail+Perl-based one.  The latter would read
4354         a few kilobytes from the end of each file, and did not handle empty
4355         files properly.
4356
4357         maint.mk: print the elapsed time for each syntax-check rule
4358         * top/maint.mk (sc_m_rules_): Save start time in a file.
4359         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4360         (local-check): Interpose the .z rules
4361
4362 2010-04-11  Jim Meyering  <meyering@redhat.com>
4363
4364         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4365         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4366         empty file with one that ends in an empty line.
4367
4368 2010-04-10  Bruno Haible  <bruno@clisp.org>
4369
4370         mkdir: Make it work on mingw64.
4371         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4372         * lib/mkdir.c: Update comment.
4373         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4374
4375 2010-04-10  Bruno Haible  <bruno@clisp.org>
4376
4377         Don't override improved macro from newer autoconf.
4378         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4379         autoconf >= 2.62.
4380         Reported by Joel E. Denny <jdenny@clemson.edu>.
4381
4382 2010-04-10  Jim Meyering  <meyering@redhat.com>
4383
4384         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4385         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4386
4387         maint.mk: correct a diagnostic
4388         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4389         in diagnostic; now use $prohibit.
4390
4391 2010-04-10  Bruno Haible  <address@hidden>
4392
4393         fchownat: Fix a C++ test error on Solaris 8.
4394         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4395         the function does not exist.
4396
4397 2010-04-10  Bruno Haible  <bruno@clisp.org>
4398
4399         vasnprintf: Add more tests.
4400         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4401         (test_function): Test converting an invalid wide string.
4402
4403         vasnprintf: Correct handling of unconvertible wide string arguments.
4404         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4405         VASNPRINTF.
4406         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4407         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4408         smaller than the expected maximum need for the directive. Set errno to
4409         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4410         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4412         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4413         * modules/vasnprintf (Files): Add m4/printf.m4.
4414         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4415
4416 2010-04-10  Bruno Haible  <bruno@clisp.org>
4417
4418         vasnprintf: Fix crash in %ls directive.
4419         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4420         string is passed as argument to %ls, with no precision and no width.
4421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4422
4423 2010-04-10  Bruno Haible  <bruno@clisp.org>
4424
4425         vasnprintf: Fix multiple test failures on mingw.
4426         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4427         _snprintf, or snwprintf, not _snwprintf.
4428
4429 2010-04-10  Bruno Haible  <bruno@clisp.org>
4430
4431         write: Fix a C++ test error on mingw.
4432         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4433
4434 2010-04-10  Bruno Haible  <bruno@clisp.org>
4435
4436         vasnprintf test: Reduce code duplication.
4437         * tests/test-vasnprintf.c (test_function): New function, extracted from
4438         test_vasnprintf.
4439         (test_vasnprintf, test_asnprintf): Invoke it.
4440
4441 2010-04-10  Bruno Haible  <bruno@clisp.org>
4442
4443         strnlen: Fix warning in C++ mode on MacOS X.
4444         * lib/string.in.h (strnlen): Use the modern idiom.
4445         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4446         defining strnlen as a macro already in <config.h>.
4447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4448         REPLACE_STRNLEN.
4449         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4451
4452 2010-04-08  James Youngman  <jay@gnu.org>
4453
4454         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4455         the example.
4456
4457 2010-04-09  Jim Meyering  <meyering@redhat.com>
4458
4459         maint.mk: print better diagnostic when there is no $(_hv_file)
4460         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4461         announce that when $(_hv_file) (aka help-version) does not exist.
4462
4463         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4464         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4465         not try to interpret its random input bytes.  Jarno Rajahalme reported
4466         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4467         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4468         (mktempd_): Likewise, just in case.
4469
4470         ftruncate: add two years to projected module removal date: 2012
4471         * m4/ftruncate.m4: Adjust comments.
4472
4473         ftruncate: mark module as obsolete; even MinGW provides it, now
4474         * modules/ftruncate (Status): Obsolete.
4475         (Notice): Say that.
4476         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4477         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4478
4479 2010-04-08  Bruno Haible  <bruno@clisp.org>
4480
4481         Fix side effects from tests-related modules.
4482         * modules/dprintf-posix (Comment): New section.
4483         * modules/fprintf-posix (Comment): Likewise.
4484         * modules/obstack-printf-posix (Comment): Likewise.
4485         * modules/printf-posix (Comment): Likewise.
4486         * modules/snprintf-posix (Comment): Likewise.
4487         * modules/sprintf-posix (Comment): Likewise.
4488         * modules/vasnprintf-posix (Comment): Likewise.
4489         * modules/vasprintf-posix (Comment): Likewise.
4490         * modules/vdprintf-posix (Comment): Likewise.
4491         * modules/vfprintf-posix (Comment): Likewise.
4492         * modules/vprintf-posix (Comment): Likewise.
4493         * modules/vsnprintf-posix (Comment): Likewise.
4494         * modules/vsprintf-posix (Comment): Likewise.
4495         * modules/xprintf-posix (Comment): Likewise.
4496         * modules/xvasprintf-posix (Comment): Likewise.
4497         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4498         * modules/floorf-tests (Depends-on): Likewise.
4499         * modules/round-tests (Depends-on): Likewise.
4500         * modules/roundf-tests (Depends-on): Likewise.
4501         * modules/trunc-tests (Depends-on): Likewise.
4502         * modules/truncf-tests (Depends-on): Likewise.
4503         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4504         'fprintf-posix' module is not present.
4505         * tests/test-floorf2.c (check): Likewise.
4506         * tests/test-trunc2.c (check): Likewise.
4507         * tests/test-truncf2.c (check): Likewise.
4508         * tests/test-round2.c (equal): Likewise.
4509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4510
4511 2010-04-07  Karl Berry  <karl@gnu.org>
4512
4513         * config/srclist.txt,
4514         * config/srclistvars.sh,
4515         * config/srclist-update: doc fixes.
4516
4517 2010-04-07  Jim Meyering  <meyering@redhat.com>
4518
4519         maint.mk: add a PATH crosschecking syntax-check rule
4520         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4521         Useful if you use a test like the one in help-version (coreutils,
4522         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4523         printed by prog --version.
4524
4525 2010-04-06  Bruno Haible  <bruno@clisp.org>
4526
4527         Fix link error on mingw.
4528         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4529         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4530
4531 2010-04-06  Bruno Haible  <bruno@clisp.org>
4532
4533         Assume rmdir exists.
4534         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4535
4536 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4537
4538         doc: update users.txt
4539         * users.txt: Add gcal.
4540
4541 2010-04-06  Jim Meyering  <meyering@redhat.com>
4542
4543         init.sh: simply unset TMPDIR rather than risking env -i
4544         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4545         although it probably works fine on all Unix-based systems, some
4546         systems (Cygwin?) cannot tolerate a totally cleared environment.
4547         Suggestion from Eric Blake.
4548
4549 2010-04-06  Jim Meyering  <meyering@redhat.com>
4550
4551         init.sh: portability fix: use env's POSIX-specified -i option not -u
4552         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4553         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4554
4555 2010-04-05  Bruno Haible  <bruno@clisp.org>
4556
4557         btowc: Work around Cygwin 1.7.2 bug.
4558         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4559         does not map NUL to 0.
4560         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4561
4562 2010-04-05  Bruno Haible  <bruno@clisp.org>
4563
4564         Make the multithread modules work on Cygwin 1.7.2.
4565         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4566         imported symbols can be declared weak, so that it returns "no" on
4567         Cygwin 1.7.2.
4568
4569 2010-04-05  Bruno Haible  <bruno@clisp.org>
4570
4571         Use the module 'strncat'.
4572         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4573
4574         Tests for module 'strncat'.
4575         * modules/strncat-tests: New file.
4576         * tests/test-strncat.c: New file.
4577
4578         New module 'strncat'.
4579         * lib/string.in.h (strncat): New declaration.
4580         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4581         * m4/strncat.m4: New file, based on m4/memchr.m4.
4582         * modules/strncat: New file.
4583         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4584         is declared.
4585         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4586         REPLACE_STRNCAT.
4587         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4588         REPLACE_STRNCAT.
4589         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4590         module.
4591         * tests/test-string-c++.cc: Check signature of strncat.
4592
4593 2010-04-05  Jim Meyering  <meyering@redhat.com>
4594
4595         xstrtoumax-tests: convert to use init.sh
4596         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4597         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4598         Use Exit, not exit.
4599         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4600
4601         xstrtoimax-tests: convert to use init.sh
4602         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4603         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4604         Use Exit, not exit.
4605         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4606
4607 2010-04-05  Bruno Haible  <bruno@clisp.org>
4608
4609         sys_socket: Avoid #define replacements in C++ mode.
4610         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4611         warning to the function if possible, rather than #defining the symbol
4612         to a dysfunctional alias.
4613
4614 2010-04-05  Bruno Haible  <bruno@clisp.org>
4615
4616         fseeko: Fix C++ test error on mingw.
4617         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4618         gl_FUNC_FSEEKO.
4619         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4620         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4621         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4622         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4623
4624 2010-04-05  Bruno Haible  <bruno@clisp.org>
4625
4626         duplocale: Improve test output.
4627         * tests/test-duplocale.c (main): Print reason for skipped test.
4628
4629 2010-04-05  Bruno Haible  <bruno@clisp.org>
4630
4631         Assume rmdir exists.
4632         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4633         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4634
4635 2010-04-05  Bruno Haible  <bruno@clisp.org>
4636
4637         Fix link error on Solaris 8 with cc.
4638         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4639
4640 2010-04-05  Bruno Haible  <bruno@clisp.org>
4641
4642         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4643         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4644
4645 2010-04-05  Bruno Haible  <bruno@clisp.org>
4646
4647         vasprintf: Update documentation.
4648         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4649
4650 2010-04-05  Bruno Haible  <bruno@clisp.org>
4651
4652         ptsname: Improve test.
4653         * tests/test-ptsname.c (main): Also try the various master names of BSD
4654         systems.
4655
4656 2010-04-05  Bruno Haible  <bruno@clisp.org>
4657
4658         memchr: Avoid a possible C++ test error.
4659         * lib/string.in.h (memchr): Provide declaration if function is missing.
4660         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4661         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4663         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4664
4665 2010-04-05  Bruno Haible  <bruno@clisp.org>
4666
4667         strtok_r: Improve idiom.
4668         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4669         AC_LIBOBJ is used.
4670
4671 2010-04-05  Bruno Haible  <bruno@clisp.org>
4672
4673         strdup: Improve idiom.
4674         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4675         AC_LIBOBJ is used.
4676         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4677         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4678         when AC_LIBOBJ is used.
4679
4680 2010-04-05  Bruno Haible  <bruno@clisp.org>
4681
4682         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4683         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4684         don't set REPLACE_MBSINIT to 1.
4685         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4686         don't set REPLACE_MBRTOWC to 1.
4687         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4688         exist, don't set REPLACE_MBSRTOWCS to 1.
4689         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4690         exist, don't set REPLACE_MBSNRTOWCS to 1.
4691         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4692         don't set REPLACE_WCRTOMB to 1.
4693         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4694         exist, don't set REPLACE_WCSRTOMBS to 1.
4695         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4696         exist, don't set REPLACE_WCSNRTOMBS to 1.
4697
4698 2010-04-05  Bruno Haible  <bruno@clisp.org>
4699
4700         ldexpl: Improve idiom.
4701         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4702         make sure to set HAVE_DECL_LDEXPL to 0.
4703
4704 2010-04-05  Jim Meyering  <meyering@redhat.com>
4705
4706         xstrtol-tests: convert to use init.sh
4707         * modules/xstrtol-tests (Files): Add tests/init.sh.
4708         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4709         Use Exit, not exit.
4710         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4711
4712         atexit-tests: convert to use init.sh
4713         * modules/atexit-tests (Files): Add tests/init.sh.
4714         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4715         Use Exit, not exit.
4716         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4717
4718         init.sh: fix typo
4719         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4720
4721         init.sh: make it easier for a test script to write to the tty, ...
4722         when using automake's parallel-tests mode.
4723         * tests/init.sh (stderr_fileno_): Define overridable variable.
4724         (warn_): New function, to use it.
4725         (fail_, skip_, framework_failure_): Use warn_.
4726
4727 2010-04-04  Bruno Haible  <bruno@clisp.org>
4728
4729         btowc: Avoid warning.
4730         * lib/btowc.c: Include <stdlib.h>.
4731         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4732
4733 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4734             Bruno Haible  <bruno@clisp.org>
4735
4736         wchar: Port to NetBSD 1.5.
4737         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4738         * lib/wctype.in.h (WEOF): Likewise.
4739
4740 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4741             Bruno Haible  <bruno@clisp.org>
4742
4743         Port extended stdio to NetBSD 1.5.
4744         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4745         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4746         older.
4747
4748 2010-04-04  Bruno Haible  <bruno@clisp.org>
4749
4750         string: Remove unused substitution.
4751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4752         HAVE_DECL_STRERROR.
4753         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4754
4755 2010-04-04  Bruno Haible  <bruno@clisp.org>
4756
4757         strtod: Avoid a possible C++ test error.
4758         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4759         set REPLACE_STRTOD.
4760
4761 2010-04-04  Bruno Haible  <bruno@clisp.org>
4762
4763         strerror: Update documentation.
4764         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4765
4766 2010-04-04  Bruno Haible  <bruno@clisp.org>
4767
4768         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4769         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4770         _GL_CXXALIAS_SYS_CAST.
4771
4772 2010-04-04  Bruno Haible  <bruno@clisp.org>
4773
4774         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4775         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4776         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4777         REPLACE_FREXPL to 1.
4778         * doc/posix-functions/frexpl.texi: Update documentation.
4779
4780 2010-04-04  Bruno Haible  <bruno@clisp.org>
4781
4782         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4783         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4784
4785 2010-04-04  Bruno Haible  <bruno@clisp.org>
4786
4787         Implement nanosleep for native Windows.
4788         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4789
4790 2010-04-04  Bruno Haible  <bruno@clisp.org>
4791
4792         math: Fix some C++ test errors on Solaris 8.
4793         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4794
4795 2010-04-04  Bruno Haible  <bruno@clisp.org>
4796
4797         math: Fix some C++ test errors on Cygwin.
4798         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4799         truncl): Provide declaration if the system does not have it.
4800         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4801         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4802         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4803         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4804         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4805         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4806         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4807         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4808         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4809         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4810         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4811         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4812         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4813         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4814         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4815         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4817         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4818         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4819         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4820         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4821         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4822
4823 2010-04-04  Bruno Haible  <bruno@clisp.org>
4824
4825         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4826         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4827         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4828         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4829         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4830         * m4/isinf.m4 (gl_ISINF): Likewise.
4831         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4832
4833 2010-04-04  Bruno Haible  <bruno@clisp.org>
4834
4835         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4836         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4837
4838 2010-04-04  Bruno Haible  <bruno@clisp.org>
4839
4840         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4841         * modules/tmpfile (configure.ac): Update.
4842
4843         tmpfile: Fix C++ test error on mingw.
4844         * lib/stdio.in.h (tmpfile): New declaration.
4845         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4846         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4847         * modules/tmpfile (Depends-on): Add stdio.
4848         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4849         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4850         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4851         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4852         REPLACE_TMPFILE.
4853         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4854
4855 2010-04-04  Bruno Haible  <bruno@clisp.org>
4856
4857         ioctl: Fix C++ test error on mingw.
4858         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4859         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4860         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4861
4862 2010-04-03  Bruno Haible  <bruno@clisp.org>
4863
4864         wcwidth: Fix C++ test error on mingw.
4865         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4867         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4868
4869 2010-04-03  Bruno Haible  <bruno@clisp.org>
4870
4871         nanosleep: Fix C++ test error on mingw.
4872         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4873         * lib/time.in.h (nanosleep): Use modern idiom.
4874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4875         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4876         REPLACE_NANOSLEEP to 1.
4877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4878         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4879
4880 2010-04-03  Bruno Haible  <bruno@clisp.org>
4881
4882         strptime: Fix C++ test error on mingw.
4883         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4884         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4885         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4886         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4887         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4888         not REPLACE_STRPTIME.
4889         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4890         REPLACE_STRPTIME.
4891
4892 2010-04-03  Bruno Haible  <bruno@clisp.org>
4893
4894         timegm: Fix C++ test error on mingw.
4895         * lib/time.in.h (timegm): Use modern idiom.
4896         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4897         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4898         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4899         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4900
4901 2010-04-03  Bruno Haible  <bruno@clisp.org>
4902
4903         timegm: Assume declaration if function exists.
4904         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4905         if it exists. Don't clobber ac_cv_func_timegm.
4906
4907 2010-04-03  Bruno Haible  <bruno@clisp.org>
4908
4909         time_r: Fix C++ test error on mingw.
4910         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4911         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4912         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4914         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4915
4916 2010-04-03  Bruno Haible  <bruno@clisp.org>
4917
4918         time_r: Minor updates.
4919         * modules/time_r (Description): Mention the provided functions.
4920         * lib/time_r.c: Don't include <string.h>.
4921         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4922         * doc/posix-functions/localtime_r.texi: Likewise.
4923
4924 2010-04-03  Bruno Haible  <bruno@clisp.org>
4925
4926         time: Fix regression introduced on 2010-03-08.
4927         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4928         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4929
4930 2010-04-03  Jim Meyering  <meyering@redhat.com>
4931
4932         maint.mk: don't silently disable project-specific syntax-check rules
4933         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4934         that they need to convert their project-specific syntax-check rules
4935         to use the new _sc_search_regexp.
4936
4937 2010-04-03  Bruno Haible  <bruno@clisp.org>
4938
4939         fchdir: Fix regression introduced on 2010-03-08.
4940         * lib/unistd.in.h (fchdir): Fix declaration.
4941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4943         REPLACE_FCHDIR.
4944         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4945         REPLACE_FCHDIR.
4946
4947 2010-04-03  Bruno Haible  <bruno@clisp.org>
4948
4949         getpagesize: Fix C++ test error on mingw.
4950         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4951         system does not declare the function.
4952         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4953         declared.
4954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4955         HAVE_DECL_GETPAGESIZE.
4956         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4957
4958 2010-04-03  Bruno Haible  <bruno@clisp.org>
4959
4960         stdio: Make C++ tests work on mingw.
4961         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4962         does not declare the function.
4963
4964 2010-04-03  Bruno Haible  <bruno@clisp.org>
4965
4966         ftello: Fix C++ test error on mingw.
4967         * lib/stdio.in.h (ftello): Use modern idiom.
4968         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4969         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4970         is missing and that it needs to be replaced.
4971         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4973         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4974
4975 2010-04-03  Bruno Haible  <bruno@clisp.org>
4976
4977         fseeko: Fix C++ test error on mingw.
4978         * lib/stdio.in.h (fseeko): Use modern idiom.
4979         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4980         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4981         is missing and that it needs to be replaced.
4982         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4984         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4985
4986 2010-04-03  Bruno Haible  <bruno@clisp.org>
4987
4988         mkstemp: Fix C++ test error on mingw.
4989         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4991         function is missing and that it needs to be replaced.
4992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4993         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4994
4995 2010-04-03  Bruno Haible  <bruno@clisp.org>
4996
4997         stpncpy: Fix C++ test error on mingw.
4998         * lib/string.in.h (stpncpy): Use modern idiom.
4999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5000         function is missing and that it needs to be replaced.
5001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5002         REPLACE_STPNCPY.
5003         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5004
5005 2010-04-03  Bruno Haible  <bruno@clisp.org>
5006
5007         sys_stat: Fix C++ test error on mingw.
5008         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5009         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5010
5011 2010-04-03  Bruno Haible  <bruno@clisp.org>
5012
5013         pty: Update doc.
5014         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5015
5016 2010-04-03  Bruno Haible  <bruno@clisp.org>
5017
5018         unistd: Fix C++ test error on mingw.
5019         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5020
5021 2010-04-03  Bruno Haible  <bruno@clisp.org>
5022
5023         Update doc regarding mingw.
5024         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5025         * doc/glibc-functions/login_tty.texi: Likewise.
5026         * doc/glibc-functions/forkpty.texi: Likewise.
5027
5028 2010-04-03  Bruno Haible  <bruno@clisp.org>
5029
5030         stdlib: Avoid compilation failure of c-strtold on mingw.
5031         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5032
5033 2010-04-03  Bruno Haible  <bruno@clisp.org>
5034
5035         locale: Make C++ tests work on Cygwin and mingw.
5036         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5037         cannot provide the function.
5038         Reported by Simon Josefsson.
5039
5040 2010-04-03  Bruno Haible  <bruno@clisp.org>
5041
5042         localename: Port to MacOS X 10.6.
5043         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5044         memory layout of the locales in MacOS X 10.6 as well.
5045         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5046
5047 2010-04-02  Bruno Haible  <bruno@clisp.org>
5048
5049         gnulib-tool: Ensure that long-running tests are executed last.
5050         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5051         running tests after the one for the other tests.
5052
5053 2010-04-02  Bruno Haible  <bruno@clisp.org>
5054
5055         gnulib-tool: Ensure the tests in the main directory are executed first.
5056         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5057         start with the current directory.
5058
5059 2010-04-02  Bruno Haible  <bruno@clisp.org>
5060
5061         Tests for module 'havelib', moved here from GNU gettext.
5062         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5063         modifications.
5064         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5065         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5066         with modifications.
5067         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5068         modifications.
5069         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5070         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5071         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5072         with modifications.
5073         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5074         with modifications.
5075         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5076         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5077         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5078         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5079         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5080         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5081         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5082         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5083         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5084         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5085         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5086         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5087         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5088         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5089         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5090         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5091         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5092         with modifications.
5093         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5094         with modifications.
5095         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5096         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5097         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5098         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5099         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5100         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5101         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5102         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5103         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5104         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5105         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5106         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5107         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5108         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5109         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5110         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5111         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5112         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5113         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5114         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5115         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5116         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5117         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5118         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5119         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5120         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5121         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5122         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5123         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5124         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5125         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5126         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5127         * tests/havelib/rpathx/rpathx.c: New file, from
5128         gettext/autoconf-lib-link.
5129         * tests/havelib/rpathx/Makefile.am: New file, from
5130         gettext/autoconf-lib-link.
5131         * tests/havelib/rpathx/configure.ac: New file, from
5132         gettext/autoconf-lib-link with modifications.
5133         * tests/havelib/rpathy/rpathy.c: New file, from
5134         gettext/autoconf-lib-link.
5135         * tests/havelib/rpathy/Makefile.am: New file, from
5136         gettext/autoconf-lib-link.
5137         * tests/havelib/rpathy/configure.ac: New file, from
5138         gettext/autoconf-lib-link with modifications.
5139         * tests/havelib/rpathz/rpathz.c: New file, from
5140         gettext/autoconf-lib-link.
5141         * tests/havelib/rpathz/Makefile.am: New file, from
5142         gettext/autoconf-lib-link.
5143         * tests/havelib/rpathz/configure.ac: New file, from
5144         gettext/autoconf-lib-link with modifications.
5145         * tests/havelib/rpathlx/usex.c: New file, from
5146         gettext/autoconf-lib-link.
5147         * tests/havelib/rpathlx/Makefile.am: New file, from
5148         gettext/autoconf-lib-link.
5149         * tests/havelib/rpathlx/configure.ac: New file, from
5150         gettext/autoconf-lib-link with modifications.
5151         * tests/havelib/rpathly/usey.c: New file, from
5152         gettext/autoconf-lib-link.
5153         * tests/havelib/rpathly/Makefile.am: New file, from
5154         gettext/autoconf-lib-link.
5155         * tests/havelib/rpathly/configure.ac: New file, from
5156         gettext/autoconf-lib-link with modifications.
5157         * tests/havelib/rpathlz/usez.c: New file, from
5158         gettext/autoconf-lib-link.
5159         * tests/havelib/rpathlz/Makefile.am: New file, from
5160         gettext/autoconf-lib-link.
5161         * tests/havelib/rpathlz/configure.ac: New file, from
5162         gettext/autoconf-lib-link with modifications.
5163         * tests/havelib/rpathlyx/usey.c: New file, from
5164         gettext/autoconf-lib-link.
5165         * tests/havelib/rpathlyx/Makefile.am: New file, from
5166         gettext/autoconf-lib-link.
5167         * tests/havelib/rpathlyx/configure.ac: New file, from
5168         gettext/autoconf-lib-link with modifications.
5169         * tests/havelib/rpathlzyx/usez.c: New file, from
5170         gettext/autoconf-lib-link.
5171         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5172         gettext/autoconf-lib-link.
5173         * tests/havelib/rpathlzyx/configure.ac: New file, from
5174         gettext/autoconf-lib-link with modifications.
5175         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5176         with modifications.
5177
5178 2010-04-02  Bruno Haible  <bruno@clisp.org>
5179
5180         gnulib-tool: Create distributed built sources also for the tests.
5181         * gnulib-tool (func_create_testdir): Also generate distributed built
5182         sources in the tests directory.
5183
5184 2010-04-02  Bruno Haible  <bruno@clisp.org>
5185
5186         gnulib-tool: Obey user's environment variables.
5187         * gnulib-tool (func_create_testdir): When creating built sources,
5188         respect the environment variables for autoconf, automake, etc. given by
5189         the user.
5190
5191 2010-04-02  Bruno Haible  <bruno@clisp.org>
5192
5193         gnulib-tool: Provide the value of --m4-base to modules.
5194         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5195         of gl_m4_base.
5196
5197 2010-04-02  Eric Blake  <eblake@redhat.com>
5198
5199         maint.mk: fix some fallout
5200         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5201         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5202
5203 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5204
5205         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5206         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5207         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5208         (sc_cast_of_x_alloc_return_value): Likewise.
5209         (sc_cast_of_alloca_return_value): Likewise.
5210         (sc_space_tab): Likewise.
5211         (sc_prohibit_atoi_atof): Likewise.
5212         (sc_prohibit_magic_number_exit): Likewise.
5213         (sc_error_exit_success): Likewise.
5214         (sc_file_system): Likewise.
5215         (sc_prohibit_have_config_h): Likewise.
5216         (sc_require_config_h): Likewise.
5217         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5218         (sc_obsolete_symbols): Likewise.
5219         (sc_changelog): Likewise.
5220         (sc_program_name): Likewise.
5221         (sc_the_the): Likewise.
5222         (sc_trailing_blank): Likewise.
5223         (sc_two_space_separator_in_usage): Likewise.
5224         (sc_useless_cpp_parens): Likewise.
5225         (sc_GPL_version): Likewise.
5226         (sc_GFDL_version): Likewise.
5227         (sc_texinfo_acronym): Likewise.
5228         (sc_prohibit_cvs_keyword): Likewise.
5229         (sc_prohibit_stat_st_blocks): Likewise.
5230         (sc_prohibit_S_IS_definition): Likewise.
5231         (sc_redundant_const): Likewise.
5232         (sc_makefile_TAB_only_indentation): Likewise.
5233         (sc_m4_quote_check): Likewise.
5234         (sc_makefile_path_separator_check): Likewise.
5235         (sc_copyright_check): Likewise.
5236         (sc_Wundef_boolean): Likewise.
5237         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5238
5239         maint.mk: match 0 or more whitespace-before-function-call '('
5240         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5241         that have zero or two-and-more spaces between the function name
5242         and the open parenthesis.
5243         (sc_error_message_warn_fatal): Likewise.
5244         (sc_error_message_uppercase): Likewise.
5245         (sc_error_message_period): Likewise.
5246
5247 2010-03-31  Eric Blake  <eblake@redhat.com>
5248
5249         maint.mk: check for [ as well as test
5250         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5251         Based on a libvirt report by Matthias Bolte.
5252
5253         gnumakefile: don't squelch _version output
5254         * top/GNUmakefile (_version): Create one-shot dependency rather
5255         than using $(shell) when version must be regenerated.
5256         (_autoreconf): Run verbosely, by default.
5257
5258         sys_time: avoid compiler warnings
5259         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5260         unconditional, fixing regression from 2010-03-29.
5261         Reported by Simon Josefsson.
5262
5263 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5264
5265         maint.mk: s/_header_without_use/_sc_header_without_use/
5266         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5267         (sc_prohibit_assert_without_use): Use the new name.
5268         (sc_prohibit_close_stream_without_use): Likewise.
5269         (sc_prohibit_getopt_without_use): Likewise.
5270         (sc_prohibit_quotearg_without_use): Likewise.
5271         (sc_prohibit_quote_without_use): Likewise.
5272         (sc_prohibit_long_options_without_use): Likewise.
5273         (sc_prohibit_inttostr_without_use): Likewise.
5274         (sc_prohibit_ignore_value_without_use): Likewise.
5275         (sc_prohibit_error_without_use): Likewise.
5276         (sc_prohibit_xalloc_without_use): Likewise.
5277         (sc_prohibit_hash_without_use): Likewise.
5278         (sc_prohibit_hash_pjw_without_use): Likewise.
5279         (sc_prohibit_safe_read_without_use): Likewise.
5280         (sc_prohibit_argmatch_without_use): Likewise.
5281         (sc_prohibit_canonicalize_without_use): Likewise.
5282         (sc_prohibit_root_dev_ino_without_use): Likewise.
5283         (sc_prohibit_openat_without_use): Likewise.
5284         (sc_prohibit_c_ctype_without_use): Likewise.
5285         (sc_prohibit_signal_without_use): Likewise.
5286         (sc_prohibit_intprops_without_use): Likewise.
5287
5288 2010-03-30  Eric Blake  <eblake@redhat.com>
5289
5290         maint: improve module indicators
5291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5292         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5293         columns, and avoid extra macro expansion.
5294
5295         fdopendir: work around FreeBSD bug
5296         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5297         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5298         * modules/dirent (Makefile.am): Substitute it.
5299         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5300         declaration.
5301         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5302         fix.
5303         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5304
5305 2010-03-29  Bruno Haible  <bruno@clisp.org>
5306
5307         Emit #pragma system_header after the inclusion guard, not before.
5308         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5309         guard that spans the entire file, not before. This enables an
5310         optimization in GCC's preprocessor.
5311         * lib/ctype.in.h: Likewise.
5312         * lib/dirent.in.h: Likewise.
5313         * lib/errno.in.h: Likewise.
5314         * lib/float.in.h: Likewise.
5315         * lib/getopt.in.h: Likewise.
5316         * lib/iconv.in.h: Likewise.
5317         * lib/langinfo.in.h: Likewise.
5318         * lib/locale.in.h: Likewise.
5319         * lib/math.in.h: Likewise.
5320         * lib/netdb.in.h: Likewise.
5321         * lib/netinet_in.in.h: Likewise.
5322         * lib/pty.in.h: Likewise.
5323         * lib/sched.in.h: Likewise.
5324         * lib/se-selinux.in.h: Likewise.
5325         * lib/search.in.h: Likewise.
5326         * lib/spawn.in.h: Likewise.
5327         * lib/stdarg.in.h: Likewise.
5328         * lib/stdint.in.h: Likewise.
5329         * lib/string.in.h: Likewise.
5330         * lib/strings.in.h: Likewise.
5331         * lib/sys_file.in.h: Likewise.
5332         * lib/sys_ioctl.in.h: Likewise.
5333         * lib/sys_time.in.h: Likewise.
5334         * lib/sys_times.in.h: Likewise.
5335         * lib/sys_utsname.in.h: Likewise.
5336         * lib/sys_wait.in.h: Likewise.
5337         * lib/sysexits.in.h: Likewise.
5338         * lib/wctype.in.h: Likewise.
5339
5340 2010-03-28  James Youngman  <jay@gnu.org>
5341
5342         save-cwd: don't leak a file descriptor when the caller execs.
5343         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5344         saved file descriptor.
5345         * modules/save-cwd (Depends-on): Depend on cloexec.
5346
5347 2010-03-29  Bruno Haible  <bruno@clisp.org>
5348
5349         Remove vestiges of fts-lgpl module.
5350         * lib/fts_.h: Assume GNULIB_FTS is 1.
5351         * lib/fts.c: Likewise.
5352         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5353
5354 2010-03-28  Bruno Haible  <bruno@clisp.org>
5355
5356         Fix definition of tests witness macro.
5357         * gnulib-tool (func_import): Fix definition of witness macro.
5358
5359 2010-03-28  Bruno Haible  <bruno@clisp.org>
5360
5361         Fix ioctl's protoype on glibc systems.
5362         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5363         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5364         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5365         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5366         signature. If not, arrange to replace the ioctl function.
5367         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5368         REPLACE_IOCTL.
5369         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5370         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5371         Reported by Ludovic Courtès <ludo@gnu.org>.
5372
5373 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5374
5375         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5376         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5377         made it so grep -r --include=GLOB* ... did not work.
5378
5379 2010-03-26  Jim Meyering  <meyering@redhat.com>
5380             Eric Blake  <eblake@redhat.com>
5381
5382         maint.mk: prohibit use of test's -o and -a operators
5383         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5384
5385 2010-03-28  Bruno Haible  <bruno@clisp.org>
5386
5387         Remove unused GNULIB_XYZ macro definitions.
5388         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5389         invocation.
5390
5391 2010-03-28  Bruno Haible  <bruno@clisp.org>
5392
5393         Mark privileged tests modules.
5394         * modules/idpriv-drop-tests (Status): New section.
5395         * modules/idpriv-droptemp-tests (Status): New section.
5396
5397 2010-03-28  Bruno Haible  <bruno@clisp.org>
5398
5399         Split C++ tests into separate tests modules.
5400         * modules/dirent-c++-tests: New file, extracted from
5401         modules/dirent-tests.
5402         * modules/dirent-tests: Depend on it.
5403         * modules/fcntl-h-c++-tests: New file, extracted from
5404         modules/fcntl-h-tests.
5405         * modules/fcntl-h-tests: Depend on it.
5406         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5407         * modules/glob-tests: Depend on it.
5408         * modules/iconv-h-c++-tests: New file, extracted from
5409         modules/iconv-h-tests.
5410         * modules/iconv-h-tests: Depend on it.
5411         * modules/langinfo-c++-tests: New file, extracted from
5412         modules/langinfo-tests.
5413         * modules/langinfo-tests: Depend on it.
5414         * modules/locale-c++-tests: New file, extracted from
5415         modules/locale-tests.
5416         * modules/locale-tests: Depend on it.
5417         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5418         * modules/math-tests: Depend on it.
5419         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5420         * modules/pty-tests: Depend on it.
5421         * modules/search-c++-tests: New file, extracted from
5422         modules/search-tests.
5423         * modules/search-tests: Depend on it.
5424         * modules/signal-c++-tests: New file, extracted from
5425         modules/signal-tests.
5426         * modules/signal-tests: Depend on it.
5427         * modules/spawn-c++-tests: New file, extracted from
5428         modules/spawn-tests.
5429         * modules/spawn-tests: Depend on it.
5430         * modules/stdio-c++-tests: New file, extracted from
5431         modules/stdio-tests.
5432         * modules/stdio-tests: Depend on it.
5433         * modules/stdlib-c++-tests: New file, extracted from
5434         modules/stdlib-tests.
5435         * modules/stdlib-tests: Depend on it.
5436         * modules/string-c++-tests: New file, extracted from
5437         modules/string-tests.
5438         * modules/string-tests: Depend on it.
5439         * modules/sys_ioctl-c++-tests: New file, extracted from
5440         modules/sys_ioctl-tests.
5441         * modules/sys_ioctl-tests: Depend on it.
5442         * modules/sys_select-c++-tests: New file, extracted from
5443         modules/sys_select-tests.
5444         * modules/sys_select-tests: Depend on it.
5445         * modules/sys_socket-c++-tests: New file, extracted from
5446         modules/sys_socket-tests.
5447         * modules/sys_socket-tests: Depend on it.
5448         * modules/sys_stat-c++-tests: New file, extracted from
5449         modules/sys_stat-tests.
5450         * modules/sys_stat-tests: Depend on it.
5451         * modules/sys_time-c++-tests: New file, extracted from
5452         modules/sys_time-tests.
5453         * modules/sys_time-tests: Depend on it.
5454         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5455         * modules/time-tests: Depend on it.
5456         * modules/unistd-c++-tests: New file, extracted from
5457         modules/unistd-tests.
5458         * modules/unistd-tests: Depend on it.
5459         * modules/wchar-c++-tests: New file, extracted from
5460         modules/wchar-tests.
5461         * modules/wchar-tests: Depend on it.
5462         * modules/wctype-c++-tests: New file, extracted from
5463         modules/wctype-tests.
5464         * modules/wctype-tests: Depend on it.
5465         Reported by Simon Josefsson.
5466
5467 2010-03-28  Bruno Haible  <bruno@clisp.org>
5468
5469         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5470         * gnulib-tool (func_exists_module): New function, extracted from
5471         func_verify_module.
5472         (func_verify_module): Use it.
5473         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5474         'foo' only if 'foo' exists.
5475         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5476         module.
5477
5478 2010-03-28  Bruno Haible  <bruno@clisp.org>
5479
5480         gnulib-tool: Add support for special categories of tests.
5481         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5482         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5483         (func_usage): Document them.
5484         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5485         inc_unportable_tests, inc_all_tests): New variables.
5486         (func_acceptable): Consider these variables.
5487         (func_modules_transitive_closure): Make it work when the 'Status' field
5488         consists of multiple words.
5489         (func_import): Store and restore the values of inc_cxx_tests,
5490         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5491         inc_all_tests in gnulib-comp.m4.
5492         (func_create_testdir): Set inc_all_tests to true.
5493         * doc/gnulib.texi (Extra tests modules): New section.
5494         Suggested by Jim Meyering.
5495
5496 2010-03-28  Bruno Haible  <bruno@clisp.org>
5497
5498         ansi-c++-opt: Allow turning off the C++ build by default.
5499         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5500         gl_CXX_CHOICE_DEFAULT_NO is defined.
5501         Requested by Eric Blake.
5502
5503 2010-03-28  Bruno Haible  <bruno@clisp.org>
5504
5505         unistd: Avoid #define replacements in C++ mode.
5506         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5507         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5508         setsockopt, shutdown, select): In C++, attach a warning to the function
5509         if possible, rather than #defining the symbol to a dysfunctional alias.
5510         Reported by John W. Eaton <jwe@gnu.org>.
5511
5512 2010-03-28  Bruno Haible  <bruno@clisp.org>
5513
5514         Fix link errors on mingw.
5515         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5516         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5517         $(LIBSOCKET).
5518         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5519         $(LIBSOCKET).
5520
5521 2010-03-28  Bruno Haible  <bruno@clisp.org>
5522             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5523
5524         lib-ignore: Determine different options for different compilers.
5525         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5526         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5527         Add comments.
5528         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5529         * NEWS: Mention the change.
5530
5531 2010-03-27  Bruno Haible  <bruno@clisp.org>
5532
5533         Remove unused GNULIB_XYZ macro definitions.
5534         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5535         * modules/fseek (configure.ac): Likewise.
5536         * modules/ioctl (configure.ac): Likewise.
5537         * modules/open (configure.ac): Likewise.
5538         * modules/stdlib-safer (configure.ac): Likewise.
5539
5540 2010-03-27  Bruno Haible  <bruno@clisp.org>
5541
5542         Add a remark about certain modules.
5543         * modules/malloc (Comment): New section.
5544         * modules/realloc (Comment): Likewise.
5545         * modules/sigpipe (Comment): Likewise.
5546
5547 2010-03-27  Bruno Haible  <bruno@clisp.org>
5548
5549         Resolve conflict between the two kinds of module indicators.
5550         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5551         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5552         * modules/canonicalize (configure.ac): Invoke
5553         gl_MODULE_INDICATOR_FOR_TESTS.
5554         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5555         GNULIB_XYZ.
5556         * tests/test-dirent-c++.cc: Likewise.
5557         * tests/test-dirent-safer.c: Likewise.
5558         * tests/test-dup2.c: Likewise.
5559         * tests/test-fchdir.c: Likewise.
5560         * tests/test-fcntl-h-c++.cc: Likewise.
5561         * tests/test-getopt.c: Likewise.
5562         * tests/test-getopt.h: Likewise.
5563         * tests/test-langinfo-c++.cc: Likewise.
5564         * tests/test-locale-c++.cc: Likewise.
5565         * tests/test-math-c++.cc: Likewise.
5566         * tests/test-pty-c++.cc: Likewise.
5567         * tests/test-search-c++.cc: Likewise.
5568         * tests/test-signal-c++.cc: Likewise.
5569         * tests/test-spawn-c++.cc: Likewise.
5570         * tests/test-stdio-c++.cc: Likewise.
5571         * tests/test-stdlib-c++.cc: Likewise.
5572         * tests/test-string-c++.cc: Likewise.
5573         * tests/test-sys_ioctl-c++.cc: Likewise.
5574         * tests/test-sys_select-c++.cc: Likewise.
5575         * tests/test-sys_socket-c++.cc: Likewise.
5576         * tests/test-sys_stat-c++.cc: Likewise.
5577         * tests/test-sys_time-c++.cc: Likewise.
5578         * tests/test-time-c++.cc: Likewise.
5579         * tests/test-unistd-c++.cc: Likewise.
5580         * tests/test-wchar-c++.cc: Likewise.
5581         * tests/uninorm/test-u8-nfc.c: Likewise.
5582         * tests/uninorm/test-u8-nfd.c: Likewise.
5583         * tests/uninorm/test-u8-nfkc.c: Likewise.
5584         * tests/uninorm/test-u8-nfkd.c: Likewise.
5585         * tests/uninorm/test-u16-nfc.c: Likewise.
5586         * tests/uninorm/test-u16-nfd.c: Likewise.
5587         * tests/uninorm/test-u16-nfkc.c: Likewise.
5588         * tests/uninorm/test-u16-nfkd.c: Likewise.
5589         * tests/uninorm/test-u32-nfc.c: Likewise.
5590         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5591         * tests/uninorm/test-u32-nfd.c: Likewise.
5592         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5593         * tests/uninorm/test-u32-nfkc.c: Likewise.
5594         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5595         * tests/uninorm/test-u32-nfkd.c: Likewise.
5596         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5597         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5598
5599 2010-03-27  Bruno Haible  <bruno@clisp.org>
5600
5601         Distinguish two kinds of module indicators.
5602         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5603         gl_MODULE_INDICATOR.
5604         (gl_MODULE_INDICATOR): New macro.
5605         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5606         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5607         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5608         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5609         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5610         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5611         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5612         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5613         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5614         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5615         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5616         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5619         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5620         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5621         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5622         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5623         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5624         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5625         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5626         * modules/cloexec (configure.ac): Likewise.
5627         * modules/getopt-gnu (configure.ac): Likewise.
5628         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5629         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5630         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5631         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5632
5633 2010-03-27  Bruno Haible  <bruno@clisp.org>
5634
5635         New module description field 'Comment'.
5636         * gnulib-tool: New option --extract-comment.
5637         (func_usage): Document it.
5638         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5639         (func_get_comment): New function.
5640         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5641
5642 2010-03-27  Bruno Haible  <bruno@clisp.org>
5643
5644         Addendum to 2010-02-07 commit.
5645         * gnulib-tool (func_usage): Document --extract-applicability option.
5646
5647 2010-03-27  Bruno Haible  <bruno@clisp.org>
5648
5649         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5650         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5651         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5652         rather than link errors.
5653
5654 2010-03-27  Bruno Haible  <bruno@clisp.org>
5655
5656         Avoid side effects from tests-related modules on the compilation of lib.
5657         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5658         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5659         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5660         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5661         macro.
5662         (func_import): Define a witness macro. Assign it a value that depends
5663         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5664         tests-related modules.
5665         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5666         Reported by Jim Meyering.
5667
5668 2010-03-27  Bruno Haible  <bruno@clisp.org>
5669
5670         Factorize common .m4 code.
5671         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5672         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5673         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5674         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5675         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5676         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5677         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5678         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5679         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5680         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5681         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5682         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5683         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5684         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5685         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5686         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5687         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5688         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5690         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5691         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5693         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5694         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5695         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5696         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5697         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5698         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5699         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5701         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5702         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5703
5704 2010-03-27  Bruno Haible  <bruno@clisp.org>
5705
5706         Fix a compilation error on Cygwin with g++ >= 4.3.
5707         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5708         if it is undefined or if we alias it to chmod.
5709         (lstat): Don't warn about the use of this function if it is undefined
5710         or if we alias it to stat.
5711         Reported by Simon Josefsson.
5712
5713 2010-03-27  Bruno Haible  <bruno@clisp.org>
5714
5715         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5716         * modules/getlogin (configure.ac): Update.
5717
5718         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5719         * modules/getlogin_r (configure.ac): Update.
5720
5721         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5723         * modules/inet_ntop (configure.ac): Update.
5724
5725         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5726         * modules/inet_pton (configure.ac): Update.
5727
5728         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5729         * modules/mbslen (configure.ac): Update.
5730
5731         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5732         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5733         * modules/forkpty (configure.ac): Update.
5734         * modules/openpty (configure.ac): Update.
5735
5736 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5737
5738         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5739         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5740
5741 2010-03-25  Eric Blake  <eblake@redhat.com>
5742
5743         maint: use pragma consistently across replacement headers
5744         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5745         * lib/dirent.in.h (system_header): Likewise.
5746         * lib/errno.in.h (system_header): Likewise.
5747         * lib/float.in.h (system_header): Likewise.
5748         * lib/getopt.in.h (system_header): Likewise.
5749         * lib/iconv.in.h (system_header): Likewise.
5750         * lib/inttypes.in.h (system_header): Likewise.
5751         * lib/langinfo.in.h (system_header): Likewise.
5752         * lib/locale.in.h (system_header): Likewise.
5753         * lib/math.in.h (system_header): Likewise.
5754         * lib/netdb.in.h (system_header): Likewise.
5755         * lib/netinet_in.in.h (system_header): Likewise.
5756         * lib/pty.in.h (system_header): Likewise.
5757         * lib/sched.in.h (system_header): Likewise.
5758         * lib/se-selinux.in.h (system_header): Likewise.
5759         * lib/search.in.h (system_header): Likewise.
5760         * lib/spawn.in.h (system_header): Likewise.
5761         * lib/stdarg.in.h (system_header): Likewise.
5762         * lib/stdint.in.h (system_header): Likewise.
5763         * lib/string.in.h (system_header): Likewise.
5764         * lib/strings.in.h (system_header): Likewise.
5765         * lib/sys_file.in.h (system_header): Likewise.
5766         * lib/sys_ioctl.in.h (system_header): Likewise.
5767         * lib/sys_socket.in.h (system_header): Likewise.
5768         * lib/sys_times.in.h (system_header): Likewise.
5769         * lib/sys_utsname.in.h (system_header): Likewise.
5770         * lib/sys_wait.in.h (system_header): Likewise.
5771         * lib/sysexits.in.h (system_header): Likewise.
5772         * lib/unistd.in.h (system_header): Likewise.
5773         * lib/wctype.in.h (system_header): Likewise.
5774
5775         arpa/inet: fix mingw compilation warning
5776         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5777         Reported by Matthew Bolte.
5778
5779 2010-03-25  Bruno Haible  <bruno@clisp.org>
5780
5781         Avoid collision between gnulib wrapper and libintl wrapper.
5782         * lib/printf.c (printf): Don't define if a printf wrapper is already
5783         defined in intl/printf.c.
5784         Reported by Michel Boaventura <michel@michelboaventura.com>.
5785
5786 2010-03-25  Bruno Haible  <bruno@clisp.org>
5787
5788         Use ANSI C.
5789         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5790
5791 2010-03-25  Bruno Haible  <bruno@clisp.org>
5792
5793         Minor formatting changes.
5794         * lib/acosl.c: Insert space before function argument list.
5795         * lib/argz.c: Likewise.
5796         * lib/asinl.c: Likewise.
5797         * lib/expl.c: Likewise.
5798         * lib/gen-uni-tables.c: Likewise.
5799         * lib/gettext.h: Likewise.
5800         * lib/glthread/lock.h: Likewise.
5801         * lib/tanl.c: Likewise.
5802         * lib/uniname/uniname.c: Likewise.
5803         * tests/test-idpriv-drop.c: Likewise.
5804         * tests/test-idpriv-droptemp.c: Likewise.
5805         * tests/test-lock.c: Likewise.
5806         * tests/test-tls.c: Likewise.
5807         * lib/argp-help.c: Insert space before function-like macro argument
5808         list.
5809         * lib/memcmp.c: Likewise.
5810         * tests/test-base64.c: Likewise.
5811         * lib/localename.c: Insert space before sizeof's argument list.
5812         * lib/safe-alloc.h: Likewise.
5813         * lib/file-set.h: Insert space before macro argument list.
5814         * tests/test-argp.c: Likewise.
5815         * lib/argp-namefrob.h: Insert space before function parameter list.
5816         * lib/getaddrinfo.c: Likewise.
5817         * lib/netdb.in.h: Likewise.
5818         * lib/parse-duration.h: Likewise.
5819         * lib/parse-duration.c: Likewise.
5820         * lib/poll.c: Likewise.
5821         * lib/select.c: Likewise.
5822         * lib/trim.h: Likewise.
5823         * tests/test-usleep.c: Likewise.
5824         * lib/ldexpl.c: Insert space before function parameter list and before
5825         function argument list.
5826         * lib/logl.c: Likewise.
5827         * lib/sqrtl.c: Likewise.
5828         * lib/trim.c: Likewise.
5829         * lib/cosl.c: Use GNU style indentation. Insert space before function
5830         argument list.
5831         * lib/sinl.c: Likewise.
5832         * lib/tsearch.c: Insert space after 'for'.
5833         Reported by Jim Meyering.
5834
5835 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5836
5837         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5838         config header before grepping, as it's not present before
5839         autoreconf/configure are run.  Reported by Simon Josefsson.
5840
5841 2010-03-23  Bruno Haible  <bruno@clisp.org>
5842
5843         pt_chown: Make it work with automake < 1.11.
5844         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5845         Reported by Simon Josefsson.
5846
5847 2010-03-23  Bruno Haible  <bruno@clisp.org>
5848
5849         pt_chown: Don't depend on GPLed modules.
5850         * lib/pt_chown.c: Don't include idpriv.h.
5851         (main): Don't drop privileges.
5852         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5853         Reported by Simon Josefsson.
5854
5855 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5856
5857         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5858         suggestions from karl@freefriends.org (Karl Berry).
5859
5860 2010-03-22  Eric Blake  <eblake@redhat.com>
5861
5862         gethostname: further tweaks
5863         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5864         are overriding gethostname.
5865         Suggested by Bruno Haible.
5866
5867 2010-03-21  Bruno Haible  <bruno@clisp.org>
5868
5869         Fix comments.
5870         * lib/forkpty.c (rpl_forkpty): Fix comment.
5871         * lib/openpty.c (rpl_openpty): Likewise.
5872         Reported by Eric Blake.
5873
5874 2010-03-22  Eric Blake  <eblake@redhat.com>
5875
5876         gethostname: fix build on mingw
5877         * lib/unistd.in.h (includes): Work around fact that mingw
5878         <winsock2.h> re-includes <unistd.h>, by avoiding any
5879         redeclarations if we are being included by <winsock2.h>.
5880         Reported by Matthias Bolte.
5881
5882 2010-03-21  Bruno Haible  <bruno@clisp.org>
5883
5884         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5885         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5886         modifications.
5887         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5888         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5889         provide the replacement.
5890         * modules/forkpty (Depends-on): Add openpty, login_tty.
5891         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5892         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5893         * doc/glibc-functions/forkpty.texi: More supported platforms.
5894         * config/srclist.txt: Add forkpty.c (commented).
5895
5896 2010-03-21  Bruno Haible  <bruno@clisp.org>
5897
5898         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5899         (Makefile.am): Verify that PTY_LIB is defined.
5900
5901         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5902
5903 2010-03-21  Bruno Haible  <bruno@clisp.org>
5904
5905         Tests for module 'login_tty'.
5906         * modules/login_tty-tests: New file.
5907         * tests/test-login_tty.c: New file.
5908
5909         New module 'login_tty'.
5910         * lib/login_tty.c: New file.
5911         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5912         * modules/login_tty: New file.
5913         * doc/glibc-functions/login_tty.texi: Mention the new module.
5914
5915 2010-03-21  Bruno Haible  <bruno@clisp.org>
5916
5917         login_tty: Documentation.
5918         * doc/glibc-functions/login_tty.texi: New file.
5919         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5920
5921 2010-03-21  Bruno Haible  <bruno@clisp.org>
5922
5923         pty: Consistent macro naming.
5924         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5925         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5926         * modules/pty (configure.ac): Update.
5927
5928 2010-03-21  Bruno Haible  <bruno@clisp.org>
5929
5930         Tests for openpty: Make stricter.
5931         * tests/test-openpty.c (main): Add test of canonical processing and
5932         erase.
5933         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5934
5935         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5936         * lib/openpty.c (openpty): New replacement function.
5937         * lib/pty.in.h: Include <termios.h>.
5938         (openpty): Update declaration. Add comments.
5939         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5940         is not declared, arrange to provide the replacement. Check for _getpty
5941         and posix_openpt.
5942         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5943         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5944         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5945         * modules/pty-tests (test_pty_c___LDADD): New variable.
5946         * doc/glibc-functions/openpty.texi: More supported platforms.
5947
5948 2010-03-21  Bruno Haible  <bruno@clisp.org>
5949
5950         setenv: Tweaks.
5951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5952         the test program.
5953         * doc/posix-functions/setenv.texi: Update platforms list.
5954
5955 2010-03-21  Bruno Haible  <bruno@clisp.org>
5956
5957         New module 'unlockpt'.
5958         * lib/unlockpt.c: New file, from glibc with modifications.
5959         * m4/unlockpt.m4: New file.
5960         * modules/unlockpt: New file.
5961         * lib/stdlib.in.h (unlockpt): New declaration.
5962         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5963         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5964         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5965         HAVE_UNLOCKPT.
5966         * doc/posix-functions/unlockpt.texi: Mention the new module.
5967         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5968         * config/srclist.txt: Add unlockpt.c (commented).
5969
5970 2010-03-21  Jim Meyering  <meyering@redhat.com>
5971
5972         maint.mk: prohibit inclusion of "intprops.h" without use
5973         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5974
5975 2010-03-21  Bruno Haible  <bruno@clisp.org>
5976
5977         New module 'grantpt'.
5978         * lib/grantpt.c: New file, from glibc with modifications.
5979         * m4/grantpt.m4: New file.
5980         * modules/grantpt: New file.
5981         * lib/stdlib.in.h (grantpt): New declaration.
5982         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5983         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5984         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5985         HAVE_GRANTPT.
5986         * doc/posix-functions/grantpt.texi: Mention the new module.
5987         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5988         * config/srclist.txt: Add grantpt.c (commented).
5989
5990 2010-03-21  Bruno Haible  <bruno@clisp.org>
5991
5992         New module 'pt_chown'.
5993         * lib/pt_chown.c: New file, from glibc with modifications.
5994         * lib/pty-private.h: New file, from glibc with modifications.
5995         * modules/pt_chown: New file.
5996         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5997
5998 2010-03-21  Bruno Haible  <bruno@clisp.org>
5999
6000         Tests for module 'ptsname'.
6001         * modules/ptsname-tests: New file.
6002         * tests/test-ptsname.c: New file.
6003
6004         New module 'ptsname'.
6005         * lib/ptsname.c: New file, from glibc with modifications.
6006         * m4/ptsname.m4: New file.
6007         * modules/ptsname: New file.
6008         * lib/stdlib.in.h (ptsname): New declaration.
6009         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6010         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6011         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6012         HAVE_PTSNAME.
6013         * doc/posix-functions/ptsname.texi: Mention the new module.
6014         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6015         * config/srclist.txt: Add ptsname.c (commented).
6016
6017 2010-03-21  Bruno Haible  <bruno@clisp.org>
6018
6019         Tests for module 'ttyname_r'.
6020         * modules/ttyname_r-tests: New file.
6021         * tests/test-ttyname_r.c: New file.
6022
6023         New module 'ttyname_r'.
6024         * lib/ttyname_r.c: New file.
6025         * m4/ttyname_r.m4: New file.
6026         * modules/ttyname_r: New file.
6027         * lib/unistd.in.h (ttyname_r): New declaration.
6028         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6029         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6030         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6031         HAVE_TTYNAME_R.
6032         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6033         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6034
6035 2010-03-20  Bruno Haible  <bruno@clisp.org>
6036
6037         signal: Undefine macro definitions in C++ mode.
6038         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6039         sigfillset): Undefine macro definitions from the system header in C++
6040         mode.
6041         Reported by John W. Eaton <jwe@gnu.org>.
6042
6043 2010-03-20  Bruno Haible  <bruno@clisp.org>
6044
6045         Ensure no #include statements inside extern "C" { ... }.
6046         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6047         contain #include statements.
6048         * lib/time.in.h: Likewise.
6049
6050 2010-03-20  Bruno Haible  <bruno@clisp.org>
6051
6052         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6053         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6054         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6055         Reported by John W. Eaton <jwe@gnu.org>.
6056
6057 2010-03-20  Bruno Haible  <bruno@clisp.org>
6058
6059         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6060         Reported by Jim Meyering.
6061
6062 2010-03-20  Bruno Haible  <bruno@clisp.org>
6063
6064         pipe: Set errno upon failure.
6065         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6066         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6067         errno value in error message.
6068
6069 2010-03-20  Bruno Haible  <bruno@clisp.org>
6070             Jim Meyering  <meyering@redhat.com>
6071
6072         lchown: Avoid "unused variable" warning.
6073         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6074
6075 2010-03-20  Bruno Haible  <bruno@clisp.org>
6076
6077         Work around unlink() bug on MacOS X 10.5.6.
6078         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6079         attempting to unlink a parent directory.
6080         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6081         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6082         activate for the replacement function.
6083         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6084
6085 2010-03-20  Bruno Haible  <bruno@clisp.org>
6086
6087         Fix link errors on Solaris 8.
6088         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6089         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6090
6091 2010-03-19  Jim Meyering  <meyering@redhat.com>
6092
6093         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6094         The _LIBC implementation of build_range_exp correctly honors the
6095         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6096         However, the non-_LIBC implementation would ignore that syntax-bit
6097         flag and return REG_ERANGE unconditionally.
6098         This change makes it honor that flag.
6099         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6100         Make two pointer parameters "const".
6101         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6102         (parse_bracket_exp): Update caller.
6103
6104         regex.m4: correct the reversed range endpoint ([b-a]) test
6105         * m4/regex.m4: When requiring that [b-a] evoke failure,
6106         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6107         test pass once again for x86-based systems.
6108
6109 2010-03-19  Bruno Haible  <bruno@clisp.org>
6110
6111         scandir: Fix link error on Solaris 8.
6112         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6113         macros.
6114
6115 2010-03-19  Bruno Haible  <bruno@clisp.org>
6116
6117         getusershell: Fix documentation.
6118         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6119         module.
6120         * doc/glibc-functions/setusershell.texi: Likewise.
6121
6122         getusershell: Provide declaration, missing on Solaris 9.
6123         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6124         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6125         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6126         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6128         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6129         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6130         HAVE_GETUSERSHELL.
6131         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6132
6133 2010-03-19  Bruno Haible  <bruno@clisp.org>
6134
6135         wctype: Provide iswblank function.
6136         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6137         exists and is fine.
6138         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6139         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6140         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6141         * doc/posix-functions/iswblank.texi: Update.
6142
6143 2010-03-19  Bruno Haible  <bruno@clisp.org>
6144
6145         Tests of module 'pty' in C++ mode.
6146         * modules/pty-tests: New file.
6147         * tests/test-pty-c++.cc: New file.
6148         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6149
6150 2010-03-19  Eric Blake  <eblake@redhat.com>
6151
6152         logb: fix documentation
6153         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6154         1.5 declaration bug.
6155
6156         forkpty, openpty: prefer glibc's const-safe prototype
6157         * lib/forkpty.c (rpl_forkpty): New file.
6158         * lib/openpty.c (rpl_openpty): Likewise.
6159         * modules/forkpty (Files): Distribute it.
6160         * modules/openpty (Files): Likewise.
6161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6162         check...
6163         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6164         replacement for for non-const BSD signature.
6165         * modules/pty (Makefile.am): Substitute witnesses.
6166         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6167         * tests/test-forkpty.c: Update signature check.
6168         * tests/test-openpty.c: Likewise.
6169         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6170         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6171
6172         forkpty, openpty: split functions into new modules
6173         * modules/pty (Makefile.am): Substitute new witnesses.
6174         (Libraries): Move library detection...
6175         * modules/forkpty: ...into new module.
6176         * modules/openpty: Another new module.
6177         * modules/pty-tests: Rename and split...
6178         * modules/forkpty-tests: ...to this...
6179         * modules/openpty-tests: ...and this.
6180         * tests/test-pty.c: Rename and split...
6181         * tests/test-forkpty.c: ...to this...
6182         * tests/test-openpty.c: ...and this.
6183         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6184         (gl_PTY): Split library searching...
6185         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6186         (gl_FORKPTY, gl_OPENPTY): New macros.
6187         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6188         * NEWS: Mention the split.
6189         * MODULES.html.sh (Misc): Document the modules.
6190         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6191         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6192
6193         pty: improve replacement header
6194         * lib/pty.in.h: New file.
6195         * modules/pty (Files): Ship it.
6196         (Makefile.am): Always build replacement.
6197         * m4/pty.m4: Rename...
6198         * m4/pty_h.m4: ...to this.
6199         (gl_PTY): Modernize setting of witness macros; update check of
6200         forkpty to take proper advantage of cache.
6201         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6202
6203         getopt: avoid compiler warning
6204         * lib/getopt.c (attribute_hidden): Remove unused macro.
6205
6206 2010-03-18  Bruno Haible  <bruno@clisp.org>
6207
6208         Fix link errors on Solaris 8.
6209         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6210         * modules/search-tests (test_search_c___LDADD): Likewise.
6211         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6212         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6213         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6214         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6215         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6216         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6217         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6218
6219 2010-03-18  Bruno Haible  <bruno@clisp.org>
6220
6221         Fix bug introduced on 2010-03-14.
6222         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6223         (gl_SPAWN_H): Require it.
6224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6225         Reported by Simon Josefsson.
6226
6227 2010-03-18  Bruno Haible  <bruno@clisp.org>
6228
6229         Fix typo introduced on 2009-12-31.
6230         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6231         posix_spawn_file_actions_adddup2.
6232
6233 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6234         and Eric Blake  <eblake@redhat.com>
6235
6236         test-vc-list-files-git: make more robust
6237         * tests/test-vc-list-files-git.sh: Unset problematic environment
6238         variables.  Chain commands together.
6239
6240 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6241
6242         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6243         `AC_CHECK_DECL' invocation.
6244
6245 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6246
6247         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6248         appears before executable statements. Suggested by Petr Sumbera
6249         <Petr.Sumbera@Sun.COM>.
6250
6251 2010-03-14  Bruno Haible  <bruno@clisp.org>
6252
6253         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6254         portability problems. Instead use a simpler test.
6255         (main): Check that invalid arguments are rejected only on Linux.
6256
6257 2010-03-14  Bruno Haible  <bruno@clisp.org>
6258
6259         Fix bug introduced on 2009-12-31.
6260         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6261         gl_PREREQ_SYS_H_WINSOCK2 always.
6262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6263         SYS_SOCKET_H variable.
6264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6265         Update comments.
6266         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6267         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6268         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6270         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6271
6272 2010-03-14  Bruno Haible  <bruno@clisp.org>
6273
6274         Fix values returned by sinl, cosl.
6275         * lib/trigl.h: Add specification comments.
6276         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6277         that combines the values from the precomputed table with the values of
6278         the Chebyshev polynomials.
6279
6280 2010-03-14  Bruno Haible  <bruno@clisp.org>
6281
6282         Fix compilation error when modules 'posix_spawn[p]' are not used.
6283         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6284         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6285
6286 2010-03-14  Bruno Haible  <bruno@clisp.org>
6287
6288         Fix compilation error on mingw when module 'time_r' is not used.
6289         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6290         is 1.
6291         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6292         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6293         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6295
6296 2010-03-14  Bruno Haible  <bruno@clisp.org>
6297
6298         Fix compilation error with Sun C.
6299         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6300         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6301         instead of GCC specific ULONG_LONG_MAX.
6302         * lib/xstrtoll.c: Likewise.
6303         * lib/xstrtoull.c: Likewise.
6304
6305 2010-03-13  Bruno Haible  <bruno@clisp.org>
6306
6307         Allow the user to disable C++ code and tests.
6308         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6309         (gl_PROG_ANSI_CXX): Require it.
6310
6311 2010-03-13  Bruno Haible  <bruno@clisp.org>
6312
6313         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6314         cases.
6315
6316 2010-03-13  Bruno Haible  <bruno@clisp.org>
6317
6318         Test that gnulib does not break the standard C++ headers.
6319         * tests/test-locale-c++2.cc: New file.
6320         * modules/locale-tests (Files): Add it.
6321         (Makefile.am): Compile it for test-locale-c++.
6322         * tests/test-math-c++2.cc: New file.
6323         * modules/math-tests (Files): Add it.
6324         (Makefile.am): Compile it for test-math-c++.
6325         * tests/test-signal-c++2.cc: New file.
6326         * modules/signal-tests (Files): Add it.
6327         (Makefile.am): Compile it for test-signal-c++.
6328         * tests/test-stdio-c++2.cc: New file.
6329         * modules/stdio-tests (Files): Add it.
6330         (Makefile.am): Compile it for test-stdio-c++.
6331         * tests/test-stdlib-c++2.cc: New file.
6332         * modules/stdlib-tests (Files): Add it.
6333         (Makefile.am): Compile it for test-stdlib-c++.
6334         * tests/test-string-c++2.cc: New file.
6335         * modules/string-tests (Files): Add it.
6336         (Makefile.am): Compile it for test-string-c++.
6337         * tests/test-time-c++2.cc: New file.
6338         * modules/time-tests (Files): Add it.
6339         (Makefile.am): Compile it for test-time-c++.
6340         Reported by John W. Eaton <jwe@gnu.org>.
6341
6342 2010-03-13  Bruno Haible  <bruno@clisp.org>
6343
6344         * gnulib-tool (func_usage): Clarify which options are available for
6345         --create-testdir and --create-megatestdir.
6346
6347 2010-03-13  Bruno Haible  <bruno@clisp.org>
6348
6349         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6350         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6351         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6352         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6353         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6354         when appropriate.
6355         Reported by Jim Meyering.
6356
6357 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6358
6359         * gnulib-tool (func_import): Explain origin of code.
6360
6361 2010-03-12  Bruno Haible  <bruno@clisp.org>
6362
6363         Fix problem with automake's definition of CXXLINK.
6364         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6365         Reported by Simon Josefsson and Ludovic Courtès.
6366
6367 2010-03-12  Bruno Haible  <bruno@clisp.org>
6368
6369         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6370         stable releases.
6371
6372 2010-03-11  Bruno Haible  <bruno@clisp.org>
6373
6374         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6375         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6376         whether the system provides one variant or multiple variants of the
6377         function.
6378         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6379         C++ compilers.
6380         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6381         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6382         Reported by Jim Meyering.
6383
6384 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6385
6386         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6387
6388 2010-03-08  Bruno Haible  <bruno@clisp.org>
6389
6390         gnulib-tool: Add support for --libtool in --create-testdir.
6391         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6392         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6393
6394 2010-03-08  Eric Blake  <eblake@redhat.com>
6395
6396         gnulib-tool.texi: mention possibility of git submodule
6397         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6398         submodules.
6399         * doc/.gitignore: Ignore another generated file.
6400
6401 2010-03-08  Karl Berry  <karl@gnu.org>
6402
6403         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6404         of committing gnulib files while skipping others.
6405
6406 2010-03-07  Bruno Haible  <bruno@clisp.org>
6407
6408         Tests of module 'wctype' in C++ mode.
6409         * tests/test-wctype-c++.cc: New file.
6410         * modules/wctype-tests (Files): Add it and tests/signature.h.
6411         (Depends-on): Add ansi-c++-opt.
6412         (Makefile.am): Arrange to compile and run test-wctype-c++.
6413
6414         Tests of module 'wchar' in C++ mode.
6415         * tests/test-wchar-c++.cc: New file.
6416         * modules/wchar-tests (Files): Add it and tests/signature.h.
6417         (Depends-on): Add ansi-c++-opt.
6418         (Makefile.am): Arrange to compile and run test-wchar-c++.
6419         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6420         gl_MODULE_INDICATOR.
6421
6422         Tests of module 'unistd' in C++ mode.
6423         * tests/test-unistd-c++.cc: New file.
6424         * modules/unistd-tests (Files): Add it and tests/signature.h.
6425         (Depends-on): Add ansi-c++-opt.
6426         (Makefile.am): Arrange to compile and run test-unistd-c++.
6427         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6428         gl_MODULE_INDICATOR.
6429
6430         Tests of module 'time' in C++ mode.
6431         * tests/test-time-c++.cc: New file.
6432         * modules/time-tests (Files): Add it and tests/signature.h.
6433         (Depends-on): Add ansi-c++-opt.
6434         (Makefile.am): Arrange to compile and run test-time-c++.
6435         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6436
6437         Tests of module 'sys_time' in C++ mode.
6438         * tests/test-sys_time-c++.cc: New file.
6439         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6440         (Depends-on): Add ansi-c++-opt.
6441         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6442         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6443         gl_MODULE_INDICATOR.
6444
6445         Tests of module 'sys_stat' in C++ mode.
6446         * tests/test-sys_stat-c++.cc: New file.
6447         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6448         (Depends-on): Add ansi-c++-opt.
6449         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6450         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6451         gl_MODULE_INDICATOR.
6452
6453         Tests of module 'sys_socket' in C++ mode.
6454         * tests/test-sys_socket-c++.cc: New file.
6455         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6456         (Depends-on): Add ansi-c++-opt.
6457         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6458         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6459         gl_MODULE_INDICATOR.
6460
6461         Tests of module 'sys_select' in C++ mode.
6462         * tests/test-sys_select-c++.cc: New file.
6463         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6464         (Depends-on): Add ansi-c++-opt.
6465         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6466         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6467         gl_MODULE_INDICATOR.
6468
6469         Tests of module 'sys_ioctl' in C++ mode.
6470         * tests/test-sys_ioctl-c++.cc: New file.
6471         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6472         (Depends-on): Add ansi-c++-opt.
6473         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6474         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6475         gl_MODULE_INDICATOR.
6476
6477         Tests of module 'string' in C++ mode.
6478         * tests/test-string-c++.cc: New file.
6479         * modules/string-tests (Files): Add it and tests/signature.h.
6480         (Depends-on): Add ansi-c++-opt.
6481         (Makefile.am): Arrange to compile and run test-string-c++.
6482         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6483         gl_MODULE_INDICATOR.
6484
6485         Tests of module 'stdlib' in C++ mode.
6486         * tests/test-stdlib-c++.cc: New file.
6487         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6488         (Depends-on): Add ansi-c++-opt.
6489         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6490         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6491         gl_MODULE_INDICATOR.
6492
6493         Tests of module 'stdio' in C++ mode.
6494         * tests/test-stdio-c++.cc: New file.
6495         * modules/stdio-tests (Files): Add it and tests/signature.h.
6496         (Depends-on): Add ansi-c++-opt.
6497         (Makefile.am): Arrange to compile and run test-stdio-c++.
6498         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6499         gl_MODULE_INDICATOR.
6500
6501         Tests of module 'spawn' in C++ mode.
6502         * tests/test-spawn-c++.cc: New file.
6503         * modules/spawn-tests (Files): Add it and tests/signature.h.
6504         (Depends-on): Add ansi-c++-opt.
6505         (Makefile.am): Arrange to compile and run test-spawn-c++.
6506         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6507         gl_MODULE_INDICATOR.
6508
6509         Tests of module 'signal' in C++ mode.
6510         * tests/test-signal-c++.cc: New file.
6511         * modules/signal-tests (Files): Add it and tests/signature.h.
6512         (Depends-on): Add ansi-c++-opt.
6513         (Makefile.am): Arrange to compile and run test-signal-c++.
6514         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6515         gl_MODULE_INDICATOR.
6516
6517         Tests of module 'search' in C++ mode.
6518         * tests/test-search-c++.cc: New file.
6519         * modules/search-tests (Files): Add it and tests/signature.h.
6520         (Depends-on): Add ansi-c++-opt.
6521         (Makefile.am): Arrange to compile and run test-search-c++.
6522         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6523         gl_MODULE_INDICATOR.
6524
6525         Tests of module 'math' in C++ mode.
6526         * tests/test-math-c++.cc: New file.
6527         * modules/math-tests (Files): Add it and tests/signature.h.
6528         (Depends-on): Add ansi-c++-opt.
6529         (Makefile.am): Arrange to compile and run test-math-c++.
6530         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6531
6532         Tests of module 'locale' in C++ mode.
6533         * tests/test-locale-c++.cc: New file.
6534         * modules/locale-tests (Files): Add it and tests/signature.h.
6535         (Depends-on): Add ansi-c++-opt.
6536         (Makefile.am): Arrange to compile and run test-locale-c++.
6537         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6538         gl_MODULE_INDICATOR.
6539
6540         Tests of module 'langinfo' in C++ mode.
6541         * tests/test-langinfo-c++.cc: New file.
6542         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6543         (Depends-on): Add ansi-c++-opt.
6544         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6545         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6546         gl_MODULE_INDICATOR.
6547
6548         Tests of module 'iconv-h' in C++ mode.
6549         * tests/test-iconv-h-c++.cc: New file.
6550         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6551         (Depends-on): Add ansi-c++-opt.
6552         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6553
6554         Tests of module 'glob' in C++ mode.
6555         * tests/test-glob-c++.cc: New file.
6556         * modules/glob-tests (Files): Add it.
6557         (Depends-on): Add ansi-c++-opt.
6558         (Makefile.am): Arrange to compile and run test-glob-c++.
6559
6560         Tests of module 'fcntl-h' in C++ mode.
6561         * tests/test-fcntl-h-c++.cc: New file.
6562         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6563         (Depends-on): Add ansi-c++-opt.
6564         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6565         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6566         gl_MODULE_INDICATOR.
6567
6568         Tests of module 'dirent' in C++ mode.
6569         * tests/test-dirent-c++.cc: New file.
6570         * modules/dirent-tests (Files): Add it and tests/signature.h.
6571         (Depends-on): Add ansi-c++-opt.
6572         (Makefile.am): Arrange to compile and run test-dirent-c++.
6573         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6574         gl_MODULE_INDICATOR.
6575
6576         New module 'ansi-c++-opt'.
6577         * modules/ansi-c++-opt: New file.
6578         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6579
6580         Document C++ namespace mode.
6581         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6582
6583         wctype: Avoid #define replacements in C++ mode.
6584         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6585         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6586         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6587         In C++, define a namespaced alias symbol.
6588         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6589         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6590         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6591         rule.
6592
6593         wchar: Avoid #define replacements in C++ mode.
6594         * lib/wchar.in.h: Include c++defs.h.
6595         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6596         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6597         symbol.
6598         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6599         * modules/wchar (Depends-on): Add c++defs.
6600         (Makefile.am): Update wchar.h rule.
6601
6602         unistd: Avoid #define replacements in C++ mode.
6603         * lib/unistd.in.h: Include c++defs.h.
6604         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6605         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6606         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6607         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6608         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6609         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6610         symbol.
6611         (environ): Update.
6612         * modules/unistd (Depends-on): Add c++defs.
6613         (Makefile.am): Update unistd.h rule.
6614
6615         time: Avoid #define replacements in C++ mode.
6616         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6617         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6618         define a namespaced alias symbol.
6619         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6620         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6621         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6622         * modules/time (Depends-on): Add c++defs, warn-on-use.
6623         (Makefile.am): Update time.h rule.
6624         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6625         * modules/nanosleep (configure.ac): Likewise.
6626         * modules/strptime (configure.ac): Likewise.
6627         * modules/timegm (configure.ac): Likewise.
6628
6629         sys_time: Avoid #define replacements in C++ mode.
6630         * lib/sys_time.in.h: Include c++defs.h.
6631         (gettimeofday): In C++, define a namespaced alias symbol.
6632         * modules/sys_time (Depends-on): Add c++defs.
6633         (Makefile.am): Update sys/time.h rule.
6634
6635         sys_stat: Avoid #define replacements in C++ mode.
6636         * lib/sys_stat.in.h: Include c++defs.h.
6637         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6638         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6639         namespaced alias symbol.
6640         In C++, define a namespaced alias symbol.
6641         * modules/sys_stat (Depends-on): Add c++defs.
6642         (Makefile.am): Update sys/stat.h rule.
6643
6644         sys_socket: Avoid #define replacements in C++ mode.
6645         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6646         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6647         definitions also when the system has a <sys/socket.h>.
6648         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6649         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6650         In C++, define a namespaced alias symbol.
6651         * modules/sys_socket (Depends-on): Add c++defs.
6652         (Makefile.am): Update sys/socket.h rule.
6653
6654         sys_select: Avoid #define replacements in C++ mode.
6655         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6656         definitions also when the system has a <sys/select.h>.
6657         (select): In C++, define a namespaced alias symbol.
6658         * modules/sys_select (Depends-on): Add c++defs.
6659         (Makefile.am): Update sys/select.h rule.
6660
6661         sys_ioctl: Avoid #define replacements in C++ mode.
6662         * lib/sys_ioctl.in.h: Include c++defs.h.
6663         (ioctl): In C++, define a namespaced alias symbol.
6664         * modules/sys_ioctl (Depends-on): Add c++defs.
6665         (Makefile.am): Update sys/ioctl.h rule.
6666
6667         string: Avoid #define replacements in C++ mode.
6668         * lib/string.in.h: Include c++defs.h.
6669         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6670         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6671         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6672         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6673         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6674         * modules/string (Depends-on): Add c++defs.
6675         (Makefile.am): Update string.h rule.
6676
6677         stdlib: Avoid #define replacements in C++ mode.
6678         * lib/stdlib.in.h: Include c++defs.h.
6679         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6680         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6681         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6682         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6683         symbol.
6684         * modules/stdlib (Depends-on): Add c++defs.
6685         (Makefile.am): Update stdlib.h rule.
6686
6687         stdio: Avoid #define replacements in C++ mode.
6688         * lib/stdio.in.h: Include c++defs.h.
6689         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6690         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6691         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6692         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6693         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6694         namespaced alias symbol.
6695         * modules/stdio (Depends-on): Add c++defs.
6696         (Makefile.am): Update stdio.h rule.
6697
6698         spawn: Avoid #define replacements in C++ mode.
6699         * lib/spawn.in.h: Include c++defs.h.
6700         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6701         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6702         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6703         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6704         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6705         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6706         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6707         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6708         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6709         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6710         In C++, define a namespaced alias symbol.
6711         * modules/spawn (Depends-on): Add c++defs.
6712         (Makefile.am): Update spawn.h rule.
6713
6714         signal: Avoid #define replacements in C++ mode.
6715         * lib/signal.in.h: Include c++defs.h.
6716         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6717         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6718         namespaced alias symbol.
6719         * modules/signal (Depends-on): Add c++defs.
6720         (Makefile.am): Update signal.h rule.
6721
6722         search: Avoid #define replacements in C++ mode.
6723         * lib/search.in.h: Include c++defs.h.
6724         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6725         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6726         symbol.
6727         * modules/search (Depends-on): Add c++defs.
6728         (Makefile.am): Update search.h rule.
6729
6730         math: Avoid #define replacements in C++ mode.
6731         * lib/math.in.h: Include c++defs.h.
6732         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6733         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6734         trunc, truncl): In C++, define a namespaced alias symbol.
6735         * modules/math (Depends-on): Add c++defs.
6736         (Makefile.am): Update math.h rule.
6737
6738         locale: Avoid #define replacements in C++ mode.
6739         * lib/locale.in.h: Include c++defs.h.
6740         (duplocale): In C++, define a namespaced alias symbol.
6741         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6742         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6743         * modules/locale (Depends-on): Add c++defs.
6744         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6745
6746         langinfo: Avoid #define replacements in C++ mode.
6747         * lib/langinfo.in.h: Include c++defs.h.
6748         (nl_langinfo): In C++, define a namespaced alias symbol.
6749         * modules/langinfo (Depends-on): Add c++defs.
6750         (Makefile.am): Update langinfo.h rule.
6751
6752         iconv-h: Avoid #define replacements in C++ mode.
6753         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6754         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6755         symbol.
6756         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6757         whenever iconv is present.
6758         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6759         (Makefile.am): Update iconv.h rule.
6760
6761         glob: Avoid #define replacements in C++ mode.
6762         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6763         (_gl_glob_errfunc_fn): New type.
6764         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6765         symbol.
6766         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6767         (Makefile.am): Update glob.h rule.
6768
6769         fcntl-h: Avoid #define replacements in C++ mode.
6770         * lib/fcntl.in.h: Include c++defs.h.
6771         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6772         * modules/fcntl-h (Depends-on): Add c++defs.
6773         (Makefile.am): Update fcntl.h rule.
6774
6775         dirent: Avoid #define replacements in C++ mode.
6776         * lib/dirent.in.h: Include c++defs.h.
6777         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6778         namespaced alias symbol.
6779         (dirfd): Update declaration.
6780         * modules/dirent (Depends-on): Add c++defs.
6781         (Makefile.am): Update dirent.h rule.
6782
6783         ctype: Make it usable in C++ code.
6784         * lib/ctype.in.h: Include c++defs.h.
6785         (isblank): Declare as extern "C".
6786         * modules/ctype (Depends-on): Add c++defs.
6787         (Makefile.am): Update ctype.h rule.
6788
6789         New module 'c++defs'.
6790         * modules/c++defs: New file.
6791         * build-aux/c++defs.h: New file.
6792         Reported by John W. Eaton <jwe@gnu.org>.
6793
6794 2010-03-07  Bruno Haible  <bruno@clisp.org>
6795
6796         logb: Provide missing declaration for Cygwin.
6797         * lib/math.in.h (logb): New declaration.
6798         * m4/logb.m4: New file.
6799         * modules/logb (Files): Add m4/logb.m4.
6800         (Depends-on): Add math.
6801         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6802         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6804         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6805         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6806
6807 2010-03-07  Bruno Haible  <bruno@clisp.org>
6808
6809         Fix test-cond link error.
6810         * tests/test-cond.c: Include <stdio.h>.
6811
6812 2010-03-07  Bruno Haible  <bruno@clisp.org>
6813
6814         Fix test-dirent-safer link error.
6815         * modules/dirent-safer-tests (Makefile.am): Define
6816         test_dirent_safer_LDADD.
6817
6818 2010-03-07  Bruno Haible  <bruno@clisp.org>
6819
6820         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6821         among default module list.
6822
6823 2010-03-07  Bruno Haible  <bruno@clisp.org>
6824
6825         Fix link error on platforms with GNU libiconv.
6826         * modules/unistr/u8-strcoll-tests (Makefile): Define
6827         test_u8_strcoll_LDADD.
6828         * modules/unistr/u16-strcoll-tests (Makefile): Define
6829         test_u16_strcoll_LDADD.
6830         * modules/unistr/u32-strcoll-tests (Makefile): Define
6831         test_u32_strcoll_LDADD.
6832
6833 2010-03-07  Bruno Haible  <bruno@clisp.org>
6834
6835         Use POSIX declarations for socket functions.
6836         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6837         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6838         rpl_sendto): Change declaration to match POSIX.
6839         * lib/connect.c (rpl_connect): Likewise.
6840         * lib/accept.c (rpl_accept): Likewise.
6841         * lib/bind.c (rpl_bind): Likewise.
6842         * lib/getpeername.c (rpl_getpeername): Likewise.
6843         * lib/getsockname.c (rpl_getsockname): Likewise.
6844         * lib/recv.c (rpl_recv): Likewise.
6845         * lib/send.c (rpl_send): Likewise.
6846         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6847         * lib/sendto.c (rpl_sendto): Likewise.
6848
6849 2010-03-06  Bruno Haible  <bruno@clisp.org>
6850
6851         Clarify access, euidaccess, faccessat.
6852         * doc/posix-functions/faccessat.texi: Mention security problem under
6853         "Other problems", not "Portability problems".
6854         * doc/posix-functions/access.texi: Likewise. Mention a related security
6855         problem.
6856         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6857         * lib/euidaccess.c: Add comments about platforms.
6858         * lib/unistd.in.h (access, euidaccess): Add warnings.
6859
6860 2010-03-07  Bruno Haible  <bruno@clisp.org>
6861
6862         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6863         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6864         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6865         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6866         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6867         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6868         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6869         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6870         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6871         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6872         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6873         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6874         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6875         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6876         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6877         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6878         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6879         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6880         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6881         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6882         Likewise.
6883         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6884         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6885         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6886         Likewise.
6887         * tests/test-spawn.c (main): Make it work when
6888         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6889
6890 2010-03-07  Bruno Haible  <bruno@clisp.org>
6891
6892         Fix incorrect Makefile.am generation in German locale.
6893         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6894         Execute sed command with character range in C locale.
6895
6896 2010-03-06  Bruno Haible  <bruno@clisp.org>
6897
6898         Tests for module 'iconv-h'.
6899         * modules/iconv-h-tests: New file.
6900         * tests/test-iconv-h.c: New file.
6901
6902         New module 'iconv-h'.
6903         * modules/iconv-h: New file.
6904         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6905         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6906         (configure.ac): Remove gl_ICONV_H.
6907         (Makefile.am): Remove rule for iconv.h.
6908
6909 2010-03-06  Bruno Haible  <bruno@clisp.org>
6910
6911         More consistent naming of *.m4 files.
6912         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6913         * modules/wctype (Files): Update.
6914
6915         More consistent naming of *.m4 files.
6916         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6917         * modules/wchar (Files): Update.
6918
6919 2010-03-06  Jim Meyering  <meyering@redhat.com>
6920
6921         euidaccess: relax license to LGPLv2+
6922         * modules/euidaccess (License): Relax to LGPLv2+.
6923
6924 2010-03-06  Bruno Haible  <bruno@clisp.org>
6925
6926         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6927         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6928         (Makefile.am): Augment lib_SOURCES instead.
6929
6930 2010-03-04  Jim Meyering  <meyering@redhat.com>
6931
6932         utime: remove obsolete module
6933         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6934         unnecessary for years, and has been marked as obsolete for 10 months.
6935         * modules/utime: Remove file.
6936         * lib/utime.c: Remove file.
6937         * m4/utime.m4: Remove file.
6938         * m4/utimes-null.m4: Remove file.
6939         * doc/posix-functions/utime.texi (utime): Remove reference to
6940         the module.  Move the sole "fixed by gnulib" item into the
6941         "problems not fixed by Gnulib" list.
6942         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6943
6944 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6945
6946         * modules/exit (License): Relax license to LGPLv2+.
6947         (Status): Mark as obsolete.
6948         * NEWS: Mention deprecated 'exit' module.
6949         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6950         of now obsolete 'exit'.
6951
6952 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6953
6954         fts-lgpl: remove unused module
6955         * modules/fts-lgpl: Remove.
6956         * MODULES.html.sh (func_all_modules): Adjust.
6957         * check-module (find_included_lib_files): Adjust.
6958         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6959
6960 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6961
6962         copy-acl: enhance Solaris ACL error handling
6963         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6964         * lib/set-mode-acl.c (qset_acl): Likewise.
6965
6966 2010-03-02  Bruno Haible  <bruno@clisp.org>
6967
6968         spawn: Don't override the system defined values on FreeBSD 8.
6969         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6970         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6971         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6972         if HAVE_POSIX_SPAWN is 1.
6973         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6974
6975 2010-03-01  Bruno Haible  <bruno@clisp.org>
6976
6977         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6978         regarding Automake.
6979
6980 2010-02-25  Bruno Haible  <bruno@clisp.org>
6981
6982         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6983         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6984         setting, not afterwards.
6985         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6986
6987 2010-02-24  Eric Blake  <eblake@redhat.com>
6988
6989         bootstrap, git-version-gen: use timestamp
6990         * build-aux/git-version-gen (scriptversion): Force UTC.
6991         * build-aux/bootstrap (scriptversion): New variable.
6992
6993         bootstrap: allow older git
6994         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6995         older than 1.6.4.  Requested by the libvirt project.
6996
6997 2010-02-23  Eric Blake  <eblake@redhat.com>
6998
6999         warn-on-use: work with old autoconf
7000         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7001         AS_VAR semantics of autoconf 2.60.
7002         Reported by Bruno Haible.
7003
7004         bootstrap: improve some comments
7005         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7006         clarification comments.
7007
7008         gettimeofday: provide correct function
7009         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7010         when replacement is declared, otherwise provide gettimeofday.
7011         Reported by Michael Goffioul.
7012
7013 2010-02-23  Jim Meyering  <meyering@redhat.com>
7014
7015         lib-ignore: relax license to "unlimited", not LGPLv2+
7016         * modules/lib-ignore (License): Relax to "unlimited".
7017
7018 2010-02-23  Jim Meyering  <meyering@redhat.com>
7019
7020         lib-ignore: relax license to LGPLv2+
7021         * modules/lib-ignore (License): Relax to LGPLv2+.
7022
7023 2010-02-22  Eric Blake  <eblake@redhat.com>
7024
7025         lseek: avoid bash 3.2 broken pipe bug
7026         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7027         warning from bash 3.2.
7028         Reported by Ben Pfaff, with analysis from Bruno Haible.
7029
7030         bootstrap: support non-FSF copyright holder
7031         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7032         bootstrap.conf override of COPYRIGHT_HOLDER.
7033         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7034
7035         bootstrap: interoperate with gettext 0.14.1
7036         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7037
7038         bootstrap: allow for alternate submodule location
7039         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7040         hardcoding submodule location.
7041         (gnulib_mk): Allow direct use of Makefile.am.
7042
7043         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7044         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7045         rather than reconfiguring where the submodule points.
7046
7047         gettimeofday: restore support for platforms that lack function
7048         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7049         replacement if function is missing.
7050         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7051         * modules/sys_time (Makefile.am): Substitute it.
7052         * lib/sys_time.in.h (gettimeofday): Check it.
7053         Reported by Michael Goffioul.
7054
7055 2010-02-21  Bruno Haible  <bruno@clisp.org>
7056
7057         * lib/stdio.in.h (obstack_printf): Fix typo.
7058
7059 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7060
7061         vc-list-files: use bzr ls's -R option
7062         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7063         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7064
7065 2010-02-21  Jim Meyering  <meyering@redhat.com>
7066
7067         init.sh: fix EXEEXT shims to work also for names like test-prog
7068         * tests/init.sh: Re-exec a better shell, when needed.
7069         If the current shell lacks support for posix $(...), an init.sh-using
7070         test will now try to find a shell that supports that.  If EXEEXT is
7071         nonempty, we also require support for hyphen-in-alias-name and shell
7072         substitutions like ${var#glob}.  Failure to find such a shell results
7073         in a skipped test.
7074
7075 2010-02-21  Bruno Haible  <bruno@clisp.org>
7076
7077         Really work around around "broken pipe" error message from bash 3.2.
7078         * gnulib-tool (func_reset_sigpipe): Remove function.
7079         (echo): In bash 3.2, define to a function that uses printf.
7080         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7081
7082 2010-02-20  Bruno Haible  <bruno@clisp.org>
7083
7084         Restore support for automake 1.9.6 with autoconf 2.61.
7085         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7086         Reported by James Youngman <jay@gnu.org>.
7087
7088 2010-02-20  Bruno Haible  <bruno@clisp.org>
7089
7090         Improve *printf warning condition.
7091         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7092         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7093         and the function is overridden due to SIGPIPE emulation.
7094
7095 2010-02-20  Bruno Haible  <bruno@clisp.org>
7096
7097         * lib/stdio.in.h: Tweak comments.
7098
7099 2010-02-19  Bruno Haible  <bruno@clisp.org>
7100
7101         Make it easier to find modules. New gnulib-tool option '--find'.
7102         * gnulib-tool: New option --find.
7103         (func_usage): Document it.
7104         (func_sanitize_modulelist): New function, extracted from
7105         func_all_modules.
7106         (func_all_modules): Invoke it.
7107         * doc/gnulib-tool.texi (Which modules?): New node.
7108
7109 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7110
7111         * lib/sys_select.in.h: Provide select replacement even if
7112         sys/select.h exists on a system, for Interix.
7113
7114 2010-02-18  Jim Meyering  <meyering@redhat.com>
7115
7116         init.sh: don't use $(...) just yet
7117         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7118         to accommodate e.g., Solaris' /bin/sh.
7119
7120 2010-02-17  Bruno Haible  <bruno@clisp.org>
7121
7122         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7123         Reported by Ludovic Courtès <ludo@gnu.org>.
7124
7125 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7126
7127         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7128         linking with -lintl.
7129
7130 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7131
7132         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7133         if not provided by the system's netdb.h.  Reported by
7134         ludo@gnu.org (Ludovic Courtès).
7135
7136 2010-02-15  Jim Meyering  <meyering@redhat.com>
7137
7138         init.sh: improve portability and efficiency
7139         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7140         "dummy" in a for loop.
7141         Use '!', not '^' to select the complement of a character set used
7142         in a "case" statement.
7143         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7144         Suggestions from Eric Blake.
7145
7146         init.sh: automatically accommodate programs with the .exe suffix
7147         Automatically arrange for an invocation of "prog" to execute the
7148         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7149         may use the simpler "prog", yet still work when built on a system
7150         that requires specifying the added suffix.
7151         Do this by constructing a function named "prog" that invokes
7152         "prog.exe" for each .exe file in selected directories.
7153         * tests/init.sh (find_exe_basenames_): New function.
7154         (create_exe_shim_functions_): New function.
7155         (path_prepend_): Use it.
7156
7157         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7158         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7159         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7160
7161 2010-02-14  Jim Meyering  <meyering@redhat.com>
7162
7163         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7164         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7165         (sc_prohibit_hash_pjw_without_use): New rule.
7166
7167         maint.mk: allow the default upload destination dir to be overridden
7168         * top/maint.mk (upload_dest_dir_): Define with a default that
7169         preserves the status quo.
7170         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7171         Reported by Peter Simons.
7172
7173         maint.mk: prohibit inclusion of "hash.h" without_use
7174         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7175
7176 2010-02-10  Jim Meyering  <meyering@redhat.com>
7177
7178         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7179         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7180
7181 2010-02-09  Eric Blake  <ebb9@byu.net>
7182         and Bruno Haible  <bruno@clisp.org>
7183
7184         obstack-printf-posix: ensure declaration
7185         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7186         extracted from gl_FUNC_OBSTACK_PRINTF.
7187         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7188         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7189         Likewise.
7190         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7191         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7192         0.
7193
7194 2010-02-08  Bruno Haible  <bruno@clisp.org>
7195
7196         gnulib-tool: Fix typo in 2010-02-07 commit.
7197         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7198         Reported by Eric Blake.
7199
7200 2010-02-07  Bruno Haible  <bruno@clisp.org>
7201
7202         gnulib-tool: Fix up caching patches.
7203         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7204         option --no-cache. Use associative arrays when supported by the shell.
7205         (sed_comments): New variable.
7206         (modcache): Renamed from do_cache.
7207         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7208         abbreviate unnecessarily.
7209         (have_associative): New variable.
7210         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7211         way also for ksh and zsh.
7212         (func_init_sed_convert_to_cache_statements): New function, extracted
7213         from func_cache_lookup_module. Add support for associative arrays.
7214         Don't set the c_MODULE_cached variable here. Ignore all lines before
7215         the first field header. Remove only the final newline, not all trailing
7216         newlines. Support empty fields correctly. Limit the use of 'eval' to
7217         assignments.
7218         (func_get_description, func_get_status, func_get_notice,
7219         func_get_applicability, func_get_filelist, func_get_dependencies,
7220         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7221         func_get_automake_snippet, func_get_include_directive,
7222         func_get_link_directive, func_get_license, func_get_maintainer):
7223         Update documentation. List the unoptimized code first. Add support for
7224         associative arrays. Limit the use of 'eval' to assignments.
7225         (func_get_applicability): Undo stylistic pessimisations.
7226         (func_get_automake_snippet, func_get_include_directive): Reduce code
7227         duplication.
7228         (func_modules_transitive_closure, func_modules_add_dummy,
7229         func_modules_notice, func_modules_to_filelist, func_add_file,
7230         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7231         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7232         func_create_testdir, func_create_megatestdir): Update documentation.
7233
7234 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7235
7236         * gnulib-tool (func_cache_lookup_module): Store the module name
7237         belonging to the cache variable; error out if two different
7238         module names map to the same cache variable name.
7239
7240 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7241
7242         gnulib-tool: Make caching optional.
7243         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7244         Update matching short versions of --no-changelog.
7245         (func_usage): Update.
7246         (sed_extract_cache_prog): Renamed from ...
7247         (sed_extract_prog): ... this; revert to old extraction script.
7248         (func_get_description, func_get_status)
7249         (func_get_notice, func_get_applicability, func_get_filelist)
7250         (func_get_dependencies, func_get_autoconf_early_snippet)
7251         (func_get_autoconf_snippet, func_get_automake_snippet)
7252         (func_get_include_directive, func_get_link_directive)
7253         (func_get_license, func_get_maintainer): If $do_cache is false,
7254         use old, non-caching extraction scripts.
7255         Suggestion by Bruno Haible.
7256
7257 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7258
7259         gnulib-tool: cache module metainformation.
7260         * gnulib-tool (sed_extract_prog): Match newline before each
7261         header, and rewrite header to a shell variable suffix.
7262         (func_cache_var, func_cache_lookup_module): New functions,
7263         to turn a module name into a cache variable prefix, and to
7264         look up and cache module metainformation.
7265         (func_get_description, func_get_status)
7266         (func_get_notice, func_get_applicability, func_get_filelist)
7267         (func_get_dependencies, func_get_autoconf_early_snippet)
7268         (func_get_autoconf_snippet, func_get_automake_snippet)
7269         (func_get_include_directive, func_get_link_directive)
7270         (func_get_license, func_get_maintainer): Use
7271         func_cache_lookup_module.
7272
7273 2010-02-07  Bruno Haible  <bruno@clisp.org>
7274
7275         fnctl: Fix missing dependency.
7276         * modules/fcntl (Depends-on): Add getdtablesize.
7277         Reported by John W. Eaton <jwe@gnu.org>.
7278
7279 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7280
7281         Argp: fix recognition of short alias options.
7282
7283         * lib/argp-parse.c (convert_options): Fix improper use of
7284         `|' between character values.
7285         * tests/test-argp.c (group1_option): New alias option
7286         --read (-r).
7287         (group1_parser): Special handling for 'r'.
7288         (test15): New test case.
7289         (test_fun): Add test15.
7290         * tests/test-argp-2.sh: Update expected --help and --usage
7291         outputs.
7292
7293 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7294
7295         * tests/test-argp.c: Fix indentation.
7296
7297 2010-02-04  Eric Blake  <ebb9@byu.net>
7298
7299         gettimeofday: expose type of second argument
7300         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7301         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7302         * tests/test-gettimeofday.c: Use it to silence warning.
7303         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7304         the issue.
7305
7306 2010-02-03  Jim Meyering  <meyering@redhat.com>
7307
7308         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7309         * lib/regcomp.c (TYPE_SIGNED): Define.
7310         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7311
7312         regcomp.c: avoid a new -Wshadow warning
7313         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7314
7315 2010-02-01  Jim Meyering  <meyering@redhat.com>
7316
7317         removing useless parentheses in cpp #define directives
7318         For motivation, see commit c0221df4, "define STREQ(a,b)
7319         consistently, removing useless parentheses"
7320         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7321         * lib/mountlist.c (MNT_IGNORE): Likewise.
7322         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7323
7324 2010-02-01  Eric Blake  <ebb9@byu.net>
7325
7326         sys_time: use link-warning
7327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7328         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7329         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7330         * modules/sys_time (Depends-on): Add warn-on-use.
7331         (Makefile.am): Always build replacement.
7332         (configure.ac): Update substitutions.
7333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7334         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7335         bother with SYS_TIME_H.
7336         * modules/gettimeofday (configure.ac): Declare indicator.
7337         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7338         in use.
7339
7340         closein-tests: silence compiler warning
7341         * tests/test-closein.c (main): Ignore fread result.
7342         * modules/closein-tests (Depends-on): Add ignore-value.
7343
7344         tests: silence warning about system return
7345         * tests/test-areadlink-with-size.c (main): Ignore system result.
7346         * tests/test-areadlink.c (main): Likewise.
7347         * tests/test-areadlinkat-with-size.c (main): Likewise.
7348         * tests/test-areadlinkat.c (main): Likewise.
7349         * tests/test-canonicalize-lgpl.c (main): Likewise.
7350         * tests/test-canonicalize.c (main): Likewise.
7351         * tests/test-chown.c (main): Likewise.
7352         * tests/test-fchownat.c (main): Likewise.
7353         * tests/test-fdutimensat.c (main): Likewise.
7354         * tests/test-fstatat.c (main): Likewise.
7355         * tests/test-futimens.c (main): Likewise.
7356         * tests/test-lchown.c (main): Likewise.
7357         * tests/test-link.c (main): Likewise.
7358         * tests/test-linkat.c (main): Likewise.
7359         * tests/test-lstat.c (main): Likewise.
7360         * tests/test-mkdir.c (main): Likewise.
7361         * tests/test-mkdirat.c (main): Likewise.
7362         * tests/test-mkfifo.c (main): Likewise.
7363         * tests/test-mkfifoat.c (main): Likewise.
7364         * tests/test-mknod.c (main): Likewise.
7365         * tests/test-readlink.c (main): Likewise.
7366         * tests/test-remove.c (main): Likewise.
7367         * tests/test-rename.c (main): Likewise.
7368         * tests/test-renameat.c (main): Likewise.
7369         * tests/test-rmdir.c (main): Likewise.
7370         * tests/test-symlink.c (main): Likewise.
7371         * tests/test-symlinkat.c (main): Likewise.
7372         * tests/test-unlink.c (main): Likewise.
7373         * tests/test-unlinkat.c (main): Likewise.
7374         * tests/test-utimens.c (main): Likewise.
7375         * tests/test-utimensat.c (main): Likewise.
7376         * modules/areadlink-tests (Depends-on): Add ignore-value.
7377         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7378         * modules/areadlinkat-tests (Depends-on): Likewise.
7379         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7380         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7381         * modules/canonicalize-tests (Depends-on): Likewise.
7382         * modules/chown-tests (Depends-on): Likewise.
7383         * modules/fdutimensat-tests (Depends-on): Likewise.
7384         * modules/futimens-tests (Depends-on): Likewise.
7385         * modules/lchown-tests (Depends-on): Likewise.
7386         * modules/link-tests (Depends-on): Likewise.
7387         * modules/linkat-tests (Depends-on): Likewise.
7388         * modules/lstat-tests (Depends-on): Likewise.
7389         * modules/mkdir-tests (Depends-on): Likewise.
7390         * modules/mkfifo-tests (Depends-on): Likewise.
7391         * modules/mkfifoat-tests (Depends-on): Likewise.
7392         * modules/mknod-tests (Depends-on): Likewise.
7393         * modules/openat-tests (Depends-on): Likewise.
7394         * modules/readlink-tests (Depends-on): Likewise.
7395         * modules/remove-tests (Depends-on): Likewise.
7396         * modules/rename-tests (Depends-on): Likewise.
7397         * modules/renameat-tests (Depends-on): Likewise.
7398         * modules/rmdir-tests (Depends-on): Likewise.
7399         * modules/symlink-tests (Depends-on): Likewise.
7400         * modules/symlinkat-tests (Depends-on): Likewise.
7401         * modules/unlink-tests (Depends-on): Likewise.
7402         * modules/utimens-tests (Depends-on): Likewise.
7403         * modules/utimensat-tests (Depends-on): Likewise.
7404
7405 2010-01-31  Bruno Haible  <bruno@clisp.org>
7406
7407         Perform the same test for many <math.h> functions.
7408         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7409         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7410         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7411         of gl_MATHFUNC.
7412         * modules/acos (configure.ac): Likewise.
7413         * modules/asin (configure.ac): Likewise.
7414         * modules/atan (configure.ac): Likewise.
7415         * modules/atan2 (configure.ac): Likewise.
7416         * modules/cbrt (configure.ac): Likewise.
7417         * modules/copysign (configure.ac): Likewise.
7418         * modules/cos (configure.ac): Likewise.
7419         * modules/cosh (configure.ac): Likewise.
7420         * modules/erf (configure.ac): Likewise.
7421         * modules/erfc (configure.ac): Likewise.
7422         * modules/exp (configure.ac): Likewise.
7423         * modules/fmod (configure.ac): Likewise.
7424         * modules/hypot (configure.ac): Likewise.
7425         * modules/j0 (configure.ac): Likewise.
7426         * modules/j1 (configure.ac): Likewise.
7427         * modules/jn (configure.ac): Likewise.
7428         * modules/lgamma (configure.ac): Likewise.
7429         * modules/log (configure.ac): Likewise.
7430         * modules/log10 (configure.ac): Likewise.
7431         * modules/log1p (configure.ac): Likewise.
7432         * modules/pow (configure.ac): Likewise.
7433         * modules/remainder (configure.ac): Likewise.
7434         * modules/sin (configure.ac): Likewise.
7435         * modules/sinh (configure.ac): Likewise.
7436         * modules/tan (configure.ac): Likewise.
7437         * modules/tanh (configure.ac): Likewise.
7438         * modules/y0 (configure.ac): Likewise.
7439         * modules/y1 (configure.ac): Likewise.
7440         * modules/yn (configure.ac): Likewise.
7441         Suggested by Paolo Bonzini.
7442
7443 2010-01-31  Bruno Haible  <bruno@clisp.org>
7444
7445         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7446
7447 2010-01-31  Bruno Haible  <bruno@clisp.org>
7448
7449         Work around getdelim() bug on FreeBSD 8.0.
7450         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7451         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7452         not work.
7453         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7454         is 1.
7455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7456         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7457         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7458         a non-zero size.
7459         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7460
7461 2010-01-31  Bruno Haible  <bruno@clisp.org>
7462
7463         Work around getline() bug on FreeBSD 8.0.
7464         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7465         and a non-zero size.
7466         * tests/test-getline.c (main): Likewise.
7467         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7468         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7469
7470 2010-01-28  Eric Blake  <ebb9@byu.net>
7471
7472         regex: fix build failure
7473         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7474         platforms.
7475
7476 2010-01-28  Jim Meyering  <meyering@redhat.com>
7477
7478         regex: do not ignore memory allocation failure
7479         * lib/regex_internal.c (create_cd_newstate): Detect
7480         re_node_set_init_copy failure.   Extracted from glibc commit
7481         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7482
7483         regex: sync more white-space changes from libc
7484         * lib/regex_internal.c: White-space only changes.
7485         * lib/regexec.c: Likewise.
7486
7487         regex: add many uses of __attribute_warn_unused_result__
7488         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7489         * lib/regexec.c: Likewise.
7490         Extracted from a messy glibc commit.
7491
7492         regcomp.c: spelling and merge-artifact from glibc
7493         * lib/regcomp.c: Merge remainder of glibc's
7494         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7495
7496         regcomp.c: sync white-space changes from glibc
7497         * lib/regcomp.c: Merge to accommodate white space
7498         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7499
7500         regcomp.c: do not ignore internal return values
7501         * lib/regcomp.c: Do not ignore internal return values.
7502         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7503         but without its white-space changes and spelling fixes.
7504
7505         regex_internal.h: define __attribute_warn_unused_result__
7506         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7507
7508         maint: add a syntax-check rule to check for vulnerable Makefile.in
7509         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7510
7511 2010-01-27  Jim Meyering  <meyering@redhat.com>
7512
7513         ncftpput-ftp: clean up spaces
7514         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7515         Remove trailing blanks.
7516
7517 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7518
7519         * build-aux/git-version-gen: Fix copyright statement.
7520         * build-aux/gnupload: Likewise.
7521         * tests/test-arcfour.c: Likewise.
7522         * tests/test-arctwo.c: Likewise.
7523         * tests/test-count-one-bits.c: Likewise.
7524         * tests/test-crc.c: Likewise.
7525         * tests/test-des.c: Likewise.
7526         * tests/test-gc-arcfour.c: Likewise.
7527         * tests/test-gc-arctwo.c: Likewise.
7528         * tests/test-gc-des.c: Likewise.
7529         * tests/test-gc-hmac-md5.c: Likewise.
7530         * tests/test-gc-hmac-sha1.c: Likewise.
7531         * tests/test-gc-md2.c: Likewise.
7532         * tests/test-gc-md4.c: Likewise.
7533         * tests/test-gc-md5.c: Likewise.
7534         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7535         * tests/test-gc-rijndael.c: Likewise.
7536         * tests/test-gc-sha1.c: Likewise.
7537         * tests/test-gc.c: Likewise.
7538         * tests/test-gethostname.c: Likewise.
7539         * tests/test-gettimeofday.c: Likewise.
7540         * tests/test-hash.c: Likewise.
7541         * tests/test-hmac-md5.c: Likewise.
7542         * tests/test-hmac-sha1.c: Likewise.
7543         * tests/test-md2.c: Likewise.
7544         * tests/test-md4.c: Likewise.
7545         * tests/test-md5.c: Likewise.
7546         * tests/test-memchr.c: Likewise.
7547         * tests/test-memchr2.c: Likewise.
7548         * tests/test-memcmp.c: Likewise.
7549         * tests/test-memmem.c: Likewise.
7550         * tests/test-memrchr.c: Likewise.
7551         * tests/test-rawmemchr.c: Likewise.
7552         * tests/test-read-file.c: Likewise.
7553         * tests/test-rijndael.c: Likewise.
7554         * tests/test-sockets.c: Likewise.
7555         * tests/test-strchrnul.c: Likewise.
7556         * tests/test-strstr.c: Likewise.
7557         * tests/test-strtod.c: Likewise.
7558         * build-aux/ncftpput-ftp: Likewise.
7559
7560 2010-01-26  Eric Blake  <ebb9@byu.net>
7561
7562         ignore-value: update recommended header name
7563         * modules/ignore-value (Include): Only use <> for headers that
7564         exist in glibc.
7565
7566 2010-01-26  Jim Meyering  <meyering@redhat.com>
7567
7568         test-userspec.c: avoid compiler warnings
7569         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7570         and "initialization discards qualifiers..." warnings.
7571         Put the first "uid" in its own scope, and make char* members "const".
7572
7573 2010-01-25  Bruno Haible  <bruno@clisp.org>
7574
7575         gnulib-tool: Make warning diagnostics consistent.
7576         * gnulib-tool (func_warning): New function.
7577         Use it everywhere where gnulib-tool produces output to stderr and it is
7578         not a fatal error.
7579
7580 2010-01-25  Bruno Haible  <bruno@clisp.org>
7581
7582         Fix test dependencies.
7583         * modules/xstrtol-tests (Depends-on): Add inttypes.
7584         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7585
7586 2010-01-25 Pádraig Brady <P@draigBrady.com>
7587
7588         syntax-check: detect incorrect boolean macro values in config.h
7589         * modules/maintainer-makefile (configure.ac): Parameterize the location
7590         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7591         The logic is from Eric Blake and the location indicated by Jim Meyering.
7592         Note the more natural CONFIG_HEADER name is prohibited by automake
7593         for backwards compatibility reasons.
7594         * top/maint.mk (sc_Wundef_boolean): New rule.
7595
7596 2010-01-25  Jim Meyering  <meyering@redhat.com>
7597
7598         bootstrap: detect MacOS 10.6's shasum, too
7599         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7600         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7601
7602 2010-01-23  Jim Meyering  <meyering@redhat.com>
7603
7604         xstrtoll: new module
7605         * modules/xstrtoll: New file.
7606         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7607         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7608         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7609         ./configure fails if you use this module and lack "long long".
7610         * modules/xstrtoll-tests: New module.
7611         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7612         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7613         new init.sh-based test framework.
7614
7615 2010-01-24  Bruno Haible  <bruno@clisp.org>
7616
7617         Tests for module 'yn'.
7618         * modules/yn-tests: New file.
7619         * tests/test-yn.c: New file.
7620
7621         Tests for module 'y1'.
7622         * modules/y1-tests: New file.
7623         * tests/test-y1.c: New file.
7624
7625         Tests for module 'y0'.
7626         * modules/y0-tests: New file.
7627         * tests/test-y0.c: New file.
7628
7629         Tests for module 'tanh'.
7630         * modules/tanh-tests: New file.
7631         * tests/test-tanh.c: New file.
7632
7633         Tests for module 'tan'.
7634         * modules/tan-tests: New file.
7635         * tests/test-tan.c: New file.
7636
7637         Tests for module 'sqrt'.
7638         * modules/sqrt-tests: New file.
7639         * tests/test-sqrt.c: New file.
7640
7641         Tests for module 'sinh'.
7642         * modules/sinh-tests: New file.
7643         * tests/test-sinh.c: New file.
7644
7645         Tests for module 'sin'.
7646         * modules/sin-tests: New file.
7647         * tests/test-sin.c: New file.
7648
7649         Tests for module 'rint'.
7650         * modules/rint-tests: New file.
7651         * tests/test-rint.c: New file.
7652
7653         Tests for module 'remainder'.
7654         * modules/remainder-tests: New file.
7655         * tests/test-remainder.c: New file.
7656
7657         Tests for module 'pow'.
7658         * modules/pow-tests: New file.
7659         * tests/test-pow.c: New file.
7660
7661         Tests for module 'nextafter'.
7662         * modules/nextafter-tests: New file.
7663         * tests/test-nextafter.c: New file.
7664
7665         Tests for module 'modf'.
7666         * modules/modf-tests: New file.
7667         * tests/test-modf.c: New file.
7668
7669         Tests for module 'logb'.
7670         * modules/logb-tests: New file.
7671         * tests/test-logb.c: New file.
7672
7673         Tests for module 'log1p'.
7674         * modules/log1p-tests: New file.
7675         * tests/test-log1p.c: New file.
7676
7677         Tests for module 'log10'.
7678         * modules/log10-tests: New file.
7679         * tests/test-log10.c: New file.
7680
7681         Tests for module 'log'.
7682         * modules/log-tests: New file.
7683         * tests/test-log.c: New file.
7684
7685         Tests for module 'lgamma'.
7686         * modules/lgamma-tests: New file.
7687         * tests/test-lgamma.c: New file.
7688
7689         Tests for module 'ldexp'.
7690         * modules/ldexp-tests: New file.
7691         * tests/test-ldexp.c: New file.
7692
7693         Tests for module 'jn'.
7694         * modules/jn-tests: New file.
7695         * tests/test-jn.c: New file.
7696
7697         Tests for module 'j1'.
7698         * modules/j1-tests: New file.
7699         * tests/test-j1.c: New file.
7700
7701         Tests for module 'j0'.
7702         * modules/j0-tests: New file.
7703         * tests/test-j0.c: New file.
7704
7705         Tests for module 'hypot'.
7706         * modules/hypot-tests: New file.
7707         * tests/test-hypot.c: New file.
7708
7709         Tests for module 'fmod'.
7710         * modules/fmod-tests: New file.
7711         * tests/test-fmod.c: New file.
7712
7713         Tests for module 'fabs'.
7714         * modules/fabs-tests: New file.
7715         * tests/test-fabs.c: New file.
7716
7717         Tests for module 'exp'.
7718         * modules/exp-tests: New file.
7719         * tests/test-exp.c: New file.
7720
7721         Tests for module 'erfc'.
7722         * modules/erfc-tests: New file.
7723         * tests/test-erfc.c: New file.
7724
7725         Tests for module 'erf'.
7726         * modules/erf-tests: New file.
7727         * tests/test-erf.c: New file.
7728
7729         Tests for module 'cosh'.
7730         * modules/cosh-tests: New file.
7731         * tests/test-cosh.c: New file.
7732
7733         Tests for module 'cos'.
7734         * modules/cos-tests: New file.
7735         * tests/test-cos.c: New file.
7736
7737         Tests for module 'copysign'.
7738         * modules/copysign-tests: New file.
7739         * tests/test-copysign.c: New file.
7740
7741         Tests for module 'cbrt'.
7742         * modules/cbrt-tests: New file.
7743         * tests/test-cbrt.c: New file.
7744
7745         Tests for module 'atan2'.
7746         * modules/atan2-tests: New file.
7747         * tests/test-atan2.c: New file.
7748
7749         Tests for module 'atan'.
7750         * modules/atan-tests: New file.
7751         * tests/test-atan.c: New file.
7752
7753         Tests for module 'asin'.
7754         * modules/asin-tests: New file.
7755         * tests/test-asin.c: New file.
7756
7757         Tests for module 'acos'.
7758         * modules/acos-tests: New file.
7759         * tests/test-acos.c: New file.
7760
7761 2010-01-24  Bruno Haible  <bruno@clisp.org>
7762
7763         Fix tests for common <math.h> functions.
7764         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7765         code snippet that references the function pointer, rather than merely
7766         calling the function. Substitute the FUNC_LIBM variable.
7767         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7768         * modules/acos (configure.ac): Likewise.
7769         * modules/asin (configure.ac): Likewise.
7770         * modules/atan (configure.ac): Likewise.
7771         * modules/atan2 (configure.ac): Likewise.
7772         * modules/cbrt (configure.ac): Likewise.
7773         * modules/copysign (configure.ac): Likewise.
7774         * modules/cos (configure.ac): Likewise.
7775         * modules/cosh (configure.ac): Likewise.
7776         * modules/erf (configure.ac): Likewise.
7777         * modules/erfc (configure.ac): Likewise.
7778         * modules/exp (configure.ac): Likewise.
7779         * modules/fabs (configure.ac): Likewise.
7780         * modules/fmod (configure.ac): Likewise.
7781         * modules/hypot (configure.ac): Likewise.
7782         * modules/j0 (configure.ac): Likewise.
7783         * modules/j1 (configure.ac): Likewise.
7784         * modules/jn (configure.ac): Likewise.
7785         * modules/ldexp (configure.ac): Likewise.
7786         * modules/lgamma (configure.ac): Likewise.
7787         * modules/log (configure.ac): Likewise.
7788         * modules/log10 (configure.ac): Likewise.
7789         * modules/log1p (configure.ac): Likewise.
7790         * modules/logb (configure.ac): Likewise.
7791         * modules/modf (configure.ac): Likewise.
7792         * modules/nextafter (configure.ac): Likewise.
7793         * modules/pow (configure.ac): Likewise.
7794         * modules/remainder (configure.ac): Likewise.
7795         * modules/rint (configure.ac): Likewise.
7796         * modules/sin (configure.ac): Likewise.
7797         * modules/sinh (configure.ac): Likewise.
7798         * modules/tan (configure.ac): Likewise.
7799         * modules/tanh (configure.ac): Likewise.
7800         * modules/y0 (configure.ac): Likewise.
7801         * modules/y1 (configure.ac): Likewise.
7802         * modules/yn (configure.ac): Likewise.
7803
7804 2010-01-24  Bruno Haible  <bruno@clisp.org>
7805
7806         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7807         * tests/test-acosl.c (x): New variable.
7808         (main): Store argument in x and fetch it from x.
7809         * tests/test-asinl.c (x): New variable.
7810         (main): Store argument in x and fetch it from x.
7811         * tests/test-atanl.c (x): New variable.
7812         (main): Store argument in x and fetch it from x.
7813         * tests/test-cosl.c (x): New variable.
7814         (main): Store argument in x and fetch it from x.
7815         * tests/test-expl.c (x): New variable.
7816         (main): Store argument in x and fetch it from x.
7817         * tests/test-logl.c (x): New variable.
7818         (main): Store argument in x and fetch it from x.
7819         * tests/test-sinl.c (x): New variable.
7820         (main): Store argument in x and fetch it from x.
7821         * tests/test-sqrtl.c (x): New variable.
7822         (main): Store argument in x and fetch it from x.
7823         * tests/test-tanl.c (x): New variable.
7824         (main): Store argument in x and fetch it from x.
7825
7826 2010-01-24  Bruno Haible  <bruno@clisp.org>
7827
7828         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7829         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7830         assignments to the initial TESTS_ENVIRONMENT.
7831         * doc/gnulib.texi (Unit test modules): Document it.
7832         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7833         TESTS_ENVIRONMENT.
7834         * modules/btowc-tests (Makefile.am): Likewise.
7835         * modules/c-stack-tests (Makefile.am): Likewise.
7836         * modules/c-strcase-tests (Makefile.am): Likewise.
7837         * modules/copy-file-tests (Makefile.am): Likewise.
7838         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7839         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7840         * modules/mbrtowc-tests (Makefile.am): Likewise.
7841         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7842         * modules/mbscasestr-tests (Makefile.am): Likewise.
7843         * modules/mbschr-tests (Makefile.am): Likewise.
7844         * modules/mbscspn-tests (Makefile.am): Likewise.
7845         * modules/mbsinit-tests (Makefile.am): Likewise.
7846         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7847         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7848         * modules/mbspbrk-tests (Makefile.am): Likewise.
7849         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7850         * modules/mbsrchr-tests (Makefile.am): Likewise.
7851         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7852         * modules/mbsspn-tests (Makefile.am): Likewise.
7853         * modules/mbsstr-tests (Makefile.am): Likewise.
7854         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7855         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7856         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7857         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7858         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7859         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7860         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7861         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7862         * modules/wcrtomb-tests (Makefile.am): Likewise.
7863         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7864         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7865         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7866         assignments from TESTS_ENVIRONMENT.
7867         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7868         augmentation.
7869         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7870         * modules/atexit-tests (Makefile.am): Likewise.
7871         * modules/binary-io-tests (Makefile.am): Likewise.
7872         * modules/closein-tests (Makefile.am): Likewise.
7873         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7874         * modules/exclude-tests (Makefile.am): Likewise.
7875         * modules/fflush-tests (Makefile.am): Likewise.
7876         * modules/fpending-tests (Makefile.am): Likewise.
7877         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7878         * modules/freadahead-tests (Makefile.am): Likewise.
7879         * modules/freadptr-tests (Makefile.am): Likewise.
7880         * modules/freadseek-tests (Makefile.am): Likewise.
7881         * modules/fseek-tests (Makefile.am): Likewise.
7882         * modules/fseeko-tests (Makefile.am): Likewise.
7883         * modules/ftell-tests (Makefile.am): Likewise.
7884         * modules/ftello-tests (Makefile.am): Likewise.
7885         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7886         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7887         * modules/lseek-tests (Makefile.am): Likewise.
7888         * modules/parse-duration-tests (Makefile.am): Likewise.
7889         * modules/perror-tests (Makefile.am): Likewise.
7890         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7891         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7892         * modules/pipe-tests (Makefile.am): Likewise.
7893         * modules/pread-tests (Makefile.am): Likewise.
7894         * modules/printf-posix-tests (Makefile.am): Likewise.
7895         * modules/select-tests (Makefile.am): Likewise.
7896         * modules/sigpipe-tests (Makefile.am): Likewise.
7897         * modules/tsearch-tests (Makefile.am): Likewise.
7898         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7899         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7900         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7901         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7902         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7903         * modules/version-etc-tests (Makefile.am): Likewise.
7904         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7905         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7906         * modules/xalloc-die-tests (Makefile.am): Likewise.
7907         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7908         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7909         * modules/xstrtol-tests (Makefile.am): Likewise.
7910         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7911         * modules/yesno-tests (Makefile.am): Likewise.
7912         Suggested by Jim Meyering.
7913
7914 2010-01-24  Bruno Haible  <bruno@clisp.org>
7915
7916         More documentation.
7917         * doc/gnulib.texi (Writing modules): New chapter.
7918         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7919         the new chapter.
7920
7921 2010-01-24  Jim Meyering  <meyering@redhat.com>
7922
7923         maint.mk: do not prepend "./" after filtering
7924         * top/maint.mk (_prepend_srcdir_prefix): New variable
7925         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7926         "./" when $(srcdir) is ".".
7927
7928         define STREQ(a,b) consistently, removing useless parentheses
7929         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7930         since the only risk is that "a" or "b" contains an unparenthesized
7931         comma, but if either did that, STREQ would have 3 or more arguments.
7932         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7933         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7934         * lib/hash-triple.c (STREQ): Likewise.
7935         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7936         * lib/getugroups.c (STREQ): Likewise.
7937
7938 2010-01-23  Jim Meyering  <meyering@redhat.com>
7939
7940         maint.mk: fix syntax-check in a non-srcdir build directory
7941         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7942         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7943
7944 2010-01-22  Jim Meyering  <meyering@redhat.com>
7945
7946         userspec: add unit tests
7947         * tests/test-userspec.c: New file.
7948         * modules/userspec-tests: Likewise.
7949
7950 2010-01-21  Jim Meyering  <meyering@redhat.com>
7951
7952         maint.mk: handle source file names containing "." robustly
7953         * top/maint.mk (_dot_escaped_srcdir): Define.
7954         (VC_LIST): Use it in LHS of sed substitution.
7955
7956 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7957
7958         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7959         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7960         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7961         from a non-srcdir build.
7962
7963 2010-01-20  Eric Blake  <ebb9@byu.net>
7964
7965         warn-on-use: use instead of link-warning
7966         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7967         * modules/unistd (Depends-on, Makefile.am): Likewise.
7968         * modules/arpa_inet (Depends-on): Replace link-warning with
7969         warn-on-use.
7970         (Makefile.am): Update rules accordingly.
7971         * modules/ctype (Depends-on, Makefile.am): Likewise.
7972         * modules/dirent (Depends-on, Makefile.am): Likewise.
7973         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7974         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7975         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7976         * modules/locale (Depends-on, Makefile.am): Likewise.
7977         * modules/math (Depends-on, Makefile.am): Likewise.
7978         * modules/search (Depends-on, Makefile.am): Likewise.
7979         * modules/signal (Depends-on, Makefile.am): Likewise.
7980         * modules/spawn (Depends-on, Makefile.am): Likewise.
7981         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7982         * modules/string (Depends-on, Makefile.am): Likewise.
7983         * modules/strings (Depends-on, Makefile.am): Likewise.
7984         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7985         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7986         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7987         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7988         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7989         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7990         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7991         * modules/wchar (Depends-on, Makefile.am): Likewise.
7992         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7993         should be poisoned.
7994         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7995         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7996         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7999         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8000         * m4/math_h.m4 (gl_MATH_H): Likewise.
8001         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8002         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8003         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8004         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8005         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8006         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8007         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8008         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8010         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8013         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8014         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8015         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8016         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8017         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8018         GL_LINK_WARNING.
8019         * lib/ctype.in.h: Likewise.
8020         * lib/dirent.in.h: Likewise.
8021         * lib/fcntl.in.h: Likewise.
8022         * lib/inttypes.in.h: Likewise.
8023         * lib/langinfo.in.h: Likewise.
8024         * lib/locale.in.h: Likewise.
8025         * lib/math.in.h: Likewise.
8026         * lib/search.in.h: Likewise.
8027         * lib/signal.in.h: Likewise.
8028         * lib/spawn.in.h: Likewise.
8029         * lib/stdio.in.h: Likewise.
8030         * lib/stdlib.in.h: Likewise.
8031         * lib/string.in.h: Likewise.
8032         * lib/strings.in.h: Likewise.
8033         * lib/sys_file.in.h: Likewise.
8034         * lib/sys_ioctl.in.h: Likewise.
8035         * lib/sys_select.in.h: Likewise.
8036         * lib/sys_socket.in.h: Likewise.
8037         * lib/sys_stat.in.h: Likewise.
8038         * lib/sys_times.in.h: Likewise.
8039         * lib/sys_utsname.in.h: Likewise.
8040         * lib/unistd.in.h: Likewise.
8041         * lib/wchar.in.h: Likewise.
8042
8043 2010-01-20  Bruno Haible  <bruno@clisp.org>
8044
8045         Avoid duplicate -lm.
8046         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8047         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8048         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8049         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8050         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8051         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8052         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8053         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8054         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8055         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8056         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8057         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8058         Reported by Paolo Bonzini.
8059
8060 2010-01-19  Bruno Haible  <bruno@clisp.org>
8061
8062         langinfo, nl_langinfo: Relicense under LGPLv2+.
8063         * modules/langinfo (License): Change to LGPLv2+.
8064         * modules/nl_langinfo (License): Likewise.
8065         Patch by David Lutterkort <lutter@redhat.com>.
8066
8067 2010-01-19  Bruno Haible  <bruno@clisp.org>
8068
8069         Avoid compilation error with cc on OSF/1 5.1.
8070         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8071         statement, not before.
8072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8073
8074 2010-01-18  Bruno Haible  <bruno@clisp.org>
8075
8076         Avoid a link error due to the __printf__ symbol.
8077         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8078         and 2.6.x.
8079         (__format__, __printf__): Remove definitions.
8080         * lib/argp-fmtstream.h: Likewise.
8081         * lib/argp.h: Likewise.
8082         * lib/error.h: Likewise.
8083         * lib/vasnprintf.h: Likewise.
8084         * lib/xprintf.h: Likewise.
8085         * lib/xvasprintf.h: Likewise.
8086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8087
8088 2010-01-18  Bruno Haible  <bruno@clisp.org>
8089
8090         Tests for module 'tanl'.
8091         * modules/tanl-tests: New file.
8092         * tests/test-tanl.c: New file.
8093
8094         Tests for module 'sqrtl'.
8095         * modules/sqrtl-tests: New file.
8096         * tests/test-sqrtl.c: New file.
8097
8098         Tests for module 'sinl'.
8099         * modules/sinl-tests: New file.
8100         * tests/test-sinl.c: New file.
8101
8102         Tests for module 'logl'.
8103         * modules/logl-tests: New file.
8104         * tests/test-logl.c: New file.
8105
8106         Tests for module 'expl'.
8107         * modules/expl-tests: New file.
8108         * tests/test-expl.c: New file.
8109
8110         Tests for module 'cosl'.
8111         * modules/cosl-tests: New file.
8112         * tests/test-cosl.c: New file.
8113
8114         Tests for module 'atanl'.
8115         * modules/atanl-tests: New file.
8116         * tests/test-atanl.c: New file.
8117
8118         Tests for module 'asinl'.
8119         * modules/asinl-tests: New file.
8120         * tests/test-asinl.c: New file.
8121
8122         Tests for module 'acosl'.
8123         * modules/acosl-tests: New file.
8124         * tests/test-acosl.c: New file.
8125
8126         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8127         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8128         tanl): Use the standard gnulib idiom.
8129         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8130         * lib/sinl.c: Likewise.
8131         * lib/tanl.c: Don't include trigl.c.
8132         (kernel_tanl): Make static.
8133         * lib/sincosl.c: Include trigl.h first.
8134         * lib/trigl.c: Likewise.
8135         * m4/acosl.m4: New file.
8136         * m4/asinl.m4: New file.
8137         * m4/atanl.m4: New file.
8138         * m4/cosl.m4: New file.
8139         * m4/expl.m4: New file.
8140         * m4/logl.m4: New file.
8141         * m4/sinl.m4: New file.
8142         * m4/sqrtl.m4: New file.
8143         * m4/tanl.m4: New file.
8144         * m4/mathl.m4: Remove file.
8145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8146         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8147         Don't initialize GNULIB_MATHL.
8148         * modules/acosl: New file.
8149         * modules/asinl: New file.
8150         * modules/atanl: New file.
8151         * modules/cosl: New file.
8152         * modules/expl: New file.
8153         * modules/logl: New file.
8154         * modules/sinl: New file.
8155         * modules/sqrtl: New file.
8156         * modules/tanl: New file.
8157         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8158         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8159         substitute GNULIB_MATHL.
8160         * modules/mathl: Rewritten.
8161         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8162         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8163         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8164         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8165         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8166         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8167         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8168         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8169         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8170
8171 2010-01-18  Bruno Haible  <bruno@clisp.org>
8172
8173         sqrt: Make gl_FUNC_SQRT requirable.
8174         * m4/sqrt.m4: New file.
8175         * modules/sqrt (Files): Add it.
8176         (configure.ac): Invoke gl_FUNC_SQRT.
8177
8178 2010-01-18  Bruno Haible  <bruno@clisp.org>
8179
8180         New modules for common <math.h> functions.
8181         * m4/mathfunc.m4: New file.
8182         * modules/acos: New file.
8183         * modules/asin: New file.
8184         * modules/atan: New file.
8185         * modules/atan2: New file.
8186         * modules/cbrt: New file.
8187         * modules/copysign: New file.
8188         * modules/cos: New file.
8189         * modules/cosh: New file.
8190         * modules/erf: New file.
8191         * modules/erfc: New file.
8192         * modules/exp: New file.
8193         * modules/fabs: New file.
8194         * modules/fmod: New file.
8195         * modules/hypot: New file.
8196         * modules/j0: New file.
8197         * modules/j1: New file.
8198         * modules/jn: New file.
8199         * modules/ldexp: New file.
8200         * modules/lgamma: New file.
8201         * modules/log: New file.
8202         * modules/log10: New file.
8203         * modules/log1p: New file.
8204         * modules/logb: New file.
8205         * modules/modf: New file.
8206         * modules/nextafter: New file.
8207         * modules/pow: New file.
8208         * modules/remainder: New file.
8209         * modules/rint: New file.
8210         * modules/sin: New file.
8211         * modules/sinh: New file.
8212         * modules/sqrt: New file.
8213         * modules/tan: New file.
8214         * modules/tanh: New file.
8215         * modules/y0: New file.
8216         * modules/y1: New file.
8217         * modules/yn: New file.
8218         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8219         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8220         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8221         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8222         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8223         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8224         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8225         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8226         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8227         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8228         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8229         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8230         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8231         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8232         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8233         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8234         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8235         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8236         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8237         * doc/posix-functions/log.texi: Mention the 'log' module.
8238         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8239         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8240         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8241         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8242         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8243         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8244         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8245         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8246         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8247         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8248         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8249         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8250         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8251         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8252         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8253         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8254
8255 2010-01-18  Jim Meyering  <meyering@redhat.com>
8256
8257         ignore-value: relax license to LGPLv2+
8258         * modules/ignore-value (License): Relax to LGPLv2+.
8259
8260         getdate: don't leak when TZ contains two or more '"'s
8261         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8262         double quote in TZ after the first one.
8263
8264         readtokens: do not leak internal token_lengths buffer
8265         * lib/readtokens.c (readtokens): Free the local, lengths,
8266         when the supplied "token_lengths" parameter is NULL.
8267
8268 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8269
8270         Fix a couple of missing LIBTHREAD link failures on AIX.
8271         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8272         $(LIBTHREAD).
8273         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8274
8275         Link test-poll against INET_PTON_LIB.
8276         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8277         for inet_pton on Solaris 10.
8278
8279 2010-01-17  Bruno Haible  <bruno@clisp.org>
8280
8281         unistdio/*-sprintf: Fix typo in module description.
8282         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8283         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8284         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8285         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8286         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8287         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8288         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8290
8291 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8292
8293         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8294         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8295         variables in shell case patterns, for AIX and HP-UX ksh.
8296
8297         Split large sed scripts, for HP-UX sed.
8298         * modules/stdio: Split sed scripts around 50 sed commands,
8299         to avoid HP-UX limit of 99 commands, in the near future.
8300         * modules/string: Likewise.
8301         * modules/unistd: Likewise.
8302
8303         gnulib-tool: avoid writing in the current directory.
8304         * gnulib-tool (func_emit_lib_Makefile_am)
8305         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8306         not in the current directory, so concurrent gnulib-tool
8307         instances do not interfere.
8308
8309 2010-01-16  Jim Meyering  <meyering@redhat.com>
8310
8311         doc: update users.txt
8312         * users.txt: Add grep.
8313         (diffutils, gzip): Update URLs.
8314
8315 2010-01-12  Bruno Haible  <bruno@clisp.org>
8316
8317         posix_spawn: Avoid test failure on Cygwin.
8318         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8319         characters.
8320         Reported by Simon Josefsson.
8321
8322 2010-01-12  Bruno Haible  <bruno@clisp.org>
8323
8324         * tests/test-cond.c (main): When skipping the test, show the reason.
8325
8326 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8327
8328         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8329
8330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8331
8332         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8333         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8334
8335 2010-01-12  Eric Blake  <ebb9@byu.net>
8336
8337         build: guarantee AS_VAR_IF
8338         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8339         (gl_AS_VAR_IF): Move...
8340         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8341         Reported by Simon Josefsson.
8342
8343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8344
8345         * lib/stdio.in.h: Fix typo.
8346
8347 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8348
8349         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8350         libgpg-error.
8351
8352 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8353
8354         * tests/test-xalloc-die.sh: Use $EXEEXT.
8355
8356 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8357             Bruno Haible  <bruno@clisp.org>
8358
8359         getlogin, getlogin_r: Avoid test failure.
8360         * tests/test-getlogin.c: Include <stdio.h>.
8361         (main): Skip the test when the function fails because stdin is not a
8362         tty.
8363         * tests/test-getlogin_r.c: Include <stdio.h>.
8364         (main): Skip the test when the function fails because stdin is not a
8365         tty.
8366
8367 2010-01-11  Eric Blake  <ebb9@byu.net>
8368
8369         tests: avoid more large file warnings
8370         * tests/test-fflush.c: Avoid warning about ftell use.
8371         * tests/test-fseek.c: Avoid warning about fseek use.
8372
8373 2010-01-10  Bruno Haible  <bruno@clisp.org>
8374
8375         nproc: Work better on Linux when /proc and /sys are not mounted.
8376         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8377         as lower bound when, on glibc/Linux systems,
8378         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8379         Suggested by Pádraig Brady <P@draigbrady.com>.
8380         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8381
8382         nproc: Refactor.
8383         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8384         extracted from num_processors.
8385         (num_processors): Call it.
8386
8387 2010-01-11  Jim Meyering  <meyering@redhat.com>
8388
8389         utimecmp: avoid new warning from upcoming gcc-4.5.0
8390         * lib/utimecmp.c (BILLION): Define using #define rather than an
8391         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8392
8393 2010-01-11  Eric Blake  <ebb9@byu.net>
8394
8395         math: add portability warnings for classification macros
8396         * modules/math (Depends-on): Add warn-on-use.
8397         (Makefile.am): Provide new substitutions.
8398         * m4/math_h.m4 (gl_MATH_H): Require inline.
8399         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8400         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8401         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8402         implement warnings.
8403
8404         unistd: warn on use of environ without module
8405         * modules/unistd (Depends-on): Add warn-on-use.
8406         (Makefile.am): Provide new substitutions.
8407         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8408         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8409
8410         stdio: warn on suspicious uses
8411         * modules/stdio (Depends-on): Add warn-on-use.
8412         (Makefile.am): Provide new substitutions.
8413         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8414         fseeko.
8415         * lib/stdio.in.h (gets): Always warn on use.
8416         (fseek, ftell): Adjust when warnings are issued, and honor
8417         _GL_NO_LARGE_FILES as a way to silence the warning.
8418         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8419         any warning about large file offsets.
8420         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8421         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8422         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8423         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8424         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8425         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8426         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8427         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8428
8429         warn-on-use: new module
8430         * modules/warn-on-use: New file.
8431         * build-aux/warn-on-use.h: Likewise.
8432         * m4/warn-on-use.m4: Likewise.
8433         * MODULES.html.sh (Support for building): Mention it.
8434
8435 2010-01-10  Bruno Haible  <bruno@clisp.org>
8436
8437         Tests for module 'unistr/u32-strdup'.
8438         * modules/unistr/u32-strdup-tests: New file.
8439         * tests/unistr/test-u32-strdup.c: New file.
8440
8441         Tests for module 'unistr/u16-strdup'.
8442         * modules/unistr/u16-strdup-tests: New file.
8443         * tests/unistr/test-u16-strdup.c: New file.
8444
8445         Tests for module 'unistr/u8-strdup'.
8446         * modules/unistr/u8-strdup-tests: New file.
8447         * tests/unistr/test-u8-strdup.c: New file.
8448         * tests/unistr/test-strdup.h: New file.
8449
8450         Tests for module 'unistr/u32-strncmp'.
8451         * modules/unistr/u32-strncmp-tests: New file.
8452         * tests/unistr/test-u32-strncmp.c: New file.
8453
8454         Tests for module 'unistr/u16-strncmp'.
8455         * modules/unistr/u16-strncmp-tests: New file.
8456         * tests/unistr/test-u16-strncmp.c: New file.
8457
8458         Tests for module 'unistr/u8-strncmp'.
8459         * modules/unistr/u8-strncmp-tests: New file.
8460         * tests/unistr/test-u8-strncmp.c: New file.
8461         * tests/unistr/test-strncmp.h: New file.
8462
8463         Tests for module 'unistr/u32-strcoll'.
8464         * modules/unistr/u32-strcoll-tests: New file.
8465         * tests/unistr/test-u32-strcoll.c: New file.
8466
8467         Tests for module 'unistr/u16-strcoll'.
8468         * modules/unistr/u16-strcoll-tests: New file.
8469         * tests/unistr/test-u16-strcoll.c: New file.
8470
8471         Tests for module 'unistr/u8-strcoll'.
8472         * modules/unistr/u8-strcoll-tests: New file.
8473         * tests/unistr/test-u8-strcoll.c: New file.
8474
8475         Tests for module 'unistr/u32-strcmp'.
8476         * modules/unistr/u32-strcmp-tests: New file.
8477         * tests/unistr/test-u32-strcmp.c: New file.
8478         * tests/unistr/test-u32-strcmp.h: New file.
8479
8480         Tests for module 'unistr/u16-strcmp'.
8481         * modules/unistr/u16-strcmp-tests: New file.
8482         * tests/unistr/test-u16-strcmp.c: New file.
8483         * tests/unistr/test-u16-strcmp.h: New file.
8484
8485         Tests for module 'unistr/u8-strcmp'.
8486         * modules/unistr/u8-strcmp-tests: New file.
8487         * tests/unistr/test-u8-strcmp.c: New file.
8488         * tests/unistr/test-u8-strcmp.h: New file.
8489         * tests/unistr/test-strcmp.h: New file.
8490
8491         Tests for module 'unistr/u32-strncat'.
8492         * modules/unistr/u32-strncat-tests: New file.
8493         * tests/unistr/test-u32-strncat.c: New file.
8494
8495         Tests for module 'unistr/u16-strncat'.
8496         * modules/unistr/u16-strncat-tests: New file.
8497         * tests/unistr/test-u16-strncat.c: New file.
8498
8499         Tests for module 'unistr/u8-strncat'.
8500         * modules/unistr/u8-strncat-tests: New file.
8501         * tests/unistr/test-u8-strncat.c: New file.
8502         * tests/unistr/test-strncat.h: New file.
8503
8504         Tests for module 'unistr/u32-strcat'.
8505         * modules/unistr/u32-strcat-tests: New file.
8506         * tests/unistr/test-u32-strcat.c: New file.
8507
8508         Tests for module 'unistr/u16-strcat'.
8509         * modules/unistr/u16-strcat-tests: New file.
8510         * tests/unistr/test-u16-strcat.c: New file.
8511
8512         Tests for module 'unistr/u8-strcat'.
8513         * modules/unistr/u8-strcat-tests: New file.
8514         * tests/unistr/test-u8-strcat.c: New file.
8515         * tests/unistr/test-strcat.h: New file.
8516
8517         Tests for module 'unistr/u32-stpncpy'.
8518         * modules/unistr/u32-stpncpy-tests: New file.
8519         * tests/unistr/test-u32-stpncpy.c: New file.
8520
8521         Tests for module 'unistr/u16-stpncpy'.
8522         * modules/unistr/u16-stpncpy-tests: New file.
8523         * tests/unistr/test-u16-stpncpy.c: New file.
8524
8525         Tests for module 'unistr/u8-stpncpy'.
8526         * modules/unistr/u8-stpncpy-tests: New file.
8527         * tests/unistr/test-u8-stpncpy.c: New file.
8528         * tests/unistr/test-stpncpy.h: New file.
8529
8530         Tests for module 'unistr/u32-strncpy'.
8531         * modules/unistr/u32-strncpy-tests: New file.
8532         * tests/unistr/test-u32-strncpy.c: New file.
8533
8534         Tests for module 'unistr/u16-strncpy'.
8535         * modules/unistr/u16-strncpy-tests: New file.
8536         * tests/unistr/test-u16-strncpy.c: New file.
8537
8538         Tests for module 'unistr/u8-strncpy'.
8539         * modules/unistr/u8-strncpy-tests: New file.
8540         * tests/unistr/test-u8-strncpy.c: New file.
8541         * tests/unistr/test-strncpy.h: New file.
8542
8543         Tests for module 'unistr/u32-stpcpy'.
8544         * modules/unistr/u32-stpcpy-tests: New file.
8545         * tests/unistr/test-u32-stpcpy.c: New file.
8546
8547         Tests for module 'unistr/u16-stpcpy'.
8548         * modules/unistr/u16-stpcpy-tests: New file.
8549         * tests/unistr/test-u16-stpcpy.c: New file.
8550
8551         Tests for module 'unistr/u8-stpcpy'.
8552         * modules/unistr/u8-stpcpy-tests: New file.
8553         * tests/unistr/test-u8-stpcpy.c: New file.
8554         * tests/unistr/test-stpcpy.h: New file.
8555
8556         Tests for module 'unistr/u32-strcpy'.
8557         * modules/unistr/u32-strcpy-tests: New file.
8558         * tests/unistr/test-u32-strcpy.c: New file.
8559
8560         Tests for module 'unistr/u16-strcpy'.
8561         * modules/unistr/u16-strcpy-tests: New file.
8562         * tests/unistr/test-u16-strcpy.c: New file.
8563
8564         Tests for module 'unistr/u8-strcpy'.
8565         * modules/unistr/u8-strcpy-tests: New file.
8566         * tests/unistr/test-u8-strcpy.c: New file.
8567         * tests/unistr/test-strcpy.h: New file.
8568
8569         Tests for module 'unistr/u32-strnlen'.
8570         * modules/unistr/u32-strnlen-tests: New file.
8571         * tests/unistr/test-u32-strnlen.c: New file.
8572
8573         Tests for module 'unistr/u16-strnlen'.
8574         * modules/unistr/u16-strnlen-tests: New file.
8575         * tests/unistr/test-u16-strnlen.c: New file.
8576
8577         Tests for module 'unistr/u8-strnlen'.
8578         * modules/unistr/u8-strnlen-tests: New file.
8579         * tests/unistr/test-u8-strnlen.c: New file.
8580         * tests/unistr/test-strnlen.h: New file.
8581
8582         Tests for module 'unistr/u32-strlen'.
8583         * modules/unistr/u32-strlen-tests: New file.
8584         * tests/unistr/test-u32-strlen.c: New file.
8585
8586         Tests for module 'unistr/u16-strlen'.
8587         * modules/unistr/u16-strlen-tests: New file.
8588         * tests/unistr/test-u16-strlen.c: New file.
8589
8590         Tests for module 'unistr/u8-strlen'.
8591         * modules/unistr/u8-strlen-tests: New file.
8592         * tests/unistr/test-u8-strlen.c: New file.
8593
8594         Tests for module 'unistr/u32-prev'.
8595         * modules/unistr/u32-prev-tests: New file.
8596         * tests/unistr/test-u32-prev.c: New file.
8597
8598         Tests for module 'unistr/u16-prev'.
8599         * modules/unistr/u16-prev-tests: New file.
8600         * tests/unistr/test-u16-prev.c: New file.
8601
8602         Tests for module 'unistr/u8-prev'.
8603         * modules/unistr/u8-prev-tests: New file.
8604         * tests/unistr/test-u8-prev.c: New file.
8605
8606         Tests for module 'unistr/u32-next'.
8607         * modules/unistr/u32-next-tests: New file.
8608         * tests/unistr/test-u32-next.c: New file.
8609
8610         Tests for module 'unistr/u16-next'.
8611         * modules/unistr/u16-next-tests: New file.
8612         * tests/unistr/test-u16-next.c: New file.
8613
8614         Tests for module 'unistr/u8-next'.
8615         * modules/unistr/u8-next-tests: New file.
8616         * tests/unistr/test-u8-next.c: New file.
8617
8618         Tests for module 'unistr/u32-strmbtouc'.
8619         * modules/unistr/u32-strmbtouc-tests: New file.
8620         * tests/unistr/test-u32-strmbtouc.c: New file.
8621
8622         Tests for module 'unistr/u16-strmbtouc'.
8623         * modules/unistr/u16-strmbtouc-tests: New file.
8624         * tests/unistr/test-u16-strmbtouc.c: New file.
8625
8626         Tests for module 'unistr/u8-strmbtouc'.
8627         * modules/unistr/u8-strmbtouc-tests: New file.
8628         * tests/unistr/test-u8-strmbtouc.c: New file.
8629
8630         Tests for module 'unistr/u32-strmblen'.
8631         * modules/unistr/u32-strmblen-tests: New file.
8632         * tests/unistr/test-u32-strmblen.c: New file.
8633
8634         Tests for module 'unistr/u16-strmblen'.
8635         * modules/unistr/u16-strmblen-tests: New file.
8636         * tests/unistr/test-u16-strmblen.c: New file.
8637
8638         Tests for module 'unistr/u8-strmblen'.
8639         * modules/unistr/u8-strmblen-tests: New file.
8640         * tests/unistr/test-u8-strmblen.c: New file.
8641
8642         Tests for module 'unistr/u32-cpy-alloc'.
8643         * modules/unistr/u32-cpy-alloc-tests: New file.
8644         * tests/unistr/test-u32-cpy-alloc.c: New file.
8645
8646         Tests for module 'unistr/u16-cpy-alloc'.
8647         * modules/unistr/u16-cpy-alloc-tests: New file.
8648         * tests/unistr/test-u16-cpy-alloc.c: New file.
8649
8650         Tests for module 'unistr/u8-cpy-alloc'.
8651         * modules/unistr/u8-cpy-alloc-tests: New file.
8652         * tests/unistr/test-u8-cpy-alloc.c: New file.
8653         * tests/unistr/test-cpy-alloc.h: New file.
8654
8655         Tests for module 'unistr/u32-mbsnlen'.
8656         * modules/unistr/u32-mbsnlen-tests: New file.
8657         * tests/unistr/test-u32-mbsnlen.c: New file.
8658
8659         Tests for module 'unistr/u16-mbsnlen'.
8660         * modules/unistr/u16-mbsnlen-tests: New file.
8661         * tests/unistr/test-u16-mbsnlen.c: New file.
8662
8663         Tests for module 'unistr/u8-mbsnlen'.
8664         * modules/unistr/u8-mbsnlen-tests: New file.
8665         * tests/unistr/test-u8-mbsnlen.c: New file.
8666
8667         Tests for module 'unistr/u32-chr'.
8668         * modules/unistr/u32-chr-tests: New file.
8669         * tests/unistr/test-u32-chr.c: New file.
8670
8671         Tests for module 'unistr/u16-chr'.
8672         * modules/unistr/u16-chr-tests: New file.
8673         * tests/unistr/test-u16-chr.c: New file.
8674
8675         Tests for module 'unistr/u8-chr'.
8676         * modules/unistr/u8-chr-tests: New file.
8677         * tests/unistr/test-u8-chr.c: New file.
8678         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8679
8680         Tests for module 'unistr/u32-cmp2'.
8681         * modules/unistr/u32-cmp2-tests: New file.
8682         * tests/unistr/test-u32-cmp2.c: New file.
8683
8684         Tests for module 'unistr/u16-cmp2'.
8685         * modules/unistr/u16-cmp2-tests: New file.
8686         * tests/unistr/test-u16-cmp2.c: New file.
8687
8688         Tests for module 'unistr/u8-cmp2'.
8689         * modules/unistr/u8-cmp2-tests: New file.
8690         * tests/unistr/test-u8-cmp2.c: New file.
8691         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8692
8693         Tests for module 'unistr/u32-cmp'.
8694         * modules/unistr/u32-cmp-tests: New file.
8695         * tests/unistr/test-u32-cmp.c: New file.
8696
8697         Tests for module 'unistr/u16-cmp'.
8698         * modules/unistr/u16-cmp-tests: New file.
8699         * tests/unistr/test-u16-cmp.c: New file.
8700
8701         Tests for module 'unistr/u8-cmp'.
8702         * modules/unistr/u8-cmp-tests: New file.
8703         * tests/unistr/test-u8-cmp.c: New file.
8704         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8705
8706         Tests for module 'unistr/u32-set'.
8707         * modules/unistr/u32-set-tests: New file.
8708         * tests/unistr/test-u32-set.c: New file.
8709
8710         Tests for module 'unistr/u16-set'.
8711         * modules/unistr/u16-set-tests: New file.
8712         * tests/unistr/test-u16-set.c: New file.
8713
8714         Tests for module 'unistr/u8-set'.
8715         * modules/unistr/u8-set-tests: New file.
8716         * tests/unistr/test-u8-set.c: New file.
8717         * tests/unistr/test-set.h: New file.
8718
8719         Tests for module 'unistr/u32-move'.
8720         * modules/unistr/u32-move-tests: New file.
8721         * tests/unistr/test-u32-move.c: New file.
8722
8723         Tests for module 'unistr/u16-move'.
8724         * modules/unistr/u16-move-tests: New file.
8725         * tests/unistr/test-u16-move.c: New file.
8726
8727         Tests for module 'unistr/u8-move'.
8728         * modules/unistr/u8-move-tests: New file.
8729         * tests/unistr/test-u8-move.c: New file.
8730         * tests/unistr/test-move.h: New file.
8731
8732         Tests for module 'unistr/u32-cpy'.
8733         * modules/unistr/u32-cpy-tests: New file.
8734         * tests/unistr/test-u32-cpy.c: New file.
8735
8736         Tests for module 'unistr/u16-cpy'.
8737         * modules/unistr/u16-cpy-tests: New file.
8738         * tests/unistr/test-u16-cpy.c: New file.
8739
8740         Tests for module 'unistr/u8-cpy'.
8741         * modules/unistr/u8-cpy-tests: New file.
8742         * tests/unistr/test-u8-cpy.c: New file.
8743         * tests/unistr/test-cpy.h: New file.
8744
8745 2010-01-09  Bruno Haible  <bruno@clisp.org>
8746
8747         Tests for module 'unistr/u32-uctomb'.
8748         * modules/unistr/u32-uctomb-tests: New file.
8749         * tests/unistr/test-u32-uctomb.c: New file.
8750
8751         Tests for module 'unistr/u16-uctomb'.
8752         * modules/unistr/u16-uctomb-tests: New file.
8753         * tests/unistr/test-u16-uctomb.c: New file.
8754
8755         Tests for module 'unistr/u8-uctomb'.
8756         * modules/unistr/u8-uctomb-tests: New file.
8757         * tests/unistr/test-u8-uctomb.c: New file.
8758
8759         Tests for module 'unistr/u32-mbtoucr'.
8760         * modules/unistr/u32-mbtoucr-tests: New file.
8761         * tests/unistr/test-u32-mbtoucr.c: New file.
8762
8763         Tests for module 'unistr/u16-mbtoucr'.
8764         * modules/unistr/u16-mbtoucr-tests: New file.
8765         * tests/unistr/test-u16-mbtoucr.c: New file.
8766
8767         Tests for module 'unistr/u8-mbtoucr'.
8768         * modules/unistr/u8-mbtoucr-tests: New file.
8769         * tests/unistr/test-u8-mbtoucr.c: New file.
8770
8771         Tests for module 'unistr/u32-mbtouc'.
8772         * modules/unistr/u32-mbtouc-tests: New file.
8773         * tests/unistr/test-u32-mbtouc.c: New file.
8774
8775         Tests for module 'unistr/u16-mbtouc'.
8776         * modules/unistr/u16-mbtouc-tests: New file.
8777         * tests/unistr/test-u16-mbtouc.c: New file.
8778
8779         Tests for module 'unistr/u8-mbtouc'.
8780         * modules/unistr/u8-mbtouc-tests: New file.
8781         * tests/unistr/test-u8-mbtouc.c: New file.
8782
8783         Tests for module 'unistr/u32-mbtouc-unsafe'.
8784         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8785         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8786         * tests/unistr/test-u32-mbtouc.h: New file.
8787
8788         Tests for module 'unistr/u16-mbtouc-unsafe'.
8789         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8790         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8791         * tests/unistr/test-u16-mbtouc.h: New file.
8792
8793         Tests for module 'unistr/u8-mbtouc-unsafe'.
8794         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8795         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8796         * tests/unistr/test-u8-mbtouc.h: New file.
8797
8798         Tests for module 'unistr/u32-mblen'.
8799         * modules/unistr/u32-mblen-tests: New file.
8800         * tests/unistr/test-u32-mblen.c: New file.
8801
8802         Tests for module 'unistr/u16-mblen'.
8803         * modules/unistr/u16-mblen-tests: New file.
8804         * tests/unistr/test-u16-mblen.c: New file.
8805
8806         Tests for module 'unistr/u8-mblen'.
8807         * modules/unistr/u8-mblen-tests: New file.
8808         * tests/unistr/test-u8-mblen.c: New file.
8809
8810         Tests for module 'unistr/u32-to-u16'.
8811         * modules/unistr/u32-to-u16-tests: New file.
8812         * tests/unistr/test-u32-to-u16.c: New file.
8813
8814         Tests for module 'unistr/u32-to-u8'.
8815         * modules/unistr/u32-to-u8-tests: New file.
8816         * tests/unistr/test-u32-to-u8.c: New file.
8817
8818         Tests for module 'unistr/u16-to-u32'.
8819         * modules/unistr/u16-to-u32-tests: New file.
8820         * tests/unistr/test-u16-to-u32.c: New file.
8821
8822         Tests for module 'unistr/u16-to-u8'.
8823         * modules/unistr/u16-to-u8-tests: New file.
8824         * tests/unistr/test-u16-to-u8.c: New file.
8825
8826         Tests for module 'unistr/u8-to-u32'.
8827         * modules/unistr/u8-to-u32-tests: New file.
8828         * tests/unistr/test-u8-to-u32.c: New file.
8829
8830         Tests for module 'unistr/u8-to-u16'.
8831         * modules/unistr/u8-to-u16-tests: New file.
8832         * tests/unistr/test-u8-to-u16.c: New file.
8833
8834         Tests for module 'unistr/u32-check'.
8835         * modules/unistr/u32-check-tests: New file.
8836         * tests/unistr/test-u32-check.c: New file.
8837
8838         Tests for module 'unistr/u16-check'.
8839         * modules/unistr/u16-check-tests: New file.
8840         * tests/unistr/test-u16-check.c: New file.
8841
8842         Tests for module 'unistr/u8-check'.
8843         * modules/unistr/u8-check-tests: New file.
8844         * tests/unistr/test-u8-check.c: New file.
8845
8846         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8847         (category_equals): New function.
8848         (main): Add more tests.
8849         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8850
8851         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8852
8853 2010-01-10  Bruno Haible  <bruno@clisp.org>
8854
8855         unistr/u*-strcoll: Try harder to distinguish different strings.
8856         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8857         compare s1 and s2 to see if they are different.
8858
8859 2010-01-10  Bruno Haible  <bruno@clisp.org>
8860
8861         unistr/u*-stpncpy: Fix the return value.
8862         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8863         description of the return value consistent with stpncpy in glibc.
8864         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8865         written non-NUL unit.
8866
8867 2010-01-10  Bruno Haible  <bruno@clisp.org>
8868
8869         unistr/u*-next: Add missing dependencies.
8870         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8871         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8872         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8873
8874 2010-01-10  Bruno Haible  <bruno@clisp.org>
8875
8876         unistr/u8-mbsnlen: Fix return value for incomplete character.
8877         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8878         u8_mblen.
8879         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8880         Remove unistr/u8-mblen.
8881         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8882         u16_mblen.
8883         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8884         Remove unistr/u16-mblen.
8885
8886 2010-01-10  Bruno Haible  <bruno@clisp.org>
8887
8888         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8889         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8890         Reported by Brian Gough <bjg@gnu.org> and
8891         Chris Clayton <chris2553@googlemail.com> via
8892         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8893
8894 2010-01-09  Bruno Haible  <bruno@clisp.org>
8895
8896         unistr/u16-to-u32: Reject invalid input.
8897         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8898         u16_mbtouc.
8899         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8900         Remove unistr/u16-mbtouc.
8901
8902         unistr/u16-to-u8: Reject invalid input.
8903         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8904         u16_mbtouc.
8905         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8906         Remove unistr/u16-mbtouc.
8907
8908         unistr/u8-to-u32: Reject invalid input.
8909         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8910         u8_mbtouc.
8911         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8912         Remove unistr/u8-mbtouc.
8913
8914         unistr/u8-to-u16: Reject invalid input.
8915         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8916         u8_mbtouc.
8917         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8918         Remove unistr/u8-mbtouc.
8919
8920 2010-01-09  Bruno Haible  <bruno@clisp.org>
8921
8922         Tests for module 'getlogin'.
8923         * modules/getlogin-tests: New file.
8924         * tests/test-getlogin.c: New file.
8925
8926         New module 'getlogin'.
8927         * lib/unistd.in.h (getlogin): New declaration.
8928         * lib/getlogin.c: New file.
8929         * m4/getlogin.m4: New file.
8930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8931         HAVE_GETLOGIN.
8932         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8933         HAVE_GETLOGIN.
8934         * modules/getlogin: New file.
8935         * doc/posix-functions/getlogin.texi: Mention the new module.
8936         Reported by John W. Eaton <jwe@gnu.org>.
8937
8938 2010-01-09  Bruno Haible  <bruno@clisp.org>
8939
8940         getlogin_r: Support for native Windows.
8941         * lib/getlogin_r.c: Include <windows.h>
8942         (getlogin_r): Implement for native Windows.
8943         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8944         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8945         via John W. Eaton <jwe@gnu.org>.
8946
8947 2010-01-09  Bruno Haible  <bruno@clisp.org>
8948
8949         getlogin_r: Small fixes.
8950         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8951         succeeds.
8952         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8953         before testing whether getlogin_r is declared. No need to set
8954         HAVE_DECL_GETLOGIN_R to 1.
8955         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8956
8957 2010-01-09  Bruno Haible  <bruno@clisp.org>
8958
8959         * lib/unistd.in.h (getlogin_r): Add comment.
8960
8961 2010-01-09  Bruno Haible  <bruno@clisp.org>
8962
8963         Tests for module 'getlogin_r'.
8964         * modules/getlogin_r-tests: New file.
8965         * tests/test-getlogin_r.c: New file.
8966
8967 2010-01-09  Jim Meyering  <meyering@redhat.com>
8968
8969         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8970         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8971         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8972
8973 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8974
8975         * lib/dup2.c (rpl_dup2): Improve comment.
8976
8977 2010-01-08  Eric Blake  <ebb9@byu.net>
8978
8979         maint.mk: allow packages to add makefile @@ exceptions
8980         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8981         (sc_makefile_check): Rename...
8982         (sc_makefile_at_at_check): ...to this, and use hook.
8983
8984         dup2: work around mingw bug
8985         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8986         Reported by Simon Josefsson.
8987
8988 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8989
8990         glob: Fix C++ compilation.
8991         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8992         C++.
8993
8994 2010-01-07  Bruno Haible  <bruno@clisp.org>
8995
8996         Fix indentation of wctype.in.h, broken since 2007-01-06.
8997         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8998
8999 2010-01-07  Bruno Haible  <bruno@clisp.org>
9000
9001         mbslen: Avoid collision with system function.
9002         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9003         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9004         * m4/mbslen.m4: New file.
9005         * modules/mbslen (Files): Add it.
9006         (configure.ac): Invoke gl_MBSLEN.
9007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9008         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9009         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9010         via Ian Beckwith <ianb@erislabs.net>.
9011
9012 2010-01-07  Bruno Haible  <bruno@clisp.org>
9013
9014         dirent: Document the last fix.
9015         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9016
9017 2010-01-07  Bruno Haible  <bruno@clisp.org>
9018
9019         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9020         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9021         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9022         va_list are defined.
9023         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9024         Reported by Eric Blake.
9025
9026 2010-01-07  Bruno Haible  <bruno@clisp.org>
9027
9028         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9029         * modules/xlist (Depends-on): Add 'list',
9030         * modules/xoset (Depends-on): Add 'oset'.
9031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9032
9033 2010-01-07  Bruno Haible  <bruno@clisp.org>
9034
9035         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9036         * doc/posix-functions/strncasecmp.texi: Likewise.
9037
9038 2010-01-07  Bruno Haible  <bruno@clisp.org>
9039
9040         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9041
9042 2010-01-07  John W. Eaton  <jwe@octave.org>
9043
9044         wctype: allow C++ use
9045         * lib/wctype.in.h: Add extern "C" block for C++.
9046
9047 2010-01-06  Eric Blake  <ebb9@byu.net>
9048
9049         maint.mk: detect incorrect GFDL usage
9050         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9051
9052 2010-01-06  Jim Meyering  <meyering@redhat.com>
9053         and Eric Blake  <ebb9@byu.net>
9054
9055         maint.mk: ignore multi-line copyright in NEWS
9056         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9057
9058 2010-01-06  Eric Blake  <ebb9@byu.net>
9059
9060         select: add missing dependency
9061         * modules/select-tests (Depends-on): Move sockets dependency...
9062         * modules/select (Depends-on): ...here.
9063         Reported by Ian Beckwith.
9064
9065         doc: regenerate INSTALL
9066         * doc/INSTALL: Reflect recent autoconf update.
9067         * doc/INSTALL.ISO: Likewise.
9068         * doc/INSTALL.UTF-8: Likewise.
9069
9070         pread: fix compilation on glibc
9071         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9072         Reported by Ralf Wildenhues.
9073
9074         dirent: fix test failure
9075         * lib/dirent.in.h (includes): Guarantee ino_t.
9076         Reported by Ralf Wildenhues.
9077
9078 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9079
9080         linkat, renameat: avoid bad free
9081         * lib/at-func2.c (at_func2): Fix typo.
9082         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9083
9084 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9085
9086         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9087         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9088         to avoid failure of symlink test later.
9089
9090 2010-01-06  Eric Blake  <ebb9@byu.net>
9091
9092         stdio, unistd: guarantee ssize_t
9093         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9094         2008 are exposed when needed.
9095         * lib/stdio.in.h (includes): Likewise.
9096         Reported by Ralf Wildenhues.
9097
9098 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9099
9100         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9101         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9102         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9103
9104 2010-01-06  Jim Meyering  <meyering@redhat.com>
9105
9106         readtokens: this module *does* require xalloc.h
9107         It uses only functions that were omitted by the old syntax-check rule.
9108         * lib/readtokens.c: Include "xalloc.h" once again.
9109         * modules/readtokens (Depends-on): Add xalloc.
9110         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9111
9112 2010-01-05  Eric Blake  <ebb9@byu.net>
9113
9114         maint: support 'make announcement' from a VPATH build
9115         * top/maint.mk (announcement): Look for correct NEWS file.
9116
9117 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9118
9119         utimens (fdutimens): ignore a negative FD, per contract
9120         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9121         when we have a valid file descriptor.  Otherwise, using a brand
9122         new glibc (with just-patched futimens that now fails with EBADF)
9123         would cause this function to fail with ENOSYS.
9124         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9125         See also http://bugzilla.redhat.com/552320.
9126
9127 2010-01-05  Eric Blake  <ebb9@byu.net>
9128
9129         strcase: document what it provides
9130         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9131         gnulib module.
9132         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9133         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9134
9135 2010-01-05  Jim Meyering  <meyering@redhat.com>
9136
9137         maint: remove useless inclusions of "xalloc.h"
9138         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9139         * lib/readtokens.c: Likewise.
9140         * lib/same.c: Likewise.
9141         * modules/getloadavg (Depends-on): Remove xalloc.
9142         * modules/readtokens: Likewise.
9143         * modules/same: Likewise.
9144
9145         maint.mk: include 4 more function names in alloca.h-checking regexp
9146         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9147         regexp.  Before, we would give a false-positive (saying alloca.h
9148         is included unnecessarily) when the only uses involved omitted symbols.
9149
9150         xalloc.h: use consistent formatting
9151         * lib/xalloc.h: Move declarations to start in the first column.
9152
9153 2010-01-05  Eric Blake  <ebb9@byu.net>
9154
9155         mkdir: avoid xalloc
9156         * lib/mkdir.c (includes): Drop unused header.
9157         Reported by John W. Eaton.
9158
9159 2010-01-04  Jim Meyering  <meyering@redhat.com>
9160
9161         nl_langinfo: avoid configure-time syntax error
9162         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9163         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9164         the empty string.  Don't let that provoke a shell syntax error.
9165
9166         regcomp, regexec, fnmatch: avoid array bounds read error
9167         * lib/regcomp.c (build_equiv_class): From glibc:
9168         Use only the low 24 bits of a findidx return value as an index
9169         into the weights array.  Patch by Ulrich Drepper:
9170         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9171         * lib/regexec.c (check_node_accept_bytes): Likewise.
9172         * lib/fnmatch_loop.c (FCT): Likewise.
9173
9174         regcomp: skip collseq lookup when there are no rules
9175         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9176         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9177
9178         regcomp: recognize ill-formed { } expressions
9179         * lib/regcomp.c (parse_dup_op): From glibc:
9180         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9181
9182         regcomp: fix typo in comment
9183         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9184         s/satisfy/satisfies/.
9185
9186         regcomp: sync from glibc: remove dead store
9187         * lib/regcomp.c (duplicate_node_closure): Remove useless
9188         search_duplicated_node call and dead store.
9189
9190         regcomp: sync from glibc; always use nl_langinfo
9191         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9192         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9193         * modules/regex (Depends-on): Add nl_langinfo.
9194
9195 2010-01-04  Eric Blake  <ebb9@byu.net>
9196
9197         fdopendir: fix configure test
9198         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9199
9200 2010-01-01  Bruno Haible  <bruno@clisp.org>
9201
9202         wchar: Remove unused configure check.
9203         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9204
9205 2010-01-01  Eric Blake  <ebb9@byu.net>
9206
9207         headers: make check of system header explicit
9208         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9209         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9210         ourselves.
9211         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9212         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9213         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9214         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9215         internals.
9216         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9217         missing.
9218         Suggested by Bruno Haible.
9219
9220 2010-01-01  Jim Meyering  <meyering@redhat.com>
9221
9222         ChangeLog: tweak to eliminate unnecessary copyright line
9223         * ChangeLog: Remove a copyright line that was mistakenly updated
9224         by today's update-copyright run.  Reported by Eric Blake.
9225
9226         test-update-copyright: don't let envvar setting cause test failure
9227         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9228
9229 2010-01-01  Bruno Haible  <bruno@clisp.org>
9230
9231         localename: Avoid gcc warning.
9232         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9233         function if it is not used.
9234
9235 2010-01-01  Jim Meyering  <meyering@redhat.com>
9236
9237         update nearly all FSF copyright year lists to include 2010
9238         Use the same procedure as for 2009, outlined in
9239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9240
9241         version-etc: set COPYRIGHT_YEAR to 2010
9242         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9243
9244 2009-12-31  Eric Blake  <ebb9@byu.net>
9245
9246         doc: correct availability of cygwin 1.5.x getopt
9247         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9248         variables.
9249         * doc/posix-functions/opterr.texi (opterr): Likewise.
9250         * doc/posix-functions/optind.texi (optind): Likewise.
9251         * doc/posix-functions/optopt.texi (optopt): Likewise.
9252         * doc/posix-functions/tzname.texi (tzname): Likewise.
9253
9254         openat: update maintainer
9255         * modules/openat (Maintainer): Add myself.
9256
9257         utimens: avoid shadowing warning
9258         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9259         buffers into one, to avoid shadowing, as well as avoiding a
9260         redundant stat.
9261         Reported by Jim Meyering.
9262
9263         test-dup2: avoid compiler warning
9264         * tests/test-dup2.c (is_inheritable): Only define if used.
9265
9266 2010-01-01  Bruno Haible  <bruno@clisp.org>
9267
9268         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9269         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9270         defined, use wctomb instead of wcrtomb.
9271
9272 2010-01-01  Bruno Haible  <bruno@clisp.org>
9273
9274         iconv: Reject native Solaris iconv.
9275         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9276         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9277
9278 2009-12-31  Bruno Haible  <bruno@clisp.org>
9279
9280         * tests/test-signal.c (main): Remove test of 'SIG'.
9281
9282 2009-12-31  Bruno Haible  <bruno@clisp.org>
9283
9284         spawn: Fix incomplete fix.
9285         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9286         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9287         warnings for GNULIB_POSIXCHECK again.
9288         Reported by Eric Blake.
9289
9290 2009-12-31  Bruno Haible  <bruno@clisp.org>
9291
9292         Avoid namespace pollution on glibc systems.
9293         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9294         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9295         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9296         glibc systems.
9297
9298 2009-12-31  Bruno Haible  <bruno@clisp.org>
9299
9300         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9301         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9302         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9303         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9304         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9305         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9306         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9307
9308 2009-12-31  Bruno Haible  <bruno@clisp.org>
9309
9310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9311         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9312         afterwards.
9313
9314 2009-12-31  Bruno Haible  <bruno@clisp.org>
9315
9316         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9317         SYS_UTSNAME_H.
9318
9319 2009-12-31  Bruno Haible  <bruno@clisp.org>
9320
9321         spawn: Fix misapplied patch.
9322         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9323         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9324         warnings for GNULIB_POSIXCHECK.
9325
9326 2009-12-31  Bruno Haible  <bruno@clisp.org>
9327
9328         times: Update after sys_times changed.
9329         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9330         * modules/times (Files): Add it.
9331         (configure.ac): Invoke gl_FUNC_TIMES.
9332
9333 2009-12-31  Bruno Haible  <bruno@clisp.org>
9334
9335         Use AC_C_INLINE where necessary.
9336         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9339         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9340         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9341         * m4/mbiter.m4 (gl_MBITER): Likewise.
9342         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9343         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9344         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9345         * modules/u64 (configure.ac): Likewise.
9346
9347 2009-12-31  Bruno Haible  <bruno@clisp.org>
9348
9349         Use AC_C_INLINE instead of module 'inline' where possible.
9350         * modules/inline (Description): Clarify purpose.
9351         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9352         * modules/count-one-bits (Depends-on): Remove inline.
9353         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9354         * modules/openat (Depends-on): Remove inline.
9355         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9356         instead of depending on module 'inline'.
9357         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9358         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9359         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9360         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9361         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9362         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9363         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9364         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9365         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9366         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9367         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9368         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9369         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9370         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9371         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9372         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9373         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9374         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9375         Likewise.
9376         * modules/unictype/property-ascii-hex-digit (Depends-on,
9377         configure.ac): Likewise.
9378         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9379         configure.ac): Likewise.
9380         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9381         configure.ac): Likewise.
9382         * modules/unictype/property-bidi-block-separator (Depends-on,
9383         configure.ac): Likewise.
9384         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9385         configure.ac): Likewise.
9386         * modules/unictype/property-bidi-common-separator (Depends-on,
9387         configure.ac): Likewise.
9388         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9389         Likewise.
9390         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9391         configure.ac): Likewise.
9392         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9393         configure.ac): Likewise.
9394         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9395         configure.ac): Likewise.
9396         * modules/unictype/property-bidi-european-digit (Depends-on,
9397         configure.ac): Likewise.
9398         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9399         configure.ac): Likewise.
9400         * modules/unictype/property-bidi-left-to-right (Depends-on,
9401         configure.ac): Likewise.
9402         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9403         configure.ac): Likewise.
9404         * modules/unictype/property-bidi-other-neutral (Depends-on,
9405         configure.ac): Likewise.
9406         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9407         Likewise.
9408         * modules/unictype/property-bidi-segment-separator (Depends-on,
9409         configure.ac): Likewise.
9410         * modules/unictype/property-bidi-whitespace (Depends-on,
9411         configure.ac): Likewise.
9412         * modules/unictype/property-combining (Depends-on, configure.ac):
9413         Likewise.
9414         * modules/unictype/property-composite (Depends-on, configure.ac):
9415         Likewise.
9416         * modules/unictype/property-currency-symbol (Depends-on,
9417         configure.ac): Likewise.
9418         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9419         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9420         Likewise.
9421         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9422         configure.ac): Likewise.
9423         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9424         Likewise.
9425         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9426         Likewise.
9427         * modules/unictype/property-extender (Depends-on, configure.ac):
9428         Likewise.
9429         * modules/unictype/property-format-control (Depends-on, configure.ac):
9430         Likewise.
9431         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9432         Likewise.
9433         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9434         Likewise.
9435         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9436         Likewise.
9437         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9438         Likewise.
9439         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9440         Likewise.
9441         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9442         Likewise.
9443         * modules/unictype/property-id-start (Depends-on, configure.ac):
9444         Likewise.
9445         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9446         Likewise.
9447         * modules/unictype/property-ids-binary-operator (Depends-on,
9448         configure.ac): Likewise.
9449         * modules/unictype/property-ids-trinary-operator (Depends-on,
9450         configure.ac): Likewise.
9451         * modules/unictype/property-ignorable-control (Depends-on,
9452         configure.ac): Likewise.
9453         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9454         Likewise.
9455         * modules/unictype/property-join-control (Depends-on, configure.ac):
9456         Likewise.
9457         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9458         Likewise.
9459         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9460         Likewise.
9461         * modules/unictype/property-logical-order-exception (Depends-on,
9462         configure.ac): Likewise.
9463         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9464         Likewise.
9465         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9466         * modules/unictype/property-non-break (Depends-on, configure.ac):
9467         Likewise.
9468         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9469         Likewise.
9470         * modules/unictype/property-numeric (Depends-on, configure.ac):
9471         Likewise.
9472         * modules/unictype/property-other-alphabetic (Depends-on,
9473         configure.ac): Likewise.
9474         * modules/unictype/property-other-default-ignorable-code-point
9475         (Depends-on, configure.ac): Likewise.
9476         * modules/unictype/property-other-grapheme-extend (Depends-on,
9477         configure.ac): Likewise.
9478         * modules/unictype/property-other-id-continue (Depends-on,
9479         configure.ac): Likewise.
9480         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9481         Likewise.
9482         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9483         Likewise.
9484         * modules/unictype/property-other-math (Depends-on, configure.ac):
9485         Likewise.
9486         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9487         Likewise.
9488         * modules/unictype/property-paired-punctuation (Depends-on,
9489         configure.ac): Likewise.
9490         * modules/unictype/property-paragraph-separator (Depends-on,
9491         configure.ac): Likewise.
9492         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9493         Likewise.
9494         * modules/unictype/property-pattern-white-space (Depends-on,
9495         configure.ac): Likewise.
9496         * modules/unictype/property-private-use (Depends-on, configure.ac):
9497         Likewise.
9498         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9499         Likewise.
9500         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9501         Likewise.
9502         * modules/unictype/property-radical (Depends-on, configure.ac):
9503         Likewise.
9504         * modules/unictype/property-sentence-terminal (Depends-on,
9505         configure.ac): Likewise.
9506         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9507         Likewise.
9508         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9509         * modules/unictype/property-terminal-punctuation (Depends-on,
9510         configure.ac): Likewise.
9511         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9512         Likewise.
9513         * modules/unictype/property-unassigned-code-value (Depends-on,
9514         configure.ac): Likewise.
9515         * modules/unictype/property-unified-ideograph (Depends-on,
9516         configure.ac): Likewise.
9517         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9518         Likewise.
9519         * modules/unictype/property-variation-selector (Depends-on,
9520         configure.ac): Likewise.
9521         * modules/unictype/property-white-space (Depends-on, configure.ac):
9522         Likewise.
9523         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9524         Likewise.
9525         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9526         Likewise.
9527         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9528         Likewise.
9529         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9530         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9531         Likewise.
9532
9533 2009-12-31  Bruno Haible  <bruno@clisp.org>
9534
9535         Remove unnecessary AC_C_INLINE invocation.
9536         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9537         since 2009-08-21.
9538
9539 2009-12-31  Jim Meyering  <meyering@redhat.com>
9540
9541         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9542         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9543         With this change, we can all remove the gpg_key_ID = ... definition
9544         from our respective cfg.mk files.
9545
9546         maint.mk: create announcement template in ~/, not in /tmp
9547         * top/maint.mk (emit_upload_commands): Adjust.
9548         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9549         Remove temporary file, .ci-msg.
9550
9551 2009-12-31  Eric Blake  <ebb9@byu.net>
9552
9553         link-warning: always build headers with link warnings
9554         * modules/arpa_inet (Makefile.am): Always build replacement
9555         header.
9556         * modules/ctype (Makefile.am): Likewise.
9557         * modules/dirent (Makefile.am): Likewise.
9558         * modules/inttypes (Makefile.am): Likewise.
9559         * modules/langinfo (Makefile.am): Likewise.
9560         * modules/locale (Makefile.am): Likewise.
9561         * modules/spawn (Makefile.am): Likewise.
9562         * modules/sys_file (Makefile.am): Likewise.
9563         * modules/sys_ioctl (Makefile.am): Likewise.
9564         * modules/sys_select (Makefile.am): Likewise.
9565         * modules/sys_socket (Makefile.am): Likewise.
9566         * modules/sys_times (Makefile.am): Likewise.
9567         * modules/sys_utsname (Makefile.am): Likewise.
9568         * modules/sys_wait (Makefile.am): Likewise.
9569         * modules/wchar (Makefile.am): Likewise.
9570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9571         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9572         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9573         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9574         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9575         Likewise.
9576         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9577         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9578         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9579         Likewise.
9580         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9581         Likewise.
9582         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9584         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9586         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9587         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9588         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9589         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9590         (gl_WCHAR_H_DEFAULTS): Likewise.
9591
9592 2009-12-31  Eric Blake  <ebb9@byu.net>
9593
9594         signal, spawn: use link warnings
9595         * lib/signal.in.h (sigset_t): Make unconditional.
9596         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9597         (sigpending, sigprocmask, sigaction): Add link warnings.
9598         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9599         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9600         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9601         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9602         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9603         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9604         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9605         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9606         (posix_spawn_file_actions_destroy)
9607         (posix_spawn_file_actions_addopen)
9608         (posix_spawn_file_actions_addclose)
9609         (posix_spawn_file_actions_adddup2): Likewise.
9610         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9611         * tests/test-signal.c (main): Enhance test.
9612
9613         spawn: improve wrapper support
9614         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9615         (gl_SPAWN_H_DEFAULTS): New defaults.
9616         * modules/spawn (Makefile.am): Substitute them.
9617         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9618         Only declare if missing or broken.
9619
9620         sys_times, sys_utsname: use include_next
9621         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9622         header.
9623         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9624         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9625         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9626         * modules/sys_times (Depends-on): Add include_next.
9627         (Makefile.am): Substitute additional values.
9628         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9629         * lib/sys_times.in.h (includes): Include native header, if
9630         available.
9631         * lib/sys_utsname.in.h (includes): Likewise.
9632         * tests/test-sys_times.c (main): Enhance test.
9633
9634         fdutimensat: revert prior patch
9635         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9636         utimens.h.
9637         Reported by Bruno Haible.
9638
9639 2009-12-30  Eric Blake  <ebb9@byu.net>
9640
9641         sys_wait: drop link-warning dependency
9642         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9643         link-warning efforts.
9644         * lib/sys_wait.in.h: Likewise.
9645
9646         fdutimensat: remove bogus dependency
9647         * modules/fdutimensat (Depends-on): Drop inline.
9648
9649         unistd: fix typo
9650         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9651
9652 2009-12-30  Bruno Haible  <bruno@clisp.org>
9653
9654         Fix compilation error with Solaris cc.
9655         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9656         * lib/unicase/u16-is-invariant.c: Likewise.
9657         * lib/unicase/u32-is-invariant.c: Likewise.
9658         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9659
9660 2009-12-30  Bruno Haible  <bruno@clisp.org>
9661
9662         Fix test crash.
9663         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9664         locales.
9665         Reported by Simon Josefsson <simon@josefsson.org>.
9666
9667 2009-12-30  Bruno Haible  <bruno@clisp.org>
9668
9669         Fix compilation error on most platforms.
9670         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9671         Reported by Simon Josefsson <simon@josefsson.org>
9672         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9673
9674 2009-12-30  Eric Blake  <ebb9@byu.net>
9675
9676         futimens, utimensat: work around ntfs-3g bug
9677         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9678         a ctime bug is present, and expand workaround to cover ntfs-3g.
9679         * lib/utimens.c (fdutimens, lutimens): Likewise.
9680         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9681         (validate_timespec): Adjust return value.
9682         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9683         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9684         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9685
9686 2009-12-29  Eric Blake  <ebb9@byu.net>
9687
9688         link-warning: make usage consistent
9689         * modules/ctype (Depends-on): Add link-warning.
9690         (Makefile.am): Update rules accordingly.
9691         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9692         * modules/locale (Depends-on, Makefile.am): Likewise.
9693         * modules/sys_file (Makefile.am): Likewise.
9694         * modules/getopt-posix (Makefile.am): Delete unused link warning
9695         efforts.
9696         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9697         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9698         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9699         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9700
9701         stdio: remove unused variables
9702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9704         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9705
9706         tests: test more substitute headers
9707         * modules/ctype-tests: New file.
9708         * modules/dirent-tests: Likewise.
9709         * modules/spawn-tests: Likewise.
9710         * modules/sys_file-tests: Likewise.
9711         * modules/sys_ioctl-tests: Likewise.
9712         * modules/sys_wait-tests: Likewise.
9713         * tests/test-ctype.c: Likewise.
9714         * tests/test-dirent.c: Likewise.
9715         * tests/test-spawn.c: Likewise.
9716         * tests/test-sys_file.c: Likewise.
9717         * tests/test-sys_ioctl.c: Likewise.
9718         * tests/test-sys_wait.c: Likewise.
9719         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9720         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9721         whether or not flock is in use.
9722
9723         tests: remove License section from module
9724         * modules/arpa_inet-tests: Remove unneeded section.
9725         * modules/byteswap-tests: Likewise.
9726         * modules/ceilf-tests: Likewise.
9727         * modules/ceill-tests: Likewise.
9728         * modules/crypto/des-tests: Likewise.
9729         * modules/crypto/gc-arcfour-tests: Likewise.
9730         * modules/crypto/gc-arctwo-tests: Likewise.
9731         * modules/crypto/gc-des-tests: Likewise.
9732         * modules/crypto/gc-hmac-md5-tests: Likewise.
9733         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9734         * modules/crypto/gc-md2-tests: Likewise.
9735         * modules/crypto/gc-md4-tests: Likewise.
9736         * modules/crypto/gc-md5-tests: Likewise.
9737         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9738         * modules/crypto/gc-rijndael-tests: Likewise.
9739         * modules/crypto/gc-sha1-tests: Likewise.
9740         * modules/crypto/gc-tests: Likewise.
9741         * modules/crypto/md2-tests: Likewise.
9742         * modules/crypto/md4-tests: Likewise.
9743         * modules/fcntl-h-tests: Likewise.
9744         * modules/floorf-tests: Likewise.
9745         * modules/floorl-tests: Likewise.
9746         * modules/frexp-nolibm-tests: Likewise.
9747         * modules/frexp-tests: Likewise.
9748         * modules/frexpl-nolibm-tests: Likewise.
9749         * modules/frexpl-tests: Likewise.
9750         * modules/getaddrinfo-tests: Likewise.
9751         * modules/inttypes-tests: Likewise.
9752         * modules/isfinite-tests: Likewise.
9753         * modules/isinf-tests: Likewise.
9754         * modules/ldexpl-tests: Likewise.
9755         * modules/locale-tests: Likewise.
9756         * modules/math-tests: Likewise.
9757         * modules/netdb-tests: Likewise.
9758         * modules/netinet_in-tests: Likewise.
9759         * modules/printf-frexp-tests: Likewise.
9760         * modules/printf-frexpl-tests: Likewise.
9761         * modules/priv-set-tests: Likewise.
9762         * modules/random_r-tests: Likewise.
9763         * modules/round-tests: Likewise.
9764         * modules/roundf-tests: Likewise.
9765         * modules/roundl-tests: Likewise.
9766         * modules/search-tests: Likewise.
9767         * modules/select-tests: Likewise.
9768         * modules/signal-tests: Likewise.
9769         * modules/stdbool-tests: Likewise.
9770         * modules/stddef-tests: Likewise.
9771         * modules/stdint-tests: Likewise.
9772         * modules/stdio-tests: Likewise.
9773         * modules/stdlib-tests: Likewise.
9774         * modules/string-tests: Likewise.
9775         * modules/strings-tests: Likewise.
9776         * modules/sys_select-tests: Likewise.
9777         * modules/sys_socket-tests: Likewise.
9778         * modules/sys_stat-tests: Likewise.
9779         * modules/sys_time-tests: Likewise.
9780         * modules/sys_utsname-tests: Likewise.
9781         * modules/sysexits-tests: Likewise.
9782         * modules/time-tests: Likewise.
9783         * modules/trunc-tests: Likewise.
9784         * modules/truncf-tests: Likewise.
9785         * modules/truncl-tests: Likewise.
9786         * modules/tsearch-tests: Likewise.
9787         * modules/unistd-tests: Likewise.
9788         * modules/wchar-tests: Likewise.
9789         * modules/wctype-tests: Likewise.
9790
9791         tests: fix license on several tests
9792         * tests/test-des.c: Update to GPLv3+.
9793         * tests/test-flock.c: Likewise.
9794         * tests/test-fsync.c: Likewise.
9795         * tests/test-futimens.h: Likewise.
9796         * tests/test-gc-arcfour.c: Likewise.
9797         * tests/test-gc-arctwo.c: Likewise.
9798         * tests/test-gc-des.c: Likewise.
9799         * tests/test-gc-hmac-md5.c: Likewise.
9800         * tests/test-gc-hmac-sha1.c: Likewise.
9801         * tests/test-gc-md2.c: Likewise.
9802         * tests/test-gc-md4.c: Likewise.
9803         * tests/test-gc-md5.c: Likewise.
9804         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9805         * tests/test-gc-rijndael.c: Likewise.
9806         * tests/test-gc-sha1.c: Likewise.
9807         * tests/test-gc.c: Likewise.
9808         * tests/test-getcwd.c: Likewise.
9809         * tests/test-link.c: Likewise.
9810         * tests/test-link.h: Likewise.
9811         * tests/test-lutimens.h: Likewise.
9812         * tests/test-md2.c: Likewise.
9813         * tests/test-md4.c: Likewise.
9814         * tests/test-mkdir.h: Likewise.
9815         * tests/test-rename.c: Likewise.
9816         * tests/test-rename.h: Likewise.
9817         * tests/test-safe-alloc.c: Likewise.
9818         * tests/test-utimens-common.h: Likewise.
9819         * tests/test-utimens.h: Likewise.
9820
9821         maint: sync license texts
9822         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9823         * doc/gpl-3.0.texi: Revert copyright year update.
9824         * doc/lgpl-3.0.texi: Likewise.
9825
9826 2009-12-29  Jim Meyering  <meyering@redhat.com>
9827
9828         update nearly all FSF copyright year lists to include 2009
9829         The files named by the following are exempted:
9830             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9831               test -f "$dst" && { echo "$dst"; continue; }
9832               test -d "$dst" || continue
9833               echo "$dst"/$(basename "$src")
9834             done > exempt
9835             git ls-files tests/unictype >> exempt
9836         In the remaining files, convert to all-interval notation if
9837         - there is already at least one year interval like 2000-2003
9838         - the file is maintained by me
9839         - the file is in lib/uni*/, where that style already prevails
9840         Otherwise, use update-copyright's default.
9841
9842 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9843         and Eric Blake  <ebb9@byu.net>
9844
9845         tests: don't require debug system() to pass
9846         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9847         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9848         * tests/test-unlink.h (test_unlink_func): Likewise.
9849         * tests/test-fstatat.c (main): ...into callers.
9850         * tests/test-lstat.c (main): Likewise.
9851         * tests/test-rmdir.c (main): Likewise.
9852         * tests/test-unlink.c (main): Likewise.
9853         * tests/test-unlinkat.c (main): Likewise.
9854         * tests/test-areadlink-with-size.c (main): Don't require a
9855         debug-only system call to pass, aiding cross-testing to mingw.
9856         * tests/test-areadlink.c (main): Likewise.
9857         * tests/test-areadlinkat-with-size.c (main): Likewise.
9858         * tests/test-areadlinkat.c (main): Likewise.
9859         * tests/test-canonicalize-lgpl.c (main): Likewise.
9860         * tests/test-canonicalize.c (main): Likewise.
9861         * tests/test-chown.c (main): Likewise.
9862         * tests/test-fchownat.c (main): Likewise.
9863         * tests/test-lchown.c (main): Likewise.
9864         * tests/test-fdutimensat.c (main): Likewise.
9865         * tests/test-futimens.c (main): Likewise.
9866         * tests/test-link.c (main): Likewise.
9867         * tests/test-linkat.c (main): Likewise.
9868         * tests/test-mkdir.c (main): Likewise.
9869         * tests/test-mkdirat.c (main): Likewise.
9870         * tests/test-mkfifo.c (main): Likewise.
9871         * tests/test-mkfifoat.c (main): Likewise.
9872         * tests/test-mknod.c (main): Likewise.
9873         * tests/test-readlink.c (main): Likewise.
9874         * tests/test-remove.c (main): Likewise.
9875         * tests/test-rename.c (main): Likewise.
9876         * tests/test-renameat.c (main): Likewise.
9877         * tests/test-symlink.c (main): Likewise.
9878         * tests/test-symlinkat.c (main): Likewise.
9879         * tests/test-utimens.c (main): Likewise.
9880         * tests/test-utimensat.c (main): Likewise.
9881
9882 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9883
9884         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9885         on $(UNUSED_PARAMETER_H) to avoid build failure.
9886
9887 2009-12-28  Jim Meyering  <meyering@redhat.com>
9888
9889         update-copyright: you may specify a max. line length other than 72
9890         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9891
9892         maint: use consistent FSF copyright line syntax
9893         * lib/posixtm.c: Add missing comma in FSF copyright line.
9894         * lib/posixtm.h: Likewise.
9895         * lib/getugroups.c: Add missing ", Inc.".
9896
9897         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9898         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9899         FSF copyright line.  Remove trailing blanks.
9900
9901 2009-12-28  Eric Blake  <ebb9@byu.net>
9902
9903         test-dup2: reduce dependencies
9904         * modules/cloexec (Configure.ac): Set witness.
9905         * modules/dup2-tests (Depends-on): Drop cloexec.
9906         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9907         not present.
9908         Suggested by Bruno Haible.
9909
9910 2009-12-26  Bruno Haible  <bruno@clisp.org>
9911
9912         Remove an unneeded dependency.
9913         * modules/fseterr (Depends-on): Remove dup2.
9914
9915 2009-12-26  Eric Blake  <ebb9@byu.net>
9916
9917         tests: use macros.h in more places
9918         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9919         (ASSERT_STREAM): Provide default of stderr.
9920         * tests/test-dirent-safer.c: Include macros.h, using alternate
9921         stream for assertions.
9922         * tests/test-dup-safer.c: Likewise.
9923         * tests/test-freopen-safer.c: Likewise.
9924         * tests/test-getopt.c: Likewise.
9925         * tests/test-openat-safer.c: Likewise.
9926         * tests/test-pipe.c: Likewise.
9927         * tests/test-popen-safer.c: Likewise.
9928         * modules/dirent-safer-tests (Files): Include macros.h.
9929         * modules/unistd-safer-tests (Files): Likewise.
9930         * modules/freopen-safer-tests (Files): Likewise.
9931         * modules/getopt-posix-tests (Files): Likewise.
9932         * modules/openat-safer-tests (Files): Likewise.
9933         * modules/pipe-tests (Files): Likewise.
9934
9935 2009-12-26  Bruno Haible  <bruno@clisp.org>
9936
9937         javacomp: Portability fix.
9938         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9939         that it also works on Solaris.
9940
9941 2009-12-26  Bruno Haible  <bruno@clisp.org>
9942
9943         localename: Fix storage allocation of gl_locale_name_thread's result.
9944         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9945         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9946         all platforms that have 'uselocale'.
9947         (gl_locale_name_thread_unsafe): New function, extracted from
9948         gl_locale_name_thread.
9949         (gl_locale_name_thread): Call struniq on all platforms that have
9950         'uselocale'.
9951         * tests/test-localename.c (test_locale_name_thread): Check that the
9952         resulting strings are permanently allocated.
9953         * modules/localename-tests (Depends-on): Add strdup.
9954
9955 2009-12-26  Bruno Haible  <bruno@clisp.org>
9956
9957         * tests/test-localename.c (categories): Fill in the strings.
9958
9959 2009-12-26  Jim Meyering  <meyering@redhat.com>
9960
9961         isdir: complete the removal of m4/isdir.m4
9962         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9963
9964         isdir: clean up, since at least grep still uses it
9965         * lib/isdir.c: Include "isdir.h".
9966         (S_ISDIR): Remove now-unneeded definition.
9967         * modules/isdir (Files): Add lib/isdir.h.
9968         * lib/isdir.h: New file, with declaration.
9969         * m4/isdir.m4: Remove file -- unneeded.
9970
9971 2009-12-25  Bruno Haible  <bruno@clisp.org>
9972
9973         selinux-h: Make generated .h files standalone.
9974         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9975         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9976         * lib/se-selinux.in.h: Likewise.
9977         * modules/selinux-h (Depends-on): Add unused-parameter.
9978         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9979         selinux/selinux.h and selinux/context.h.
9980         Suggested by Eric Blake.
9981
9982 2009-12-25  Bruno Haible  <bruno@clisp.org>
9983
9984         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9985         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9986         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9987         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9988         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9989
9990 2009-12-24  Bruno Haible  <bruno@clisp.org>
9991
9992         openat: Fix warning.
9993         * lib/openat-proc.c: Include <unistd.h>.
9994
9995 2009-12-24  Bruno Haible  <bruno@clisp.org>
9996
9997         New module 'unused-parameter'.
9998         * build-aux/unused-parameter.h: New file, extracted from earlier
9999         gnulib-common.m4.
10000         * modules/unused-parameter: New file.
10001         * lib/unistr.h: Include unused-parameter.h.
10002         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10003         _GL_UNUSED.
10004         * modules/unistr/base (Depends-on): Add unused-parameter.
10005
10006 2009-12-24  Bruno Haible  <bruno@clisp.org>
10007
10008         Add missing dependencies to 'extensions' module.
10009         * m4/extensions.m4: Add comment.
10010         * modules/accept4 (Depends-on): Add extensions.
10011         * modules/dup3 (Depends-on): Likewise.
10012         * modules/fcntl (Depends-on): Likewise.
10013         * modules/futimens (Depends-on): Likewise.
10014         * modules/mknod (Depends-on): Likewise.
10015         * modules/pipe2 (Depends-on): Likewise.
10016         * modules/stat-time (Depends-on): Likewise.
10017         * modules/strcasestr-simple (Depends-on): Likewise.
10018         * modules/strsignal (Depends-on): Likewise.
10019         * modules/utimensat (Depends-on): Likewise.
10020         * modules/localcharset (Depends-on): Likewise. Needed because of
10021         gl_FCNTL_O_FLAGS.
10022         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10023         AC_TYPE_MBSTATE_T.
10024         * modules/wcsnrtombs (Depends-on): Likewise.
10025         * modules/wcsrtombs (Depends-on): Likewise.
10026
10027 2009-12-24  Bruno Haible  <bruno@clisp.org>
10028
10029         binary-io: Avoid gcc warning due to SET_BINARY.
10030         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10031         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10032
10033 2009-12-24  Bruno Haible  <bruno@clisp.org>
10034
10035         Avoid future namespace pollution on glibc systems.
10036         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10037         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10038         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10039         glibc systems.
10040
10041 2009-12-24  Bruno Haible  <bruno@clisp.org>
10042
10043         Refactor common macros used in tests.
10044         * tests/macros.h: New file.
10045         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10046         and/or <stdlib.h>, if appropriate.
10047         (ASSERT, SIZEOF): Remove macros.
10048         * tests/test-areadlink-with-size.c: Likewise.
10049         * tests/test-areadlinkat.c: Likewise.
10050         * tests/test-areadlinkat-with-size.c: Likewise.
10051         * tests/test-argmatch.c: Likewise.
10052         * tests/test-argv-iter.c: Likewise.
10053         * tests/test-array-mergesort.c: Likewise.
10054         * tests/test-array_list.c: Likewise.
10055         * tests/test-array_oset.c: Likewise.
10056         * tests/test-avltree_list.c: Likewise.
10057         * tests/test-avltree_oset.c: Likewise.
10058         * tests/test-avltreehash_list.c: Likewise.
10059         * tests/test-base64.c: Likewise.
10060         * tests/test-binary-io.c: Likewise.
10061         * tests/test-bitrotate.c: Likewise.
10062         * tests/test-btowc.c: Likewise.
10063         * tests/test-byteswap.c: Likewise.
10064         * tests/test-c-ctype.c: Likewise.
10065         * tests/test-c-stack.c: Likewise.
10066         * tests/test-c-strcasecmp.c: Likewise.
10067         * tests/test-c-strcasestr.c: Likewise.
10068         * tests/test-c-strncasecmp.c: Likewise.
10069         * tests/test-c-strstr.c: Likewise.
10070         * tests/test-canonicalize-lgpl.c: Likewise.
10071         * tests/test-canonicalize.c: Likewise.
10072         * tests/test-carray_list.c: Likewise.
10073         * tests/test-ceilf1.c: Likewise.
10074         * tests/test-ceilf2.c: Likewise.
10075         * tests/test-ceill.c: Likewise.
10076         * tests/test-chown.c: Likewise.
10077         * tests/test-cloexec.c: Likewise.
10078         * tests/test-copy-acl.c: Likewise.
10079         * tests/test-copy-file.c: Likewise.
10080         * tests/test-count-one-bits.c: Likewise.
10081         * tests/test-dprintf-posix.c: Likewise.
10082         * tests/test-dup2.c: Likewise.
10083         * tests/test-dup3.c: Likewise.
10084         * tests/test-duplocale.c: Likewise.
10085         * tests/test-fbufmode.c: Likewise.
10086         * tests/test-fchdir.c: Likewise.
10087         * tests/test-fchownat.c: Likewise.
10088         * tests/test-fcntl-safer.c: Likewise.
10089         * tests/test-fcntl.c: Likewise.
10090         * tests/test-fdopendir.c: Likewise.
10091         * tests/test-fdutimensat.c: Likewise.
10092         * tests/test-fflush2.c: Likewise.
10093         * tests/test-file-has-acl.c: Likewise.
10094         * tests/test-filevercmp.c: Likewise.
10095         * tests/test-flock.c: Likewise.
10096         * tests/test-floorf1.c: Likewise.
10097         * tests/test-floorf2.c: Likewise.
10098         * tests/test-floorl.c: Likewise.
10099         * tests/test-fnmatch.c: Likewise.
10100         * tests/test-fopen.h: Likewise.
10101         * tests/test-fpending.c: Likewise.
10102         * tests/test-fprintf-posix.c: Likewise.
10103         * tests/test-fpurge.c: Likewise.
10104         * tests/test-freadable.c: Likewise.
10105         * tests/test-freadahead.c: Likewise.
10106         * tests/test-freading.c: Likewise.
10107         * tests/test-freadptr.c: Likewise.
10108         * tests/test-freadptr2.c: Likewise.
10109         * tests/test-freadseek.c: Likewise.
10110         * tests/test-freopen.c: Likewise.
10111         * tests/test-frexp.c: Likewise.
10112         * tests/test-frexpl.c: Likewise.
10113         * tests/test-fseek.c: Likewise.
10114         * tests/test-fseeko.c: Likewise.
10115         * tests/test-fstatat.c: Likewise.
10116         * tests/test-fstrcmp.c: Likewise.
10117         * tests/test-fsync.c: Likewise.
10118         * tests/test-ftell.c: Likewise.
10119         * tests/test-ftello.c: Likewise.
10120         * tests/test-func.c: Likewise.
10121         * tests/test-futimens.c: Likewise.
10122         * tests/test-fwritable.c: Likewise.
10123         * tests/test-fwriting.c: Likewise.
10124         * tests/test-getcwd.c: Likewise.
10125         * tests/test-getdate.c: Likewise.
10126         * tests/test-getdelim.c: Likewise.
10127         * tests/test-getdtablesize.c: Likewise.
10128         * tests/test-getgroups.c: Likewise.
10129         * tests/test-getline.c: Likewise.
10130         * tests/test-getndelim2.c: Likewise.
10131         * tests/test-glob.c: Likewise.
10132         * tests/test-hash.c: Likewise.
10133         * tests/test-i-ring.c: Likewise.
10134         * tests/test-iconv-utf.c: Likewise.
10135         * tests/test-iconv.c: Likewise.
10136         * tests/test-idpriv-drop.c: Likewise.
10137         * tests/test-idpriv-droptemp.c: Likewise.
10138         * tests/test-inet_ntop.c: Likewise.
10139         * tests/test-inet_pton.c: Likewise.
10140         * tests/test-isblank.c: Likewise.
10141         * tests/test-isfinite.c: Likewise.
10142         * tests/test-isinf.c: Likewise.
10143         * tests/test-isnan.c: Likewise.
10144         * tests/test-isnand.h: Likewise.
10145         * tests/test-isnanf.h: Likewise.
10146         * tests/test-isnanl.h: Likewise.
10147         * tests/test-lchown.c: Likewise.
10148         * tests/test-ldexpl.c: Likewise.
10149         * tests/test-link.c: Likewise.
10150         * tests/test-linkat.c: Likewise.
10151         * tests/test-linked_list.c: Likewise.
10152         * tests/test-linkedhash_list.c: Likewise.
10153         * tests/test-localename.c: Likewise.
10154         * tests/test-lseek.c: Likewise.
10155         * tests/test-lstat.c: Likewise.
10156         * tests/test-mbmemcasecmp.c: Likewise.
10157         * tests/test-mbmemcasecoll.c: Likewise.
10158         * tests/test-mbrtowc.c: Likewise.
10159         * tests/test-mbscasecmp.c: Likewise.
10160         * tests/test-mbscasestr1.c: Likewise.
10161         * tests/test-mbscasestr2.c: Likewise.
10162         * tests/test-mbscasestr3.c: Likewise.
10163         * tests/test-mbscasestr4.c: Likewise.
10164         * tests/test-mbschr.c: Likewise.
10165         * tests/test-mbscspn.c: Likewise.
10166         * tests/test-mbsinit.c: Likewise.
10167         * tests/test-mbsncasecmp.c: Likewise.
10168         * tests/test-mbsnrtowcs.c: Likewise.
10169         * tests/test-mbspbrk.c: Likewise.
10170         * tests/test-mbspcasecmp.c: Likewise.
10171         * tests/test-mbsrchr.c: Likewise.
10172         * tests/test-mbsrtowcs.c: Likewise.
10173         * tests/test-mbsspn.c: Likewise.
10174         * tests/test-mbsstr1.c: Likewise.
10175         * tests/test-mbsstr2.c: Likewise.
10176         * tests/test-mbsstr3.c: Likewise.
10177         * tests/test-memchr.c: Likewise.
10178         * tests/test-memchr2.c: Likewise.
10179         * tests/test-memcmp.c: Likewise.
10180         * tests/test-memmem.c: Likewise.
10181         * tests/test-memrchr.c: Likewise.
10182         * tests/test-mkdir.c: Likewise.
10183         * tests/test-mkdirat.c: Likewise.
10184         * tests/test-mkfifo.c: Likewise.
10185         * tests/test-mkfifoat.c: Likewise.
10186         * tests/test-mknod.c: Likewise.
10187         * tests/test-nanosleep.c: Likewise.
10188         * tests/test-nl_langinfo.c: Likewise.
10189         * tests/test-obstack-printf.c: Likewise.
10190         * tests/test-open.c: Likewise.
10191         * tests/test-openat.c: Likewise.
10192         * tests/test-pipe-filter-gi1.c: Likewise.
10193         * tests/test-pipe-filter-gi2-main.c: Likewise.
10194         * tests/test-pipe-filter-ii1.c: Likewise.
10195         * tests/test-pipe-filter-ii2-main.c: Likewise.
10196         * tests/test-pipe2.c: Likewise.
10197         * tests/test-popen.h: Likewise.
10198         * tests/test-posixtm.c: Likewise.
10199         * tests/test-pread.c: Likewise.
10200         * tests/test-printf-frexp.c: Likewise.
10201         * tests/test-printf-frexpl.c: Likewise.
10202         * tests/test-printf-posix.c: Likewise.
10203         * tests/test-priv-set.c: Likewise.
10204         * tests/test-quotearg.c: Likewise.
10205         * tests/test-random_r.c: Likewise.
10206         * tests/test-rawmemchr.c: Likewise.
10207         * tests/test-rbtree_list.c: Likewise.
10208         * tests/test-rbtree_oset.c: Likewise.
10209         * tests/test-rbtreehash_list.c: Likewise.
10210         * tests/test-readlink.c: Likewise.
10211         * tests/test-remove.c: Likewise.
10212         * tests/test-rename.c: Likewise.
10213         * tests/test-renameat.c: Likewise.
10214         * tests/test-rmdir.c: Likewise.
10215         * tests/test-round1.c: Likewise.
10216         * tests/test-roundf1.c: Likewise.
10217         * tests/test-roundl.c: Likewise.
10218         * tests/test-safe-alloc.c: Likewise.
10219         * tests/test-sameacls.c: Likewise.
10220         * tests/test-set-mode-acl.c: Likewise.
10221         * tests/test-setenv.c: Likewise.
10222         * tests/test-sigaction.c: Likewise.
10223         * tests/test-signbit.c: Likewise.
10224         * tests/test-sleep.c: Likewise.
10225         * tests/test-snprintf-posix.c: Likewise.
10226         * tests/test-snprintf.c: Likewise.
10227         * tests/test-sprintf-posix.c: Likewise.
10228         * tests/test-stat-time.c: Likewise.
10229         * tests/test-stat.c: Likewise.
10230         * tests/test-strcasestr.c: Likewise.
10231         * tests/test-strchrnul.c: Likewise.
10232         * tests/test-strerror.c: Likewise.
10233         * tests/test-striconv.c: Likewise.
10234         * tests/test-striconveh.c: Likewise.
10235         * tests/test-striconveha.c: Likewise.
10236         * tests/test-strsignal.c: Likewise.
10237         * tests/test-strstr.c: Likewise.
10238         * tests/test-strtod.c: Likewise.
10239         * tests/test-strverscmp.c: Likewise.
10240         * tests/test-symlink.c: Likewise.
10241         * tests/test-symlinkat.c: Likewise.
10242         * tests/test-trunc1.c: Likewise.
10243         * tests/test-trunc2.c: Likewise.
10244         * tests/test-truncf1.c: Likewise.
10245         * tests/test-truncf2.c: Likewise.
10246         * tests/test-truncl.c: Likewise.
10247         * tests/test-uname.c: Likewise.
10248         * tests/test-unlink.c: Likewise.
10249         * tests/test-unlinkat.c: Likewise.
10250         * tests/test-unsetenv.c: Likewise.
10251         * tests/test-usleep.c: Likewise.
10252         * tests/test-utimens.c: Likewise.
10253         * tests/test-utimensat.c: Likewise.
10254         * tests/test-vasnprintf-posix.c: Likewise.
10255         * tests/test-vasnprintf-posix2.c: Likewise.
10256         * tests/test-vasnprintf.c: Likewise.
10257         * tests/test-vasprintf-posix.c: Likewise.
10258         * tests/test-vasprintf.c: Likewise.
10259         * tests/test-vdprintf-posix.c: Likewise.
10260         * tests/test-vfprintf-posix.c: Likewise.
10261         * tests/test-vprintf-posix.c: Likewise.
10262         * tests/test-vsnprintf-posix.c: Likewise.
10263         * tests/test-vsnprintf.c: Likewise.
10264         * tests/test-vsprintf-posix.c: Likewise.
10265         * tests/test-wcrtomb.c: Likewise.
10266         * tests/test-wcsnrtombs.c: Likewise.
10267         * tests/test-wcsrtombs.c: Likewise.
10268         * tests/test-wctype.c: Likewise.
10269         * tests/test-wcwidth.c: Likewise.
10270         * tests/test-xfprintf-posix.c: Likewise.
10271         * tests/test-xmemdup0.c: Likewise.
10272         * tests/test-xprintf-posix.c: Likewise.
10273         * tests/test-xvasprintf.c: Likewise.
10274         * tests/unicase/test-locale-language.c: Likewise.
10275         * tests/unicase/test-mapping-part1.h: Likewise.
10276         * tests/unicase/test-predicate-part1.h: Likewise.
10277         * tests/unicase/test-u8-casecmp.c: Likewise.
10278         * tests/unicase/test-u8-casecoll.c: Likewise.
10279         * tests/unicase/test-u8-casefold.c: Likewise.
10280         * tests/unicase/test-u8-is-cased.c: Likewise.
10281         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10282         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10283         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10284         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10285         * tests/unicase/test-u8-tolower.c: Likewise.
10286         * tests/unicase/test-u8-totitle.c: Likewise.
10287         * tests/unicase/test-u8-toupper.c: Likewise.
10288         * tests/unicase/test-u16-casecmp.c: Likewise.
10289         * tests/unicase/test-u16-casecoll.c: Likewise.
10290         * tests/unicase/test-u16-casefold.c: Likewise.
10291         * tests/unicase/test-u16-is-cased.c: Likewise.
10292         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10293         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10294         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10295         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10296         * tests/unicase/test-u16-tolower.c: Likewise.
10297         * tests/unicase/test-u16-totitle.c: Likewise.
10298         * tests/unicase/test-u16-toupper.c: Likewise.
10299         * tests/unicase/test-u32-casecmp.c: Likewise.
10300         * tests/unicase/test-u32-casecoll.c: Likewise.
10301         * tests/unicase/test-u32-casefold.c: Likewise.
10302         * tests/unicase/test-u32-is-cased.c: Likewise.
10303         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10304         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10305         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10306         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10307         * tests/unicase/test-u32-tolower.c: Likewise.
10308         * tests/unicase/test-u32-totitle.c: Likewise.
10309         * tests/unicase/test-u32-toupper.c: Likewise.
10310         * tests/unicase/test-ulc-casecmp.c: Likewise.
10311         * tests/unicase/test-ulc-casecoll.c: Likewise.
10312         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10313         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10314         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10315         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10316         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10317         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10318         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10319         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10320         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10321         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10322         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10323         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10324         * tests/unictype/test-bidi_byname.c: Likewise.
10325         * tests/unictype/test-bidi_name.c: Likewise.
10326         * tests/unictype/test-bidi_of.c: Likewise.
10327         * tests/unictype/test-bidi_test.c: Likewise.
10328         * tests/unictype/test-block_list.c: Likewise.
10329         * tests/unictype/test-block_of.c: Likewise.
10330         * tests/unictype/test-block_test.c: Likewise.
10331         * tests/unictype/test-categ_and.c: Likewise.
10332         * tests/unictype/test-categ_and_not.c: Likewise.
10333         * tests/unictype/test-categ_byname.c: Likewise.
10334         * tests/unictype/test-categ_name.c: Likewise.
10335         * tests/unictype/test-categ_none.c: Likewise.
10336         * tests/unictype/test-categ_of.c: Likewise.
10337         * tests/unictype/test-categ_or.c: Likewise.
10338         * tests/unictype/test-categ_test_withtable.c: Likewise.
10339         * tests/unictype/test-combining.c: Likewise.
10340         * tests/unictype/test-decdigit.c: Likewise.
10341         * tests/unictype/test-digit.c: Likewise.
10342         * tests/unictype/test-mirror.c: Likewise.
10343         * tests/unictype/test-numeric.c: Likewise.
10344         * tests/unictype/test-pr_byname.c: Likewise.
10345         * tests/unictype/test-pr_test.c: Likewise.
10346         * tests/unictype/test-predicate-part1.h: Likewise.
10347         * tests/unictype/test-scripts.c: Likewise.
10348         * tests/unictype/test-sy_c_ident.c: Likewise.
10349         * tests/unictype/test-sy_java_ident.c: Likewise.
10350         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10351         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10352         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10353         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10354         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10355         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10356         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10357         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10358         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10359         * tests/uninorm/test-compat-decomposition.c: Likewise.
10360         * tests/uninorm/test-composition.c: Likewise.
10361         * tests/uninorm/test-decomposing-form.c: Likewise.
10362         * tests/uninorm/test-decomposition.c: Likewise.
10363         * tests/uninorm/test-u8-nfc.c: Likewise.
10364         * tests/uninorm/test-u8-nfd.c: Likewise.
10365         * tests/uninorm/test-u8-nfkc.c: Likewise.
10366         * tests/uninorm/test-u8-nfkd.c: Likewise.
10367         * tests/uninorm/test-u8-normcmp.c: Likewise.
10368         * tests/uninorm/test-u8-normcoll.c: Likewise.
10369         * tests/uninorm/test-u16-nfc.c: Likewise.
10370         * tests/uninorm/test-u16-nfd.c: Likewise.
10371         * tests/uninorm/test-u16-nfkc.c: Likewise.
10372         * tests/uninorm/test-u16-nfkd.c: Likewise.
10373         * tests/uninorm/test-u16-normcmp.c: Likewise.
10374         * tests/uninorm/test-u16-normcoll.c: Likewise.
10375         * tests/uninorm/test-u32-nfc.c: Likewise.
10376         * tests/uninorm/test-u32-nfd.c: Likewise.
10377         * tests/uninorm/test-u32-nfkc.c: Likewise.
10378         * tests/uninorm/test-u32-nfkd.c: Likewise.
10379         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10380         * tests/uninorm/test-u32-normcmp.c: Likewise.
10381         * tests/uninorm/test-u32-normcoll.c: Likewise.
10382         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10383         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10384         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10385         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10386         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10387         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10388         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10389         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10390         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10391         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10392         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10393         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10394         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10395         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10396         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10397         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10398         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10399         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10400         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10401         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10402         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10403         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10404         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10405         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10406         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10407         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10408         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10409         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10410         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10411         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10412         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10413         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10414         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10415         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10416         * tests/uniwidth/test-u8-width.c: Likewise.
10417         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10418         * tests/uniwidth/test-u16-width.c: Likewise.
10419         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10420         * tests/uniwidth/test-u32-width.c: Likewise.
10421         * tests/uniwidth/test-uc_width.c: Likewise.
10422         * tests/uniwidth/test-uc_width2.c: Likewise.
10423         * modules/acl-tests (Files): Add tests/macros.h.
10424         * modules/areadlink-tests (Files): Likewise.
10425         * modules/areadlink-with-size-tests (Files): Likewise.
10426         * modules/areadlinkat-tests (Files): Likewise.
10427         * modules/areadlinkat-with-size-tests (Files): Likewise.
10428         * modules/argmatch-tests (Files): Likewise.
10429         * modules/argv-iter-tests (Files): Likewise.
10430         * modules/array-list-tests (Files): Likewise.
10431         * modules/array-mergesort-tests (Files): Likewise.
10432         * modules/array-oset-tests (Files): Likewise.
10433         * modules/avltree-list-tests (Files): Likewise.
10434         * modules/avltree-oset-tests (Files): Likewise.
10435         * modules/avltreehash-list-tests (Files): Likewise.
10436         * modules/base64-tests (Files): Likewise.
10437         * modules/binary-io-tests (Files): Likewise.
10438         * modules/bitrotate-tests (Files): Likewise.
10439         * modules/btowc-tests (Files): Likewise.
10440         * modules/byteswap-tests (Files): Likewise.
10441         * modules/c-ctype-tests (Files): Likewise.
10442         * modules/c-stack-tests (Files): Likewise.
10443         * modules/c-strcase-tests (Files): Likewise.
10444         * modules/c-strcasestr-tests (Files): Likewise.
10445         * modules/c-strstr-tests (Files): Likewise.
10446         * modules/canonicalize-lgpl-tests (Files): Likewise.
10447         * modules/canonicalize-tests (Files): Likewise.
10448         * modules/carray-list-tests (Files): Likewise.
10449         * modules/ceilf-tests (Files): Likewise.
10450         * modules/ceill-tests (Files): Likewise.
10451         * modules/chown-tests (Files): Likewise.
10452         * modules/cloexec-tests (Files): Likewise.
10453         * modules/copy-file-tests (Files): Likewise.
10454         * modules/count-one-bits-tests (Files): Likewise.
10455         * modules/dprintf-posix-tests (Files): Likewise.
10456         * modules/dup2-tests (Files): Likewise.
10457         * modules/dup3-tests (Files): Likewise.
10458         * modules/duplocale-tests (Files): Likewise.
10459         * modules/fbufmode-tests (Files): Likewise.
10460         * modules/fchdir-tests (Files): Likewise.
10461         * modules/fcntl-safer-tests (Files): Likewise.
10462         * modules/fcntl-tests (Files): Likewise.
10463         * modules/fdopendir-tests (Files): Likewise.
10464         * modules/fdutimensat-tests (Files): Likewise.
10465         * modules/fflush-tests (Files): Likewise.
10466         * modules/filevercmp-tests (Files): Likewise.
10467         * modules/flock-tests (Files): Likewise.
10468         * modules/floorf-tests (Files): Likewise.
10469         * modules/floorl-tests (Files): Likewise.
10470         * modules/fnmatch-tests (Files): Likewise.
10471         * modules/fopen-safer-tests (Files): Likewise.
10472         * modules/fopen-tests (Files): Likewise.
10473         * modules/fpending-tests (Files): Likewise.
10474         * modules/fprintf-posix-tests (Files): Likewise.
10475         * modules/fpurge-tests (Files): Likewise.
10476         * modules/freadable-tests (Files): Likewise.
10477         * modules/freadahead-tests (Files): Likewise.
10478         * modules/freading-tests (Files): Likewise.
10479         * modules/freadptr-tests (Files): Likewise.
10480         * modules/freadseek-tests (Files): Likewise.
10481         * modules/freopen-tests (Files): Likewise.
10482         * modules/frexp-nolibm-tests (Files): Likewise.
10483         * modules/frexp-tests (Files): Likewise.
10484         * modules/frexpl-nolibm-tests (Files): Likewise.
10485         * modules/frexpl-tests (Files): Likewise.
10486         * modules/fseek-tests (Files): Likewise.
10487         * modules/fseeko-tests (Files): Likewise.
10488         * modules/fstrcmp-tests (Files): Likewise.
10489         * modules/fsync-tests (Files): Likewise.
10490         * modules/ftell-tests (Files): Likewise.
10491         * modules/ftello-tests (Files): Likewise.
10492         * modules/func-tests (Files): Likewise.
10493         * modules/futimens-tests (Files): Likewise.
10494         * modules/fwritable-tests (Files): Likewise.
10495         * modules/fwriting-tests (Files): Likewise.
10496         * modules/getcwd-tests (Files): Likewise.
10497         * modules/getdate-tests (Files): Likewise.
10498         * modules/getdelim-tests (Files): Likewise.
10499         * modules/getdtablesize-tests (Files): Likewise.
10500         * modules/getgroups-tests (Files): Likewise.
10501         * modules/getline-tests (Files): Likewise.
10502         * modules/getndelim2-tests (Files): Likewise.
10503         * modules/glob-tests (Files): Likewise.
10504         * modules/hash-tests (Files): Likewise.
10505         * modules/i-ring-tests (Files): Likewise.
10506         * modules/iconv-tests (Files): Likewise.
10507         * modules/iconv_open-utf-tests (Files): Likewise.
10508         * modules/idpriv-drop-tests (Files): Likewise.
10509         * modules/idpriv-droptemp-tests (Files): Likewise.
10510         * modules/inet_ntop-tests (Files): Likewise.
10511         * modules/inet_pton-tests (Files): Likewise.
10512         * modules/isblank-tests (Files): Likewise.
10513         * modules/isfinite-tests (Files): Likewise.
10514         * modules/isinf-tests (Files): Likewise.
10515         * modules/isnan-tests (Files): Likewise.
10516         * modules/isnand-nolibm-tests (Files): Likewise.
10517         * modules/isnand-tests (Files): Likewise.
10518         * modules/isnanf-nolibm-tests (Files): Likewise.
10519         * modules/isnanf-tests (Files): Likewise.
10520         * modules/isnanl-nolibm-tests (Files): Likewise.
10521         * modules/isnanl-tests (Files): Likewise.
10522         * modules/lchown-tests (Files): Likewise.
10523         * modules/ldexpl-tests (Files): Likewise.
10524         * modules/link-tests (Files): Likewise.
10525         * modules/linkat-tests (Files): Likewise.
10526         * modules/linked-list-tests (Files): Likewise.
10527         * modules/linkedhash-list-tests (Files): Likewise.
10528         * modules/localename-tests (Files): Likewise.
10529         * modules/lseek-tests (Files): Likewise.
10530         * modules/lstat-tests (Files): Likewise.
10531         * modules/mbmemcasecmp-tests (Files): Likewise.
10532         * modules/mbmemcasecoll-tests (Files): Likewise.
10533         * modules/mbrtowc-tests (Files): Likewise.
10534         * modules/mbscasecmp-tests (Files): Likewise.
10535         * modules/mbscasestr-tests (Files): Likewise.
10536         * modules/mbschr-tests (Files): Likewise.
10537         * modules/mbscspn-tests (Files): Likewise.
10538         * modules/mbsinit-tests (Files): Likewise.
10539         * modules/mbsncasecmp-tests (Files): Likewise.
10540         * modules/mbsnrtowcs-tests (Files): Likewise.
10541         * modules/mbspbrk-tests (Files): Likewise.
10542         * modules/mbspcasecmp-tests (Files): Likewise.
10543         * modules/mbsrchr-tests (Files): Likewise.
10544         * modules/mbsrtowcs-tests (Files): Likewise.
10545         * modules/mbsspn-tests (Files): Likewise.
10546         * modules/mbsstr-tests (Files): Likewise.
10547         * modules/memchr-tests (Files): Likewise.
10548         * modules/memchr2-tests (Files): Likewise.
10549         * modules/memcmp-tests (Files): Likewise.
10550         * modules/memmem-tests (Files): Likewise.
10551         * modules/memrchr-tests (Files): Likewise.
10552         * modules/mkdir-tests (Files): Likewise.
10553         * modules/mkfifo-tests (Files): Likewise.
10554         * modules/mkfifoat-tests (Files): Likewise.
10555         * modules/mknod-tests (Files): Likewise.
10556         * modules/nanosleep-tests (Files): Likewise.
10557         * modules/nl_langinfo-tests (Files): Likewise.
10558         * modules/obstack-printf-tests (Files): Likewise.
10559         * modules/open-tests (Files): Likewise.
10560         * modules/openat-tests (Files): Likewise.
10561         * modules/pipe-filter-gi-tests (Files): Likewise.
10562         * modules/pipe-filter-ii-tests (Files): Likewise.
10563         * modules/pipe2-tests (Files): Likewise.
10564         * modules/popen-safer-tests (Files): Likewise.
10565         * modules/popen-tests (Files): Likewise.
10566         * modules/posixtm-tests (Files): Likewise.
10567         * modules/pread-tests (Files): Likewise.
10568         * modules/printf-frexp-tests (Files): Likewise.
10569         * modules/printf-frexpl-tests (Files): Likewise.
10570         * modules/printf-posix-tests (Files): Likewise.
10571         * modules/priv-set-tests (Files): Likewise.
10572         * modules/quotearg-tests (Files): Likewise.
10573         * modules/random_r-tests (Files): Likewise.
10574         * modules/rawmemchr-tests (Files): Likewise.
10575         * modules/rbtree-list-tests (Files): Likewise.
10576         * modules/rbtree-oset-tests (Files): Likewise.
10577         * modules/rbtreehash-list-tests (Files): Likewise.
10578         * modules/readlink-tests (Files): Likewise.
10579         * modules/remove-tests (Files): Likewise.
10580         * modules/rename-tests (Files): Likewise.
10581         * modules/renameat-tests (Files): Likewise.
10582         * modules/rmdir-tests (Files): Likewise.
10583         * modules/round-tests (Files): Likewise.
10584         * modules/roundf-tests (Files): Likewise.
10585         * modules/roundl-tests (Files): Likewise.
10586         * modules/safe-alloc-tests (Files): Likewise.
10587         * modules/setenv-tests (Files): Likewise.
10588         * modules/sigaction-tests (Files): Likewise.
10589         * modules/signbit-tests (Files): Likewise.
10590         * modules/sleep-tests (Files): Likewise.
10591         * modules/snprintf-posix-tests (Files): Likewise.
10592         * modules/snprintf-tests (Files): Likewise.
10593         * modules/sprintf-posix-tests (Files): Likewise.
10594         * modules/stat-tests (Files): Likewise.
10595         * modules/stat-time-tests (Files): Likewise.
10596         * modules/strcasestr-tests (Files): Likewise.
10597         * modules/strchrnul-tests (Files): Likewise.
10598         * modules/strerror-tests (Files): Likewise.
10599         * modules/striconv-tests (Files): Likewise.
10600         * modules/striconveh-tests (Files): Likewise.
10601         * modules/striconveha-tests (Files): Likewise.
10602         * modules/strsignal-tests (Files): Likewise.
10603         * modules/strstr-tests (Files): Likewise.
10604         * modules/strtod-tests (Files): Likewise.
10605         * modules/strverscmp-tests (Files): Likewise.
10606         * modules/symlink-tests (Files): Likewise.
10607         * modules/symlinkat-tests (Files): Likewise.
10608         * modules/trunc-tests (Files): Likewise.
10609         * modules/truncf-tests (Files): Likewise.
10610         * modules/truncl-tests (Files): Likewise.
10611         * modules/uname-tests (Files): Likewise.
10612         * modules/unicase/cased-tests (Files): Likewise.
10613         * modules/unicase/ignorable-tests (Files): Likewise.
10614         * modules/unicase/locale-language-tests (Files): Likewise.
10615         * modules/unicase/tolower-tests (Files): Likewise.
10616         * modules/unicase/totitle-tests (Files): Likewise.
10617         * modules/unicase/toupper-tests (Files): Likewise.
10618         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10619         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10620         * modules/unicase/u8-casefold-tests (Files): Likewise.
10621         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10622         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10623         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10624         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10625         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10626         * modules/unicase/u8-tolower-tests (Files): Likewise.
10627         * modules/unicase/u8-totitle-tests (Files): Likewise.
10628         * modules/unicase/u8-toupper-tests (Files): Likewise.
10629         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10630         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10631         * modules/unicase/u16-casefold-tests (Files): Likewise.
10632         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10633         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10634         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10635         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10636         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10637         * modules/unicase/u16-tolower-tests (Files): Likewise.
10638         * modules/unicase/u16-totitle-tests (Files): Likewise.
10639         * modules/unicase/u16-toupper-tests (Files): Likewise.
10640         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10641         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10642         * modules/unicase/u32-casefold-tests (Files): Likewise.
10643         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10644         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10645         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10646         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10647         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10648         * modules/unicase/u32-tolower-tests (Files): Likewise.
10649         * modules/unicase/u32-totitle-tests (Files): Likewise.
10650         * modules/unicase/u32-toupper-tests (Files): Likewise.
10651         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10652         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10653         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10654         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10655         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10656         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10657         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10658         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10659         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10660         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10661         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10662         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10663         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10664         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10665         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10666         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10667         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10668         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10669         * modules/unictype/block-list-tests (Files): Likewise.
10670         * modules/unictype/block-of-tests (Files): Likewise.
10671         * modules/unictype/block-test-tests (Files): Likewise.
10672         * modules/unictype/category-C-tests (Files): Likewise.
10673         * modules/unictype/category-Cc-tests (Files): Likewise.
10674         * modules/unictype/category-Cf-tests (Files): Likewise.
10675         * modules/unictype/category-Cn-tests (Files): Likewise.
10676         * modules/unictype/category-Co-tests (Files): Likewise.
10677         * modules/unictype/category-Cs-tests (Files): Likewise.
10678         * modules/unictype/category-L-tests (Files): Likewise.
10679         * modules/unictype/category-Ll-tests (Files): Likewise.
10680         * modules/unictype/category-Lm-tests (Files): Likewise.
10681         * modules/unictype/category-Lo-tests (Files): Likewise.
10682         * modules/unictype/category-Lt-tests (Files): Likewise.
10683         * modules/unictype/category-Lu-tests (Files): Likewise.
10684         * modules/unictype/category-M-tests (Files): Likewise.
10685         * modules/unictype/category-Mc-tests (Files): Likewise.
10686         * modules/unictype/category-Me-tests (Files): Likewise.
10687         * modules/unictype/category-Mn-tests (Files): Likewise.
10688         * modules/unictype/category-N-tests (Files): Likewise.
10689         * modules/unictype/category-Nd-tests (Files): Likewise.
10690         * modules/unictype/category-Nl-tests (Files): Likewise.
10691         * modules/unictype/category-No-tests (Files): Likewise.
10692         * modules/unictype/category-P-tests (Files): Likewise.
10693         * modules/unictype/category-Pc-tests (Files): Likewise.
10694         * modules/unictype/category-Pd-tests (Files): Likewise.
10695         * modules/unictype/category-Pe-tests (Files): Likewise.
10696         * modules/unictype/category-Pf-tests (Files): Likewise.
10697         * modules/unictype/category-Pi-tests (Files): Likewise.
10698         * modules/unictype/category-Po-tests (Files): Likewise.
10699         * modules/unictype/category-Ps-tests (Files): Likewise.
10700         * modules/unictype/category-S-tests (Files): Likewise.
10701         * modules/unictype/category-Sc-tests (Files): Likewise.
10702         * modules/unictype/category-Sk-tests (Files): Likewise.
10703         * modules/unictype/category-Sm-tests (Files): Likewise.
10704         * modules/unictype/category-So-tests (Files): Likewise.
10705         * modules/unictype/category-Z-tests (Files): Likewise.
10706         * modules/unictype/category-Zl-tests (Files): Likewise.
10707         * modules/unictype/category-Zp-tests (Files): Likewise.
10708         * modules/unictype/category-Zs-tests (Files): Likewise.
10709         * modules/unictype/category-and-not-tests (Files): Likewise.
10710         * modules/unictype/category-and-tests (Files): Likewise.
10711         * modules/unictype/category-byname-tests (Files): Likewise.
10712         * modules/unictype/category-name-tests (Files): Likewise.
10713         * modules/unictype/category-none-tests (Files): Likewise.
10714         * modules/unictype/category-of-tests (Files): Likewise.
10715         * modules/unictype/category-or-tests (Files): Likewise.
10716         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10717         * modules/unictype/combining-class-tests (Files): Likewise.
10718         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10719         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10720         * modules/unictype/ctype-blank-tests (Files): Likewise.
10721         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10722         * modules/unictype/ctype-digit-tests (Files): Likewise.
10723         * modules/unictype/ctype-graph-tests (Files): Likewise.
10724         * modules/unictype/ctype-lower-tests (Files): Likewise.
10725         * modules/unictype/ctype-print-tests (Files): Likewise.
10726         * modules/unictype/ctype-punct-tests (Files): Likewise.
10727         * modules/unictype/ctype-space-tests (Files): Likewise.
10728         * modules/unictype/ctype-upper-tests (Files): Likewise.
10729         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10730         * modules/unictype/decimal-digit-tests (Files): Likewise.
10731         * modules/unictype/digit-tests (Files): Likewise.
10732         * modules/unictype/mirror-tests (Files): Likewise.
10733         * modules/unictype/numeric-tests (Files): Likewise.
10734         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10735         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10736         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10737         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10738         Likewise.
10739         * modules/unictype/property-bidi-block-separator-tests (Files):
10740         Likewise.
10741         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10742         Likewise.
10743         * modules/unictype/property-bidi-common-separator-tests (Files):
10744         Likewise.
10745         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10746         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10747         Likewise.
10748         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10749         Likewise.
10750         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10751         Likewise.
10752         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10753         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10754         Likewise.
10755         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10756         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10757         Likewise.
10758         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10759         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10760         * modules/unictype/property-bidi-segment-separator-tests (Files):
10761         Likewise.
10762         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10763         * modules/unictype/property-byname-tests (Files): Likewise.
10764         * modules/unictype/property-combining-tests (Files): Likewise.
10765         * modules/unictype/property-composite-tests (Files): Likewise.
10766         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10767         * modules/unictype/property-dash-tests (Files): Likewise.
10768         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10769         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10770         Likewise.
10771         * modules/unictype/property-deprecated-tests (Files): Likewise.
10772         * modules/unictype/property-diacritic-tests (Files): Likewise.
10773         * modules/unictype/property-extender-tests (Files): Likewise.
10774         * modules/unictype/property-format-control-tests (Files): Likewise.
10775         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10776         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10777         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10778         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10779         * modules/unictype/property-hyphen-tests (Files): Likewise.
10780         * modules/unictype/property-id-continue-tests (Files): Likewise.
10781         * modules/unictype/property-id-start-tests (Files): Likewise.
10782         * modules/unictype/property-ideographic-tests (Files): Likewise.
10783         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10784         * modules/unictype/property-ids-trinary-operator-tests (Files):
10785         Likewise.
10786         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10787         * modules/unictype/property-iso-control-tests (Files): Likewise.
10788         * modules/unictype/property-join-control-tests (Files): Likewise.
10789         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10790         * modules/unictype/property-line-separator-tests (Files): Likewise.
10791         * modules/unictype/property-logical-order-exception-tests (Files):
10792         Likewise.
10793         * modules/unictype/property-lowercase-tests (Files): Likewise.
10794         * modules/unictype/property-math-tests (Files): Likewise.
10795         * modules/unictype/property-non-break-tests (Files): Likewise.
10796         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10797         * modules/unictype/property-numeric-tests (Files): Likewise.
10798         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10799         * modules/unictype/property-other-default-ignorable-code-point-tests
10800         (Files): Likewise.
10801         * modules/unictype/property-other-grapheme-extend-tests (Files):
10802         Likewise.
10803         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10804         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10805         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10806         * modules/unictype/property-other-math-tests (Files): Likewise.
10807         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10808         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10809         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10810         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10811         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10812         * modules/unictype/property-private-use-tests (Files): Likewise.
10813         * modules/unictype/property-punctuation-tests (Files): Likewise.
10814         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10815         * modules/unictype/property-radical-tests (Files): Likewise.
10816         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10817         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10818         * modules/unictype/property-space-tests (Files): Likewise.
10819         * modules/unictype/property-terminal-punctuation-tests (Files):
10820         Likewise.
10821         * modules/unictype/property-test-tests (Files): Likewise.
10822         * modules/unictype/property-titlecase-tests (Files): Likewise.
10823         * modules/unictype/property-unassigned-code-value-tests (Files):
10824         Likewise.
10825         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10826         * modules/unictype/property-uppercase-tests (Files): Likewise.
10827         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10828         * modules/unictype/property-white-space-tests (Files): Likewise.
10829         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10830         * modules/unictype/property-xid-start-tests (Files): Likewise.
10831         * modules/unictype/property-zero-width-tests (Files): Likewise.
10832         * modules/unictype/scripts-tests (Files): Likewise.
10833         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10834         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10835         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10836         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10837         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10838         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10839         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10840         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10841         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10842         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10843         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10844         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10845         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10846         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10847         * modules/uninorm/composition-tests (Files): Likewise.
10848         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10849         * modules/uninorm/decomposition-tests (Files): Likewise.
10850         * modules/uninorm/filter-tests (Files): Likewise.
10851         * modules/uninorm/nfc-tests (Files): Likewise.
10852         * modules/uninorm/nfd-tests (Files): Likewise.
10853         * modules/uninorm/nfkc-tests (Files): Likewise.
10854         * modules/uninorm/nfkd-tests (Files): Likewise.
10855         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10856         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10857         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10858         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10859         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10860         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10861         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10862         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10863         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10864         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10865         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10866         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10867         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10868         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10869         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10870         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10871         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10872         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10873         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10874         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10875         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10876         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10877         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10878         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10879         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10880         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10881         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10882         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10883         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10884         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10885         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10886         * modules/uniwidth/u8-width-tests (Files): Likewise.
10887         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10888         * modules/uniwidth/u16-width-tests (Files): Likewise.
10889         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10890         * modules/uniwidth/u32-width-tests (Files): Likewise.
10891         * modules/uniwidth/width-tests (Files): Likewise.
10892         * modules/unlink-tests (Files): Likewise.
10893         * modules/unsetenv-tests (Files): Likewise.
10894         * modules/usleep-tests (Files): Likewise.
10895         * modules/utimens-tests (Files): Likewise.
10896         * modules/utimensat-tests (Files): Likewise.
10897         * modules/vasnprintf-posix-tests (Files): Likewise.
10898         * modules/vasnprintf-tests (Files): Likewise.
10899         * modules/vasprintf-posix-tests (Files): Likewise.
10900         * modules/vasprintf-tests (Files): Likewise.
10901         * modules/vdprintf-posix-tests (Files): Likewise.
10902         * modules/vfprintf-posix-tests (Files): Likewise.
10903         * modules/vprintf-posix-tests (Files): Likewise.
10904         * modules/vsnprintf-posix-tests (Files): Likewise.
10905         * modules/vsnprintf-tests (Files): Likewise.
10906         * modules/vsprintf-posix-tests (Files): Likewise.
10907         * modules/wcrtomb-tests (Files): Likewise.
10908         * modules/wcsnrtombs-tests (Files): Likewise.
10909         * modules/wcsrtombs-tests (Files): Likewise.
10910         * modules/wctype-tests (Files): Likewise.
10911         * modules/wcwidth-tests (Files): Likewise.
10912         * modules/xmemdup0-tests (Files): Likewise.
10913         * modules/xprintf-posix-tests (Files): Likewise.
10914         * modules/xvasprintf-tests (Files): Likewise.
10915
10916 2009-12-24  Eric Blake  <ebb9@byu.net>
10917
10918         test-nanosleep: fix typo
10919         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10920         patch.
10921         Reported by Bruno Haible.
10922
10923 2009-12-24  Bruno Haible  <bruno@clisp.org>
10924
10925         Reduce namespace pollution on glibc systems.
10926         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10927         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10928         systems.
10929         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10930         <getopt.h> on glibc systems.
10931         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10932         systems.
10933         * lib/fcntl.c: Include <unistd.h> here instead.
10934
10935 2009-12-24  Bruno Haible  <bruno@clisp.org>
10936
10937         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10938
10939 2009-12-24  Eric Blake  <ebb9@byu.net>
10940
10941         tests: add signature checks
10942         * tests/signature.h (SIGNATURE_CHECK): New file.
10943         * modules/atexit-tests (Files): Use it.
10944         * modules/btowc-tests (Files): Likewise.
10945         * modules/canonicalize-lgpl-tests (Files): Likewise.
10946         * modules/ceilf-tests (Files): Likewise.
10947         * modules/ceill-tests (Files): Likewise.
10948         * modules/chown-tests (Files): Likewise.
10949         * modules/dprintf-posix-tests (Files): Likewise.
10950         * modules/dup2-tests (Files): Likewise.
10951         * modules/dup3-tests (Files): Likewise.
10952         * modules/duplocale-tests (Files): Likewise.
10953         * modules/fchdir-tests (Files): Likewise.
10954         * modules/fcntl-tests (Files): Likewise.
10955         * modules/fdopendir-tests (Files): Likewise.
10956         * modules/fflush-tests (Files): Likewise.
10957         * modules/flock-tests (Files): Likewise.
10958         * modules/floorf-tests (Files): Likewise.
10959         * modules/floorl-tests (Files): Likewise.
10960         * modules/fnmatch-tests (Files): Likewise.
10961         * modules/fopen-tests (Files): Likewise.
10962         * modules/fprintf-posix-tests (Files): Likewise.
10963         * modules/freopen-tests (Files): Likewise.
10964         * modules/frexp-nolibm-tests (Files): Likewise.
10965         * modules/frexp-tests (Files): Likewise.
10966         * modules/frexpl-nolibm-tests (Files): Likewise.
10967         * modules/frexpl-tests (Files): Likewise.
10968         * modules/fseek-tests (Files): Likewise.
10969         * modules/fseeko-tests (Files): Likewise.
10970         * modules/fsync-tests (Files): Likewise.
10971         * modules/ftell-tests (Files): Likewise.
10972         * modules/ftello-tests (Files): Likewise.
10973         * modules/futimens-tests (Files): Likewise.
10974         * modules/getaddrinfo-tests (Files): Likewise.
10975         * modules/getcwd-tests (Files): Likewise.
10976         * modules/getdelim-tests (Files): Likewise.
10977         * modules/getdtablesize-tests (Files): Likewise.
10978         * modules/getgroups-tests (Files): Likewise.
10979         * modules/gethostname-tests (Files): Likewise.
10980         * modules/getline-tests (Files): Likewise.
10981         * modules/getopt-posix-tests (Files): Likewise.
10982         * modules/gettimeofday-tests (Files): Likewise.
10983         * modules/glob-tests (Files): Likewise.
10984         * modules/iconv-tests (Files): Likewise.
10985         * modules/inet_ntop-tests (Files): Likewise.
10986         * modules/inet_pton-tests (Files): Likewise.
10987         * modules/isblank-tests (Files): Likewise.
10988         * modules/lchown-tests (Files): Likewise.
10989         * modules/ldexpl-tests (Files): Likewise.
10990         * modules/link-tests (Files): Likewise.
10991         * modules/linkat-tests (Files): Likewise.
10992         * modules/lseek-tests (Files): Likewise.
10993         * modules/lstat-tests (Files): Likewise.
10994         * modules/mbrtowc-tests (Files): Likewise.
10995         * modules/mbsinit-tests (Files): Likewise.
10996         * modules/mbsnrtowcs-tests (Files): Likewise.
10997         * modules/mbsrtowcs-tests (Files): Likewise.
10998         * modules/memchr-tests (Files): Likewise.
10999         * modules/memcmp-tests (Files): Likewise.
11000         * modules/memmem-tests (Files): Likewise.
11001         * modules/memrchr-tests (Files): Likewise.
11002         * modules/mkdir-tests (Files): Likewise.
11003         * modules/mkfifo-tests (Files): Likewise.
11004         * modules/mkfifoat-tests (Files): Likewise.
11005         * modules/mknod-tests (Files): Likewise.
11006         * modules/nanosleep-tests (Files): Likewise.
11007         * modules/nl_langinfo-tests (Files): Likewise.
11008         * modules/obstack-printf-tests (Files): Likewise.
11009         * modules/open-tests (Files): Likewise.
11010         * modules/openat-tests (Files): Likewise.
11011         * modules/perror-tests (Files): Likewise.
11012         * modules/pipe2-tests (Files): Likewise.
11013         * modules/poll-tests (Files): Likewise.
11014         * modules/popen-tests (Files): Likewise.
11015         * modules/posix_spawn-tests (Files): Likewise.
11016         * modules/posix_spawnp-tests (Files): Likewise.
11017         * modules/pread-tests (Files): Likewise.
11018         * modules/printf-posix-tests (Files): Likewise.
11019         * modules/pty-tests (Files): Likewise.
11020         * modules/random_r-tests (Files): Likewise.
11021         * modules/rawmemchr-tests (Files): Likewise.
11022         * modules/readlink-tests (Files): Likewise.
11023         * modules/remove-tests (Files): Likewise.
11024         * modules/rename-tests (Files): Likewise.
11025         * modules/renameat-tests (Files): Likewise.
11026         * modules/rmdir-tests (Files): Likewise.
11027         * modules/round-tests (Files): Likewise.
11028         * modules/roundf-tests (Files): Likewise.
11029         * modules/roundl-tests (Files): Likewise.
11030         * modules/select-tests (Files): Likewise.
11031         * modules/setenv-tests (Files): Likewise.
11032         * modules/sigaction-tests (Files): Likewise.
11033         * modules/sleep-tests (Files): Likewise.
11034         * modules/snprintf-posix-tests (Files): Likewise.
11035         * modules/snprintf-tests (Files): Likewise.
11036         * modules/sprintf-posix-tests (Files): Likewise.
11037         * modules/stat-tests (Files): Likewise.
11038         * modules/strcasestr-tests (Files): Likewise.
11039         * modules/strchrnul-tests (Files): Likewise.
11040         * modules/strerror-tests (Files): Likewise.
11041         * modules/strsignal-tests (Files): Likewise.
11042         * modules/strstr-tests (Files): Likewise.
11043         * modules/strtod-tests (Files): Likewise.
11044         * modules/strverscmp-tests (Files): Likewise.
11045         * modules/symlink-tests (Files): Likewise.
11046         * modules/symlinkat-tests (Files): Likewise.
11047         * modules/times-tests (Files): Likewise.
11048         * modules/trunc-tests (Files): Likewise.
11049         * modules/truncf-tests (Files): Likewise.
11050         * modules/truncl-tests (Files): Likewise.
11051         * modules/tsearch-tests (Files): Likewise.
11052         * modules/uname-tests (Files): Likewise.
11053         * modules/unlink-tests (Files): Likewise.
11054         * modules/unsetenv-tests (Files): Likewise.
11055         * modules/usleep-tests (Files): Likewise.
11056         * modules/utimensat-tests (Files): Likewise.
11057         * modules/vasprintf-tests (Files): Likewise.
11058         * modules/vdprintf-posix-tests (Files): Likewise.
11059         * modules/vfprintf-posix-tests (Files): Likewise.
11060         * modules/vprintf-posix-tests (Files): Likewise.
11061         * modules/vsnprintf-posix-tests (Files): Likewise.
11062         * modules/vsnprintf-tests (Files): Likewise.
11063         * modules/vsprintf-posix-tests (Files): Likewise.
11064         * modules/wcrtomb-tests (Files): Likewise.
11065         * modules/wcsnrtombs-tests (Files): Likewise.
11066         * modules/wcsrtombs-tests (Files): Likewise.
11067         * modules/wcwidth-tests (Files): Likewise.
11068         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11069         * tests/test-isinf.c (isinf): Likewise.
11070         * tests/test-isnan.c (isnan): Likewise.
11071         * tests/test-signbit.c (signbit): Likewise.
11072         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11073         declaration, either as macro or with correct signature.
11074         (select): Ensure function under test is declared with correct
11075         signature in correct header.
11076         * tests/test-atexit.c (atexit): Likewise.
11077         * tests/test-btowc.c (btowc): Likewise.
11078         * tests/test-canonicalize-lgpl.c (realpath)
11079         (canonicalize_file_name): Likewise.
11080         * tests/test-ceilf1.c (ceilf): Likewise.
11081         * tests/test-ceill.c (ceill): Likewise.
11082         * tests/test-chown.c (chown): Likewise.
11083         * tests/test-dprintf-posix.c (dprintf): Likewise.
11084         * tests/test-dup2.c (dup2): Likewise.
11085         * tests/test-dup3.c (dup3): Likewise.
11086         * tests/test-duplocale.c (duplocale): Likewise.
11087         * tests/test-fchdir.c (fchdir): Likewise.
11088         * tests/test-fchownat.c (fchownat): Likewise.
11089         * tests/test-fcntl.c (fcntl): Likewise.
11090         * tests/test-fdopendir.c (fdopendir): Likewise.
11091         * tests/test-fflush.c (fflush): Likewise.
11092         * tests/test-flock.c (flock): Likewise.
11093         * tests/test-floorf1.c (floorf): Likewise.
11094         * tests/test-floorl.c (floorl): Likewise.
11095         * tests/test-fnmatch.c (fnmatch): Likewise.
11096         * tests/test-fopen.c (fopen): Likewise.
11097         * tests/test-fprintf-posix.c (fprintf): Likewise.
11098         * tests/test-freopen.c (freopen): Likewise.
11099         * tests/test-frexp.c (frexp): Likewise.
11100         * tests/test-frexpl.c (frexpl): Likewise.
11101         * tests/test-fseek.c (fseek): Likewise.
11102         * tests/test-fseeko.c (fseeko): Likewise.
11103         * tests/test-fstatat.c (fstatat): Likewise.
11104         * tests/test-fsync.c (fsync): Likewise.
11105         * tests/test-ftell.c (ftell): Likewise.
11106         * tests/test-ftello.c (ftello): Likewise.
11107         * tests/test-futimens.c (futimens): Likewise.
11108         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11109         (gai_strerror): Likewise.
11110         * tests/test-getcwd.c (getcwd): Likewise.
11111         * tests/test-getdelim.c (getdelim): Likewise.
11112         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11113         * tests/test-getgroups.c (getgroups): Likewise.
11114         * tests/test-gethostname.c (gethostname): Likewise.
11115         * tests/test-getline.c (getline): Likewise.
11116         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11117         Likewise.
11118         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11119         * tests/test-glob.c (glob, globfree): Likewise.
11120         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11121         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11122         * tests/test-inet_pton.c (inet_pton): Likewise.
11123         * tests/test-isblank.c (isblank): Likewise.
11124         * tests/test-lchown.c (lchown): Likewise.
11125         * tests/test-ldexpl.c (ldexpl): Likewise.
11126         * tests/test-link.c (link): Likewise.
11127         * tests/test-linkat.c (linkat): Likewise.
11128         * tests/test-lseek.c (lseek): Likewise.
11129         * tests/test-lstat.c (lstat): Likewise.
11130         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11131         * tests/test-mbsinit.c (mbsinit): Likewise.
11132         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11133         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11134         * tests/test-memchr.c (memchr): Likewise.
11135         * tests/test-memcmp.c (memcmp): Likewise.
11136         * tests/test-memmem.c (memmem): Likewise.
11137         * tests/test-memrchr.c (memrchr): Likewise.
11138         * tests/test-mkdir.c (mkdir): Likewise.
11139         * tests/test-mkdirat.c (mkdirat): Likewise.
11140         * tests/test-mkfifo.c (mkfifo): Likewise.
11141         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11142         * tests/test-mknod.c (mknod): Likewise.
11143         * tests/test-nanosleep.c (nanosleep): Likewise.
11144         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11145         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11146         Likewise.
11147         * tests/test-open.c (open): Likewise.
11148         * tests/test-openat.c (openat): Likewise.
11149         * tests/test-perror.c (perror): Likewise.
11150         * tests/test-pipe2.c (pipe2): Likewise.
11151         * tests/test-poll.c (poll): Likewise.
11152         * tests/test-popen.c (popen, pclose): Likewise.
11153         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11154         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11155         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11156         (posix_spawn_file_actions_destroy)
11157         (posix_spawn_file_actions_addclose)
11158         (posix_spawn_file_actions_addopen)
11159         (posix_spawn_file_actions_adddup2): Likewise.
11160         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11161         * tests/test-pread.c (pread): Likewise.
11162         * tests/test-printf-posix.c (printf): Likewise.
11163         * tests/test-pty.c (openpty, forkpty): Likewise.
11164         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11165         (random_r): Likewise.
11166         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11167         * tests/test-readlink.c (readlink): Likewise.
11168         * tests/test-remove.c (remove): Likewise.
11169         * tests/test-rename.c (rename): Likewise.
11170         * tests/test-renameat.c (renameat): Likewise.
11171         * tests/test-rmdir.c (rmdir): Likewise.
11172         * tests/test-round1.c (round): Likewise.
11173         * tests/test-roundf1.c (roundf): Likewise.
11174         * tests/test-roundl.c (roundl): Likewise.
11175         * tests/test-setenv.c (setenv): Likewise.
11176         * tests/test-sigaction.c (sigaction): Likewise.
11177         * tests/test-sleep.c (sleep): Likewise.
11178         * tests/test-snprintf.c (snprintf): Likewise.
11179         * tests/test-sprintf-posix.c (sprintf): Likewise.
11180         * tests/test-stat.c (stat): Likewise.
11181         * tests/test-stpncpy.c (stpncpy): Likewise.
11182         * tests/test-strcasestr.c (strcasestr): Likewise.
11183         * tests/test-strchrnul.c (strchrnul): Likewise.
11184         * tests/test-strerror.c (strerror): Likewise.
11185         * tests/test-strsignal.c (strsignal): Likewise.
11186         * tests/test-strstr.c (strstr): Likewise.
11187         * tests/test-strtod.c (strtod): Likewise.
11188         * tests/test-strverscmp.c (strverscmp): Likewise.
11189         * tests/test-symlink.c (symlink): Likewise.
11190         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11191         * tests/test-times.c (times): Likewise.
11192         * tests/test-trunc1.c (trunc): Likewise.
11193         * tests/test-truncf1.c (truncf): Likewise.
11194         * tests/test-truncl.c (truncl): Likewise.
11195         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11196         Likewise.
11197         * tests/test-uname.c (uname): Likewise.
11198         * tests/test-unlink.c (unlink): Likewise.
11199         * tests/test-unlinkat.c (unlinkat): Likewise.
11200         * tests/test-unsetenv.c (unsetenv): Likewise.
11201         * tests/test-usleep.c (usleep): Likewise.
11202         * tests/test-utimensat.c (utimensat): Likewise.
11203         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11204         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11205         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11206         * tests/test-vprintf-posix.c (vprintf): Likewise.
11207         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11208         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11209         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11210         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11211         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11212         * tests/test-wcwidth.c (wcwidth): Likewise.
11213
11214         build: pull in conditional headers during GNULIB_POSIXCHECK
11215         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11216         definitions from any conditionally-included headers.
11217         * lib/stdlib.in.h (includes): Likewise.
11218         * lib/unistd.in.h (includes): Likewise.
11219
11220 2009-12-24  Bruno Haible  <bruno@clisp.org>
11221
11222         * tests/test-argv-iter.c: Include header file being tested immediately
11223         after config.h.
11224         * tests/test-base64.c: Likewise.
11225         * tests/test-flock.c: Likewise.
11226         * tests/test-fsync.c: Likewise.
11227         * tests/test-getdate.c: Likewise.
11228         * tests/test-getndelim2.c: Likewise.
11229         * tests/test-isfinite.c: Likewise.
11230         * tests/test-isinf.c: Likewise.
11231         * tests/test-strerror.c: Likewise.
11232         * tests/test-strsignal.c: Likewise.
11233
11234 2009-12-23  Eric Blake  <ebb9@byu.net>
11235
11236         unistd: work around cygwin bug
11237         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11238         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11239         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11240
11241 2009-12-23  Bruno Haible  <bruno@clisp.org>
11242
11243         localename: More tests.
11244         * tests/test-localename.c (SIZEOF): New macro.
11245         (categories): New variable.
11246         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11247         test_locale_name_default): Add test w.r.t. thread locale.
11248         (test_locale_name_thread): New function.
11249         (main): Invoke it.
11250
11251         localename: Make aware of thread locale.
11252         * lib/localename.h (gl_locale_name_thread): New declaration.
11253         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11254         behaviour with respect to thread locale.
11255         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11256         <langinfo.h>, glthread/lock.h.
11257         (SIZE_BITS): New macro.
11258         (string_hash): New function.
11259         (struct hash_node): New type.
11260         (HASH_TABLE_SIZE): New macro.
11261         (struniq_hash_table, struniq_lock): New variables.
11262         (struniq): New function.
11263         (gl_locale_name_thread): New function.
11264         (gl_locale_name): Invoke it.
11265         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11266         * modules/localename (Depends-on): Add lock.
11267         Reported by Mike Gran <spk121@yahoo.com>.
11268
11269 2009-12-23  Eric Blake  <ebb9@byu.net>
11270
11271         va-args: new module
11272         * modules/va-args: New file.
11273         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11274         * MODULES.html.sh (Core language properties): Mention it.
11275
11276         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11277         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11278         named alias for __attribute__((__unused__)).
11279         * lib/chown.c: Update client.
11280         * lib/fchmodat.c: Likewise.
11281         * lib/fts.c: Likewise.
11282         * lib/getdate.y: Likewise.
11283         * lib/getgroups.c: Likewise.
11284         * lib/getopt.c: Likewise.
11285         * lib/getugroups.c: Likewise.
11286         * lib/mkdir.c: Likewise.
11287         * lib/mkfifo.c: Likewise.
11288         * lib/mkfifoat.c: Likewise.
11289         * lib/mknod.c: Likewise.
11290         * lib/mknodat.c: Likewise.
11291         * lib/readlink.c: Likewise.
11292         * lib/se-context.in.h: Likewise.
11293         * lib/se-selinux.in.h: Likewise.
11294         * lib/sockets.c: Likewise.
11295         * lib/symlink.c: Likewise.
11296         * lib/symlinkat.c: Likewise.
11297         * lib/unicodeio.c: Likewise.
11298         * lib/unistr.h: Likewise.
11299         * tests/test-areadlink.c: Likewise.
11300         * tests/test-areadlinkat.c: Likewise.
11301         * tests/test-filenamecat.c: Likewise.
11302         * tests/test-fseeko.c: Likewise.
11303         * tests/test-ftello.c: Likewise.
11304         * tests/test-getdate.c: Likewise.
11305         * tests/test-getgroups.c: Likewise.
11306         * tests/test-gethostname.c: Likewise.
11307         * tests/test-quotearg.c: Likewise.
11308         * tests/test-version-etc.c: Likewise.
11309         * tests/test-xalloc-die.c: Likewise.
11310         * tests/test-xfprintf-posix.c: Likewise.
11311         * tests/test-xprintf-posix.c: Likewise.
11312         * tests/test-xvasprintf.c: Likewise.
11313
11314         tests: avoid compiler warnings
11315         * tests/test-fcntl.c (main): Delete unused parameters.
11316         * tests/test-freopen-safer.c (main): Likewise.
11317         * tests/test-xalloc-die.c (main): Mark unused parameters.
11318         * tests/test-fseeko.c (main): Likewise.
11319         * tests/test-ftello.c (main): Likewise.
11320         * tests/test-nanosleep.c (main): Avoid declaration warning.
11321         * tests/test-sleep.c (main): Likewise.
11322         * tests/test-unsetenv.c (main): Silence warning about string
11323         literal.
11324         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11325
11326 2009-12-23  Bruno Haible  <bruno@clisp.org>
11327
11328         * tests/test-localename.c (test_locale_name): New function, extracted
11329         from main. Also test mixed situations.
11330         (test_locale_name_posix, test_locale_name_environ,
11331         test_locale_name_default): New functions.
11332         (main): Invoke them all.
11333         * modules/localename-tests (configure.ac): Test for newlocale.
11334
11335 2009-12-23  Bruno Haible  <bruno@clisp.org>
11336
11337         unistd: Ensure getcwd gets declared before being overridden.
11338         * lib/unistd.in.h: Conditionally include <io.h>.
11339
11340 2009-12-22  Bruno Haible  <bruno@clisp.org>
11341
11342         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11343         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11344         (gl_WCHAR_H): Invoke it.
11345         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11346         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11347         Reported by Karl Berry <karl@freefriends.org>.
11348
11349 2009-12-22  Eric Blake  <ebb9@byu.net>
11350
11351         math, unistd: avoid redundant includes
11352         * lib/math.in.h (isnan): No need to re-include <math.h>.
11353         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11354
11355         getsubopt: work around cygwin bug
11356         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11357         avoid conflicting with system getsubopt.
11358         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11359         bug.
11360
11361         getopt: synchronize from glibc
11362         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11363         parameter order.  Adjust all callers.
11364         (_getopt_internal_r, main): Adjust quoting in error messages.
11365         Drop considerations for outdated POSIX 1003.2 error message.
11366         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11367         callers.
11368         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11369
11370         test-getopt: test stderr behavior
11371         * modules/getopt-posix-tests (Depends-on): Add dup2.
11372         * tests/test-getopt.c (ASSERT): Avoid stderr.
11373         (main): Move stderr to a temporary file.
11374         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11375         Instead, add parameter to inform caller if output occurred.
11376         (test_getopt): Adjust all existing tests to expect silence, and
11377         add new tests of leading ":".
11378         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11379         glibc shortcomings with leading "-:" or "+:" in optstring.
11380         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11381         Likewise.
11382         * doc/posix-functions/getopt.texi (getopt): Likewise.
11383
11384         test-getopt: enhance test
11385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11386         supports optind=0.
11387         * tests/test-getopt.c (OPTIND_MIN): Move...
11388         * tests/test-getopt.h (OPTIND_MIN): ...here.
11389         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11390         Require that optind=0 works, since modern BSD supports it in
11391         addition to optreset, and since coreutils expects it.
11392         (test_getopt_long_only): New test.
11393         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11394         glibc shortcomings with 'W;', and enforcement of optind=0.
11395         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11396         Likewise.
11397
11398 2009-12-21  Bruno Haible  <bruno@clisp.org>
11399
11400         localename: Improvements for MacOS X and Cygwin.
11401         * lib/localename.h (gl_locale_name_environ): New declaration.
11402         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11403         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11404         (gl_locale_name_posix): Invoke it.
11405         (gl_locale_name_default): Add comments. Use Windows native API also on
11406         Cygwin.
11407
11408 2009-12-21  Bruno Haible  <bruno@clisp.org>
11409
11410         Update list of Win32 locale ids.
11411         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11412         (LANG_SAMI): Renamed from LANG_SAAMI.
11413         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11414         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11415         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11416         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11417         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11418         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11419         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11420         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11421         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11422         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11423         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11424         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11425         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11426         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11427         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11428         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11429         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11430         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11431         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11432         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11433         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11434         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11435         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11436         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11437         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11438         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11439         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11440         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11441         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11442         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11443         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11444         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11445         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11446         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11447         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11448         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11449         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11450         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11451         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11452         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11453         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11454         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11455         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11456         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11457         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11458         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11459         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11460         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11461         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11462         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11463         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11464         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11465         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11466         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11467         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11468         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11469         Add more languages and countries for Sami, Sorbian. Add more countries
11470         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11471         for Pashto. Change country for Syriac, Tswana.
11472
11473 2009-12-21  Eric Blake  <ebb9@byu.net>
11474
11475         test-utimens: avoid spurious failure
11476         * tests/test-chown.h (nap): Factor...
11477         * tests/nap.h: ...into new file.
11478         * tests/test-lchown.h (nap): Avoid duplication.
11479         * tests/test-utimens-common.h (nap): Use shared implementation,
11480         necessary on file systems with 1-second resolution.
11481         * modules/chown-tests (Files): Include new file.
11482         * modules/fdutimensat-tests (Files): Likewise.
11483         * modules/futimens-tests (Files): Likewise.
11484         * modules/lchown-tests (Files): Likewise.
11485         * modules/openat-tests (Files): Likewise.
11486         * modules/utimens-tests (Files): Likewise.
11487         * modules/utimensat-tests (Files): Likewise.
11488
11489 2009-12-19  Eric Blake  <ebb9@byu.net>
11490
11491         futimens, utimensat: work around Linux bug
11492         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11493         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11494         * lib/utimensat.c (rpl_utimensat): Work around it.
11495         * lib/futimens.c (rpl_futimens): Adjust comment.
11496
11497         utimens: work around Linux ctime bug
11498         * lib/utimens.c (detect_ctime_bug): New helper function.
11499         (update_timespec): Differentiate between workaround needed for
11500         this bug vs. what is needed for systems that lack utimensat.
11501         (fdutimens, lutimens): Work around bug.
11502
11503         utimens: check for ctime update
11504         * tests/test-utimens-common.h (check_ctime): Define.
11505         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11506         * tests/test-futimens.h (test_futimens): Likewise.
11507         * tests/test-lutimens.h (test_lutimens): Likewise.
11508         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11509         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11510
11511 2009-12-19  Bruno Haible  <bruno@clisp.org>
11512
11513         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11514         * tests/test-dprintf-posix2.sh: New file.
11515         * tests/test-dprintf-posix2.c: New file.
11516         * modules/dprintf-posix-tests (Files): Add them.
11517         (configure.ac): Check for getrlimit and setrlimit.
11518         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11519
11520 2009-12-19  Bruno Haible  <bruno@clisp.org>
11521
11522         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11523         * tests/test-fprintf-posix3.sh: New file.
11524         * tests/test-fprintf-posix3.c: New file.
11525         * modules/fprintf-posix-tests (Files): Add them.
11526         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11527
11528 2009-12-19  Eric Blake  <ebb9@byu.net>
11529
11530         dirfd: fix prototype
11531         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11532         * lib/dirfd.c (dirfd): Likewise.
11533
11534         canonicalize: reduce memory usage
11535         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11536         allocation to size.
11537         Reported by Solar Designer <solar@openwall.com>.
11538
11539 2009-12-19  Bruno Haible  <bruno@clisp.org>
11540
11541         New module attribute 'Applicability'.
11542         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11543         * gnulib-tool: New option --extract-applicability.
11544         (func_usage): Document it.
11545         (sed_extract_prog): Recognize it.
11546         (func_get_applicability): New function.
11547         (func_import): Generalize handling of 'link-warning' module.
11548         * modules/link-warning (Applicability): New section.
11549         * modules/arg-nonnull (Applicability): New section.
11550         Repoted by Simon Josefsson <simon@josefsson.org>.
11551
11552 2009-12-19  Bruno Haible  <bruno@clisp.org>
11553
11554         fflush: tweak
11555         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11556         * lib/fseeko.c (rpl_fseeko): Likewise.
11557
11558 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11559
11560         * lib/gl_list.h: Fix typo in comment.
11561
11562 2009-12-16  Eric Blake  <ebb9@byu.net>
11563
11564         fcntl: use to simplify other modules
11565         * modules/cloexec (Depends-on): Add fcntl.
11566         * modules/fchdir (Depends-on): Likewise.
11567         * modules/fd-safer-flag (Depends-on): Likewise.
11568         * modules/unistd-safer (Depends-on): Likewise.
11569         * modules/dup3 (configure.ac): Set module indicator.
11570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11571         missing.
11572         * lib/fchdir.c (_gl_register_dup): Fix comment.
11573         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11574         * lib/dup-safer.c (dup_safer): Likewise.
11575         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11576         * lib/dup3.c (dup3): Likewise.
11577         * tests/test-fchdir.c (main): Enhance test.
11578         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11579
11580         fcntl: port portions of fcntl to mingw
11581         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11582         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11583         replacement for mingw.
11584         * modules/fcntl (Description): Update.
11585         (Depends-on): Add dup2.
11586         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11587         * modules/fcntl-h (Makefile.am): Substitute it.
11588         * lib/fcntl.in.h (fcntl): Update declaration.
11589         (F_DUPFD, F_GETFD): New macros, when needed.
11590         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11591         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11592         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11593         we now guarantee.
11594
11595         fcntl: work around cygwin bug in F_DUPFD
11596         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11597         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11598         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11599         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11600         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11601
11602         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11603         * modules/fcntl (Files): List new files.
11604         (configure.ac): Run a test.
11605         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11606         * lib/fcntl.c (rpl_fcntl): Likewise.
11607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11608         (gl_FCNTL_H): Always replace fcntl.h.
11609         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11610         * lib/fcntl.in.h (fcntl): Declare replacement.
11611         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11612         needed, plus a witness.
11613         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11614         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11615         * tests/test-fcntl.c: New file.
11616         * modules/fcntl-tests: Likewise.
11617
11618         binary-io: avoid potential compilation warning
11619         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11620         directives.
11621
11622         fflush: avoid compilation error on NetBSD
11623         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11624         between off_t and fpos_t, since the latter is sometimes a struct.
11625         * lib/fseeko.c (rpl_fseeko): Likewise.
11626         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11627
11628 2009-12-15  Eric Blake  <ebb9@byu.net>
11629
11630         fcntl-h, stdio, sys_ioctl: fix declarations
11631         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11632         function must not take arguments.
11633         * lib/sys_ioctl.in.h (ioctl): Likewise.
11634         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11635         (open): Add a link warning.
11636
11637 2009-12-15  Jim Meyering  <meyering@redhat.com>
11638
11639         areadlink, areadlink-with-size: relax license to LGPLv2+
11640         * modules/areadlink (License): Relax to LGPLv2+.
11641         * modules/areadlink-with-size (License): Likewise.
11642
11643 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11644             Bruno Haible  <bruno@clisp.org>
11645
11646         *printf: Fix memory leak.
11647         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11648         * lib/vfprintf.c (vfprintf): Likewise.
11649         * lib/dprintf.c (dprintf): Likewise.
11650         * lib/vdprintf.c (vdprintf): Likewise.
11651
11652 2009-12-14  Eric Blake  <ebb9@byu.net>
11653
11654         accept4: adjust module dependencies
11655         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11656
11657         utimens: one more try at avoiding compiler warning
11658         * lib/utimens.c (lutimens): Lower scope of result.
11659
11660 2009-12-13  Bruno Haible  <bruno@clisp.org>
11661
11662         Move the malloc checking from module 'list' to new module 'xlist'.
11663         * modules/xlist: New file.
11664         * lib/gl_xlist.h: New file.
11665         * lib/gl_xlist.c: New file.
11666         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11667         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11668         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11669         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11670         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11671         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11672         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11673         gl_sortedlist_nx_add): New declarations.
11674         (struct gl_list_implementation): Rename and change methods accordingly.
11675         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11676         (gl_list_nx_create): Renamed from gl_list_create.
11677         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11678         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11679         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11680         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11681         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11682         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11683         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11684         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11685         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11686         gl_list_create_empty.
11687         (gl_list_nx_create): Renamed from gl_list_create.
11688         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11689         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11690         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11691         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11692         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11693         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11694         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11695         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11696         * lib/gl_array_list.c: Don't include xalloc.h.
11697         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11698         NULL upon out-of-memory.
11699         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11700         out-of-memory.
11701         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11702         Change return type to 'int'.
11703         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11704         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11705         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11706         upon out-of-memory.
11707         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11708         upon out-of-memory.
11709         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11710         upon out-of-memory.
11711         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11712         upon out-of-memory.
11713         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11714         out-of-memory.
11715         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11716         Update.
11717         (gl_array_list_implementation): Update.
11718         * lib/gl_carray_list.c: Don't include xalloc.h.
11719         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11720         Return NULL upon out-of-memory.
11721         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11722         out-of-memory.
11723         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11724         Change return type to 'int'.
11725         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11726         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11727         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11728         upon out-of-memory.
11729         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11730         upon out-of-memory.
11731         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11732         out-of-memory.
11733         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11734         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11735         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11736         Update.
11737         (gl_carray_list_implementation): Update.
11738         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11739         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11740         gl_linked_create_empty. Return NULL upon out-of-memory.
11741         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11742         out-of-memory.
11743         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11744         Change return type to 'int'. Return -1 upon out-of-memory.
11745         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11746         out-of-memory.
11747         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11748         upon out-of-memory.
11749         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11750         upon out-of-memory.
11751         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11752         NULL upon out-of-memory.
11753         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11754         upon out-of-memory.
11755         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11756         out-of-memory.
11757         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11758         Update.
11759         * lib/gl_linked_list.c: Don't include xalloc.h.
11760         (gl_linked_list_implementation): Update.
11761         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11762         (add_to_bucket): Change return type to 'int'.
11763         (gl_linkedhash_list_implementation): Update.
11764         * lib/gl_anytree_list1.h (free_subtree): New function.
11765         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11766         gl_tree_create_empty. Return NULL upon out-of-memory.
11767         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11768         Change return type to 'int'. Return -1 upon out-of-memory.
11769         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11770         out-of-memory.
11771         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11772         (gl_tree_remove_node): New function, moved here from
11773         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11774         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11775         Update.
11776         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11777         malloc, not xmalloc. Return NULL upon out-of-memory.
11778         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11779         out-of-memory.
11780         (gl_tree_remove_node_from_tree): New function, extracted from
11781         gl_tree_remove_node.
11782         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11783         upon out-of-memory.
11784         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11785         out-of-memory.
11786         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11787         upon out-of-memory.
11788         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11789         upon out-of-memory.
11790         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11791         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11792         not xmalloc. Return NULL upon out-of-memory.
11793         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11794         out-of-memory.
11795         (gl_tree_remove_node_from_tree): New function, extracted from
11796         gl_tree_remove_node.
11797         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11798         upon out-of-memory.
11799         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11800         out-of-memory.
11801         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11802         upon out-of-memory.
11803         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11804         upon out-of-memory.
11805         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11806         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11807         gl_anytree_list1.h before gl_anyavltree_list2.h.
11808         (gl_avltree_list_implementation): Update.
11809         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11810         gl_anytree_list1.h before gl_anyavltree_list2.h.
11811         (gl_rbtree_list_implementation): Update.
11812         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11813         Change return type to 'int'. Return -1 upon out-of-memory. Use
11814         __builtin_expect.
11815         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11816         (gl_avltreehash_list_implementation): Update.
11817         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11818         (gl_rbtreehash_list_implementation): Update.
11819         * modules/array-list (Depends-on): Remove xalloc.
11820         * modules/carray-list (Depends-on): Likewise.
11821         * modules/linked-list (Depends-on): Likewise.
11822         * modules/linkedhash-list (Depends-on): Likewise.
11823         * modules/avltree-list (Depends-on): Likewise.
11824         * modules/rbtree-list (Depends-on): Likewise.
11825         * modules/avltreehash-list (Depends-on): Likewise.
11826         * modules/rbtreehash-list (Depends-on): Likewise.
11827
11828         * modules/xsublist: New file.
11829         * lib/gl_xsublist.h: New file.
11830         * lib/gl_xsublist.c: New file.
11831         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11832         (gl_sublist_nx_create): New declaration.
11833         * lib/gl_sublist.c: Don't include xalloc.h.
11834         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11835         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11836         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11837         Change return type to 'int'. Return -1 upon out-of-memory.
11838         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11839         upon out-of-memory.
11840         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11841         NULL upon out-of-memory.
11842         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11843         upon out-of-memory.
11844         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11845         NULL upon out-of-memory.
11846         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11847         NULL upon out-of-memory.
11848         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11849         upon out-of-memory.
11850         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11851         (gl_sublist_list_implementation): Update.
11852         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11853         upon out-of-memory.
11854         * modules/sublist (Depends-on): Remove xalloc.
11855
11856         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11857         * tests/test-carray_list.c: Likewise.
11858         * tests/test-linked_list.c: Likewise.
11859         * tests/test-linkedhash_list.c: Likewise.
11860         * tests/test-avltree_list.c: Likewise.
11861         * tests/test-rbtree_list.c: Likewise.
11862         * tests/test-avltreehash_list.c: Likewise.
11863         * tests/test-rbtreehash_list.c: Likewise.
11864         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11865         * modules/carray-list-tests (Makefile.am): Likewise.
11866         * modules/linked-list-tests (Makefile.am): Likewise.
11867         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11868         * modules/avltree-list-tests (Makefile.am): Likewise.
11869         * modules/rbtree-list-tests (Makefile.am): Likewise.
11870         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11871         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11872
11873         * NEWS: Mention the changes.
11874
11875         * lib/clean-temp.c: Include gl_xlist.h.
11876         * modules/clean-temp (Depends-on): Add xlist.
11877
11878         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11879         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11880
11881         * tests/test-array_oset.c: Include gl_xlist.h.
11882         * modules/array-oset-tests (Depends-on): Add xlist.
11883
11884         Reported by José E. Marchesi <jemarch@gnu.org>.
11885
11886 2009-12-13  Bruno Haible  <bruno@clisp.org>
11887
11888         Move the malloc checking from module 'oset' to new module 'xoset'.
11889         * modules/xoset: New file.
11890         * lib/gl_xoset.h: New file.
11891         * lib/gl_xoset.c: New file.
11892         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11893         declarations.
11894         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11895         (struct gl_oset_implementation): Rename and change methods accordingly.
11896         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11897         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11898         'int'. Mark as __warn_unused_result__.
11899         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11900         gl_oset_create_empty.
11901         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11902         'int'.
11903         * lib/gl_array_oset.c: Don't include xalloc.h.
11904         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11905         malloc, not xmalloc.
11906         (grow): Change return type to 'int'. Don't call xalloc_die.
11907         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11908         to 'int'.
11909         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11910         'int'.
11911         (gl_array_oset_implementation): Update.
11912         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11913         gl_tree_create_empty.
11914         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11915         'int'.
11916         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11917         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11918         xmalloc.
11919         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11920         not xmalloc.
11921         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11922         xmalloc.
11923         (gl_avltree_oset_implementation): Update.
11924         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11925         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11926         xmalloc.
11927         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11928         not xmalloc.
11929         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11930         xmalloc.
11931         (gl_rbtree_oset_implementation): Update.
11932         * modules/array-oset (Depends-on): Remove xalloc.
11933         * modules/avltree-oset (Depends-on): Likewise.
11934         * modules/rbtree-oset (Depends-on): Likewise.
11935         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11936         * tests/test-avltree_oset.c: Likewise.
11937         * tests/test-rbtree_oset.c: Likewise.
11938         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11939         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11940         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11941         * NEWS: Mention the change.
11942
11943 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11944
11945         maint.mk: allow a project to override release-prep commands
11946         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11947         commands into a new rule.
11948         (release-prep): New rule.
11949         (release-prep-hook): New overridable variable.
11950
11951 2009-12-13  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11954
11955 2009-12-13  Jim Meyering  <meyering@redhat.com>
11956
11957         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11958         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11959
11960 2009-12-12  Bruno Haible  <bruno@clisp.org>
11961
11962         duplocale: Tweak.
11963         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11964
11965 2009-12-12  Karl Berry  <karl@gnu.org>
11966
11967         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11968
11969 2009-12-12  Bruno Haible  <bruno@clisp.org>
11970
11971         * m4/po.m4: Undo incorrect untabification.
11972
11973 2009-12-12  Bruno Haible  <bruno@clisp.org>
11974
11975         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11976         * modules/c-strtod (Depends-on): Add locale.
11977         * modules/c-strtold (Depends-on): Likewise.
11978
11979 2009-12-12  Bruno Haible  <bruno@clisp.org>
11980
11981         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11982
11983 2009-12-11  Eric Blake  <ebb9@byu.net>
11984
11985         setenv: relax requirement in light of POSIX ruling
11986         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11987         not NULL.
11988         * tests/test-setenv.c (main): Relax test.
11989         * tests/test-unsetenv.c (main): Likewise.
11990         * doc/posix-functions/setenv.texi (setenv): Document this.
11991         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11992
11993 2009-12-11  Bruno Haible  <bruno@clisp.org>
11994
11995         New module 'fd-safer-flag'.
11996         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11997         * lib/dup-safer.c (dup_safer_flag): Remove function.
11998         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11999         * lib/fd-safer.c (fd_safer_flag): Remove function.
12000         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12001         * modules/cloexec (configure.ac): Drop indicator macro.
12002         * modules/fd-safer-flag: New file.
12003         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12004         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12005         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12006
12007 2009-12-11  Bruno Haible  <bruno@clisp.org>
12008
12009         Tests for module 'nl_langinfo'.
12010         * modules/nl_langinfo-tests: New file.
12011         * tests/test-nl_langinfo.sh: New file.
12012         * tests/test-nl_langinfo.c: New file.
12013
12014         New module 'nl_langinfo'.
12015         * lib/nl_langinfo.c: New file.
12016         * m4/nl_langinfo.m4: New file.
12017         * modules/nl_langinfo: New file.
12018         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12019
12020 2009-12-11  Bruno Haible  <bruno@clisp.org>
12021
12022         Tests for module 'langinfo'.
12023         * modules/langinfo-tests: New file.
12024         * tests/test-langinfo.c: New file.
12025
12026         New module 'langinfo'.
12027         * lib/langinfo.in.h: New file.
12028         * m4/langinfo_h.m4: New file.
12029         * modules/langinfo: New file.
12030         * doc/posix-headers/langinfo.texi: Mention the new module.
12031
12032 2009-12-11  Bruno Haible  <bruno@clisp.org>
12033
12034         * lib/config.charset: Untabify.
12035
12036 2009-12-11  Bruno Haible  <bruno@clisp.org>
12037
12038         * modules/unistd-safer (configure.ac): Drop indicator macro.
12039
12040 2009-12-11  Bruno Haible  <bruno@clisp.org>
12041
12042         Move pipe2-safer code to its own file.
12043         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12044         * lib/pipe-safer.c (pipe2_safer): Remove function.
12045         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12046         (Makefile.am): Add it to lib_SOURCES.
12047
12048 2009-12-10  Bruno Haible  <bruno@clisp.org>
12049
12050         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12051
12052 2009-12-10  Bruno Haible  <bruno@clisp.org>
12053
12054         Declare which arguments expect non-NULL values, for GCC and clang.
12055         * build-aux/arg-nonnull.h: New file.
12056         * modules/arg-nonnull: New file.
12057         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12058         (inet_ntop, inet_pton): Use it.
12059         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12060         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12061         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12062         (open, openat): Use it.
12063         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12064         (fnmatch): Use it.
12065         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12066         (getopt, getopt_long, getopt_long_only): Use it.
12067         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12068         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12069         Use it.
12070         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12071         (iconv_open): Use it.
12072         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12073         (strtoimax, strtoumax): Use it.
12074         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12075         (duplocale): Use it.
12076         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12077         (frexp, frexpl): Use it.
12078         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12079         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12080         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12081         (tsearch, tfind, tdelete, twalk): Use it.
12082         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12083         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12084         sigpending): Use it.
12085         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12086         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12087         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12088         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12089         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12090         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12091         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12092         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12093         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12094         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12095         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12096         Use it.
12097         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12098         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12099         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12100         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12101         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12102         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12103         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12104         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12105         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12106         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12107         strtoull, unsetenv): Use it.
12108         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12109         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12110         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12111         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12112         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12113         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12114         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12115         (strcasecmp, strncasecmp): Use it.
12116         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12117         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12118         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12119         rpl_setsockopt): Use it.
12120         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12121         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12122         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12123         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12124         (gettimeofday): Use it.
12125         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12126         (times): Use it.
12127         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12128         (uname): Use it.
12129         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12130         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12131         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12132         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12133         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12134         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12135         unlinkat, write): Use it.
12136         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12137         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12138         * lib/argv-iter.h: Include arg-nonnull.h.
12139         (_ATTRIBUTE_NONNULL_): Remove macro.
12140         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12141         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12142         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12143         optimization.
12144         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12145         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12146         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12147         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12148         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12149         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12150         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12151         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12152         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12153         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12154         * modules/dirent (Depends-on): Add arg-nonnull.
12155         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12156         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12157         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12158         * modules/fnmatch (Depends-on): Add arg-nonnull.
12159         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12160         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12161         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12162         * modules/glob (Depends-on): Add arg-nonnull.
12163         (Makefile.am): Insert arg-nonnull.h into glob.h.
12164         * modules/iconv_open (Depends-on): Add arg-nonnull.
12165         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12166         * modules/inttypes (Depends-on): Add arg-nonnull.
12167         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12168         * modules/locale (Depends-on): Add arg-nonnull.
12169         (Makefile.am): Insert arg-nonnull.h into locale.h.
12170         * modules/math (Depends-on): Add arg-nonnull.
12171         (Makefile.am): Insert arg-nonnull.h into math.h.
12172         * modules/netdb (Depends-on): Add arg-nonnull.
12173         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12174         * modules/search (Depends-on): Add arg-nonnull.
12175         (Makefile.am): Insert arg-nonnull.h into search.h.
12176         * modules/signal (Depends-on): Add arg-nonnull.
12177         (Makefile.am): Insert arg-nonnull.h into signal.h.
12178         * modules/spawn (Depends-on): Add arg-nonnull.
12179         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12180         * modules/stdio (Depends-on): Add arg-nonnull.
12181         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12182         * modules/stdlib (Depends-on): Add arg-nonnull.
12183         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12184         * modules/string (Depends-on): Add arg-nonnull.
12185         (Makefile.am): Insert arg-nonnull.h into string.h.
12186         * modules/strings (Depends-on): Add arg-nonnull.
12187         (Makefile.am): Insert arg-nonnull.h into strings.h.
12188         * modules/sys_socket (Depends-on): Add arg-nonnull.
12189         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12190         * modules/sys_stat (Depends-on): Add arg-nonnull.
12191         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12192         * modules/sys_time (Depends-on): Add arg-nonnull.
12193         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12194         * modules/sys_times (Depends-on): Add arg-nonnull.
12195         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12196         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12197         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12198         * modules/time (Depends-on): Add arg-nonnull.
12199         (Makefile.am): Insert arg-nonnull.h into time.h.
12200         * modules/unistd (Depends-on): Add arg-nonnull.
12201         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12202         * modules/wchar (Depends-on): Add arg-nonnull.
12203         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12204         * modules/argv-iter (Depends-on): Add arg-nonnull.
12205         * tests/test-canonicalize.c (null_ptr): New function.
12206         (main): Use it.
12207         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12208         (main): Use it.
12209         * tests/test-memmem.c (null_ptr): New function.
12210         (main): Use it.
12211         Reported by Jim Meyering.
12212
12213 2009-12-10  Bruno Haible  <bruno@clisp.org>
12214
12215         Use spaces for indentation, not tabs.
12216         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12217         * m4/*.m4: Untabify.
12218         * build-aux/*.h: Untabify.
12219         * tests/**/*.[hc]: Untabify.
12220         * README: New section "Indent with spaces, not TABs", based on
12221         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12222         * NEWS: Mention the change.
12223
12224 2009-12-10  Bruno Haible  <bruno@clisp.org>
12225
12226         pty test: Fix link error.
12227         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12228         test_pty_LDADD.
12229
12230 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12231
12232         * modules/pty: New file.
12233         * modules/pty-tests: New file.
12234         * m4/pty.m4: New file.
12235         * tests/test-pty.c: New file.
12236         * doc/glibc-headers/pty.texi: Modified.
12237         * doc/glibc-functions/forkpty.texi: Modified.
12238         * doc/glibc-functions/openpty.texi: Modified.
12239
12240 2009-12-10  Bruno Haible  <bruno@clisp.org>
12241
12242         Avoid syntax error in C++ mode.
12243         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12244
12245 2009-12-10  Bruno Haible  <bruno@clisp.org>
12246
12247         Use sed with option -e.
12248         * gnulib-tool (func_version, func_emit_copyright_notice,
12249         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12250         option -e to sed.
12251         * modules/link-warning (Makefile.am): Likewise.
12252
12253 2009-12-10  Jim Meyering  <meyering@redhat.com>
12254
12255         mgetgroups: do not write bytes beyond end of malloc'd buffer
12256         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12257         username, we call getgroups with a one-element-shorter buffer,
12258         but still told it the length was original, max_n_groups.
12259
12260 2009-12-09  Eric Blake  <ebb9@byu.net>
12261
12262         cloexec: relax license
12263         * modules/cloexec (Maintainer): Add myself.
12264         (License): Use LGPL, not GPL.
12265
12266         link-warning: optimize generation
12267         * modules/link-warning (Makefile.am): Reduce process usage.
12268
12269 2009-12-09  Bruno Haible  <bruno@clisp.org>
12270
12271         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12272         workaround was added on 2009-11-17.
12273
12274 2009-12-09  Jim Meyering  <meyering@redhat.com>
12275             Bruno Haible  <bruno@clisp.org>
12276
12277         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12278         * modules/link-warning (Makefile.am): Make the comment-removing sed
12279         command more robust in the face of bootstrap-prepended comment lines.
12280
12281 2009-12-09  Bruno Haible  <bruno@clisp.org>
12282
12283         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12284         most one group.
12285
12286 2009-12-09  Simon Josefsson <simon@josefsson.org>
12287             Bruno Haible  <bruno@clisp.org>
12288
12289         * build-aux/link-warning.h: Add copyright notice.
12290         * modules/link-warning (Makefile.am): Generate link-warning.h from
12291         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12292         * NEWS: Mention change in link-warning module.
12293         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12294         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12295         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12296         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12297         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12298         * modules/math (Makefile.am): Add dependency to math.h.
12299         * modules/search (Makefile.am): Add dependency to search.h.
12300         * modules/signal (Makefile.am): Add dependency to signal.h.
12301         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12302         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12303         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12304         * modules/string (Makefile.am): Add dependency to string.h.
12305         * modules/strings (Makefile.am): Add dependency to strings.h.
12306         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12307         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12308         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12309         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12310         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12311         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12312         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12313         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12314         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12315
12316 2009-12-09  Bruno Haible  <bruno@clisp.org>
12317
12318         fchdir: Optimize away rpl_fstat when possible.
12319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12320         REPLACE_OPEN_DIRECTORY.
12321         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12322
12323 2009-12-09  Bruno Haible  <bruno@clisp.org>
12324
12325         * lib/fchdir.c: Update comment.
12326
12327 2009-12-09  Bruno Haible  <bruno@clisp.org>
12328
12329         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12330
12331 2009-12-08  Eric Blake  <ebb9@byu.net>
12332
12333         fchdir: avoid memory leak on re-registration.
12334         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12335
12336 2009-12-08  Jim Meyering  <meyering@redhat.com>
12337
12338         init.sh: avoid Solaris 10 /bin/sh portability problem
12339         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12340         sourced script:
12341           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12342           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12343           bar
12344         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12345         and two tests used that idiom.
12346         * tests/init.sh: Update suggested usage comments.
12347         (path_prepend_): New function, to be used in place
12348         of the --src-path=DIR option.
12349         (setup_): Move PATH-prepending code into path_prepend_.
12350         * tests/test-pread.sh: Adapt to new usage.
12351         * tests/test-xalloc-die.sh: Likewise.
12352
12353 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12354
12355         * doc/gnulib.texi (Glibc pty.h): Add.
12356         * doc/glibc-functions/forkpty.texi: Add.
12357         * doc/glibc-functions/openpty.texi: Add.
12358         Suggested by Bruno Haible.
12359
12360 2009-12-08  Eric Blake  <ebb9@byu.net>
12361
12362         fchdir: fix logic bugs
12363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12364         * tests/test-fchdir.c (main): Enhance test.
12365         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12366         is in use.
12367
12368         dup2: fix logic bugs
12369         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12370         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12371         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12372         exists.
12373         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12374
12375 2009-12-07  Eric Blake  <ebb9@byu.net>
12376
12377         unlink: fix m4 detection
12378         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12379
12380         unistd-safer: add unit test
12381         * modules/unistd-safer-tests: New file.
12382         * tests/test-dup-safer.c: Likewise.
12383         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12384         * tests/test-dup2.c (setmode): Likewise.
12385         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12386
12387         cloexec: preserve text vs. binary across dup_cloexec
12388         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12389         mode.
12390         * modules/dup2-tests (Depends-on): Add binary-io.
12391         * modules/cloexec-tests (Depends-on): Likewise.
12392         * tests/test-dup2.c (setmode, is_mode): New helpers.
12393         (main): Add tests that translation mode is preserved.
12394         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12395         Reported by Bruno Haible.
12396
12397         mgetgroups: reduce duplicate listings
12398         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12399         resulting array.
12400         * tests/test-chown.h (test_chown): Simplify client.
12401         * tests/test-lchown.h (test_lchown): Likewise.
12402
12403 2009-12-06  Bruno Haible  <bruno@clisp.org>
12404
12405         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12406         value.
12407
12408 2009-12-06  Bruno Haible  <bruno@clisp.org>
12409
12410         * lib/progname.c: Include stdio.h, stdlib.h.
12411         (set_program_name): Reject a NULL argument.
12412
12413 2009-12-05  Eric Blake  <ebb9@byu.net>
12414
12415         pipe2-safer: new module
12416         * modules/pipe2-safer: New file.
12417         * lib/unistd-safer.h (pipe2_safer): New prototype.
12418         * lib/unistd--.h (pipe2): New wrapper.
12419         * lib/pipe-safer.c (pipe2_safer): New function.
12420         * modules/pipe (Depends-on): Add pipe2-safer.
12421         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12422
12423         stdlib-safer: preserve cloexec flag for mkostemp[s]
12424         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12425         fd_safer_flag.
12426
12427         unistd-safer: allow preservation of cloexec status via flag
12428         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12429         prototypes.
12430         * lib/dup-safer.c (dup_safer_flag): New function.
12431         * lib/fd-safer.c (fd_safer_flag): Likewise.
12432         * modules/cloexec (configure.ac): Set witness.
12433
12434         test-dup2: enhance test
12435         * modules/dup2-tests (Depends-on): Add cloexec.
12436         * tests/test-dup2.c (main): Enhance test.
12437
12438         cloexec: add dup_cloexec
12439         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12440         header and comments.
12441         * lib/cloexec.c (set_cloexec_flag): Add comments.
12442         (dup_cloexec): New function, with mingw implementation borrowed
12443         from...
12444         * lib/w32spawn.h (dup_noinherit): ...here.
12445         * modules/execute (Depends-on): Add cloexec.
12446         * modules/pipe (Depends-on): Likewise.
12447         * modules/cloexec (Depends-on): Add dup2.
12448         * modules/cloexec-tests (Files): New file.
12449         * tests/test-cloexec.c: Likewise.
12450
12451         test-xalloc-die: fix test for mingw
12452         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12453         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12454         directory and .exe suffix off argv[0] output.
12455
12456         test-fseeko: fix test for mingw
12457         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12458         than undefining fseek, so test will pass on mingw.
12459
12460 2009-12-05  Bruno Haible  <bruno@clisp.org>
12461
12462         * lib/progname.h (set_program_name): Clarify specification.
12463         * lib/progname.c (set_program_name): Likewise.
12464         Reported by Jim Meyering.
12465
12466 2009-12-05  Jim Meyering  <meyering@redhat.com>
12467
12468         maint.mk: backslash-escape parens in default regexp
12469         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12470         backslash-escape the literal parentheses.
12471
12472         maint.mk: news-date-check: use grep -E
12473         * top/maint.mk (today): Define a Make variable, not a...
12474         (news-date-check): ...shell variable.
12475         (news-date-regexp): Use the Make variable.
12476         Use grep's -E option.  Change the failing diagnostic to mention
12477         the variable, $(news-date-regexp).
12478
12479 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12480
12481         maintainer-makefile: allow customization of NEWS entry format
12482         * top/maint.mk (news-date-regexp): New overridable variable.
12483         (news-date-check): Use it.
12484
12485 2009-12-04  Eric Blake  <ebb9@byu.net>
12486
12487         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12488         * lib/mgetgroups.h (xgetgroups): New prototype.
12489         * lib/mgetgroups.c (xgetgroups): New wrapper.
12490         (mgetgroups): Handle ENOSYS.
12491         * modules/mgetgroups (Depends-on): Add realloc.
12492         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12493
12494         mgetgroups: avoid argument promotion issues with -1
12495         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12496         for invalid gid_t.
12497         * tests/test-chown.h (getegid, test_chown): Likewise.
12498         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12499
12500 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12501
12502         exclude: Fix header file problems.
12503         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12504
12505 2009-12-01  Jim Meyering  <meyering@redhat.com>
12506
12507         fts: fts_open: do not let an empty string cause immediate failure
12508         This is required in support of GNU rm, for which the command
12509         "rm A '' B" must process and remove both A and B, in spite of
12510         the empty string argument.
12511         * lib/fts.c (fts_open): Do not let the presence of an empty string
12512         cause fts_open to fail immediately.  Most fts-using tools must be
12513         able to process all arguments, in order, and can be expected to
12514         diagnose such arguments themselves.
12515
12516 2009-11-30  Eric Blake  <ebb9@byu.net>
12517
12518         utimens: fix compilation error
12519         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12520         Declare variable at right scope.
12521
12522 2009-11-29  Jim Meyering  <meyering@redhat.com>
12523
12524         bootstrap: handle perl-5.11's changed --version output
12525         * build-aux/bootstrap (get_version): Handle perl separately,
12526         since perl-5.11's --version output is different.
12527
12528 2009-11-28  Jim Meyering  <meyering@redhat.com>
12529
12530         userspec: depend on the inttostr module, too
12531         * modules/userspec (Depends-on): Add inttostr.
12532
12533         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12534         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12535         number of MAXUID when it evaluates to (uid_t) -1.
12536         Likewise for group ID.  Reported by Matt McCutchen in
12537         <http://savannah.gnu.org/bugs/?28113>
12538
12539         userspec: reformat to use spaces, not TABs
12540         * lib/userspec.c: Expand TABs to spaces.
12541         Add Emacs' "indent-tabs-mode: nil" hint.
12542
12543 2009-11-27  Eric Blake  <ebb9@byu.net>
12544
12545         getopt-gnu: flush out another BSD bug
12546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12547         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12548         flush out BSD bug.
12549         * tests/test-getopt.h (test_getopt): End lists with NULL.
12550         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12551         (test_getopt_long_posix): Enhance test.
12552         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12553         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12554         getopt-gnu.
12555         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12556         Likewise.
12557
12558 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12559
12560         * modules/idpriv-droptemp-tests (Notice): Fix text.
12561
12562 2009-11-27  Jim Meyering  <meyering@redhat.com>
12563
12564         test-xalloc-die: avoid spurious failure due to libtool argv difference
12565         In a libtool-enabled project, this test would fail due to a difference
12566         in the emitted program name, e.g.,
12567         -test-xalloc-die: memory exhausted
12568         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12569         Use program to avoid that.
12570         * modules/xalloc-die-tests (Depends-on): Add progname.
12571         * tests/test-xalloc-die.c: Include progname.h".
12572         (program_name): Remove decl.
12573         (main): Call set_program_name.
12574         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12575
12576 2009-11-26  Richard Jones  <rjones@redhat.com>
12577
12578         w32sock: leave win32 error in place.
12579         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12580
12581 2009-11-26  Eric Blake  <ebb9@byu.net>
12582
12583         init.sh: suggest to use skip_ and fail_ functions in comments
12584         * tests/init.sh: Add a sentence.
12585
12586 2009-11-25  Bruno Haible  <bruno@clisp.org>
12587
12588         init.sh: add documentation in comments
12589         * tests/init.sh: Add some developer and user documentation.
12590
12591 2009-11-26  Jim Meyering  <meyering@redhat.com>
12592
12593         init.sh: accommodate even those who specify bogus srcdir manually
12594         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12595         configure-time tests to be sanitized, so that there is no need to
12596         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12597         (with no double quotes) suffices.  However, since tests may be
12598         invoked manually, and since you may explicitly set srcdir to the
12599         name of a directory containing spaces, do quote its uses here.
12600         * tests/test-pread.sh: Likewise.
12601         Suggested by Bruno Haible.
12602
12603         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12604         * tests/test-pread.sh: Write no data into the pipe, because
12605         test-pread actually reads none.  This avoids a diagnostic,
12606         "bash: echo: write error: Broken pipe", that arises in the unusual
12607         event something is ignoring SIGPIPE, and might be interpreted
12608         as some sort of failure.  Reported by Bruno Haible.
12609
12610 2009-11-25  Jim Meyering  <meyering@redhat.com>
12611
12612         test-pread: cover failure with ESPIPE and EINVAL
12613         * tests/test-pread.c (main): Test for failure, too.
12614         * tests/test-pread.sh: Invoke with stdin on a pipe.
12615         Suggested by Eric Blake.
12616
12617         pread: improvement and fix
12618         * modules/pread (Depends-on): Depend on lseek, for portability to
12619         e.g., mingw.  Suggested by Eric Blake.
12620         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12621
12622         unistd.in.h: correct declaration of pread
12623         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12624         Reported by Richard W.M. Jones.
12625
12626         test-pread.sh: distribute the test script
12627         * modules/pread-tests (Files): Include test-pread.sh.
12628
12629         test-pread.sh: clean up
12630         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12631         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12632         That is unnecessary, since it's always ".".
12633         Suggestion from Eric Blake.
12634
12635         test-pread.sh: make executable
12636         * tests/test-pread.sh: Set executable bit.
12637         Reported by Eric Blake.
12638
12639         correct typo in test-pread.sh
12640         * tests/test-pread.sh: Add #! line.
12641
12642         test pread
12643         * tests/test-pread.c: New file.
12644         * tests/test-pread.sh: Likewise.
12645         * modules/pread-tests: Likewise.
12646
12647         pread: new module
12648         * modules/pread: New file.
12649         * lib/unistd.in.h (pread): Define/declare.
12650         * lib/pread.c (pread): New file.
12651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12652         * modules/unistd (Makefile.am): Substitute witnesses.
12653         * doc/posix-functions/pread.texi (pread): Update.
12654         * MODULES.html.sh: Add pread.
12655
12656 2009-11-25  Jim Meyering  <meyering@redhat.com>
12657
12658         tests/init.sh: new file to be used via most *.sh tests
12659         * tests/init.sh: New file.
12660
12661 2009-11-25  Eric Blake  <ebb9@byu.net>
12662
12663         utimens: work around older Linux failure with symlinks
12664         * lib/utimens.c (lutimensat_works_really): New variable.
12665         (fdutimens, lutimens): Use it to manage kernels that support
12666         nanosecond times on files, but not on symlinks.
12667         Reported by Ondřej Vašík.
12668
12669         utimes: fix configure grammar
12670         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12671
12672 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12673
12674         regex: Fix fastmap for multibyte character ranges.
12675         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12676         characters when a multibyte character range is included.
12677
12678 2009-11-22  Andy Wingo  <wingo@pobox.com>
12679
12680         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12681         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12682
12683 2009-11-24  Bruno Haible  <bruno@clisp.org>
12684
12685         doc: Most *_l functions exist in MacOS X 10.5.
12686         * doc/posix-functions/duplocale.texi: Update platforms list.
12687         * doc/posix-functions/freelocale.texi: Likewise.
12688         * doc/posix-functions/newlocale.texi: Likewise.
12689         * doc/posix-functions/uselocale.texi: Likewise.
12690         * doc/posix-functions/isalnum_l.texi: Likewise.
12691         * doc/posix-functions/isalpha_l.texi: Likewise.
12692         * doc/posix-functions/isblank_l.texi: Likewise.
12693         * doc/posix-functions/iscntrl_l.texi: Likewise.
12694         * doc/posix-functions/isdigit_l.texi: Likewise.
12695         * doc/posix-functions/isgraph_l.texi: Likewise.
12696         * doc/posix-functions/islower_l.texi: Likewise.
12697         * doc/posix-functions/isprint_l.texi: Likewise.
12698         * doc/posix-functions/ispunct_l.texi: Likewise.
12699         * doc/posix-functions/isspace_l.texi: Likewise.
12700         * doc/posix-functions/isupper_l.texi: Likewise.
12701         * doc/posix-functions/iswalnum_l.texi: Likewise.
12702         * doc/posix-functions/iswalpha_l.texi: Likewise.
12703         * doc/posix-functions/iswblank_l.texi: Likewise.
12704         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12705         * doc/posix-functions/iswctype_l.texi: Likewise.
12706         * doc/posix-functions/iswdigit_l.texi: Likewise.
12707         * doc/posix-functions/iswgraph_l.texi: Likewise.
12708         * doc/posix-functions/iswlower_l.texi: Likewise.
12709         * doc/posix-functions/iswprint_l.texi: Likewise.
12710         * doc/posix-functions/iswpunct_l.texi: Likewise.
12711         * doc/posix-functions/iswspace_l.texi: Likewise.
12712         * doc/posix-functions/iswupper_l.texi: Likewise.
12713         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12714         * doc/posix-functions/isxdigit_l.texi: Likewise.
12715         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12716         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12717         * doc/posix-functions/strcoll_l.texi: Likewise.
12718         * doc/posix-functions/strfmon_l.texi: Likewise.
12719         * doc/posix-functions/strftime_l.texi: Likewise.
12720         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12721         * doc/posix-functions/strxfrm_l.texi: Likewise.
12722         * doc/posix-functions/tolower_l.texi: Likewise.
12723         * doc/posix-functions/toupper_l.texi: Likewise.
12724         * doc/posix-functions/towctrans_l.texi: Likewise.
12725         * doc/posix-functions/towlower_l.texi: Likewise.
12726         * doc/posix-functions/towupper_l.texi: Likewise.
12727         * doc/posix-functions/wcscoll_l.texi: Likewise.
12728         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12729         * doc/posix-functions/wctrans_l.texi: Likewise.
12730         * doc/posix-functions/wctype_l.texi: Likewise.
12731         * doc/glibc-functions/strptime_l.texi: Likewise.
12732         * doc/glibc-functions/strtod_l.texi: Likewise.
12733         * doc/glibc-functions/strtof_l.texi: Likewise.
12734         * doc/glibc-functions/strtol_l.texi: Likewise.
12735         * doc/glibc-functions/strtold_l.texi: Likewise.
12736         * doc/glibc-functions/strtoll_l.texi: Likewise.
12737         * doc/glibc-functions/strtoul_l.texi: Likewise.
12738         * doc/glibc-functions/strtoull_l.texi: Likewise.
12739         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12740         * doc/glibc-functions/wcstod_l.texi: Likewise.
12741         * doc/glibc-functions/wcstof_l.texi: Likewise.
12742         * doc/glibc-functions/wcstol_l.texi: Likewise.
12743         * doc/glibc-functions/wcstold_l.texi: Likewise.
12744         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12745         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12746         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12747
12748 2009-11-24  Bruno Haible  <bruno@clisp.org>
12749
12750         duplocale: Fix logic bug.
12751         * lib/duplocale.c: Don't include <langinfo.h>.
12752         (_NL_LOCALE_NAME): Remove macro.
12753         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12754         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12755
12756 2009-11-23  Jim Meyering  <meyering@redhat.com>
12757
12758         test-update-copyright: don't hard-code /usr/bin/perl
12759         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12760         perl to print the current year.  Gilles Espinasse reported that
12761         the replaced use of perl was hard-coded as /usr/bin/perl.
12762
12763 2009-11-23  Bruno Haible  <bruno@clisp.org>
12764
12765         duplocale: Add support for glibc 2.3.x.
12766         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12767
12768 2009-11-22  Bruno Haible  <bruno@clisp.org>
12769
12770         vasnprintf: Tiny optimization.
12771         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12772         MacOS X.
12773
12774 2009-11-22  Bruno Haible  <bruno@clisp.org>
12775
12776         Tests for module 'duplocale'.
12777         * modules/duplocale-tests: New file.
12778         * tests/test-duplocale.c: New file.
12779
12780         New module 'duplocale'.
12781         * m4/duplocale.m4: New file.
12782         * lib/locale.in.h (duplocale): New declaration.
12783         * lib/duplocale.c: New file.
12784         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12785         gl_LOCALE_H_DEFAULTS): New macros.
12786         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12787         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12788         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12789         REPLACE_DUPLOCALE.
12790         * modules/duplocale: New file.
12791         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12792
12793 2009-11-22  Bruno Haible  <bruno@clisp.org>
12794
12795         * modules/locale-tests (configure.ac): Test for newlocale function.
12796         * tests/test-locale.c: When the system has extended locale functions,
12797         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12798
12799         locale: Make locale_t available when possible.
12800         * lib/locale.in.h: Include <xlocale.h> when it exists.
12801         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12802         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12803         * modules/locale (Depends-on): Add extensions.
12804         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12805         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12806
12807 2009-11-22  Bruno Haible  <bruno@clisp.org>
12808
12809         Add comments.
12810         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12811         invocation.
12812         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12813         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12814         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12815
12816 2009-11-22  Bruno Haible  <bruno@clisp.org>
12817
12818         error: account for the possibility of freopen (stdout).
12819         * lib/error.c: Include <unistd.h>.
12820         (flush_stdout): New function, extracted from error and error_at_line.
12821         Determine stdout's fd dynamically.
12822         (error, error_at_line): Invoke flush_stdout.
12823         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12824         * modules/error (Depends-on): Add unistd.
12825
12826 2009-11-22  Bruno Haible  <bruno@clisp.org>
12827
12828         diffseq: Add comment.
12829         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12830
12831 2009-11-22  Jim Meyering  <meyering@redhat.com>
12832
12833         c-stack: avoid defining an unused static function
12834         * lib/c-stack.c (find_stack_direction): Do not define this function
12835         when it will not be used.
12836
12837         diffseq: avoid spurious gcc warnings
12838         * lib/diffseq.h (IF_LINT2): Define.
12839         (compareseq): Use it to initialize two members of "part".
12840         This avoids two used-uninitialized warnings.
12841
12842 2009-11-21  Jim Meyering  <meyering@redhat.com>
12843
12844         c-stack: avoid "ignoring return value of `write'" warning
12845         * lib/c-stack.c: Include "ignore-value.h".
12846         (die): Explicitly ignore each write return value.
12847         * modules/c-stack (Depends-on): Add ignore-value.
12848
12849 2009-11-21  Bruno Haible  <bruno@clisp.org>
12850
12851         diffseq: reduce scope of variable 'best'.
12852         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12853         variable, earlier used for two different purposes.
12854
12855 2009-11-21  Jim Meyering  <meyering@redhat.com>
12856
12857         diffseq: remove useless assignment to "best"
12858         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12859         assignment.  At that point "best" is already guaranteed to be zero.
12860
12861 2009-11-20  Eric Blake  <ebb9@byu.net>
12862
12863         build: mention ftp redirector in release announcements
12864         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12865         values that used to come from cfg.mk; mention FTP redirect URL.
12866         * build-aux/announce-gen: Mention the mirror list.
12867         Suggested by Karl Berry.
12868
12869         nanosleep: improve port to mingw
12870         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12872         LIB_NANOSLEEP, but only when needed.
12873         * modules/select (Link): Document LIBSOCKET.
12874         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12875         enough.
12876
12877         nanosleep: work around cygwin bug
12878         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12879         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12880         bug.
12881         (getnow): Delete, not needed.
12882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12883         LIB_CLOCK_GETTIME.
12884         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12885         clock-time, gettime.
12886         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12887         bug.
12888         * modules/nanosleep-tests: New test.
12889         * tests/test-nanosleep.c: New file.
12890
12891         sleep: work around cygwin bug
12892         * lib/sleep.c (rpl_sleep): Work around the bug.
12893         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12894         (gl_PREREQ_SLEEP): Delete unused macro.
12895         * modules/sleep (Depends-on): Add verify.
12896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12897         * modules/unistd (Makefile.am): Substitute witness.
12898         * lib/unistd.in.h (sleep): Update prototype.
12899         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12900         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12901         * modules/sleep-tests (Depends-on): Check for alarm.
12902
12903 2009-11-20  Jim Meyering  <meyering@redhat.com>
12904
12905         maint.mk: improve sc_prohibit_magic_number_exit
12906         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12907         so it does not match uses like System.exit(1).
12908         Add comments showing how to correct all offenders.
12909
12910 2009-11-19  Eric Blake  <ebb9@byu.net>
12911
12912         xalloc-die-tests: add missing library
12913         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12914
12915         test-xvasprintf: silence compiler warnings
12916         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12917         empty string from gcc.
12918
12919 2009-11-19  Jim Meyering  <meyering@redhat.com>
12920
12921         xfreopen: new module, from coreutils
12922         * modules/xfreopen: New module.
12923         * lib/xfreopen.c: New file.
12924         * lib/xfreopen.h: New file.
12925         * MODULES.html.sh (File stream based Input/Output"): Add it.
12926
12927 2009-11-19  Eric Blake  <ebb9@byu.net>
12928
12929         manywarnings: depend on warnings
12930         * modules/manywarnings (Depends-on): Add warnings.
12931
12932         build: avoid compiler warnings
12933         * lib/select.c (rpl_select): Delete unused variable.
12934         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12935
12936 2009-11-18  Eric Blake  <ebb9@byu.net>
12937
12938         tests: avoid false negative with --with-packager
12939         * tests/test-version-etc.sh: Discard packager information.
12940         * tests/test-argp-version-etc-1.sh: Likewise.
12941         Reported by Mike Frysinger.
12942
12943         utimens: fix regression on Solaris
12944         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12945         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12946         can only change fd timestamps via futimesat.  Instead, use an
12947         additional witness macro to avoid BSD bug.
12948         Reported by Jim Meyering.
12949
12950 2009-11-17  Eric Blake  <ebb9@byu.net>
12951
12952         usleep: use it to simplify tests
12953         * modules/stat-time-tests (Depends-on): Add usleep.
12954         (configure.ac): Drop usleep check.
12955         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12956         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12957         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12958         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12959         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12960         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12961         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12962         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12963         Likewise.
12964         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12965         * tests/test-lchown.h (nap): Likewise.
12966         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12967         * tests/test-stat-time.c (nap): Likewise.
12968         * tests/test-utimens-common.h (nap): Update comments.
12969
12970         usleep: new module
12971         * modules/usleep: New file.
12972         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12973         * lib/usleep.c (usleep): Likewise.
12974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12975         * modules/unistd (Makefile.am): Substitute witnesses.
12976         * lib/unistd.in.h (usleep): Add declaration.
12977         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12978         * MODULES.html.sh (Date and time): Likewise.
12979         * modules/usleep-tests (Depends-on): New test.
12980         * tests/test-usleep.c: New file.
12981
12982         chown: work around OpenBSD bug
12983         * lib/chown.c (rpl_chown): Work around the bug.
12984         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12985         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12986         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12987         * modules/chown (Depends-on): Add stdbool.
12988         * modules/lchown (Depends-on): Likewise.
12989         * doc/posix-functions/chown.texi (chown): Document the bug.
12990         * doc/posix-functions/lchown.texi (lchown): Likewise.
12991         * tests/test-lchown.h (test_chown): Relax test.
12992
12993         mkstemp: avoid conflict with C++ keyword template
12994         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12995         * lib/mkostemp.c (mkostemp): Likewise.
12996         * lib/mkostemps.c (mkostemps): Likewise.
12997         * lib/mkstemp.c (mkstemp): Likewise.
12998         * lib/mkstemps.c (mkstemps): Likewise.
12999
13000         xalloc-die-tests: optimize
13001         * tests/test-xalloc-die.sh: Reduce number of processes.
13002
13003 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13004
13005         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13006         patch from ludo@gnu.org (Ludovic Courtès).
13007
13008 2009-11-17  Jim Meyering  <meyering@redhat.com>
13009
13010         version-etc: use proper license string
13011         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13012         * modules/version-etc-fsf: Likewise.
13013
13014 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13015
13016         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13017         printed to stdout.  Deal with EOL differences.
13018
13019 2009-11-17  Eric Blake  <ebb9@byu.net>
13020
13021         unsetenv: work around Solaris bug
13022         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13023         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13024         Reported by Jim Meyering.
13025
13026         vasnprintf: avoid compiler warnings
13027         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13028         variables.
13029         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13030
13031 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13032
13033         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13034         settings since xalloc-die is no longer the self test,
13035         xalloc-die.sh is.
13036
13037 2009-11-17  Jim Meyering  <meyering@redhat.com>
13038
13039         test-xalloc-die.sh: make the code agree with the commit log
13040         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13041         at the end, just in case you happen to have a test-xalloc-die
13042         program in some other PATH directory.
13043
13044         test-xalloc-die.sh: fix a portability bug
13045         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13046         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13047         Otherwise, argv[0] (as often seen in diagnostics) would be too
13048         system-dependent, sometimes with, and sometimes without the leading "./".
13049
13050         version-etc-fsf: relax license to LGPLv3+
13051         * modules/version-etc-fsf (License): Relax license.
13052
13053 2009-11-16  Eric Blake  <ebb9@byu.net>
13054
13055         xalloc-die-tests: avoid printing null pointer
13056         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13057         shell script.
13058         * tests/test-xalloc-die.c (program_name): Declare.
13059         * tests/test-xalloc-die.sh (tmpfiles): New file.
13060
13061         setenv, unsetenv: work around various bugs
13062         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13063         (setenv) [HAVE_SETENV]: Work around bugs.
13064         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13065         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13066         for bugs.
13067         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13068         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13070         * modules/stdlib (Makefile.am): Update substitutions.
13071         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13072         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13073         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13074         * modules/setenv-tests: New test.
13075         * modules/unsetenv-tests: Likewise.
13076         * tests/test-setenv.c: New file.
13077         * tests/test-unsetenv.c: Likewise.
13078
13079 2009-11-16  Jim Meyering  <meyering@redhat.com>
13080
13081         version-etc: relax license to LGPLv3+
13082         * modules/version-etc (License): Relax license.
13083
13084         better AC_REQUIRE expanded-before-required-warning avoidance
13085         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13086         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13087         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13088         which is no longer needed.
13089
13090 2009-11-16  Eric Blake  <ebb9@byu.net>
13091
13092         test-freading: clean up temporary file
13093         * tests/test-freading.c (main): Remove file on success, and use
13094         ASSERT more liberally.
13095         Reported by Jim Meyering.
13096
13097 2009-11-16  Jim Meyering  <meyering@redhat.com>
13098
13099         avoid new AC_REQUIRE expanded-before-required warnings
13100         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13101         merely using it.
13102         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13103         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13104
13105 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13106
13107         * tests/test-xalloc-die.c: New file.
13108         * modules/xalloc-die-tests: New file.
13109         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13110         XFAIL_TESTS so it can be appended by modules.
13111
13112 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13113
13114         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13115         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13116
13117 2009-11-14  Eric Blake  <ebb9@byu.net>
13118
13119         fnmatch: avoid compiler warning
13120         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13121         to silence compiler warning about mismatch signedness in ?:.
13122         Reported by Robert Millan.
13123
13124         intprops: add double-inclusion guard
13125         * lib/intprops.h: Allow idempotent includes.
13126         Suggested by Bruce Korb.
13127
13128         openat: detect Solaris fchownat bug
13129         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13130         penalizing glibc chownat when only lchownat is broken.
13131         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13132         trailing slash bugs.
13133         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13134         * modules/openat-tests (Files): Include more files.
13135         (Depends-on): Add mgetgroups, sleep, stat-time.
13136         (configure.ac): Add additional checks.
13137         (Makefile.am): Build new test.
13138         * tests/test-fchownat.c: New file.
13139
13140         lchown: detect Solaris and FreeBSD bug
13141         * lib/lchown.c (rpl_lchown): Work around bug.
13142         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13144         * modules/unistd (Makefile.am): Populate it.
13145         * lib/unistd.in.h (lchown): Update declaration.
13146         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13147         * modules/lchown-tests: New file.
13148         * tests/test-lchown.h (test_lchown): Likewise.
13149         * tests/test-lchown.c (main): Likewise.
13150
13151         chown: detect Solaris and FreeBSD bug
13152         * lib/chown.c (rpl_chown): Work around bug.
13153         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13154         (gl_PREREQ_CHOWN): Delete.
13155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13156         * modules/unistd (Makefile.am): Populate it.
13157         * lib/unistd.in.h (chown): Update declaration.
13158         * lib/lchown.c (chown): Update client.
13159         * modules/lchown (Depends-on): Add lstat.
13160         * doc/posix-functions/chown.texi (chown): Document the bug.
13161         * doc/posix-functions/getgroups.texi (getgroups): Document
13162         getgroups pitfall.
13163         * modules/chown-tests: New file.
13164         * tests/test-chown.h (test_chown): Likewise.
13165         * tests/test-chown.c (main): Likewise.
13166
13167 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13168
13169         gnulib-tool: correctly detect absence of m4 directories
13170         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13171
13172 2009-11-14  Jim Meyering  <meyering@redhat.com>
13173
13174         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13175         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13176
13177 2009-11-14  John W. Eaton  <jwe@gnu.org>
13178
13179         strftime.h: wrap funtion declaration in extern "C" block
13180         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13181
13182 2009-11-13  Eric Blake  <ebb9@byu.net>
13183
13184         getgroups: avoid compiler warning
13185         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13186
13187         getgroups: work around FreeBSD bug
13188         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13190         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13191         * tests/test-getgroups.c (main): Fix buffer overrun.
13192
13193         getgroups: avoid compilation failure
13194         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13195         * modules/getgroups (Depends-on): Add stdint.
13196
13197 2009-11-13  Jim Meyering  <meyering@redhat.com>
13198
13199         test-getgroups: avoid compilation failure
13200         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13201
13202 2009-11-13  Eric Blake  <ebb9@byu.net>
13203
13204         mgetgroups: new module, taken from coreutils
13205         * modules/mgetgroups: New file.
13206         * lib/mgetgroups.h: Likewise.
13207         * lib/mgetgroups.c (mgetgroups): Likewise.
13208         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13209         * MODULES.html.sh (Users and groups): Mention it.
13210
13211         getgroups: don't expose GETGROUPS_T to user
13212         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13213         an element at a time if GETGROUPS_T is wrong size.
13214         * lib/getugroups.h (getugroups): Change signature.
13215         * lib/unistd.in.h (getgroups): Likewise.
13216         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13217         signature needs fixing.
13218         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13219         AC_TYPE_GETGROUPS.
13220         * modules/group-member (Depends-on): Add getgroups.
13221         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13222         (group_member): Rely on getgroups replacement.
13223         * lib/getugroups.c (getugroups): Use gid_t.
13224         * tests/test-getgroups.c (main): Likewise.
13225         * NEWS: Mention the signature change.
13226         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13227         problem with signature.
13228         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13229         GETGROUPS_T is still useful for setgroups.
13230
13231         getgroups, getugroups: provide stubs for mingw
13232         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13233         * lib/getugroups.c (getugroups): Likewise.
13234         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13235         function.  Modernize replacement scheme.
13236         (gl_PREREQ_GETGROUPS): Delete.
13237         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13238         * modules/getgroups (configure.ac): Declare witness.
13239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13240         * modules/unistd (Depends-on): Substitute witness.
13241         * lib/unistd.in.h (getgroups): Declare replacement.
13242
13243         getgroups: avoid calling exit
13244         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13245         drop xalloc.
13246         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13247         dependencies.
13248         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13249         exiting, in the rare case of malloc failure.
13250
13251         getgroups: fix logic error
13252         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13253         has more than 20 groups.
13254         * modules/getgroups-tests: New test.
13255         * tests/test-getgroups.c: New file.
13256
13257 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13258
13259         * tests/test-base64.c: Improve.
13260
13261 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13262
13263         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13264         Blake <ebb9@byu.net>.
13265
13266 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13267
13268         * tests/test-xvasprintf.c: Add %s%s related checks.
13269
13270 2009-11-12  Eric Blake  <ebb9@byu.net>
13271
13272         version-etc: match standards.texi style
13273         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13274         and use <> only for URLs.
13275
13276 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13277
13278         fts: do not fail on a submount during traversal
13279         * lib/fts.c (fts_build): Read the stat info again after opening
13280         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13281         Original report at http://bugzilla.redhat.com/501848.
13282
13283 2009-11-12  Jim Meyering  <meyering@redhat.com>
13284
13285         bootstrap: sync from coreutils
13286         * build-aux/bootstrap (bootstrap_epilogue): New function.
13287         Use git_modules_config in one more place.  This make bootstrap's
13288         --gnulib-srcdir option more useful for testing.
13289
13290         bootstrap: generalize autoheader check
13291         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13292         AC_CONFIG_HEADERS.
13293
13294 2009-11-11  Eric Blake  <ebb9@byu.net>
13295
13296         mkfifoat: use new modules for Solaris and BSD bugs
13297         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13298         * lib/mkfifoat.c (mknodat): Split...
13299         * lib/mknodat.c (mknodat): ...into new file.
13300         * modules/mkfifoat (Files): Ship new file.
13301         (Depends-on): Add mkfifo, mknod.
13302         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13303         (Depends-on): Add symlink.
13304         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13305         redundant with test_mkfifo.h.
13306         (do_mkfifoat, do_mknodat): New helpers.
13307
13308         mknod: new module
13309         * modules/mknod: New file.
13310         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13311         * lib/mknod.c (mknod): Likewise.
13312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13313         defaults.
13314         * modules/sys_stat (Makefile.am): Substitute them.
13315         * lib/sys_stat.in.h (mknod): Declare replacement.
13316         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13317         Document it.
13318         * doc/posix-functions/mknod.texi (mknod): Likewise.
13319         * modules/mknod-tests: New test.
13320         * tests/test-mknod.c: Likewise.
13321
13322         mkfifo: new module
13323         * modules/mkfifo: New file.
13324         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13325         * lib/mkfifo.c (mkfifo): Likewise.
13326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13327         defaults.
13328         * modules/sys_stat (Makefile.am): Substitute them.
13329         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13330         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13331         Document it.
13332         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13333         * modules/mkfifo-tests: New test.
13334         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13335         from test-mkfifoat.c.
13336         * tests/test-mkfifo.c: New file.
13337
13338         readlink: detect FreeBSD bug
13339         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13340         slash on symlink.
13341         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13342         * tests/test-readlink.h (test_readlink): Enhance test.
13343
13344         symlink: detect FreeBSD bug
13345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13346         slash on symlink.
13347         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13348         * tests/test-symlink.h (test_symlink): Enhance test.
13349
13350 2009-11-10  Eric Blake  <ebb9@byu.net>
13351
13352         link: detect FreeBSD bug
13353         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13354         symlink.
13355         * doc/posix-functions/link.texi (link): Document the bug.
13356         * tests/test-link.h (test_link): Enhance test.
13357         * tests/test-linkat.c (main): Update caller.
13358
13359         unlink, remove: detect FreeBSD bug
13360         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13361         slash on symlink.
13362         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13363         * doc/posix-functions/remove.texi (remove): Likewise.
13364         * tests/test-unlink.h (test_unlink): Enhance test.
13365         * tests/test-remove.c (main): Likewise.
13366
13367 2009-11-09  Eric Blake  <ebb9@byu.net>
13368
13369         rename: detect FreeBSD bug
13370         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13371         slash on symlink.
13372         * modules/renameat-tests (Depends-on): Add filenamecat.
13373         * tests/test-rename.h (test_rename): Allow one more errno.
13374         * tests/test-renameat.c (main): Likewise.
13375         * doc/posix-functions/rename.texi (rename): Document the bug.
13376
13377         open: detect FreeBSD bug
13378         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13379         symlink.
13380         * doc/posix-functions/open.texi (open): Document the bug.
13381         * doc/posix-functions/utimes.texi (utimes): Likewise.
13382         * tests/test-open.h (test_open): Add parameters, and test symlink
13383         handling.
13384         * tests/test-open.c (main): Adjust caller.
13385         * tests/test-fcntl-safer.c (main): Likewise.
13386         * modules/open-tests (Depends-on): Add stdbool, symlink.
13387         * modules/fcntl-safer-tests (Depends-on): Likewise.
13388         * tests/test-openat.c (main): Add test-open tests.
13389
13390         stat: detect FreeBSD bug
13391         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13392         symlink.
13393         * doc/posix-functions/stat.texi (stat): Document the bug.
13394         * tests/test-stat.h (test_stat_func): Add argument.
13395         * tests/test-stat.c (main): Adjust caller.
13396         * tests/test-fstatat.c (main): Likewise.
13397         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13398         Reported by Jim Meyering.
13399
13400 2009-11-09  James Youngman  <jay@gnu.org>
13401
13402         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13403         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13404
13405 2009-11-08  Jim Meyering  <meyering@redhat.com>
13406
13407         utimens: remove invalid futimesat call
13408         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13409         It used the file descriptor of the target file as the DIR_FD
13410         parameter and NULL as the file name.  That caused failure with
13411         errno == EFAULT on FreeBSD-8.0-rc2
13412
13413 2009-11-07  Eric Blake  <ebb9@byu.net>
13414
13415         fflush, freadseek: use fseeko, not fseek
13416         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13417         (clear_ungetc_buffer): Avoid potential problems on large files.
13418         * lib/freadseek.c (freadseek): Likewise.
13419         * modules/freadseek (Depends-on): Add fseeko.
13420         * modules/fseek (configure.ac): Set a witness.
13421         * tests/test-fflush.c (main): Use fseeko.
13422         * tests/test-fpurge.c (fseek): Disable link warning.
13423         * tests/test-freadable.c (fseek): Likewise.
13424         * tests/test-freading.c (fseek): Likewise.
13425         * tests/test-fseeko.c (fseek): Likewise.
13426         * tests/test-ftell.c (fseek): Likewise.
13427         * tests/test-ftello.c (fseek): Likewise.
13428         * tests/test-fwritable.c (fseek): Likewise.
13429         * tests/test-fwriting.c (fseek): Likewise.
13430
13431 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13432
13433         * modules/memchr (Depends-on): Drop getpagesize dependency.
13434
13435 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13436
13437         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13438         Reported by Ludovic Courtès.
13439         * build-aux/pmccabe2html: Improve example usage.
13440         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13441
13442 2009-11-06  Jim Meyering  <meyering@redhat.com>
13443
13444         do-release-commit-and-tag: New module.
13445         Automate the release-commit and tag process.
13446         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13447         * modules/do-release-commit-and-tag: New file.
13448         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13449
13450 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13451
13452         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13453         because test-select.c uses inet_pton.
13454
13455 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13456
13457         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13458         GETADDRINFO_LIB.  Bump serial number.
13459         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13460         Suggested by Eric Blake <ebb9@byu.net>.
13461
13462 2009-11-05  Eric Blake  <ebb9@byu.net>
13463
13464         strtod: detect darwin bug
13465         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13466         Reported by Leo Davis.
13467
13468         freopen-safer: new module
13469         * modules/freopen-safer: New module.
13470         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13471         * lib/freopen-safer.c (freopen_safer): New file.
13472         * lib/stdio-safer.h (freopen_safer): New declaration.
13473         * lib/stdio--.h (freopen): New override.
13474         * MODULES.html.sh (File stream based Input/Output): Mention it.
13475         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13476         freopen-safer module.
13477         * doc/posix-functions/stderr.texi (stderr): Likewise.
13478         * doc/posix-functions/stdin.texi (stdin): Likewise.
13479         * doc/posix-functions/stdout.texi (stdout): Likewise.
13480         * modules/freopen-safer-tests: New test.
13481         * tests/test-reopen-safer.c: New file.
13482
13483 2009-11-05  Jim Meyering  <meyering@redhat.com>
13484
13485         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13486         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13487
13488 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13489
13490         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13491
13492 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13493
13494         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13495
13496 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13497
13498         Fix link error.
13499         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13500         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13501
13502 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13503
13504         * tests/test-func.c: Also test value of __func__.
13505
13506 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13507
13508         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13509         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13510
13511 2009-11-05  Bruno Haible  <bruno@clisp.org>
13512
13513         Fix link error.
13514         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13516         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13517
13518 2009-11-05  Bruno Haible  <bruno@clisp.org>
13519
13520         Tests for module 'inet_pton'.
13521         * modules/inet_pton-tests: New file.
13522         * tests/test-inet_pton.c: New file.
13523
13524 2009-11-05  Bruno Haible  <bruno@clisp.org>
13525
13526         Tests for module 'inet_ntop'.
13527         * modules/inet_ntop-tests: New file.
13528         * tests/test-inet_ntop.c: New file.
13529
13530 2009-11-04  Eric Blake  <ebb9@byu.net>
13531
13532         stdlib-safer: wrap all mkstemp variants
13533         * modules/mkostemp (configure.ac): Set witness.
13534         * modules/mkostemps (configure.ac): Likewise.
13535         * modules/mkstemps (configure.ac): Likewise.
13536         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13537         (mkstemps_safer): Wrap more functions.
13538         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13539         wrapping.
13540         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13541         (mkstemps_safer): Implement the wrappers.
13542
13543         mkstemps, mkostemps: new modules
13544         * modules/mkostemps: New module.
13545         * modules/mkstemps: Likewise.
13546         * lib/mkostemps.c (mkostemps): New file.
13547         * lib/mkstemps.c (mkstemps): Likewise.
13548         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13549         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13551         * modules/stdlib (Makefile.am): Substitute them.
13552         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13553         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13554         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13555         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13556         * MODULES.html.sh (File system functions): Mention them.
13557
13558         tempname: resync from glibc
13559         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13560         same values for __GT_FILE as glibc.  Abort even when assertions
13561         are disabled.
13562         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13563         match its value otherwise.  Allow idempotent inclusion.
13564         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13565         * lib/mkostemp.c (mkostemp): Likewise.
13566         * lib/mkstemp.c (mkstemp): Likewise.
13567         * lib/tmpfile.c (tmpfile): Likewise.
13568         * NEWS: Document this.
13569
13570         utimens: fix use of futimens on older Linux
13571         * lib/utimens.c (fdutimens): Use updated, rather than original,
13572         timespec to avoid bug in older Linux kernel.
13573         Reported by Simon Josefsson.
13574
13575 2009-11-04  Bruno Haible  <bruno@clisp.org>
13576
13577         Make num_processors more flexible and consistent.
13578         * lib/nproc.h (enum nproc_query): New type.
13579         (num_processors): Add a 'query' argument.
13580         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13581         (num_processors): Add a 'query' argument. Test the value of the
13582         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13583         mingw, count the number of CPUs available for the current process.
13584         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13585         Check for sched_getaffinity and sched_getaffinity_np.
13586         * modules/nproc (Depends-on): Add c-ctype, extensions.
13587         * NEWS: Mention the change.
13588
13589 2009-11-03  Bruno Haible  <bruno@clisp.org>
13590
13591         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13592
13593 2009-11-03  Jim Meyering  <meyering@redhat.com>
13594
13595         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13596         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13597         if it is defined.
13598
13599 2009-11-02  Eric Blake  <ebb9@byu.net>
13600
13601         mktime, timegm: share common declaration
13602         * lib/mktime-internal.h: New file.
13603         * lib/mktime.c: Use it rather than open-coding a declaration.
13604         * lib/timegm.c: Likewise.
13605         * modules/mktime (Files): Ship it.
13606         * modules/timegm (Files): Likewise.
13607         Suggested by Bruno Haible.
13608
13609         test-update-copyright: update test to match script changes
13610         * tests/test-update-copyright.sh: Avoid hard-coding perl
13611         location.  Don't update *.bak created by earlier runs.
13612
13613 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13614             Simon Josefsson  <simon@josefsson.org>
13615             Bruno Haible  <bruno@clisp.org>
13616
13617         Fix link error on Solaris 8.
13618         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13619         also in libnsl. Define also INET_PTON_LIB.
13620         * modules/inet_pton (Link): New section.
13621
13622 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13623             Bruno Haible  <bruno@clisp.org>
13624
13625         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13626         * modules/inet_ntop (Link): New section.
13627         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13628
13629 2009-11-02  Eric Blake  <ebb9@byu.net>
13630
13631         maint: avoid compiler warnings in m4 macros
13632         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13633         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13634
13635 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13636
13637         * m4/pmccabe2html.m4: Remove file.
13638         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13639         function.  Change maintainer.
13640         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13641         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13642         Courtès).
13643
13644 2009-10-31  Eric Blake  <ebb9@byu.net>
13645
13646         fseeko: fix m4 regression
13647         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13648         regression from 2009-10-27.
13649         Reported by Ralf Wildenhues.
13650
13651 2009-10-31  Jim Meyering  <meyering@redhat.com>
13652
13653         inttostr: aesthetics and improved (compile-time) safety
13654         Define inttype_is_signed rather than inttype_is_unsigned,
13655         since the sole use is via "#if inttype_is_signed".
13656         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13657         inttype_is_unsigned.
13658         * lib/offtostr.c (inttype_is_signed): Likewise.
13659         * lib/uinttostr.c (inttype_is_signed): Likewise.
13660         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13661         * lib/inttostr.c (inttostr): Use verify to cross-check the
13662         inttype_is_signed value and the signedness of the actual type.
13663         * modules/inttostr (Depends-on): Add verify.
13664
13665 2009-10-30  Eric Blake  <ebb9@byu.net>
13666
13667         build: avoid compiler warnings
13668         * lib/fchmodat.c (lchmod): Mark unused variables.
13669         * lib/getopt.c (_getopt_initialize): Likewise.
13670         * lib/mktime.c (__mktime_internal): Provide prototype.
13671         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13672         older gcc that do not understand #pragma GCC diagnostic.
13673         * lib/uinttostr.c (inttype_is_unsigned): Define.
13674         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13675
13676 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13677
13678         stat: fix compilation on AIX
13679         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13680         only see struct stat64.
13681
13682 2009-10-30  Eric Blake  <ebb9@byu.net>
13683
13684         exclude: make more robust
13685         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13686         rather than masking a coding bug.
13687         Suggested by Bruno Haible.
13688
13689 2009-10-30  Jim Meyering  <meyering@redhat.com>
13690
13691         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13692         Rather than putting #!/usr/bin/perl on the first line,
13693         start with a variant of what's recommended by "man perlrun" that
13694         invokes the first "perl" program from your shell's search path.
13695         * build-aux/gitlog-to-changelog: Replace #!... as above.
13696         Add a "Local Variables" perl mode setting.
13697         Prompted by a patch from Ludovic Courtès.
13698         Improved by Eric Blake.
13699         * build-aux/useless-if-before-free: Likewise.
13700         * build-aux/announce-gen: Likewise.
13701         * build-aux/update-copyright: Likewise.
13702
13703 2009-10-29  Eric Blake  <ebb9@byu.net>
13704
13705         filenamecat-lgpl: adjust clients
13706         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13707         filenamecat.
13708         * modules/renameat (Depends-on): Likewise.
13709
13710         filenamecat: split into filenamecat-lgpl
13711         * modules/filenamecat-lgpl: New module.
13712         * modules/filenamecat (Files): Move library-safe files into
13713         filenamecat-lgpl.
13714         (Depends-on): Add filenamecat-lgpl.
13715         (configure.ac): Declare witness.
13716         * lib/filenamecat.h (file_name_concat): Only declare when using
13717         GPL module.
13718         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13719         Move...
13720         * lib/filenamecat-lgpl.c: ...into new file.
13721         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13722         (gl_FILE_NAME_CONCAT): Use it.
13723         * MODULES.html.sh (File system functions): Mention new module.
13724
13725         argp: avoid memory leak
13726         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13727         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13728         base_name, since the latter malloc()s and can call exit().
13729         Leak introduced 2006-07-03.
13730
13731         dirname-lgpl: adjust clients that don't need full dirname
13732         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13733         * modules/filenamecat (Depends-on): Likewise.
13734         * modules/linkat (Depends-on): Likewise.
13735         * modules/mkancesdirs (Depends-on): Likewise.
13736         * modules/mkdir (Depends-on): Likewise.
13737         * modules/openat (Depends-on): Likewise.
13738         * modules/savewd (Depends-on): Likewise.
13739         * modules/rename (Depends-on): Likewise.
13740         (License): Relax license.
13741         * modules/mkdir-tests (Depends-on): Drop progname.
13742         (Makefile.am): Delete unneeded LDADD.
13743         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13744
13745         dirname: split into dirname-lgpl
13746         * modules/dirname-lgpl: New module.
13747         * modules/dirname (Files): Move library-safe files into
13748         dirname-lgpl.
13749         (Depends-on): Add dirname-lgpl.
13750         (configure.ac): Declare witness.
13751         * modules/double-slash-root (License): Relax license.
13752         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13753         module.
13754         * lib/dirname.c (dir_len, mdir_name): Move...
13755         * lib/dirname-lgpl.c: ...into new file.
13756         * lib/basename.c (last_component, base_len): Move...
13757         * lib/basename-lgpl.c: ...into new file.
13758         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13759         (gl_DIRNAME): Use it.
13760         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13761         Mention new module.
13762         * modules/dirname-tests (Depends-on): Add progname.
13763         * tests/test-dirname.c (program_name): Delete.
13764
13765         mkdir: make safe for libraries
13766         * modules/mkdir (Depends-on): Drop xalloc.
13767         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13768         exit.
13769
13770         tests: avoid some compiler warnings
13771         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13772         literals.
13773         * tests/test-memchr.c (main): Avoid type mismatch.
13774         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13775         * tests/test-base64.c (main): Likewise.
13776         * tests/test-getdelim.c (main): Likewise.
13777         * tests/test-gethostname.c (main): Likewise.
13778         * tests/test-getline.c (main): Likewise.
13779         * tests/test-netinet_in.c (main): Likewise.
13780         * tests/test-select.c (open_server_socket, main): Likewise.
13781         * tests/test-select-stdin.c (main): Likewise.
13782         * tests/test-sockets.c (main): Likewise.
13783         * tests/test-strsignal.c (main): Likewise.
13784         * tests/test-sys_select.c (main): Likewise.
13785         * tests/test-sys_socket.c (main): Likewise.
13786         * tests/test-u64.c (main): Likewise.
13787         * tests/test-xfprintf-posix.c (main): Likewise.
13788         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13789
13790         sockets: avoid compiler warning
13791         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13792
13793         maint: detect usage(1) and other suspicious exits
13794         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13795
13796 2009-10-29  Jim Meyering  <meyering@redhat.com>
13797
13798         timespec: long-to-int truncation could make timespec_cmp malfunction
13799         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13800         a multiple of 2^32 nanoseconds as no difference.
13801
13802 2009-10-28  Jim Meyering  <meyering@redhat.com>
13803
13804         fprintftime: wrap macro code argument in "do {...} while(0)"
13805         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13806         cpy macro must be a statement that can be followed by a semicolon.
13807         Now that the else clause contains a comment and is hence longer
13808         than one line, I require curly braces.  That in turn requires
13809         that we wrap this code block in the standard do...while(0).
13810
13811         fprintftime: remove stray semicolon from previous change
13812         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13813
13814         fprintftime: avoid a warning about ignored fwrite return value
13815         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13816         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13817         that is unsafe.
13818         * modules/fprintftime (Depends-on): Add ignore-value.
13819
13820         exclude: avoid an unwarranted warning
13821         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13822
13823 2009-10-27  Eric Blake  <ebb9@byu.net>
13824
13825         fseek: avoid compilation failure when fflush is replaced
13826         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13827         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13828         module is in use.
13829         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13830         module is not in use; since REPLACE_FSEEK worked otherwise.
13831         (GNULIB_FTELLO): Likewise for ftell.
13832         Reported by Ian Beckwith and others.
13833
13834 2009-10-27  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13837         Reported by Jim Meyering.
13838
13839 2009-10-27  Jim Meyering  <jim@meyering.net>
13840             Bruno Haible  <bruno@clisp.org>
13841
13842         Avoid warning despite dropping the return value of fwrite.
13843         * lib/unicodeio.c: Include ignore-value.h.
13844         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13845         * modules/unicodeio (Depends-on): Add ignore-value.
13846
13847 2009-10-26  Eric Blake  <ebb9@byu.net>
13848
13849         areadlinkat: fix fallback path
13850         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13851         pointer and zero.
13852
13853 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13854
13855         Use a better IO block size for modern systems
13856         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13857         * lib/md2.c: Likewise.
13858         * lib/md4.c: Likewise.
13859         * lib/md5.c: Likewise.
13860         * lib/sha1.c: Likewise.
13861         * lib/sha256.c: Likewise.
13862         * lib/sha512.c: Likewise.
13863
13864 2009-10-22  Eric Blake  <ebb9@byu.net>
13865
13866         tests: avoid several compiler warnings
13867         * tests/test-getcwd.c (main): Avoid buffer underflow.
13868         * tests/test-getdate.c (main): String literals are not safe with
13869         putenv, so use setenv.  Declare unused argument.
13870         * modules/getdate-tests (Depends-on): Add setenv.
13871         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13872         problems with string literals in char *.
13873         * tests/test-hash.c (main): Avoid shadowing declaration.
13874         (insert_new): Treat string literals as char const *.
13875         * tests/test-getopt.h (test_getopt): Likewise.
13876         (getopt_loop): Alter types to minimize casting elsewhere.
13877         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13878         (test_getopt_long_posix): Likewise.
13879         (do_getopt_long): Add wrapper to minimize casting.
13880         * tests/test-atexit.c (clear_temp_file): Use void.
13881         * tests/test-areadlink-with-size.c (main): Declare unused
13882         arguments.
13883         * tests/test-areadlink.c (main): Likewise.
13884         * tests/test-areadlinkat-with-size.c (main): Likewise.
13885         * tests/test-areadlinkat.c (main): Likewise.
13886         * tests/test-canonicalize-lgpl.c (main): Likewise.
13887         * tests/test-canonicalize.c (main): Likewise.
13888         * tests/test-dirent-safer.c (main): Likewise.
13889         * tests/test-dirname.c (main): Likewise.
13890         * tests/test-dup2.c (main): Likewise.
13891         * tests/test-fchdir.c (main): Likewise.
13892         * tests/test-fcntl-h.c (main): Likewise.
13893         * tests/test-fcntl-safer.c (main): Likewise.
13894         * tests/test-fdopendir.c (main): Likewise.
13895         * tests/test-fdutimensat.c (main): Likewise.
13896         * tests/test-fflush.c (main): Likewise.
13897         * tests/test-filenamecat.c (main): Likewise.
13898         * tests/test-filevercmp.c (main): Likewise.
13899         * tests/test-fopen-safer.c (main): Likewise.
13900         * tests/test-fopen.c (main): Likewise.
13901         * tests/test-fpending.c (main): Likewise.
13902         * tests/test-fpurge.c (main): Likewise.
13903         * tests/test-freading.c (main): Likewise.
13904         * tests/test-fstatat.c (main): Likewise.
13905         * tests/test-fsync.c (main): Likewise.
13906         * tests/test-futimens.c (main): Likewise.
13907         * tests/test-getndelim2.c (main): Likewise.
13908         * tests/test-gettimeofday.c (main): Likewise.
13909         * tests/test-getopt.c (main): Likewise.
13910         * tests/test-i-ring.c (main): Likewise.
13911         * tests/test-inttypes.c (main): Likewise.
13912         * tests/test-link.c (main): Likewise.
13913         * tests/test-lstat.c (main): Likewise.
13914         * tests/test-math.c (main): Likewise.
13915         * tests/test-md5.c (main): Likewise.
13916         * tests/test-memchr2.c (main): Likewise.
13917         * tests/test-memrchr.c (main): Likewise.
13918         * tests/test-mkdir.c (main): Likewise.
13919         * tests/test-mkdirat.c (main): Likewise.
13920         * tests/test-mkfifoat.c (main): Likewise.
13921         * tests/test-open.c (main): Likewise.
13922         * tests/test-openat-safer.c (main): Likewise.
13923         * tests/test-openat.c (main): Likewise.
13924         * tests/test-quotearg.c (main): Likewise.
13925         * tests/test-rawmemchr.c (main): Likewise.
13926         * tests/test-readlink.c (main): Likewise.
13927         * tests/test-remove.c (main): Likewise.
13928         * tests/test-rename.c (main): Likewise.
13929         * tests/test-renameat.c (main): Likewise.
13930         * tests/test-rmdir.c (main): Likewise.
13931         * tests/test-sha1.c (main): Likewise.
13932         * tests/test-signal.c (main): Likewise.
13933         * tests/test-sigaction.c (main): Likewise.
13934         * tests/test-stat.c (main): Likewise.
13935         * tests/test-stat-time.c (main): Likewise.
13936         * tests/test-stddef.c (main): Likewise.
13937         * tests/test-stdint.c (main): Likewise.
13938         * tests/test-stdio.c (main): Likewise.
13939         * tests/test-stdlib.c (main): Likewise.
13940         * tests/test-strchrnul.c (main): Likewise.
13941         * tests/test-strerror.c (main): Likewise.
13942         * tests/test-string.c (main): Likewise.
13943         * tests/test-strtod.c (main): Likewise.
13944         * tests/test-strverscmp.c (main): Likewise.
13945         * tests/test-symlink.c (main): Likewise.
13946         * tests/test-symlinkat.c (main): Likewise.
13947         * tests/test-sys_stat.c (main): Likewise.
13948         * tests/test-sys_time.c (main): Likewise.
13949         * tests/test-time.c (main): Likewise.
13950         * tests/test-unistd.c (main): Likewise.
13951         * tests/test-unlink.c (main): Likewise.
13952         * tests/test-unlinkat.c (main): Likewise.
13953         * tests/test-utimens.c (main): Likewise.
13954         * tests/test-utimensat.c (main): Likewise.
13955         * tests/test-version-etc.c (main): Likewise.
13956         * tests/test-wchar.c (main): Likewise.
13957         * tests/test-wctype.c (main): Likewise.
13958         * tests/test-xprintf-posix.c (main): Likewise.
13959         * tests/test-posixtm.c (main): Likewise.
13960         (STREQ): Delete unused macro.
13961         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13962         shadowed variables.
13963         * tests/test-memchr.c (main): Likewise.
13964
13965 2009-10-21  Eric Blake  <ebb9@byu.net>
13966
13967         areadlinkat: avoid failure on older glibc
13968         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13969         rather than mis-comparing 0 against FUNC_RESULT of char*.
13970
13971 2009-10-21  Bruno Haible  <bruno@clisp.org>
13972
13973         * modules/stpncpy (License): Relicense under LGPLv2+.
13974         Reported by David Lutterkort <lutter@redhat.com>.
13975
13976 2009-10-20  Eric Blake  <ebb9@byu.net>
13977
13978         utimensat: work around Solaris 9 bug
13979         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13980         has trailing slash bugs.
13981         * tests/test-lutimens.h (test_lutimens): Enhance test.
13982         * tests/test-utimens.h (test_utimens): Likewise.
13983         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13984         * doc/posix-functions/utimes.texi (utimes): Likewise.
13985         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13986         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13987         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13988         * doc/posix-functions/futimens.texi (futimens): Likewise.
13989
13990         fdutimensat: new module
13991         * modules/fdutimensat: New file.
13992         * lib/fdutimensat.c (fdutimensat): Likewise.
13993         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13994         * MODULES.html.sh (File system functions): Mention module.
13995         * modules/fdutimensat-tests: New test.
13996         * tests/test-fdutimensat.c: Likewise.
13997
13998         doc: regenerate INSTALL
13999         * doc/INSTALL: Reflect recent autoconf update.
14000         * doc/INSTALL.ISO: Likewise.
14001         * doc/INSTALL.UTF-8: Likewise.
14002
14003 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14004
14005         acl: warn if ACL support is not detected
14006         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14007
14008 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14009
14010         * lib/nproc.h: Add extern "C" block for C++.
14011
14012 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14013             Bruno Haible  <bruno@clisp.org>
14014
14015         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14016         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14017         * doc/posix-functions/isalpha.texi: Likewise.
14018         * doc/posix-functions/isblank.texi: Likewise.
14019         * doc/posix-functions/iscntrl.texi: Likewise.
14020         * doc/posix-functions/isdigit.texi: Likewise.
14021         * doc/posix-functions/isgraph.texi: Likewise.
14022         * doc/posix-functions/islower.texi: Likewise.
14023         * doc/posix-functions/isprint.texi: Likewise.
14024         * doc/posix-functions/ispunct.texi: Likewise.
14025         * doc/posix-functions/isspace.texi: Likewise.
14026         * doc/posix-functions/isupper.texi: Likewise.
14027         * doc/posix-functions/isxdigit.texi: Likewise.
14028
14029 2009-10-18  Bruno Haible  <bruno@clisp.org>
14030
14031         Tests for module 'isblank'.
14032         * modules/isblank-tests: New file.
14033         * tests/test-isblank.c: New file.
14034
14035         New module 'isblank'.
14036         * lib/isblank.c: New file.
14037         * m4/isblank.m4: New file.
14038         * modules/isblank: New file.
14039         * doc/posix-functions/isblank.texi: Mention the new module.
14040
14041 2009-10-18  Bruno Haible  <bruno@clisp.org>
14042
14043         New module 'ctype'.
14044         * lib/ctype.in.h: New file.
14045         * m4/ctype.m4: New file.
14046         * modules/ctype: New file.
14047         * doc/posix-headers/ctype.texi: Mention the new module.
14048
14049 2009-10-18  Jim Meyering  <meyering@redhat.com>
14050
14051         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14052         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14053         right after its initialization, rather than farther down.
14054         Keeping these in close proximity makes it easier to ensure
14055         that each such variable is initialized.  E.g.,
14056
14057             LIB_CLOCK_GETTIME=
14058             AC_SUBST([LIB_CLOCK_GETTIME])
14059
14060         This change also increments these serial numbers.
14061         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14062         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14064
14065 2009-10-18  Bruno Haible  <bruno@clisp.org>
14066
14067         Don't let environment variables perturb build.
14068         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14069         (gl_PREREQ_GETHRXTIME): ... not here.
14070
14071 2009-10-18  Bruno Haible  <bruno@clisp.org>
14072
14073         Avoid symlink attack in localcharset module.
14074         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14075         (O_NOFOLLOW): Define fallback.
14076         (get_charset_aliases): Don't open the file if it is a symbolic link.
14077         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14078         gl_FCNTL_H.
14079         (gl_FCNTL_H): Require it.
14080         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14081         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14082         Reported by Fergal Glynn <fglynn@veracode.com>.
14083
14084 2009-10-18  Bruno Haible  <bruno@clisp.org>
14085
14086         Implement nproc for mingw.
14087         * lib/nproc.c: Include <windows.h>
14088         (num_processors): On native Windows platforms, try GetSystemInfo.
14089
14090 2009-10-18  Bruno Haible  <bruno@clisp.org>
14091
14092         Implement nproc for IRIX.
14093         * lib/nproc.c: Include <sys/sysmp.h>.
14094         (num_processors): On IRIX systems, try sysmp.
14095         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14096
14097 2009-10-18  Bruno Haible  <bruno@clisp.org>
14098
14099         Implement nproc for HP-UX.
14100         * lib/nproc.c: Include <sys/pstat.h>
14101         (num_processors): On HP-UX systems, try pstat_getdynamic.
14102         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14103         pstat_getdynamic.
14104
14105 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14106             Bruno Haible  <bruno@clisp.org>
14107
14108         Implement nproc for NetBSD, OpenBSD.
14109         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14110         (ARRAY_SIZE): New macro.
14111         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14112         * m4/nproc.m4: New file.
14113         * modules/nproc (Files): Add m4/nproc.m4.
14114         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14115         (Makefile.am): Instead, augment lib_SOURCES.
14116
14117 2009-10-18  Bruno Haible  <bruno@clisp.org>
14118
14119         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14120         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14121         sys/param.h.
14122
14123 2009-10-16  Eric Blake  <ebb9@byu.net>
14124
14125         utimensat: new module
14126         * modules/utimensat: New file.
14127         * lib/utimensat.c (utimensat): Likewise.
14128         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14129         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14130         so we can work around Linux bugs.
14131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14132         * modules/sys_stat (Makefile.am): Substitute them.
14133         * lib/sys_stat.in.h (utimensat): Declare it.
14134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14136         * modules/utimensat-tests: New test.
14137         * tests/test-utimensat.c: Likewise.
14138
14139         utimens: let lutimens work on non-symlinks
14140         * lib/utimens.c (lutimens): Fall back to utimens rather than
14141         failing with ENOSYS, when file is not a symlink.
14142         (utimens): Reduce redirection.
14143         * tests/test-lutimens.h (test_lutimens): Update test to cover
14144         non-symlinks.
14145         * tests/test-utimens.h (test_utimens): Update test to cover
14146         symlinks.
14147         * tests/test-utimens.c (main): Update caller.
14148
14149         utimens: cache whether utimensat syscall works
14150         * lib/utimens.c (utimensat_works_really): New cache variable.
14151         (fdutimens, lutimens): Use it to avoid failing syscall.
14152
14153         test-stat-time, test-utimens: improve portability
14154         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14155         ext4 on alpha, and for cygwin.
14156         * tests/test-utimens-common.h: New file.
14157         (nap): Factor delays into single function.
14158         * tests/test-lutimens.h (test_lutimens): Use new header.
14159         * tests/test-futimens.h (test_futimens): Likewise.
14160         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14161         timestamps to occur from same machine, as was done previously for
14162         test_utimens.
14163         * modules/utimens-tests (Files): Ship new file.
14164         * modules/futimens-tests (Files): Likewise.
14165         Reported in part by Jim Meyering.
14166
14167         sys_stat: sort replacement declarations
14168         * lib/sys_stat.in.h: Sort declarations.
14169         * lib/futimens.c (futimens): Fix typo.
14170
14171 2009-10-15  Jim Meyering  <meyering@redhat.com>
14172
14173         don't let environment settings perturb build
14174         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14175         could cause a configure-time and/or build-time malfunction.
14176         Typically, a configure-time function-in-library test is performed
14177         via code like this:
14178
14179           LIB_VAR=
14180           AC_SUBST([LIB_VAR])
14181           prefix_saved_LIBS=$LIBS
14182             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14183                        [test "$ac_cv_search_FUNC" = "none required" ||
14184                         LIB_VAR=$ac_cv_search_FUNC])
14185           LIBS=$prefix_saved_LIBS
14186
14187         However, in each of the files affected by this change, the LIB_VAR=
14188         initialization was omitted.  Thus, when set in the environment, its
14189         value would propagate into generated Makefiles when FUNC is not found
14190         in LIB_NAME.
14191         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14192         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14194
14195 2009-10-14  Eric Blake  <ebb9@byu.net>
14196
14197         fchdir: avoid infinite recursion in mingw
14198         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14199         recursing.
14200
14201         test-stat-time: port to mingw
14202         * tests/test-stat-time.c (force_unlink): Return a value.
14203         (test_ctime) [W32]: Fix compilation error.
14204         (nap): Don't call usleep with too large an argument.  Use
14205         force_unlink.
14206         * doc/pastposix-functions/usleep.texi (usleep): Document the
14207         portability issue.
14208
14209 2009-10-13  Jim Meyering  <meyering@redhat.com>
14210
14211         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14212         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14213         * modules/pipe-filter-ii: Likewise.
14214         * modules/sys_socket-tests: Likewise.
14215         * modules/tsearch-tests: Likewise.
14216         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14217         (check): Depend on it.
14218
14219 2009-10-12  Eric Blake  <ebb9@byu.net>
14220
14221         utimens-tests: port to NFS file systems
14222         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14223         comparisons to avoid spurious failures from timestamp drift
14224         between NFS machines.
14225
14226 2009-10-12  Eric Blake  <ebb9@byu.net>
14227
14228         stat-time-tests: minor cleanups
14229         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14230         * tests/test-stat-time.c (nap): Separate assignment from call.
14231         Suggested by Paolo Bonzini and Bruno Haible.
14232
14233         sys_stat: guarantee struct timespec
14234         * lib/sys_stat.in.h (includes): Always include <time.h>
14235         * modules/sys_stat (Depends-on): Add time.
14236         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14237         mode_t permission values.
14238         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14239         get at subsecond timestamps.
14240
14241 2009-10-10  Eric Blake  <ebb9@byu.net>
14242
14243         futimens: new module
14244         * modules/futimens: New file.
14245         * lib/futimens.c (futimens): Likewise.
14246         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14247         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14248         we can work around Linux bugs.
14249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14250         * modules/sys_stat (Makefile.am): Substitute them.
14251         * lib/sys_stat.in.h (futimens): Declare it.
14252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14253         * doc/posix-functions/futimens.texi (futimens): Likewise.
14254         * modules/futimens-tests: New test.
14255         * tests/test-futimens.c: Likewise.
14256
14257         utimens: introduce fdutimens
14258         * lib/utimens.h (fdutimens): New prototype.
14259         * lib/utimens.c (gl_futimens): Move guts...
14260         (fdutimens): ...to new interface.
14261         * tests/test-utimens.c (do_fdutimens): Use it.
14262
14263         utimens: add UTIME_NOW and UTIME_OMIT support
14264         * lib/utimens.c (validate_timespec, update_timespec): New helper
14265         functions.
14266         (gl_futimens, lutimens): Use them.
14267         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14268         stdbool, sys_stat.
14269         (Link): Mention resulting library dependency.
14270         * modules/utimecmp (Link): Likewise.
14271         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14272         (Makefile.am): Pick up library dependency.
14273         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14274         definition.
14275         * tests/test-sys_stat.c: Test the definitions.
14276         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14277         * NEWS: Document library dependency.
14278
14279         utimecmp: support symlink timestamps
14280         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14281         hashing when possible.  Use pathconf when available.
14282         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14283         * modules/utimecmp (Depends-on): Add lstat.
14284
14285         utimens: add lutimens interface
14286         * lib/utimens.c (lutimens): New function.
14287         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14288         * lib/utimens.h (lutimens): Declare new interface.
14289         * tests/test-utimens.c (main): Enhance test.
14290         * tests/test-lutimens.h (test_lutimens): New file.
14291         * modules/utimens-tests (Files): Distribute it.
14292         (Depends-on): Add symlink.
14293         (configure.ac): Check for usleep.
14294
14295         utimens: validate futimens usage
14296         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14297         fewer syscalls on failure later on.  Avoid compiler warning on
14298         mingw.
14299         * modules/utimens (Depends-on): Add dup2.
14300
14301         utimens: add test
14302         * modules/utimens-tests: New test.
14303         * tests/test-utimens.h: New file.
14304         * tests/test-futimens.h: Likewise.
14305         * tests/test-utimens.c: Likewise.
14306
14307         doc: mention timestamp portability issues
14308         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14309         instead.
14310         * doc/posix-functions/utime.texi (utime): Likewise.
14311         * doc/posix-functions/utimes.texi (utimes): Likewise.
14312         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14313         instead.
14314         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14315         module.
14316         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14317         Mention weakness with symlink timestamps.
14318         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14319         to utimensat/futimens instead.
14320         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14321
14322         test-dup2: enhance test
14323         * tests/test-dup2.c (main): Also check AT_FDCWD.
14324
14325         test-stat-time: avoid more spurious failures
14326         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14327         xfs; and avoid race if the two timestamps cross quantization edge.
14328
14329         relocatable: prefer 'file system' over 'filesystem'
14330         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14331         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14332         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14333         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14334         * lib/relocatable.c (compute_curr_prefix): Likewise.
14335
14336 2009-10-10  Jim Meyering  <meyering@redhat.com>
14337
14338         stat-time-tests: check for the usleep function
14339         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14340
14341 2009-10-10  Bruno Haible  <bruno@clisp.org>
14342
14343         * modules/xnanosleep: Put the Link section after the Include section.
14344
14345 2009-10-09  Eric Blake  <ebb9@byu.net>
14346
14347         dup2: work around FreeBSD 6.1 bug
14348         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14349         * doc/posix-functions/dup2.texi (dup2): Document it.
14350         Reported by Nelson H. F. Beebe and Jim Meyering.
14351
14352         test-stat-time: port to buggy NFS clients
14353         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14354         (test_ctime): Also skip test if mtime and ctime are skewed.
14355
14356         maint: prefer 'file system' over 'filesystem'
14357         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14358         * doc/posix-functions/lstat.texi (lstat): Likewise.
14359         * lib/file-has-acl.c (file_has_acl): Likewise.
14360         * lib/fwriteerror.c [TEST]: Likewise.
14361         * tests/test-areadlink.h (test_areadlink): Likewise.
14362         * tests/test-areadlinkat-with-size.c (main): Likewise.
14363         * tests/test-areadlinkat.c (main): Likewise.
14364         * tests/test-canonicalize-lgpl.c (main): Likewise.
14365         * tests/test-canonicalize.c (main): Likewise.
14366         * tests/test-fstatat.c (main): Likewise.
14367         * tests/test-linkat.c (main): Likewise.
14368         * tests/test-lstat.h (test_lstat_func): Likewise.
14369         * tests/test-mkdir.h (test_mkdir): Likewise.
14370         * tests/test-readlink.h (test_readlink): Likewise.
14371         * tests/test-remove.c (main): Likewise.
14372         * tests/test-rename.h (test_rename): Likewise.
14373         * tests/test-renameat.c (main): Likewise.
14374         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14375         * tests/test-symlink.h (test_symlink): Likewise.
14376         * tests/test-symlinkat.c (main): Likewise.
14377         * tests/test-unlink.h (test_unlink_func): Likewise.
14378         * tests/test-unlinkat.c (main): Likewise.
14379
14380         maint: make realtime library usage explicit
14381         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14382         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14383         * modules/settime (Link): Likewise.
14384         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14385
14386         test-stat-time: speed up execution
14387         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14388         warning on mingw.
14389         (nap): New helper function.
14390         (prepare_test): Use it to reduce sleep time.
14391         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14392         execution.
14393         * modules/stat-time-tests (configure.ac): Check for usleep.
14394
14395 2009-10-09  Jim Meyering  <meyering@redhat.com>
14396
14397         selinux-h: always use getfilecon wrappers
14398         * lib/getfilecon.c: New file.
14399         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14400         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14401         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14402         (fgetfilecon): Provide a stub.
14403         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14404         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14405         file unconditionally.
14406         When <selinux/selinux.h> is found, arrange to use wrappers.
14407         * modules/selinux-h (Files): Add getfilecon.c.
14408         (Makefile.am): Substitute include-next-related bits
14409         into the now-always-generated selinux/selinux.h file.
14410         * doc/glibc-functions/lgetfilecon.texi: New file.
14411         * doc/glibc-functions/fgetfilecon.texi: New file.
14412         * doc/glibc-functions/getfilecon.texi: New file.
14413         * doc/glibc-functions/getfilecon-desc.texi: New file.
14414         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14415         which to pull in the new files.
14416         * MODULES.html.sh (Misc): Add selinux-h.
14417
14418 2009-10-08  Jim Meyering  <meyering@redhat.com>
14419
14420         unistd: fix comment typo
14421         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14422
14423 2009-10-08  Eric Blake  <ebb9@byu.net>
14424
14425         areadlink: use SIZE_MAX consistently
14426         * modules/areadlink (Depends-on): Add stdint.
14427         * modules/areadlink-with-size (Depends-on): Likewise.
14428         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14429         gives NULL; drop sys/types, since unistd gives size_t; and add
14430         stdint for SIZE_MAX.
14431         (SIZE_MAX): Rely on headers.
14432         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14433         and add stdint.
14434         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14435         (SIZE_MAX): Likewise.
14436         (INITIAL_BUF_SIZE): Turn into enum.
14437         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14438
14439 2009-10-08  Jim Meyering  <meyering@redhat.com>
14440
14441         areadlinkat: avoid compilation failure
14442         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14443         Fix typo in comment.
14444
14445 2009-10-07  Eric Blake  <ebb9@byu.net>
14446
14447         areadlinkat-with-size: new module
14448         * modules/areadlinkat-with-size: New module.
14449         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14450         * lib/areadlink.h (areadlinkat): Declare it.
14451         * MODULES.html.sh (File system functions): Mention it.
14452         * modules/areadlinkat-with-size-tests: New test.
14453         * tests/test-areadlinkat-with-size.c: New file.
14454
14455         xreadlinkat: new module
14456         * modules/xreadlinkat: New module.
14457         * lib/xreadlinkat.c (xreadlinkat): New file.
14458         * lib/xreadlink.h (xreadlinkat): Declare it.
14459         * MODULES.html.sh (File system functions): Mention it.
14460
14461         areadlinkat: new module
14462         * lib/at-func.c (FUNC_FAIL): New define.
14463         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14464         * modules/areadlinkat: New module.
14465         * lib/linkat.c (areadlinkat): Move...
14466         * lib/areadlinkat.c (areadlinkat): ...to new file.
14467         * lib/areadlink.h (areadlinkat): Declare it.
14468         * modules/linkat (Depends-on): Add areadlinkat.
14469         * MODULES.html.sh (File system functions): Mention it.
14470         * modules/areadlinkat-tests: New test.
14471         * tests/test-areadlinkat.c: New file.
14472
14473         areadlink, areadlink-with-size: add tests
14474         * modules/areadlink-tests: New test.
14475         * modules/areadlink-with-size-tests: Likewise.
14476         * tests/test-areadlink.h: New file.
14477         * tests/test-areadlink.c: Likewise.
14478         * tests/test-areadlink-with-size.c: Likewise.
14479
14480         maint: minor cleanups
14481         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14482         _UNUSED_PARAMETER_ instead.
14483         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14484         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14485         * modules/linkat-tests (Files): Distribute test-link.h.
14486
14487         openat, utimens: whitespace cleanup
14488         * lib/openat.c: Prefer space throughout, rather than mix of 8
14489         spaces vs. tabs.
14490         * lib/at-func.c: Likewise.
14491         * lib/utimens.c: Likewise.
14492
14493         openat: avoid using wrong fd
14494         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14495         working directory chooses same fd.
14496         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14497
14498         mkdir, mkdirat: fix cygwin 1.5.x bug
14499         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14500         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14501         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14502         bug.
14503         (gl_PREREQ_MKDIR): Delete unused macro.
14504         * modules/mkdir (Files): Track file rename.
14505         (configure.ac): Update macro name.
14506         * modules/openat (Depends-on): Add mkdir.
14507         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14508
14509         mkdir, mkdirat: add tests
14510         * modules/mkdir-tests: New test.
14511         * tests/test-mkdir.h: New file.
14512         * tests/test-mkdir.c: Likewise.
14513         * tests/test-mkdirat.c: Likewise.
14514         * modules/openat-tests (Files): Add new files.
14515         (Makefile.am): Run new test.
14516
14517 2009-10-06  Eric Blake  <ebb9@byu.net>
14518
14519         doc: tweak *at function documentation
14520         * doc/posix-functions/faccessat.texi (faccessat): Mention
14521         known issue with replacement.
14522         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14523         * doc/posix-functions/linkat.texi (linkat): Likewise.
14524         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14525         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14526         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14527         * doc/posix-functions/renameat.texi (renameat): Likewise.
14528         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14529
14530         openat: fix GNU/Hurd bug in unlinkat
14531         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14532         broken.
14533         * doc/posix-functions/unlink.texi (unlink): Document this.
14534         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14535
14536         fdopendir: fix GNU/Hurd bug
14537         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14538         allowing non-directory fds.
14539         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14540         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14541         * modules/dirent (Makefile.am): Substitute it.
14542         * lib/dirent.in.h (fdopendir): Declare replacement.
14543         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14544         * tests/test-fdopendir.c (main): Test something other than
14545         /dev/null, since on Hurd that behaves like a directory.
14546
14547         test-symlink: port to GNU/Hurd
14548         * tests/test-symlink.h (test_symlink): Relax expected errno.
14549
14550         doc: tweak more cygwin information
14551         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14552         now compatible with glibc.
14553         * doc/posix-functions/getopt.texi (getopt): Likewise.
14554
14555         getopt-gnu: add another test
14556         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14557         guarantee behavior relied on by m4.
14558         * tests/test-getopt.c (main): Use it.
14559         * modules/getopt-posix-tests (Depends-on): Add setenv.
14560         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14561
14562         getopt: fix compilation on darwin
14563         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14564         include.
14565         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14566         Reported by Ludovic Courtès.
14567
14568 2009-10-06  Bruno Haible  <bruno@clisp.org>
14569
14570         * modules/size_max (Description): Discourage its use.
14571         Reported by Simon Josefsson.
14572
14573 2009-10-06  Jim Meyering  <meyering@redhat.com>
14574
14575         linkat: avoid compilation failure
14576         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14577
14578 2009-10-05  Eric Blake  <ebb9@byu.net>
14579
14580         linkat: support Linux 2.6.17
14581         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14582         linkat on Linux, but allow cache variable override.
14583         * lib/linkat.c (rpl_linkat): Define override.
14584         * modules/linkat (Depends-on): Add symlinkat.
14585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14586         * modules/unistd (Makefile.am): Substitute it.
14587         * lib/unistd.in.h (linkat): Declare replacement.
14588         Reported by Pádraig Brady.
14589
14590         quotearg: port test to systems with C.UTF-8 locale
14591         * tests/test-quotearg.c (struct result_strings): Add another
14592         member, differentiating between C.ASCII and C.UTF-8 handling.
14593         (compare_strings): Add parameter.
14594         (main): Adjust all callers.
14595
14596         getopt: avoid clash with FreeBSD _getopt_internal
14597         * lib/getopt.in.h (_getopt_internal): Override the name.
14598         * lib/getopt_int.h (includes): Pick up any overrides.
14599         Reported by Reuben Thomas.
14600
14601         hash: allow C89 compilation
14602         * lib/hash.c (check_tuning): Move declaration before statement.
14603         Reported by Reuben Thomas.
14604
14605 2009-10-05  Karl Berry  <karl@gnu.org>
14606
14607         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14608
14609 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14610             Bruno Haible  <bruno@clisp.org>
14611
14612         * lib/uname.c (uname): Use a table-driven algorithm to compute
14613         Windows NT versions.
14614
14615 2009-10-04  Bruno Haible  <bruno@clisp.org>
14616
14617         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14618         program_invocation_short_name.
14619         * modules/progname (configure.ac): Test for presence of
14620         program_invocation_short_name.
14621         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14622
14623 2009-10-04  Bruno Haible  <bruno@clisp.org>
14624
14625         * lib/progname.c (set_program_name): Fix comment.
14626         Reported by Jim Meyering.
14627
14628 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14629             Bruno Haible  <bruno@clisp.org>
14630
14631         * lib/uname.c: Include <string.h>.
14632         (uname): Do only one call to GetVersionEx in the common case.
14633
14634 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14635             Bruno Haible  <bruno@clisp.org>
14636
14637         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14638         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14639         (uname): Add support for Windows CE and various non-x86 CPU types.
14640
14641 2009-10-03  Bruno Haible  <bruno@clisp.org>
14642
14643         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14644         invocation to tests/configure.ac.
14645         Reported by Ian Beckwith <ianb@erislabs.net>.
14646
14647 2009-10-02  Eric Blake  <ebb9@byu.net>
14648
14649         fchdir: avoid compiler warning
14650         * lib/fchdir.c (canonicalize_file_name)
14651         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14652
14653         test-open: support mingw errno values
14654         * tests/test-open.h (test_open): Relax test.
14655         * tests/test-fopen.h (test_fopen): Likewise.
14656         * tests/test-openat-safer.c (main): Likewise.
14657
14658         open: fix opening directory on mingw
14659         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14660
14661         test-open: on GNU/Hurd, /dev/null is a directory
14662         * tests/test-fopen.h (main): Rename...
14663         (test_fopen): ...to this.  Use a guaranteed non-directory when
14664         confirming open behavior on trailing slash.
14665         * tests/test-openat-safer.c (main): Likewise.
14666         * tests/test-open.h (main): Likewise....
14667         (test_open): ...to this.
14668         * tests/test-fopen.c (main): Adjust caller.
14669         * tests/test-fopen-safer.c (main): Likewise.
14670         * tests/test-open.c (main): Likewise.
14671         * tests/test-fcntl-safer.c (main): Likewise.
14672         Reported by Samuel Thibault.
14673
14674         rename, fchdir: don't ignore chdir failure
14675         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14676         * lib/rename.c (rpl_rename) [W32]: Likewise.
14677         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14678         an empty destination directory if source cannot be renamed,
14679         although there is still possibility for failure.
14680         * doc/posix-functions/rename.texi (rename): Document the race.
14681         Reported by Jim Meyering.
14682
14683         maint: cleanup whitespace in recent commits
14684         * lib/rename.c (rpl_rename): Remove tabs.
14685         * tests/test-link.h (test_link): Likewise.
14686         * lib/fchdir.c (get_name): Likewise.
14687         Reported by Jim Meyering.
14688
14689 2009-10-02  Ben Pfaff  <blp@gnu.org>
14690
14691         relocatable-prog-wrapper: Add missing dependency on
14692         double-slash-root.
14693         * modules/relocatable-prog-wrapper: Add dependency.
14694         Reported by Ian Beckwith <ianb@erislabs.net>.
14695
14696 2009-10-02  Eric Blake  <ebb9@byu.net>
14697
14698         renameat: fix Solaris bugs
14699         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14700         needed fixing.
14701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14702         * modules/stdio (Makefile.am): Substitute it.
14703         * lib/stdio.in.h (renameat): Declare replacement.
14704         * lib/renameat.c (rpl_renameat): Implement fix.
14705
14706         renameat: new module
14707         * modules/renameat: New file.
14708         * lib/renameat.c (renameat): Likewise.
14709         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14711         * modules/stdio (Makefile.am): Substitute them.
14712         * lib/stdio.in.h (renameat): Declare it.
14713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14714         * doc/posix-functions/renameat.texi (renameat): Likewise.
14715         * modules/renameat-tests: New test.
14716         * tests/test-renameat.c: Likewise.
14717
14718         rename: fix mingw bugs
14719         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14720         directory overwrite bugs.
14721
14722         rename: fix another cygwin 1.5 bug
14723         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14724         checks.
14725         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14726         unnecessary cygwin workarounds.  Also work around bug with moving
14727         full directory onto an empty one.
14728         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14729
14730         rename-dest-slash: merge into rename module
14731         * modules/rename-dest-slash (Status): Mark obsolete.
14732         (Depends-on): Add rename.
14733         (Files): Let rename do it all.
14734         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14735         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14736         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14737         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14738         * lib/rename.c (rpl_rename): Update comments.
14739
14740         rename: fix cygwin 1.5.x bugs
14741         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14742         * lib/rename.c (rpl_rename): Work around them.
14743         * modules/rename (Depends-on): Add same-inode.
14744
14745         rename: fix Solaris 10 bug
14746         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14747         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14748         was the only bug.
14749
14750         rename: fix Solaris 9 bug
14751         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14752         on non-directory.  Avoid calling exit.
14753         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14754         strdup.
14755         * modules/rename-tests (Depends-on): Drop lstat.
14756         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14757         (gl_PREREQ_RENAME): Delete unused macro.
14758
14759         rename-dest-slash: fix NetBSD bug
14760         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14761         links.
14762         * modules/rename-dest-slash (Depends-on): Add same-inode.
14763
14764         rename-tests: new test, exposes several platform bugs
14765         * modules/rename-tests: New file.
14766         * tests/test-rename.h: Likewise.
14767         * tests/test-rename.c: Likewise.
14768         * doc/posix-functions/rename.texi (rename): Improve documentation,
14769         including bugs that will eventually be fixed in gnulib.
14770
14771 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14772
14773         * lib/uname.c: Include <stdlib.h>
14774         (uname): Assume version info is available.
14775
14776 2009-10-02  Jim Meyering  <meyering@redhat.com>
14777
14778         gnu-web-doc-update: correct --help output
14779         * build-aux/gnu-web-doc-update: Make --help output relevant.
14780
14781         gnu-web-doc-update: add standard options
14782         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14783
14784         gnu-web-doc-update: New module.
14785         Use this script to automatically update the on-line web documentation
14786         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14787         * modules/gnu-web-doc-update: New file, from coreutils.
14788         * build-aux/gnu-web-doc-update: New script.
14789
14790 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14791
14792         link: LoadLibrary is not needed.
14793         * lib/link.c: Use GetModuleHandle.
14794
14795 2009-10-01  Eric Blake  <ebb9@byu.net>
14796
14797         getopt: bump serial number
14798         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14799         change.
14800
14801         tests: tighten link, rmdir, and remove tests
14802         * tests/test-link.h (includes): No need to use <config.h> here.
14803         Clean up if directory hard link was created, otherwise test for
14804         trailing '.'.
14805         * tests/test-linkat.c (main): Simplify.
14806         * tests/test-remove.c (main): Enhance test for trailing '.'.
14807         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14808
14809 2009-10-01  Jim Meyering  <meyering@redhat.com>
14810
14811         maint.mk: requiring "make major" was annoying, for a "minor" release.
14812         What is intended is "stable", to contrast with alpha and beta,
14813         so require "make stable", not "make major".
14814         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14815         (get_tool_versions): Likewise.
14816         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14817
14818 2009-09-30  Ben Pfaff  <blp@gnu.org>
14819
14820         Fix broken build of replacement for Windows tmpfile().
14821         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14822         flags argument added along with the 'mkostemp' module.
14823
14824 2009-09-28  Bruno Haible  <bruno@clisp.org>
14825
14826         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14827         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14828         to 'remove_elt'.
14829         (gl_list_remove): Update.
14830         * lib/gl_list.c (gl_list_remove): Update.
14831         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14832         to 'remove_elt'.
14833         (gl_oset_remove): Update.
14834         * lib/gl_list.c (gl_oset_remove): Update.
14835         Reported by Eric Blake.
14836
14837 2009-09-28  Eric Blake  <ebb9@byu.net>
14838
14839         doc: mention yet more cygwin 1.7 status
14840         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14841         cygwin.
14842         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14843         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14844
14845         argp: fix test failure
14846         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14847         that are not upper-case.  Pass correct range to tolower.
14848
14849 2009-09-27  Jim Meyering  <meyering@redhat.com>
14850
14851         test-yesno: work around sparc-dash here-document infelicity
14852         Without this change, the literal \177 byte in a here document
14853         would make dash 0.5.5.1-3 access uninitialized memory.
14854         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14855         Instead, use a marker, "@", and filter through tr to create the desired
14856         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14857
14858 2009-09-27  Bruno Haible  <bruno@clisp.org>
14859
14860         Disable untested support for new flavours of ACLs on AIX.
14861         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14862         progress.
14863         * lib/set-mode-acl.c (qset_acl): Likewise.
14864
14865 2008-12-07  Bruno Haible  <bruno@clisp.org>
14866
14867         Add support for new flavours of ACLs on AIX. (Untested.)
14868         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14869         (file_has_acl): Add support for newer AIX.
14870         * lib/set-mode-acl.c (qset_acl): Likewise.
14871         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14872         Rainer Tammer <tammer@tammer.net>.
14873
14874 2009-09-26  Eric Blake  <ebb9@byu.net>
14875
14876         argp: fix compilation of getopt
14877         * lib/getopt.in.h (includes): Use different guard than glibc.
14878         Reported by Sergey Poznyakoff.
14879
14880         doc: mention more cygwin 1.7 status
14881         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14882         bug.
14883         * doc/posix-functions/execl.texi (execl): Likewise.
14884         * doc/posix-functions/execle.texi (execle): Likewise.
14885         * doc/posix-functions/execlp.texi (execlp): Likewise.
14886         * doc/posix-functions/execv.texi (execv): Likewise.
14887         * doc/posix-functions/execve.texi (execve): Likewise.
14888         * doc/posix-functions/execvp.texi (execvp): Likewise.
14889         * doc/glibc-functions/canonicalize_file_name.texi
14890         (canonicalize_file_name): Cygwin 1.7 now provides this.
14891         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14892         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14893         on AT_SYMLINK_NOFOLLOW.
14894
14895 2009-09-24  Eric Blake  <ebb9@byu.net>
14896
14897         test-linkat: make test more robust
14898         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14899
14900         getopt: fix inclusion guards for cygwin
14901         * modules/getopt-posix (Depends-on): Add include-next.
14902         (Makefile.am): Substitute more items in replacement header.
14903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14904         <getopt.h>.
14905         * lib/getopt.in.h (includes): Use split inclusion guard, and
14906         prefer <getopt.h> over include <unistd.h> when one is present.
14907         (option): Also override name of 'struct option'.
14908
14909         same-inode: revert prior change; it is not yet ready
14910         * NEWS: Undo mention of this change.
14911         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14912         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14913         * lib/cycle-check.c (cycle_check): Likewise.
14914         * lib/same.c (same_name): Likewise.
14915         * lib/at-func2.c (at_func2): Likewise.
14916
14917 2009-09-23  Eric Blake  <ebb9@byu.net>
14918
14919         linkat: new module
14920         * modules/linkat: New file.
14921         * lib/at-func2.c (at_func2): Likewise.
14922         * lib/linkat.c (linkat): Likewise.
14923         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14924         * lib/openat-priv.h (at_func2): Add declaration.
14925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14926         * modules/unistd (Makefile.am): Substitute them.
14927         * lib/unistd.in.h (linkat): Declare it.
14928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14929         * doc/posix-functions/linkat.texi (linkat): Likewise.
14930         * doc/posix-functions/link.texi (link): Tweak wording.
14931         * tests/test-link.c (main): Move guts...
14932         * tests/test-link.h (test_link): ...into new file.
14933         * modules/linkat-tests: New test.
14934         * tests/test-linkat.c: Likewise.
14935         * modules/link-tests (Files): Ship new file.
14936         (Depends-on): Add stdbool.
14937
14938         dirname: add library-safe mdir_name
14939         * lib/dirname.h (mdir_name): New prototype.
14940         * lib/dirname.c (dir_name): Move guts...
14941         (mdir_name): ...to new function that avoids xalloc_die.
14942
14943         fchdir: another mingw fix
14944         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14945         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14946         on mingw (where it has not yet been ported), and make it optional
14947         elsewhere.
14948         (_gl_register_fd): Use it.
14949
14950         same-inode: make SAME_INODE tri-state, to port to mingw
14951         * NEWS: Mention this change.
14952         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14953         st_ino always being 0.
14954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14955         * lib/cycle-check.c (cycle_check): Likewise.
14956         * lib/same.c (same_name): Likewise.
14957
14958         lstat: avoid mingw compilation error
14959         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14960         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14961         lstat ourselves.
14962         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14963         was adequate.
14964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14965         the checks for lstat.
14966         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14967
14968         link: fix test failure on Solaris 9
14969         * lib/link.c (rpl_link): Don't assume link will catch bogus
14970         trailing slash on source.
14971
14972         test-symlinkat: enhance test
14973         * tests/test-readlink.c (main): Move guts...
14974         * tests/test-readlink.h (test_readlink): ...into new file.
14975         * tests/test-symlink.c (main): Move guts...
14976         * tests/test-symlink.h (test_symlink): ...into new file.
14977         * tests/test-symlinkat.c (main): Use new files for further
14978         coverage.
14979         (do_symlink, do_readlink): New helper functions.
14980         * modules/symlink-tests (Files): Ship new file.
14981         (Depends-on): Add stdbool.
14982         * modules/readlink-tests (Files): Ship new file.
14983         (Depends-on): Add stdbool.
14984         * modules/symlinkat-tests (Files): Use new files.
14985
14986 2009-09-23  Eric Blake  <ebb9@byu.net>
14987
14988         readlink: document portability issue with symlink length
14989         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14990         systems have bogus st_size on symlinks, and mention the
14991         areadlink-with-size module.
14992         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14993         * doc/posix-functions/readlink.texi (readlink): Mention the
14994         areadlink module, and ERANGE failure.
14995         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14996         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14997
14998         readlink: fix Solaris 9 bug with trailing slash
14999         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15000         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15001         * doc/posix-functions/readlink.texi (readlink): Document this.
15002         * modules/readlink-tests: New test.
15003         * tests/test-readlink.c: Likewise.
15004
15005         readlink: fix cygwin 1.5.x bug with return type
15006         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15007         * lib/unistd.in.h (readlink): Use ssize_t.
15008         * lib/readlink.c (readlink): Likewise.
15009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15010         * modules/unistd (Makefile.am): Substitute it.
15011         * lib/unistd.in.h (readlink): Declare replacement.
15012         * doc/posix-functions/readlink.texi (readlink): Document this.
15013
15014         symlink: use throughout gnulib
15015         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15016         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15017         symlink is not used.
15018         * modules/symlinkat (Depends-on): Add symlink.
15019         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15020         * modules/canonicalize-tests (Depends-on): Likewise.
15021         * modules/lstat-tests (Depends-on): Likewise.
15022         * modules/openat-tests (Depends-on): Likewise.
15023         * modules/remove-tests (Depends-on): Likewise.
15024         * modules/rmdir-tests (Depends-on): Likewise.
15025         * modules/unlink-tests (Depends-on): Likewise.
15026         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15027         * tests/test-canonicalize.c (symlink): Likewise.
15028         * tests/test-fstatat.c (symlink): Likewise.
15029         * tests/test-lstat.c (symlink): Likewise.
15030         * tests/test-remove.c (symlink): Likewise.
15031         * tests/test-rmdir.c (symlink): Likewise.
15032         * tests/test-unlink.c (symlink): Likewise.
15033         * tests/test-unlinkat.c (symlink): Likewise.
15034
15035         symlink: new module, for Solaris 9 bug
15036         * modules/symlink: New file.
15037         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15038         * lib/symlink.c: Likewise.
15039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15040         * modules/unistd (Makefile.am): Substitute them.
15041         * lib/unistd.in.h (symlink): Declare replacement.
15042         * MODULES.html.sh (File system functions): Mention it.
15043         * doc/posix-functions/symlink.texi (symlink): Likewise.
15044         * modules/symlink-tests: New test.
15045         * tests/test-symlink.c: Likewise.
15046
15047 2009-09-23  Bruno Haible  <bruno@clisp.org>
15048
15049         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15050         when needed.
15051         Test case: gnulib-tool --import --with-tests atexit inttypes.
15052         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15053
15054 2009-09-23  Bruno Haible  <bruno@clisp.org>
15055
15056         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15057         subcommand, not in a subshell.
15058
15059 2009-09-22  Eric Blake  <ebb9@byu.net>
15060
15061         unistd: sort replacement declarations
15062         * lib/unistd.in.h: Sort declarations.
15063
15064         open, openat: minor optimization
15065         * lib/open.c (open): If open succeeded, len is non-zero.
15066         * lib/openat.c (rpl_openat): Likewise.
15067
15068         link-follow: ensure correct result
15069         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15070         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15071         distinguish between possible failures.
15072
15073 2009-09-21  Eric Blake  <ebb9@byu.net>
15074
15075         fts: avoid compiler warning
15076         * lib/fts.c (dirent_inode_sort_may_be_useful)
15077         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15078
15079 2009-09-19  Bruno Haible  <bruno@clisp.org>
15080
15081         * lib/progreloc.c (canonicalize_file_name): New declaration.
15082
15083 2009-09-19  Eric Blake  <ebb9@byu.net>
15084
15085         link: fix quoting
15086         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15087
15088         openat: fix openat bugs on Solaris 9
15089         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15090         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15091         * modules/openat (Depends-on): Add open.
15092         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15093         * modules/fcntl-h (Makefile.am): Substitute it.
15094         * lib/fcntl.in.h (openat): Declare replacement.
15095         * doc/posix-functions/openat.texi (openat): Document this.
15096
15097         openat: move fstatat and unlinkat into correct files
15098         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15099         compiled.
15100         * lib/openat.c (fstatat, unlinkat): Move...
15101         * lib/fstatat.c (fstatat): ...into correct files.
15102         * lib/unlinkat.c (unlinkat): Likewise.
15103
15104         openat: fix unlinkat bugs on Solaris 9
15105         * lib/unlinkat.c (unlinkat): New file.
15106         * modules/openat (Depends-on): Add unlink.
15107         (Files): Distribute it.
15108         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15109         trailing slash behavior is broken.
15110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15111         * modules/unistd (Makefile.am): Substitute it.
15112         * lib/unistd.in.h (unlinkat): Declare replacement.
15113         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15114
15115         openat: fix fstatat bugs on Solaris 9
15116         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15117         stat.
15118         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15119
15120         test-unlinkat: enhance test, to expose Solaris 9 bug
15121         * tests/test-unlink.c (main): Factor guts...
15122         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15123         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15124         * tests/test-rmdir.c (main): Adjust caller.
15125         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15126         (unlinker): New helper function.
15127         (rmdirat): Enhance check.
15128         * modules/rmdir-tests (Depends-on): Add stdbool.
15129         * modules/unlink-tests (Depends-on): Likewise.
15130         (Files): Add test-unlink.h.
15131         * modules/openat-tests (Files): Likewise.
15132         (Depends-on): Add unlinkdir.
15133
15134         test-fstatat: new test, to expose Solaris 9 bugs
15135         * tests/test-stat.c (main): Factor guts...
15136         * tests/test-stat.h (test_stat_func): ...into new file.
15137         * tests/test-lstat.c (main): Factor guts...
15138         * tests/test-lstat.h (test_lstat_func): ...into new file.
15139         * tests/test-fstatat.c: New file.
15140         * modules/stat-tests (Files): Add test-stat.h.
15141         * modules/lstat-tests (Files): Add test-lstat.h.
15142         (Depends-on): Add stdbool.
15143         * modules/openat-tests (Depends-on): Add pathmax.
15144         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15145         (Makefile.am): Run new test.
15146
15147         remove: new module, for mingw and Solaris 9 bugs
15148         * modules/remove: New file.
15149         * lib/remove.c: Likewise.
15150         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15152         * modules/stdio (Makefile.am): Use them.
15153         * lib/stdio.in.h (remove): Declare replacement.
15154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15155         * doc/posix-functions/remove.texi (remove): Likewise.
15156         * modules/remove-tests: New test.
15157         * tests/test-remove.c: Likewise.
15158
15159         unlink: new module, for Solaris 9 bug
15160         * modules/unlink: New file.
15161         * lib/unlink.c: Likewise.
15162         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15164         * modules/unistd (Makefile.am): Use them.
15165         * lib/unistd.in.h (stat): Declare replacement.
15166         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15167         * doc/posix-functions/unlink.texi (unlink): Likewise.
15168         * modules/unlink-tests: New test.
15169         * tests/test-unlink.c: Likewise.
15170
15171         lstat: fix Solaris 9 bug
15172         * lib/lstat.c (lstat): Also check for trailing slash on
15173         non-symlink, non-directories.  Use stat module to simplify logic.
15174         * doc/posix-functions/lstat.texi (lstat): Document it.
15175         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15176         (configure.ac): Check for symlink.
15177         * tests/test-lstat.c (main): Add more tests.
15178
15179         stat: add as dependency to other modules
15180         * modules/chown (Depends-on): Add stat.
15181         * modules/euidaccess (Depends-on): Likewise.
15182         * modules/fchdir (Depends-on): Likewise.
15183         * modules/isdir (Depends-on): Likewise.
15184         * modules/link (Depends-on): Likewise.
15185         * modules/lstat (Depends-on): Likewise.
15186         * modules/mkdir-p (Depends-on): Likewise.
15187         * modules/modechange (Depends-on): Likewise.
15188         * modules/open (Depends-on): Likewise.
15189         * modules/readlink (Depends-on): Likewise.
15190         * modules/same (Depends-on): Likewise.
15191
15192         stat: fix Solaris 9 bug
15193         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15194         slash.
15195         * lib/stat.c (rpl_stat): Work around it.
15196         * doc/posix-functions/stat.texi (stat): Update documentation.
15197
15198         stat: new module, for mingw bug
15199         * modules/stat: New file.
15200         * lib/stat.c: Likewise.
15201         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15203         * modules/sys_stat (Makefile.am): Use them.
15204         * lib/sys_stat.in.h (stat): Declare replacement.
15205         * lib/openat.c (fstatat): Deal with lstat and stat being function
15206         macros.
15207         * modules/openat (Depends-on): Add inline.
15208         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15209         * doc/posix-functions/stat.texi (stat): Likewise.
15210         * modules/stat-tests: New test.
15211         * tests/test-stat.c: Likewise.
15212
15213 2009-09-19  Jim Meyering  <meyering@redhat.com>
15214
15215         syntax-check: detect unnecessary inclusion of canonicalize.h
15216         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15217
15218 2009-09-19  Eric Blake  <ebb9@byu.net>
15219
15220         canonicalize-lgpl: adjust clients to use correct header
15221         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15222         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15223         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15224         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15225         * lib/progreloc.c (includes): Likewise.
15226
15227 2009-09-19  Jim Meyering  <meyering@redhat.com>
15228
15229         test-posixtm.c: correct a comment
15230         * tests/test-posixtm.c: Correct first-line comment.
15231         Spotted by Eric Blake.
15232
15233 2009-09-16  Jim Meyering  <meyering@redhat.com>
15234
15235         posixtm-tests: make T const-correct; add a test case
15236         * tests/test-posixtm.c (T): Declare const.
15237         Add a test for -(2^31+1).
15238         Remove useless can-succeed-only-in-2002 test.
15239
15240         posixtm-tests: adjust the sole failing test
15241         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15242         expected output matches what mktime now produces.  Cross-checked via
15243         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15244
15245         posixtm: move #ifdef'd tests into a new module
15246         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15247         * tests/test-posixtm.c: ... this new file.
15248         * modules/posixtm-tests: New module.
15249
15250 2009-09-19  Eric Blake  <ebb9@byu.net>
15251
15252         openat: simplify use of at-func.c
15253         * lib/at-func.c (includes): Include prerequisites here, to
15254         simplify requirements on client files.
15255         * lib/openat-priv.h: Add double-inclusion guard.
15256         * lib/faccessat.c (includes): Simplify.
15257         * lib/fchmodat.c (includes): Likewise.
15258         * lib/fchownat.c (includes): Likewise.
15259         * lib/mkdirat.c (includes): Likewise.
15260         * lib/mkfifoat.c (includes): Likewise.
15261         * lib/symlinkat.c (includes): Likewise.
15262
15263         openat: allow return of fd 0
15264         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15265         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15266         unistd-safer.
15267         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15268         <fcntl.h>; this module does not leak fds.
15269         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15270         must be allowed to return 0, leaving openat_safer to add the
15271         safety.
15272         (openat_permissive): Avoid writing to just-opened fd 2 if
15273         restoring the current directory fails.
15274         * lib/openat-die.c (openat_restore_fail): Add comment.
15275         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15276         (save_cwd): Guarantee safe fd, but without use of open_safer.
15277         * tests/test-openat.c: New test.
15278         * modules/openat-tests (Files, Makefile.am): Distribute and build
15279         new file.
15280
15281         relocatable-prog-wrapper: fix build
15282         * modules/relocatable-prog-wrapper (Files): Update name of
15283         canonicalize m4 file, broken on 2009-09-17.
15284         Reported by emad hajjar <aleppos@hotmail.com>.
15285
15286 2009-09-19  Bruno Haible  <bruno@clisp.org>
15287
15288         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15289         * lib/safe-alloc.c: Likewise.
15290         Reported by Ian Beckwith <ianb@erislabs.net>.
15291
15292 2009-09-18  Bruno Haible  <bruno@clisp.org>
15293
15294         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15295         Reported by <erobles@sensacd.com.mx>.
15296
15297 2009-09-17  Eric Blake  <ebb9@byu.net>
15298
15299         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15300         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15301         slashes when checking if last component is missing.
15302         * tests/test-canonicalize.c (main): Test this.
15303
15304         canonicalize, canonicalize-lgpl: honor // if distinct from /
15305         * modules/canonicalize (Files): Add double-slash-root.m4.
15306         * modules/canonicalize-lgpl (Files): Likewise.
15307         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15308         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15309         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15310         fallback definition.
15311         (canonicalize_filename_mode): Use it to protect //.
15312         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15313         (__realpath): Likewise.
15314         * tests/test-canonicalize.c (main): Test this.
15315         * tests/test-canonicalize-lgpl.c (main): Likewise.
15316         * modules/canonicalize-tests (Depends-on): Add same-inode.
15317         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15318
15319         canonicalize-lgpl: fix glibc bug with trailing slash
15320         * m4/canonicalize-lgpl.m4: Move contents...
15321         * m4/canonicalize.m4: ...here.
15322         (gl_CANONICALIZE_LGPL): Factor realpath check...
15323         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15324         glibc 2.3.5 bug, fixed 2005-04-27.
15325         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15326         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15327         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15328         * modules/canonicalize-lgpl (Files): Manage file rename.
15329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15330         * modules/stdlib (Makefile.am): Substitute witness.
15331         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15332         is needed.
15333         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15334         replacement is required.
15335         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15336         * doc/glibc-functions/canonicalize_file_name.texi
15337         (canonicalize_file_name): Document this.
15338         * doc/posix-functions/realpath.texi (realpath): Likewise.
15339
15340         canonicalize-lgpl: reject non-directory with trailing slash
15341         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15342         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15343         catches failures in glibc 2.3.5.
15344         * tests/test-canonicalize.c (main): Likewise.
15345
15346         canonicalize-lgpl: use native realpath if it works
15347         * lib/canonicalize-lgpl.c (realpath): Guard with
15348         FUNC_REALPATH_WORKS.
15349         * lib/stdlib.in.h (realpath): Make declaration optional based on
15350         HAVE_REALPATH.
15351         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15352         native realpath works.
15353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15354         * modules/stdlib (Makefile.am): Substitute witness.
15355
15356         canonicalize, canonicalize-lgpl: use <stdlib.h>
15357         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15358         (Include): Mention <stdlib.h>.
15359         (configure.ac): Mention functions we provide.
15360         * modules/canonicalize (configure.ac): Likewise.
15361         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15362         realpath if canonicalize_file_name is missing.
15363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15364         * modules/stdlib (Makefile.am): Substitute witnesses.
15365         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15366         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15367         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15368         * NEWS: Document this.
15369         * doc/glibc-functions/canonicalize_file_name.texi
15370         (canonicalize_file_name): Likewise.
15371         * doc/posix-functions/realpath.texi (realpath): Likewise.
15372         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15373
15374         test-canonicalize: consolidate into single C program
15375         * tests/test-canonicalize.sh: Delete; move setup into...
15376         * tests/test-canonicalize.c (main): ...the program, making it
15377         easier to run in debugger.  Add some tests.
15378         * modules/canonicalize-tests (Files): Remove unused file.
15379         (Depends-on): Add progname.
15380         (configure.ac, Makefile.am): Simplify.
15381
15382         test-canonicalize-lgpl: consolidate into single C program
15383         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15384         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15385         easier to run in debugger.  Add some tests.
15386         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15387         (configure.ac, Makefile.am): Simplify.
15388
15389         canonicalize: avoid resolvepath
15390         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15391         unnecessary checks.
15392         * lib/canonicalize.c (includes): Simplify.
15393         (canonicalize_file_name): Drop resolvepath implementation.
15394         * modules/canonicalize (Depends-on): Drop filenamecat.
15395
15396         canonicalize: don't lose errno
15397         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15398         over calls to free.
15399
15400         canonicalize: simplify errno handling
15401         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15402         assignment.
15403
15404         canonicalize, canonicalize-lgpl: update module dependencies
15405         * modules/canonicalize (Depends-on): Add extensions, lstat,
15406         pathmax, stdlib.
15407         (Files): Drop pathmax.h.
15408         (configure.ac): Adjust macro name.
15409         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15410         lstat, stdlib, sys_stat.
15411         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15412         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15413         extensions.
15414         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15415         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15416         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15417         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15418         declaration, if available.
15419         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15420         we can rely on the readlink module.
15421         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15422         (includes): Use <unistd.h> unconditionally.
15423
15424 2009-09-17  Eric Blake  <ebb9@byu.net>
15425
15426         maint: make Include sections of modules consistent
15427         * modules/alloca: Use only header name; no need to list #include.
15428         * modules/alloca-opt: Likewise.
15429         * modules/arpa_inet: Likewise.
15430         * modules/canon-host: Likewise.
15431         * modules/configmake: Likewise.
15432         * modules/dirent: Likewise.
15433         * modules/eealloc: Likewise.
15434         * modules/environ: Likewise.
15435         * modules/fchdir: Likewise.
15436         * modules/fcntl: Likewise.
15437         * modules/fcntl-h: Likewise.
15438         * modules/gethrxtime: Likewise.
15439         * modules/gettime: Likewise.
15440         * modules/ignore-value: Likewise.
15441         * modules/inet_ntop: Likewise.
15442         * modules/inet_pton: Likewise.
15443         * modules/inttypes: Likewise.
15444         * modules/isnand-nolibm: Likewise.
15445         * modules/isnanf-nolibm: Likewise.
15446         * modules/mbchar: Likewise.
15447         * modules/mbfile: Likewise.
15448         * modules/mbiter: Likewise.
15449         * modules/mbuiter: Likewise.
15450         * modules/netdb: Likewise.
15451         * modules/netinet_in: Likewise.
15452         * modules/nproc: Likewise.
15453         * modules/pagealign_alloc: Likewise.
15454         * modules/poll: Likewise.
15455         * modules/printf-frexp: Likewise.
15456         * modules/pthread: Likewise.
15457         * modules/putenv: Likewise.
15458         * modules/random_r: Likewise.
15459         * modules/relocatable-prog: Likewise.
15460         * modules/search: Likewise.
15461         * modules/select: Likewise.
15462         * modules/selinux-h: Likewise.
15463         * modules/settime: Likewise.
15464         * modules/signal: Likewise.
15465         * modules/size_max: Likewise.
15466         * modules/socklen: Likewise.
15467         * modules/ssize_t: Likewise.
15468         * modules/stdarg: Likewise.
15469         * modules/stdbool: Likewise.
15470         * modules/stddef: Likewise.
15471         * modules/stdint: Likewise.
15472         * modules/stdio: Likewise.
15473         * modules/stdlib: Likewise.
15474         * modules/string: Likewise.
15475         * modules/strings: Likewise.
15476         * modules/sys_file: Likewise.
15477         * modules/sys_ioctl: Likewise.
15478         * modules/sys_select: Likewise.
15479         * modules/sys_socket: Likewise.
15480         * modules/sys_stat: Likewise.
15481         * modules/sys_time: Likewise.
15482         * modules/sys_times: Likewise.
15483         * modules/sys_utsname: Likewise.
15484         * modules/sys_wait: Likewise.
15485         * modules/sysexits: Likewise.
15486         * modules/time: Likewise.
15487         * modules/times: Likewise.
15488         * modules/tmpfile: Likewise.
15489         * modules/trim: Likewise.
15490         * modules/unistd: Likewise.
15491         * modules/wchar: Likewise.
15492         * modules/wctype: Likewise.
15493
15494 2009-09-17  Bruno Haible  <bruno@clisp.org>
15495
15496         Make getdate.y compile on QNX and NetBSD 5 / i386.
15497         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15498         TIME_T_FITS_IN_LONG_INT.
15499         * lib/getdate.y (long_time_t): New type.
15500         (relative_time): Change type of 'seconds' field to long_time_t.
15501         (get_date): Update types of local variables. Check against overflow
15502         during conversion from long_time_t to time_t.
15503         Reported by Matt Kraai <kraai@ftbfs.org>
15504         and Hasso Tepper <hasso@netbsd.org>.
15505
15506 2009-09-17  Bruno Haible  <bruno@clisp.org>
15507
15508         * modules/COPYING: Update copyright years.
15509         * modules/README: Likeiwse.
15510         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15511         Reported by Ian Beckwith <ianb@erislabs.net>.
15512
15513 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15514
15515         * users.txt: Update references for gnuit package.
15516
15517 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15518
15519         * m4/getdelim.m4: Fix typo in copyright line.
15520
15521 2009-09-17  Bruno Haible  <bruno@clisp.org>
15522
15523         * lib/atoll.c: Use the standard header with GPL copyright.
15524         * lib/argz.in.h: Likewise.
15525         * lib/glob.c: Likewise.
15526         * lib/glob-libc.h: Likewise.
15527         * lib/random_r.c: Likewise.
15528         * lib/siglist.h: Likewise.
15529         * lib/strsignal.c: Likewise.
15530         Reported by Ian Beckwith <ianb@erislabs.net>.
15531
15532 2009-09-17  Eric Blake  <ebb9@byu.net>
15533
15534         rmdir: ensure correct dependency order
15535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15536
15537 2009-09-17  Bruno Haible  <bruno@clisp.org>
15538
15539         Disable assertion that fails on NetBSD 5 / i386.
15540         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15541         Reported by Sam Steingold <sds@gnu.org>
15542         and Hasso Tepper <hasso@netbsd.org>.
15543
15544 2009-09-16  Eric Blake  <ebb9@byu.net>
15545
15546         unlinkdir: port to mingw
15547         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15548         on which no one can unlink a directory.
15549
15550         stdlib: sort witness names
15551         * modules/stdlib (Makefile.am): Sort replacements.
15552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15553         * lib/stdlib.in.h: Likewise.
15554
15555         parse-duration-tests: avoid link failure
15556         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15557         LIBINTL.
15558         Reported by Tom G. Christensen.
15559
15560         openat-tests: ensure unlinkat behaves like rmdir
15561         * tests/test-rmdir.c (main): Factor guts...
15562         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15563         * modules/rmdir-tests (Files): Ship new file.
15564         * modules/openat-tests: New test.
15565         * tests/test-unlinkat.c: Likewise.
15566
15567         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15568         * modules/rmdir-errno (Status, Notice): Now obsolete.
15569
15570         rmdir: work around cygwin 1.5.x and mingw bugs
15571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15572         * lib/rmdir.c (rmdir): Work around it.
15573         * modules/rmdir (Status, Notice): No longer obsolete.
15574         (Files): Add dos.m4.
15575         (Depends-on): Add unistd.
15576         (configure.ac): Set witnesses.
15577         (License): Relax to LGPLv2+.
15578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15579         * modules/unistd (Makefile.am): Substitute witnesses.
15580         * lib/unistd.in.h (rmdir): Declare replacement.
15581         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15582         * modules/rmdir-tests: New tests.
15583         * tests/test-rmdir.c: Likewise.
15584
15585 2009-09-15  Eric Blake  <ebb9@byu.net>
15586
15587         fchdir: improve use of replacement functions
15588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15590         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15591         REPLACE_CLOSEDIR.
15592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15593         * modules/sys_stat (Makefile.am): Substitute correct witness.
15594         * modules/dirent (Makefile.am): Likewise.
15595         * modules/unistd (Makefile.am): Likewise.
15596         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15597         * lib/unistd.in.h (dup): Likewise.
15598         * lib/sys_stat.in.h (fstat): Likewise.
15599
15600         maint: ignore gnulib-tool temp files
15601         * .gitignore: Ignore files created during gnulib-tool --test.
15602
15603 2009-09-13  Jim Meyering  <meyering@redhat.com>
15604
15605         posixtm: don't reject a time that specify "60" as the number of seconds
15606         * lib/posixtm.c (posixtime): The code to reject invalid dates
15607         would also reject a time specified with the .60 suffix.
15608         But POSIX allows that, in order to accommodate leap seconds.
15609         So don't reject it.
15610         (main): Adjust tests accordingly.
15611         * modules/posixtm (Depends-on): Add stpcpy.
15612
15613 2009-09-11  Jim Meyering  <meyering@redhat.com>
15614
15615         announce-gen: include [$release_type] in emitted Subject:
15616         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15617         e.g., [stable] in the emitted Subject: line.
15618
15619 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15620
15621         Remove obsolete macros from several modules.
15622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15623         obsolete Autoconf macros with their modern counterparts.
15624         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15625         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15627         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15628         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15629         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15632         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15633         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15634         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15636         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15637         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15638         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15639         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15640         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15641         * m4/time_r.m4 (gl_TIME_R): Likewise.
15642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15643         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15644         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15645
15646         Fix copyright header in build-aux scripts.
15647         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15648         recommendation.
15649         * build-aux/ncftpput-ftp: Likewise.
15650         * build-aux/update-copyright: Likewise.
15651
15652 2009-09-09  Eric Blake  <ebb9@byu.net>
15653
15654         test-link: allow Linux choice of errno
15655         * tests/test-link.c (main): Relax test for alternate error.
15656
15657         strndup: fix improper m4 caching
15658         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15659         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15660         (gl_PREREQ_STRNDUP): Delete.
15661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15662         * modules/string (Makefile.am): Substitute it.
15663         * lib/string.in.h (strndup): Modernize prototype.
15664
15665         getcwd: port to mingw
15666         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15667         different from the POSIX assumptions made throughout the getcwd
15668         module; fortunately, the mingw getcwd does not need replacement.
15669         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15670         * modules/getcwd-tests: New test.
15671         * tests/test-getcwd.c: Likewise.
15672
15673         link: fix platform bugs
15674         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15675         * lib/link.c (link): Work around them.  Fix related mingw bug.
15676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15677         * modules/unistd (Makefile.am): Substitute it.
15678         * lib/unistd.in.h (link): Declare replacement.
15679         * doc/posix-functions/link.texi (link): Document this.
15680         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15681
15682         test-link: consolidate into single C program, test more cases
15683         * tests/test-link.sh: Delete.
15684         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15685         at least Cygwin and Solaris.
15686         * modules/link-tests (Files): Remove unused file.
15687         (Depends-on): Add errno, sys_stat.
15688         (Makefile.am): Simplify.
15689
15690 2009-09-08  Bruno Haible  <bruno@clisp.org>
15691
15692         Work around towlower, towupper bug on mingw.
15693         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15694         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15695         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15696         * doc/posix-functions/towupper.texi: Likewise.
15697         Reported by Eric Blake.
15698
15699 2009-09-08  Jim Meyering  <meyering@redhat.com>
15700
15701         build: don't try to run autoheader if we don't use it
15702         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15703         is not used in configure.ac.
15704
15705 2009-09-08  Eric Blake  <ebb9@byu.net>
15706
15707         euidaccess: fix compilation error
15708         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15709
15710         rawmemchr: relax license
15711         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15712         okay.
15713         Reported by Jim Meyering.
15714
15715         mkfifoat: new module
15716         * modules/mkfifoat: New file.
15717         * lib/mkfifoat.c: Likewise.
15718         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15719         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15720         * modules/sys_stat (Makefile.am): Use them.
15721         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15722         * MODULES.html.sh (File system functions): Mention module.
15723         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15724         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15725         * modules/mkfifoat-tests: New test.
15726         * tests/test-mkfifoat.c: Likewise.
15727
15728         strchrnul: relax license
15729         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15730         okay.
15731         Reported by Jim Meyering.
15732
15733 2009-09-08  Eric Blake  <ebb9@byu.net>
15734
15735         fstatat: fix compilation on Solaris
15736         * lib/fstatat.c (includes): Add fcntl.h.
15737         Reported by Pádraig Brady.
15738
15739 2009-09-07  Eric Blake  <ebb9@byu.net>
15740
15741         rename: modernize replacement
15742         * modules/rename (Depends-on): Add stdio.
15743         (configure.ac): Declare witness.
15744         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15745         stdio take care of replacement.
15746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15747         * modules/stdio (Makefile.am): Substitute them.
15748         * lib/stdio.in.h (rename): Declare replacement.
15749         * lib/rename.c (includes): Allow cross-compilation to non-windows
15750         machines.
15751         * doc/posix-functions/rename.texi (rename): Improve
15752         documentation.
15753
15754         stdio: sort witness names
15755         * modules/stdio (Makefile.am): Sort replacements.
15756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15757         * lib/stdio.in.h: Likewise.
15758
15759         getcwd: minor cleanups
15760         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15761         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15762
15763         openat: provide more convenience names
15764         * modules/faccessat (configure.ac): Add C witness.
15765         * lib/unistd.in.h (readlinkat): Fix typo.
15766         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15767         convenience wrappers.
15768         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15769         wrappers in syntax checks.
15770
15771 2009-09-06  Eric Blake  <ebb9@byu.net>
15772
15773         doc: fix comments in recent patches
15774         * lib/faccessat.c: Mention correct function.
15775         * lib/fchmodat.c: Likewise.
15776         * lib/fchownat.c: Likewise.
15777         * lib/symlinkat.c: Likewise.
15778         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15779         constants.
15780
15781         faccessat, symlinkat: continue cleanup of previous patch
15782         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15783         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15784         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15786         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15787         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15788         set.
15789
15790 2009-09-06  Bruno Haible  <bruno@clisp.org>
15791
15792         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15793         (fstatat): Declare if GNULIB_FSTATAT is set.
15794         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15795         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15796         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15797         * modules/fcntl-h (Files): Remove m4/openat.m4.
15798         * modules/sys_stat (Files): Remove m4/openat.m4.
15799         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15800         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15801         * modules/unistd (Files): Remove m4/openat.m4.
15802         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15803         GNULIB_OPENAT.
15804         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15805         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15806         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15807         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15808         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15809         gl_OPENAT_DEFAULTS.
15810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15811         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15812         Don't require gl_OPENAT_DEFAULTS.
15813         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15814         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15815         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15816         (gl_OPENAT_DEFAULTS): Remove macro.
15817
15818 2009-09-06  Bruno Haible  <bruno@clisp.org>
15819
15820         * modules/openat (configure.ac): Remove unneeded witness.
15821
15822 2009-09-06  Bruno Haible  <bruno@clisp.org>
15823
15824         Set errno to ENOSYS when a function is entirely unsupported.
15825         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15826         EOPNOTSUPP.
15827         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15828         * modules/chown (Depends-on): Remove errno.
15829
15830 2009-09-06  Bruno Haible  <bruno@clisp.org>
15831
15832         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15833
15834 2009-09-06  Bruno Haible  <bruno@clisp.org>
15835
15836         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15837
15838 2009-09-06  Ben Pfaff  <blp@gnu.org>
15839             Bruno Haible  <bruno@clisp.org>
15840
15841         Work around a glibc bug in strtok_r.
15842         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15843         Undefine if UNDEFINE_STRTOK_R is set.
15844         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15846         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15847         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15848         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15849         UNDEFINE_STRTOK_R.
15850         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15851
15852 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15853
15854         exclude: minor fix
15855         * lib/exclude.c: Include wctype.h
15856
15857 2009-09-06  Akim Demaille  <demaille@gostai.com>
15858
15859         bootstrap: improve error message
15860         * build-aux/bootstrap (find_tool): Upon failure, report the list
15861         of candidates.
15862         Honor the initial value of the envvar.
15863
15864 2009-09-05  Eric Blake  <ebb9@byu.net>
15865
15866         symlinkat: new module
15867         * modules/symlinkat: New file.
15868         * lib/symlinkat.c: Likewise.
15869         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15871         * modules/unistd (Makefile.am): Use them.
15872         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15873         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15874         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15875         * MODULES.html.sh (File system functions): Mention module.
15876         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15877         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15878         * modules/symlinkat-tests: New test.
15879         * tests/test-symlinkat.c: Likewise.
15880
15881         test-openat-safer: add more checks
15882         * tests/test-openat-safer.c (main): Check more code paths.
15883
15884 2009-09-05  Jim Meyering  <meyering@redhat.com>
15885
15886         syntax-check: detect unnecessary inclusion of openat.h
15887         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15888
15889 2009-09-05  Bruno Haible  <bruno@clisp.org>
15890
15891         Support towlower, towupper.
15892         * doc/posix-functions/towlower.texi: Mention module wctype.
15893         * doc/posix-functions/towupper.texi: Likewise.
15894         * lib/wctype.in.h (towlower, towupper): New functions.
15895         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15896         (ASSERT): New macro.
15897         (e): New variable.
15898         (main): Test also towlower, towupper. Test WEOF argument.
15899         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15900
15901 2009-09-05  Bruno Haible  <bruno@clisp.org>
15902
15903         Fix conversion behaviour when the input is invalid.
15904         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15905         mark occurring in first pass of indirect conversion.
15906         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15907         input.
15908         Found by clang's static analyzer.
15909
15910 2009-09-05  Bruno Haible  <bruno@clisp.org>
15911
15912         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15913         where direct conversion is possible.
15914
15915 2009-09-04  Eric Blake  <ebb9@byu.net>
15916
15917         openat: fail with ENOENT on empty name
15918         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15919         buffer.
15920
15921         link-follow: fix logic bug in prior patch
15922         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15923         reversed sense of yes and no in prior patch.  Avoid confusing
15924         compilation failure with desired semantics.
15925
15926         link-follow: accomodate mingw and cross-compilation
15927         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15928         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15929         cross-compilation results to -1, to make linkat easier to
15930         implement when cross-compiling.  Trivially support mingw.
15931         * modules/link-follow (configure.ac): Call new name.
15932         * NEWS: Mention this.
15933
15934 2009-09-03  Eric Blake  <ebb9@byu.net>
15935
15936         faccessat: compile replacement
15937         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15938         needed.
15939
15940         fts: fix compilation error
15941         * lib/fts.c (includes): Re-add "openat.h", for
15942         openat_needs_fchdir.
15943
15944         faccessat: new module
15945         * modules/faccessat: New file.
15946         * lib/faccessat.c: Likewise.
15947         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15949         * modules/unistd (Makefile.am): Use it.
15950         * lib/unistd.in.h (faccessat): Declare it.
15951         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15952         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15953         * MODULES.html.sh (File system functions): Mention it.
15954         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15955         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15956
15957         euidaccess: prefer POSIX over non-standard implementation
15958         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15959         * lib/euidaccess.c (euidaccess): Use it if available.
15960
15961         openat: make template easier to use
15962         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15963         AT_FUNC_F2 to be undefined.
15964         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15965         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15966         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15967         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15968         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15969         Likewise.
15970         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15971         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15972         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15973         Likewise.
15974
15975         openat: declare in POSIX headers
15976         * NEWS: Mention this.
15977         * modules/openat (configure.ac): Declare witnesses.
15978         (Depends-on): Add fcntl-h, sys_stat, unistd.
15979         (Include): Mention correct headers.
15980         * modules/fcntl-h (Depends-on): Add link-warning.
15981         (Files): Add openat.m4.
15982         (Makefile.am): Substitute witnesses.
15983         * modules/sys_stat (Files, Makefile.am): Likewise.
15984         * modules/unistd (Files, Makefile.am): Likewise.
15985         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15986         (gl_OPENAT_DEFAULTS): New macro.
15987         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15989         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15990         (SYS_STAT_H): Remove unused variable.
15991         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15992         * lib/fcntl--.h (includes): Remove unneeded header.
15993         * lib/openat-safer.c (includes): Likewise.
15994         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15995         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15996         appropriate headers.
15997         (__OPENAT_PREFIX): Delete.
15998         * lib/fcntl.in.h (openat): Provide declaration.
15999         (AT_FDCWD): Fix Solaris bug.
16000         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16001         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16002         * lib/fchmodat.c (includes):  Adjust to find declaration.
16003         * lib/fchownat.c (includes): Likewise.
16004         * lib/mkdirat.c (includes): Likewise.
16005         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16006         still visible.
16007
16008 2009-09-02  Eric Blake  <ebb9@byu.net>
16009
16010         errno: use consistently
16011         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16012         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16013         * lib/canonicalize.c (ELOOP): Likewise.
16014         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16015         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16016         * lib/lchown.c (EOPNOTSUPP): Likewise.
16017         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16018         * lib/savewd.c (ESTALE): Likewise.
16019         * lib/settime.c (ENOSYS): Likewise.
16020         * lib/utimens.c (ENOSYS): Likewise.
16021         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16022         * lib/chdir-safer.c (ELOOP): Likewise.
16023         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16024         * modules/c-stack (Depends-on): Add errno.
16025         * modules/canonicalize (Depends-on): Likewise.
16026         * modules/chdir-safer (Depends-on): Likewise.
16027         * modules/fdopendir (Depends-on): Likewise.
16028         * modules/inet_ntop (Depends-on): Likewise.
16029         * modules/inet_pton (Depends-on): Likewise.
16030         * modules/lchown (Depends-on): Likewise.
16031         * modules/openat (Depends-on): Likewise.
16032         * modules/savewd (Depends-on): Likewise.
16033         * modules/settime (Depends-on): Likewise.
16034         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16035
16036         fts: avoid leaking fds
16037         * modules/fts (Depends-on): Add cloexec.
16038         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16039         flag.
16040
16041         fts: make directory fds more robust
16042         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16043         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16044
16045         backupfile, chdir-long, fts, savedir: make safer
16046         * lib/backupfile.c (includes): Use "dirent--.h", since
16047         numbered_backup can write to stderr during readdir.
16048         * lib/savedir.c (includes): Likewise.
16049         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16050         emulation can write to stderr on failure.
16051         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16052         * lib/getcwd.c: Document why opendir_safer is unused.
16053         * lib/glob.c: Likewise.
16054         * lib/scandir.c: Likewise.
16055         * lib/openat-proc.c: Likewise, for open_safer.
16056         * modules/backupfile (Depends-on): Add dirent-safer.
16057         * modules/savedir (Depends-on): Likewise.
16058         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16059         * modules/chdir-long (Depends-on): Add openat-safer.
16060
16061         openat-safer: new module
16062         * modules/openat-safer: New file.
16063         * lib/openat-safer.c: Likewise.
16064         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16065         * lib/fcntl-safer.h (openat_safer): Declare.
16066         * lib/fcntl--.h (openat): Override.
16067         * MODULES.html.sh (File descriptor based I/O): Mention it.
16068         * lib/openat.h: Add double-inclusion guards.
16069         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16070         "fcntl--.h", so we can implement openat.
16071         * modules/openat-safer-tests: New test.
16072         * tests/test-openat-safer.c: New file.
16073
16074         dirent-safer: new module
16075         * modules/dirent-safer: New file.
16076         * lib/dirent--.h: Likewise.
16077         * lib/dirent-safer.h: Likewise.
16078         * lib/opendir-safer.c: Likewise.
16079         * m4/dirent-safer.m4: Likewise.
16080         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16081         * modules/dirent-safer-tests: New test.
16082         * tests/test-dirent-safer.c: New file.
16083         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16084
16085         fdopendir: optimize on mingw
16086         * lib/unistd.in.h (_gl_directory_name): New prototype.
16087         * lib/fchdir.c (_gl_directory_name): Implement it.
16088         (fchdir): Use it to simplify implementation.
16089         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16090         fchdir, when available, to avoid calling [f]chdir().
16091
16092         fdopendir: split into its own module
16093         * lib/openat.c (fdopendir): Move...
16094         * lib/fdopendir.c: ...into new file.
16095         * modules/fdopendir: New module.
16096         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16097         * modules/openat (Depends-on): Add fdopendir.
16098         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16099         fdopendir here.
16100         * modules/savedir (Depends-on): Only need fdopendir, not full
16101         openat.
16102         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16103         * lib/openat.h (fdopendir): Drop prototype.
16104         * lib/dirent.in.h (fdopendir): Provide prototype.
16105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16106         * modules/dirent (Makefile.am): Substitute them.
16107         * MODULES.html.sh (File system functions): Mention it.
16108         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16109         * modules/fdopendir-tests: New file.
16110         * tests/test-fdopendir.c: Likewise.
16111
16112         fchdir: use more consistent macro convention
16113         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16114         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16115         REPLACE_FCHDIR, rather than relying on config.h macros.
16116         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16117         inside a single make-time REPLACE_FCHDIR block, rather than using
16118         the config.h FCHDIR_REPLACEMENT.
16119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16120         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16121         Manage fstat replacement.
16122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16123         REPLACE_FCHDIR.
16124         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16125         (Makefile.am): Substitute REPLACE_FCHDIR.
16126         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16127         FCHDIR_REPLACEMENT.
16128         * lib/dup-safer.c (dup_safer): Likewise.
16129         * lib/dup2.c (rpl_dup2): Likewise.
16130         * lib/dup3.c (rpl_dup3): Likewise.
16131         * lib/open.c (rpl_open): Likewise.
16132
16133         fchdir: simplify error handling, and support dup3
16134         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16135         stdbool, malloc-posix, realloc-posix.
16136         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16137         (ensure_dirs_slot): Return false on allocation failure.
16138         (rpl_dup2): Delete.
16139         (_gl_register_dup): New function.
16140         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16141         (_gl_register_fd): Close fd on allocation failure.
16142         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16143         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16144         prototype.
16145         (rpl_dup2_fchdir): Delete prototype.
16146         * lib/open.c (open): Update caller.
16147         * lib/dup2.c (dup2): Track fchdir metadata.
16148         * lib/dup3.c (dup3): Likewise.
16149         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16151
16152 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16153
16154         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16155         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16156         don't pass arguments to AC_OUTPUT.
16157
16158 2009-09-02  Bruno Haible  <bruno@clisp.org>
16159
16160         * modules/mkdtemp (License): Relicense under LGPLv2+.
16161         Reported by Paolo Bonzini.
16162
16163 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16164
16165         Replace uses of obsolete autoconf macros in Jim's modules.
16166         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16167         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16168         can evoke a warning from autoconf when run with -Wobsolete
16169         enabled.  They were declared obsolete for good reasons (see
16170         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16171         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16172         should not continue using the deprecated macros.
16173         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16174         obsolete Autoconf macros with modern counterparts.
16175         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16176         * m4/dos.m4 (gl_AC_DOS): Likewise.
16177         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16178         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16179         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16180         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16181         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16182         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16184         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16185         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16186         Likewise.
16187         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16188         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16189         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16190         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16191         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16192         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16193
16194 2009-09-01  Eric Blake  <ebb9@byu.net>
16195
16196         fchdir: fix off-by-one bug in previous patch
16197         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16198         (_gl_unregister_fd): Delete useless if.
16199
16200 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16201
16202         maint.mk: sort the list of syntax-check rules
16203         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16204         easier to get a sense of progress when the rules are run sequentially
16205         and take a long time.
16206
16207 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16208
16209         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16210         * modules/netinet_in: Likewise.
16211         * modules/sys_file: Likewise.
16212         * modules/sys_ioctl: Likewise.
16213         * modules/sys_select: Likewise.
16214         * modules/sys_socket: Likewise.
16215         * modules/sys_stat: Likewise.
16216         * modules/sys_time: Likewise.
16217         * modules/sys_times: Likewise.
16218         * modules/sys_utsname: Likewise.
16219         * modules/sys_wait: Likewise.
16220
16221 2009-09-01  Jim Meyering  <meyering@redhat.com>
16222
16223         fts: help ensure that return values are not ignored
16224         * lib/fts_.h (__GNUC_PREREQ): Define.
16225         (__attribute_warn_unused_result__): Define.
16226         (fts_children, fts_close, fts_open, fts_read): Declare with
16227         __attribute_warn_unused_result__.
16228
16229         fts: fts_close now fails also when closing a dir file descriptor fails
16230         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16231         and propagate to caller, along with errno.
16232
16233         announce-gen: correct formatting in --help output
16234         * build-aux/announce-gen (usage): Move the one-line description in
16235         --help output "up", to where it belongs, just after Usage:.
16236
16237 2009-08-31  Eric Blake  <ebb9@byu.net>
16238
16239         fchdir: port to mingw
16240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16241         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16242         opened, then use a substitute.
16243         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16244         replacement.
16245         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16246         (_gl_register_fd): No need to check stat if open already filters
16247         all directories.
16248         (fchdir): Fix error condition to match POSIX.
16249         * modules/fchdir (Depends-on): Add sys_stat.
16250         * doc/posix-functions/open.texi (open): Document the limitation.
16251         * modules/fchdir-tests: New file.
16252         * tests/test-fchdir.c: Likewise.
16253
16254         canonicalize: allow cross-testing from cygwin to mingw
16255         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16256         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16257         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16258         Likewise.
16259         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16260         target does not support symlinks.
16261         * tests/test-canonicalize-lgpl.sh: Likewise.
16262
16263         chown: avoid compilation warning on mingw
16264         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16265         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16266         mingw.
16267         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16268         * modules/chown (Depends-on): Add errno.
16269
16270 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16271
16272         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16273         command.
16274
16275 2009-08-31  Jim Meyering  <meyering@redhat.com>
16276
16277         canonicalize: remove useless initialization
16278         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16279         initialization of local, "end".
16280
16281 2009-08-30  Bruno Haible  <bruno@clisp.org>
16282
16283         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16284         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16285         ENOSYS.
16286
16287 2009-08-30  Bruno Haible  <bruno@clisp.org>
16288
16289         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16290         /usr/xpg4/bin/tr when it exists.
16291         * tests/test-pipe-filter-gi1.sh: Likewise.
16292
16293 2009-08-30  Bruno Haible  <bruno@clisp.org>
16294
16295         Work around deficient /usr/bin/id program on Solaris.
16296         * tests/test-file-has-acl.sh (ID): New variable.
16297         * tests/test-set-mode-acl.sh (ID): Likewise.
16298         * tests/test-copy-acl.sh (ID): Likewise.
16299         * tests/test-copy-file.sh (ID): Likewise.
16300
16301 2009-08-30  Bruno Haible  <bruno@clisp.org>
16302
16303         New module 'xstriconveh'.
16304         * lib/xstriconveh.h: New file.
16305         * lib/xstriconveh.c: New file.
16306         * modules/xstriconveh: New file.
16307
16308 2009-08-30  Bruno Haible  <bruno@clisp.org>
16309
16310         Make it easier to use mem_cd_iconveh.
16311         * lib/striconveh.h (iconveh_t): New type.
16312         (iconveh_open, iconveh_close): New declarations.
16313         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16314         with a single 'const iconveh_t *' argument.
16315         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16316         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16317         with a single 'const iconveh_t *' argument.
16318         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16319         * tests/test-striconveh.c (main): Update.
16320         * NEWS: Mention the change.
16321
16322 2009-08-30  Bruno Haible  <bruno@clisp.org>
16323
16324         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16325         problem.
16326
16327 2009-08-30  Bruno Haible  <bruno@clisp.org>
16328
16329         Work around iconv_open problem on Solaris.
16330         * lib/iconv_open-solaris.gperf: New file.
16331         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16333         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16334         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16335         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16336         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16337
16338 2009-08-29  Jim Meyering  <meyering@redhat.com>
16339
16340         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16341         * top/maint.mk (cvs-check): Remove target; it was just an alias
16342         to the better-named vc-diff-check.
16343         (maintainer-distcheck): Remove rule.  It was used only from
16344         the (alpha/beta/major) target, and all of its commands but one
16345         were coreutils-specific.
16346         (vc-dist): Remove rule.
16347         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16348         Run vc-diff-check, not vc-dist.
16349         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16350
16351 2009-08-27  Bruno Haible  <bruno@clisp.org>
16352
16353         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16354         of 0.
16355
16356 2009-08-27  Bruno Haible  <bruno@clisp.org>
16357
16358         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16359         compilers.
16360         * doc/func.texi: Document the SunPRO C bug.
16361
16362 2009-08-27  Bruno Haible  <bruno@clisp.org>
16363
16364         Fix link error on Solaris.
16365         * tests/test-parse-duration.c (xstrdup): Remove function.
16366
16367 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16368
16369         ignore-value: handle pointer types, too
16370         * lib/ignore-value.h (__attribute__): Remove definition.
16371         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16372         of a more concise and more-often effective "(void) i" statement.
16373         (ignore_ptr): New function to suppress warnings from functions that
16374         return pointers, and to make it explicit that one function doesn't
16375         handle all cases.
16376
16377 2009-08-25  Bruno Haible  <bruno@clisp.org>
16378
16379         dup2: work around a Linux bug.
16380         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16381         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16382         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16383         Reported by Simon Josefsson.
16384
16385 2009-08-25  Jim Meyering  <meyering@redhat.com>
16386
16387         libguestfs uses gnulib
16388         * users.txt: Add libguestfs.
16389
16390 2009-08-24  Eric Blake  <ebb9@byu.net>
16391
16392         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16393         * lib/pipe2.c (includes): Add binary-io.h.
16394         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16395
16396 2009-08-24  Bruno Haible  <bruno@clisp.org>
16397
16398         Tolerate declared but missing accept4 syscall.
16399         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16400         available.
16401         * lib/sys_socket.in.h (accept4): If the function is already present,
16402         override it.
16403         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16404         * modules/accept4 (Makefile.am): Compile accept4.c always.
16405         Reported by Paolo Bonzini and Eric Blake.
16406
16407 2009-08-23  Bruno Haible  <bruno@clisp.org>
16408
16409         New module 'accept4'.
16410         * lib/sys_socket.in.h (accept4): New declaration.
16411         * lib/accept4.c: New file.
16412         * m4/accept4.m4: New file.
16413         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16414         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16415         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16416         HAVE_ACCEPT4.
16417         * modules/accept4: New file.
16418         * doc/glibc-functions/accept4.texi: Mention the new module.
16419
16420 2009-08-24  Jim Meyering  <meyering@redhat.com>
16421
16422         progname: also set global program_invocation_name, when possible
16423         Before this change, a libtool-enabled program that calls glibc's
16424         error function would report the program name as
16425         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16426         * modules/progname (configure.ac): Check for a declaration of
16427         program_invocation_name.
16428         * lib/progname.c:  Include <errno.h>.
16429         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16430         Set program_invocation_name.
16431
16432 2009-08-23  Bruno Haible  <bruno@clisp.org>
16433
16434         * lib/dup3.c: Include <string.h>.
16435
16436 2009-08-23  Bruno Haible  <bruno@clisp.org>
16437
16438         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16439         * lib/pipe2.c (pipe2): Likewise.
16440         Suggested by Eric Blake.
16441
16442 2009-08-23  Bruno Haible  <bruno@clisp.org>
16443
16444         Tolerate declared but missing dup3 syscall.
16445         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16446         * lib/unistd.in.h (dup3): If the function is already present,
16447         override it.
16448         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16449         * modules/dup3 (Makefile.am): Compile dup3.c always.
16450         Reported by Paolo Bonzini.
16451
16452 2009-08-23  Bruno Haible  <bruno@clisp.org>
16453
16454         Tolerate declared but missing pipe2 syscall.
16455         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16456         available.
16457         * lib/unistd.in.h (pipe2): If the function is already present,
16458         override it.
16459         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16460         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16461         Reported by Paolo Bonzini.
16462
16463 2009-08-23  Bruno Haible  <bruno@clisp.org>
16464
16465         * lib/pipe2.c (pipe2): Move #ifs inside function.
16466
16467 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16468
16469         quotearg: document limitations of quote_these_too
16470         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16471         those limitations are created.
16472         * lib/quotearg.h (set_char_quoting): Document that digits and
16473         letters that are special after backslash are not permitted.
16474         (quotearg_char): Cross-reference set_char_quoting documentation.
16475
16476 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16477
16478         quotearg: implement custom_quoting_style
16479         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16480         right_quote fields.
16481         (set_custom_quoting): New public function.
16482         (quotearg_buffer_restyled): Add left_quote and right_quote
16483         arguments, handle them very much like locale quoting, and update
16484         all uses.
16485         (quotearg_n_custom): New public function.
16486         (quotearg_n_custom_mem): New public function.
16487         (quotearg_custom): New public function.
16488         (quotearg_custom_mem): New public function.
16489         * lib/quotearg.h: Prototype and document new public functions.
16490         (enum quoting_style): For escape_quoting_style and
16491         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16492         ignored even though they're otherwise like c_quoting_style.
16493         Add custom_quoting_style member and document with comparison to
16494         clocale_quoting_style.
16495         * tests/test-quotearg.c (custom_quotes): New array.
16496         (custom_results): New array.
16497         (main): Extend to test custom quoting.
16498
16499 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16500
16501         quotearg: fix right quote escaping when it's in quote_these_too
16502         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16503         quote, be sure to prepend only one backslash.
16504         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16505         (main): Test it.
16506
16507 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16508
16509         quotearg-tests: test escaping of embedded locale quotes
16510         * tests/test-quotearg.c (struct result_strings): Add member for
16511         new input.
16512         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16513         (inputs): Add new input.
16514         (results_g): Add expected results.
16515         (flag_results): Likewise.
16516         (locale_results): Likewise.
16517         (compare_strings): Check those.
16518
16519 2009-08-23  Bruno Haible  <bruno@clisp.org>
16520
16521         Tests for module 'dup3'.
16522         * modules/dup3-tests: New file.
16523         * tests/test-dup3.c: New file.
16524
16525         New module 'dup3'.
16526         * lib/unistd.in.h (dup3): New declaration.
16527         * lib/dup3.c: New file.
16528         * m4/dup3.m4: New file.
16529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16530         HAVE_DUP3.
16531         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16532         * modules/dup3: New file.
16533         * doc/glibc-functions/dup3.texi: Mention the new module.
16534
16535 2009-08-23  Bruno Haible  <bruno@clisp.org>
16536
16537         Tweak the dup2 test.
16538         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16539         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16540         the test file is still empty. Fix argument order of lseek.
16541
16542 2009-08-23  Bruno Haible  <bruno@clisp.org>
16543
16544         Avoid test link errors when the modules getopt-gnu, gettext are used.
16545         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16547
16548 2009-08-23  Bruno Haible  <bruno@clisp.org>
16549
16550         Fix getdtablesize() on mingw.
16551         * lib/getdtablesize.c (getdtablesize): Implement differently.
16552         * lib/unistd.in.h (getdtablesize): Improve comment.
16553
16554 2009-08-23  Bruno Haible  <bruno@clisp.org>
16555
16556         New module 'mkostemp'.
16557         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16558         * lib/stdlib.in.h (mksotemp): New declaration.
16559         * lib/mkostemp.c: New file, from glibc with modifications.
16560         * lib/tempname.h (GT_FILE): Remove outdated comment.
16561         (gen_tempname): Add flags argument.
16562         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16563         (__GT_FILE): Map to 1.
16564         (small_open, large_open): Remove macros.
16565         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16566         * lib/mkstemp.c (mkstemp): Update.
16567         * lib/mkdtemp.c (mkdtemp): Likewise.
16568         * m4/mkostemp.m4: New file.
16569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16570         HAVE_MKOSTEMP.
16571         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16572         HAVE_MKOSTEMP.
16573         * modules/mkostemp: New file, based on modules/mkstemp.
16574         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16575         * NEWS: Mention the change.
16576
16577 2009-08-23  Bruno Haible  <bruno@clisp.org>
16578
16579         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16580         Reported by Eric Blake.
16581
16582 2009-08-23  Bruno Haible  <bruno@clisp.org>
16583
16584         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16585         Reported by Eric Blake.
16586
16587 2009-08-23  Bruno Haible  <bruno@clisp.org>
16588
16589         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16590         * modules/pipe2 (Depends-on): Likewise.
16591
16592 2009-08-23  Eric Blake  <ebb9@byu.net>
16593
16594         fcntl-h: add O_TTY_INIT support
16595         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16596         * tests/test-fcntl-h.c (o): Test it.
16597         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16598
16599         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16600         * modules/fcntl: Move <fcntl.h> header replacement...
16601         * modules/fcntl-h: ...to new name, so as not to collide with
16602         like-named function.
16603         * tests/test-fcntl.c: Rename...
16604         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16605         * modules/fcntl-tests: Rename...
16606         * modules/fcntl-h-tests: ...to this.  Update test file name.
16607         * modules/chdir-long (Depends-on): Update clients.
16608         * modules/chdir-safer (Depends-on): Likewise.
16609         * modules/fcntl-safer (Depends-on): Likewise.
16610         * modules/fts (Depends-on): Likewise.
16611         * modules/mkancesdirs (Depends-on): Likewise.
16612         * modules/mkdir-p (Depends-on): Likewise.
16613         * modules/open (Depends-on): Likewise.
16614         * modules/savewd (Depends-on): Likewise.
16615         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16616         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16617
16618 2009-08-22  Bruno Haible  <bruno@clisp.org>
16619
16620         * modules/binary-io (License): Relicense under LGPL.
16621         * modules/pipe2 (License): Likewise.
16622
16623 2009-08-22  Bruno Haible  <bruno@clisp.org>
16624
16625         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16626         return value.
16627         * lib/pipe-filter-gi.c (filter_init): Likewise.
16628         Reported by Eric Blake.
16629
16630 2009-08-22  Bruno Haible  <bruno@clisp.org>
16631
16632         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16633         * modules/pipe (Depends-on): Add pipe2.
16634
16635 2009-08-22  Bruno Haible  <bruno@clisp.org>
16636
16637         Tests for module 'pipe2'.
16638         * modules/pipe2-tests: New file.
16639         * tests/test-pipe2.c: New file.
16640
16641         New module 'pipe2'.
16642         * lib/unistd.in.h (pipe2): New declaration.
16643         * lib/pipe2.c: New file.
16644         * m4/pipe2.m4: New file.
16645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16646         HAVE_PIPE2.
16647         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16648         * modules/pipe2: New file.
16649         * doc/glibc-functions/pipe2.texi: Mention the new module.
16650
16651 2009-08-22  Bruno Haible  <bruno@clisp.org>
16652
16653         Reference some new glibc functions.
16654         * doc/glibc-functions/accept4.texi: New file.
16655         * doc/glibc-functions/dup3.texi: New file.
16656         * doc/glibc-functions/mkostemp.texi: New file.
16657         * doc/glibc-functions/pipe2.texi: New file.
16658         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16659         (Glibc sys/socket.h): Refer to accept4.
16660         (Glibc unistd.h): Refer to dup3, pipe2.
16661         Reported by Eric Blake.
16662
16663 2009-08-22  Jim Meyering  <meyering@redhat.com>
16664             Bruno Haible  <bruno@clisp.org>
16665
16666         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16667         This makes it so packages using automake-1.11's silent-rules option
16668         can print e.g., a single "GEN    configmake.h" line, rather than
16669         the 30+ statements that perform the job.  If you want to see the
16670         actual commands, you can still run "make V=1".
16671         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16672         so that make output is abbreviated when those variables are defined
16673         appropriately.
16674         * modules/argz: Likewise.
16675         * modules/arpa_inet: Likewise.
16676         * modules/byteswap: Likewise.
16677         * modules/configmake: Likewise.
16678         * modules/dirent: Likewise.
16679         * modules/errno: Likewise.
16680         * modules/fcntl: Likewise.
16681         * modules/float: Likewise.
16682         * modules/fnmatch: Likewise.
16683         * modules/getopt-posix: Likewise.
16684         * modules/glob: Likewise.
16685         * modules/iconv_open: Likewise.
16686         * modules/inttypes: Likewise.
16687         * modules/localcharset: Likewise.
16688         * modules/locale: Likewise.
16689         * modules/math: Likewise.
16690         * modules/netdb: Likewise.
16691         * modules/netinet_in: Likewise.
16692         * modules/poll: Likewise.
16693         * modules/posix_spawnp-tests: Likewise.
16694         * modules/sched: Likewise.
16695         * modules/search: Likewise.
16696         * modules/selinux-h: Likewise.
16697         * modules/signal: Likewise.
16698         * modules/spawn: Likewise.
16699         * modules/stdarg: Likewise.
16700         * modules/stdbool: Likewise.
16701         * modules/stddef: Likewise.
16702         * modules/stdint: Likewise.
16703         * modules/stdio: Likewise.
16704         * modules/stdlib: Likewise.
16705         * modules/string: Likewise.
16706         * modules/strings: Likewise.
16707         * modules/sys_file: Likewise.
16708         * modules/sys_ioctl: Likewise.
16709         * modules/sys_select: Likewise.
16710         * modules/sys_socket: Likewise.
16711         * modules/sys_stat: Likewise.
16712         * modules/sys_time: Likewise.
16713         * modules/sys_times: Likewise.
16714         * modules/sys_utsname: Likewise.
16715         * modules/sys_wait: Likewise.
16716         * modules/sysexits: Likewise.
16717         * modules/time: Likewise.
16718         * modules/unistd: Likewise.
16719         * modules/wchar: Likewise.
16720         * modules/wctype: Likewise.
16721
16722 2009-08-22  Jim Meyering  <meyering@redhat.com>
16723
16724         announce-gen: detect write failure
16725         * build-aux/announce-gen: Add Coda at end.
16726         Remove equivalent-but-more-verbose block at top.
16727
16728 2009-08-19  Akim Demaille  <demaille@gostai.com>
16729
16730         bootstrap: --help to stdout.
16731         * bootstrap (usage): Don't send --help to stderr.
16732         Use a here doc instead of a long string.
16733
16734 2009-08-21  Eric Blake  <ebb9@byu.net>
16735
16736         test-popen-safer: split from test-popen
16737         * tests/test-popen.c (main): Move...
16738         * tests/test-popen.h: ...into new file.
16739         * tests/test-popen-safer2.c: New file.
16740         * modules/popen-tests (Files): Add test-popen.h.
16741         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16742         Suggested by Bruno Haible.
16743
16744         test-fcntl-safer: split from test-open
16745         * tests/test-open.c (main): Move...
16746         * tests/test-open.h: ...into new file.
16747         * tests/test-fcntl-safer.c: New file.
16748         * modules/open-tests (Files): Add test-open.h.
16749         * modules/fcntl-safer-tests: New file.
16750         Suggested by Bruno Haible.
16751
16752         test-fopen-safer: split from test-fopen
16753         * tests/test-fopen.c (main): Move...
16754         * tests/test-fopen.h: ...into new file.
16755         * tests/test-fopen-safer.c: New file.
16756         * modules/fopen-tests (Files): Add test-fopen.h.
16757         * modules/fopen-safer-tests: New file.
16758         Suggested by Bruno Haible.
16759
16760 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16761
16762         popen-safer: test O_CLOEXEC at run-time.
16763         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16764
16765 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16766
16767         fcntl: move more flags to the header
16768         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16769         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16770         * lib/fcntl.in.h: Do both things here.
16771
16772 2009-08-21  Jim Meyering  <meyering@redhat.com>
16773
16774         consistently remove $@-t before redirecting to it
16775         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16776         * modules/alloca-opt: Likewise.
16777         * modules/byteswap: Likewise.
16778         * modules/fnmatch: Likewise.
16779         * modules/getopt-posix: Likewise.
16780         * modules/glob: Likewise.
16781         * modules/poll: Likewise.
16782         * modules/posix_spawnp-tests: Likewise.
16783         * modules/sys_socket: Likewise.
16784         * modules/sysexits: Likewise.
16785
16786 2009-08-21  Eric Blake  <ebb9@byu.net>
16787
16788         popen: simplify access to original popen
16789         * lib/popen.c (rpl_popen): No need to worry about popen being a
16790         macro.
16791         Reported by Bruno Haible.
16792
16793 2009-08-20  Eric Blake  <ebb9@byu.net>
16794
16795         build: avoid some compiler warnings
16796         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16797         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16798         type.
16799         (new_exclude_segment, excluded_file_pattern_p)
16800         (excluded_file_name_p): Reduce scope.
16801         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16802         old-style declaration.
16803
16804 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16805
16806         * tests/test-exclude1.sh: Handle Windows EOL.
16807         * tests/test-exclude2.sh: Likewise.
16808         * tests/test-exclude3.sh: Likewise.
16809         * tests/test-exclude4.sh: Likewise.
16810         * tests/test-exclude5.sh: Likewise.
16811         * tests/test-exclude6.sh: Likewise.
16812         * tests/test-exclude7.sh: Likewise.
16813
16814 2009-08-19  Akim Demaille  <demaille@gostai.com>
16815
16816         bootstrap: find sha1sum when named gsha1sum.
16817         * bootstrap (find_tool): New.
16818         ($SHA1SUM): New.
16819         Use it.
16820
16821 2009-08-20  Jim Meyering  <meyering@redhat.com>
16822
16823         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16824         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16825         expression that converts "." in a file name to "\." in the resulting
16826         regexp.  Start with a dummy statement, so that prior shell variable
16827         definitions are expanded portably.  Reported by Simon Josefsson.
16828
16829 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16830
16831         Fix polling for writeability of a screen buffer.
16832         * lib/poll.c: Distinguish input and screen buffers for the
16833         Win32 implementation.
16834         * lib/select.c: Likewise.
16835
16836 2009-08-19  Eric Blake  <ebb9@byu.net>
16837
16838         popen-safer: prevent popen from clobbering std descriptors
16839         * modules/popen-safer: New file.
16840         * lib/popen-safer.c: Likewise.
16841         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16842         * lib/stdio--.h (popen): Provide override.
16843         * lib/stdio-safer.h (popen_safer): Provide declaration.
16844         * tests/test-popen.c (includes): Partially test this.
16845         * modules/popen-safer-tests: New file, for more tests.
16846         * tests/test-popen-safer.c: Likewise.
16847         * MODULES.html.sh (file stream based Input/Output): Mention it.
16848
16849         tests: test some of the *-safer modules
16850         * modules/fopen-safer (Depends-on): Add fopen.
16851         * modules/fcntl-safer (Depends-on): Add fcntl.
16852         * modules/stdlib-safer (Depends-on): Add stdlib.
16853         (configure.ac): Set indicator.
16854         * modules/unistd-safer (configure.ac): Likewise.
16855         * modules/tmpfile-safer (configure.ac): Likewise.
16856         (Depends-on): Add tmpfile.
16857         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16858         active.
16859         * tests/test-fopen.c (includes): Test safer versions when they are
16860         in use.
16861         * tests/test-open.c (includes): Likewise.
16862
16863         popen: fix cygwin 1.5 bug when stdin closed
16864         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16865         * modules/popen: New file.
16866         * modules/popen-tests: Likewise.
16867         * tests/test-popen.c: Likewise.
16868         * m4/popen.m4: Likewise.
16869         * lib/popen.c: Likewise.
16870         * lib/stdio.in.h (popen): New declaration.
16871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16872         * modules/stdio (Makefile.am): Likewise.
16873         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16874
16875 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16876
16877         maint.mk: give full control over update-copyright exclusions
16878         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16879         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16880         (update-copyright): Don't force inclusion of top-level
16881         ChangeLog.  Don't force exclusion of all COPYING files, but make
16882         them the default exclusion instead.
16883
16884 2009-08-16  Bruno Haible  <bruno@clisp.org>
16885
16886         Fix test failures on Solaris 10.
16887         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16888         tests when Solaris iconv() is used.
16889         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16890         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16891         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16892         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16893         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16894
16895 2009-08-16  Bruno Haible  <bruno@clisp.org>
16896
16897         Fix test failures on Solaris 10.
16898         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16899         'tr' program and pass it as first argument.
16900         * tests/test-pipe-filter-gi1.sh: Likewise.
16901         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16902         program as first argument.
16903         * tests/test-pipe-filter-gi1.c (main): Likewise.
16904
16905 2009-08-16  Eric Blake  <ebb9@byu.net>
16906
16907         fpurge: fix previous commits
16908         * modules/fpurge (Makefile.am): Make replacement conditional,
16909         partially reverting 2007-04-29 change; missed in previous
16910         attempt.
16911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16912         is missing.
16913
16914 2009-08-16  Bruno Haible  <bruno@clisp.org>
16915
16916         Clarify fpurge's effect on the file position.
16917         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16918         * tests/test-fpurge.c (main): Make a second pass for checking the file
16919         position.
16920
16921 2009-08-16  Bruno Haible  <bruno@clisp.org>
16922
16923         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16924         declaration of fpurge is missing.
16925         * tests/test-fpurge.c (main): Check that the file has not more contents
16926         than expected. Close the file before removing it.
16927
16928 2009-08-15  Eric Blake  <ebb9@byu.net>
16929
16930         fpurge: don't wrap working cygwin implementation
16931         * lib/fpurge.c (fpurge): Fix comment typo.
16932         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16933         1.7 to avoid replacement.
16934         * tests/test-fpurge.c (main): Enhance test.
16935
16936 2009-08-15  Eric Blake  <ebb9@byu.net>
16937         and Jim Meyering  <meyering@redhat.com>
16938
16939         test-update-copyright: skip if perl is insufficient
16940         * tests/test-update-copyright.sh: Failure to run maintainer tool
16941         should not cause testsuite failure on cygwin 1.5.
16942
16943 2009-08-14  Eric Blake  <ebb9@byu.net>
16944
16945         doc: mention more functions added in cygwin 1.7.0
16946         * doc/posix-headers/limits.texi (limits.h): Update for recent
16947         cygwin additions.
16948         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16949         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16950         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16951         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16952         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16953
16954 2009-08-14  Eric Blake  <ebb9@byu.net>
16955
16956         maint.mk: simplify update-copyright rule
16957         * top/maint.mk (update-copyright-local): Delete, and document how
16958         to do it in cfg.mk instead.
16959         (update-copyright-exclude-regexp): Delete, and document how to do
16960         it in .x-update-copyright instead.
16961         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16962         exclude ChangeLog.
16963
16964 2009-08-14  Bruno Haible  <bruno@clisp.org>
16965
16966         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16967
16968 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16969
16970         maint.mk: support update-copyright-env
16971         * top/maint.mk (update-copyright-env): Define place-holder.
16972         (update-copyright): Expand $(update-copyright-env) before
16973         invoking update-copyright.
16974
16975 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16976
16977         update-copyright: implement forced reformatting
16978         * build-aux/update-copyright: Implement and document
16979         UPDATE_COPYRIGHT_FORCE.
16980         * tests/test-update-copyright.sh: Test it.
16981
16982 2009-08-14  Eric Blake  <ebb9@byu.net>
16983         and Bruno Haible  <bruno@clisp.org>
16984
16985         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16986         * tests/test-locale.c: Revert previous patch related to NULL.
16987         * tests/test-stdio.c: Likewise.
16988         * tests/test-stdlib.c: Likewise.
16989         * tests/test-string.c: Likewise.
16990         * tests/test-unistd.c: Likewise.
16991         * modules/time-tests (Depends-on): Add verify.
16992         * modules/wchar-tests (Depends-on): Likewise.
16993         * tests/test-time.c: Test for NULL compliance.
16994         * tests/test-wchar.c: Likewise.
16995         * modules/locale (Depends-on): Add stddef.
16996         * modules/stdio (Depends-on): Likewise.
16997         * modules/stdlib (Depends-on): Likewise.
16998         * modules/string (Depends-on): Likewise.
16999         * modules/time (Depends-on): Likewise.
17000         * modules/unistd (Depends-on): Likewise.
17001         * modules/wchar (Depends-on): Likewise.
17002         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17003         * lib/stdlib.in.h (includes): Likewise.
17004         * lib/string.in.h (includes): Likewise.
17005         * lib/time.in.h (includes): Likewise.
17006         * lib/unistd.in.h (includes): Likewise.
17007         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17008         replaced.
17009         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17010         * m4/stddef_h.m4: New file.
17011         * modules/stddef: Likewise.
17012         * lib/stddef.in.h: Likewise.
17013         * modules/stddef-tests: Likewise.
17014         * tests/test-stddef.c: Likewise.
17015         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17016         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17017         * doc/posix-headers/locale.texi (locale.h): Likewise.
17018         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17019         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17020         * doc/posix-headers/string.texi (string.h): Likewise.
17021         * doc/posix-headers/time.texi (time.h): Likewise.
17022         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17023         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17024
17025 2009-08-14  Eric Blake  <ebb9@byu.net>
17026
17027         doc: improve git diff of texinfo files
17028         * .gitattributes: Add rule for *.texi files, with hint on how to
17029         use it.
17030         Copied from m4, and based on a report by Bruno Haible.
17031
17032 2009-08-14  Bruno Haible  <bruno@clisp.org>
17033
17034         Disable multithread support by default on Cygwin 1.5.x for real.
17035         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17036
17037 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17038
17039         update-copyright: much ado about intervals
17040         * build-aux/update-copyright: Implement and document
17041         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17042         of copyright year intervals.
17043         Also, document UPDATE_COPYRIGHT_YEAR.
17044         * tests/test-update-copyright.sh: Test it.
17045
17046         update-copyright: convert 2-digit to 4-digit years
17047         * build-aux/update-copyright: Implement and document.
17048         * tests/test-update-copyright.sh: Update.
17049
17050 2009-08-14  Jim Meyering  <meyering@redhat.com>
17051
17052         test-exclude: avoid coreutils "make check" failure
17053         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17054         just as in test-argmatch.c.
17055
17056 2009-08-13  Eric Blake  <ebb9@byu.net>
17057
17058         test-dup2: fix bad assumption
17059         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17060         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17061
17062         test-version-etc: fix CRLF portability issue
17063         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17064         recognize \r.
17065         * tests/test-argp-version-etc-1.sh: Likewise.
17066
17067         getopt: update client modules
17068         * modules/argp (Depends-on): Use getopt-gnu.
17069         * modules/git-merge-changelog (Depends-on): Likewise.
17070         * modules/long-options (Depends-on): Likewise.
17071         * modules/xstrtol (Depends-on): Likewise.
17072
17073 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17074
17075         * tests/test-version-etc.sh: Don't fail on different
17076         project/version.  Don't fail on CRLF differences.  Rewrite to use
17077         multiple -e instead of multiple sed forks, suggested by Eric Blake
17078         <ebb9@byu.net>.
17079         * tests/test-argp-version-etc-1.sh: Likewise.
17080
17081 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17082
17083         * tests/test-version-etc.sh: Don't fail on different
17084         project/version.
17085
17086 2009-08-12  Bruno Haible  <bruno@clisp.org>
17087
17088         Tests for modules 'getopt-posix', 'getopt-gnu'.
17089         * modules/getopt-posix-tests: New file.
17090         * tests/test-getopt.c: New file.
17091         * tests/test-getopt.h: New file.
17092         * tests/test-getopt_long.h: New file.
17093
17094         New modules 'getopt-posix', 'getopt-gnu'.
17095         * modules/getopt-gnu: New file, renamed from modules/getopt.
17096         * modules/getopt-posix: New file.
17097         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17098         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17099         (gl_GETOPT): Remove macro.
17100         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17101         Disable the test against BSD systems that declare optreset. Test
17102         against mingw bug. Test against lack of support of optional arguments
17103         on many platforms.
17104         * doc/glibc-headers/getopt.texi: Update module name and list of
17105         relevant platforms.
17106         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17107         'getopt-gnu' and more portability problems.
17108         * NEWS: Mention the changes.
17109
17110 2009-08-12  Bruno Haible  <bruno@clisp.org>
17111
17112         Ensure that optarg etc. get declared by <unistd.h>.
17113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17114         AC_USE_SYSTEM_EXTENSIONS.
17115         * modules/getopt (Depends-on): Add 'extensions'.
17116
17117 2009-08-12  Bruno Haible  <bruno@clisp.org>
17118
17119         Avoid test link errors.
17120         * modules/pipe-filter-ii-tests (Makefile.am): Define
17121         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17122         * modules/pipe-filter-gi-tests (Makefile.am): Define
17123         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17125
17126 2009-08-12  Bruno Haible  <bruno@clisp.org>
17127
17128         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17129         gl_GETOPT_SUBSTITUTE before.
17130         (gl_GETOPT): Use it.
17131         * m4/argp.m4 (gl_ARGP): Update.
17132         Reported by Sergey Poznyakoff.
17133
17134         * m4/getopt.m4: Reorder macros.
17135         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17136         (gl_GETOPT_SUBSTITUTE): Remove macro.
17137
17138 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17139
17140         Minor improvement in gitlog-to-changelog
17141
17142         * build-aux/gitlog-to-changelog: New option `--format' makes
17143         output format string configurable.
17144
17145 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17146
17147         Optimize exclude: use hash tables for non-wildcard patterns.
17148
17149         * lib/exclude.c: Include hash.h and mbuiter.h
17150         (struct exclude_pattern, exclude_segment): New data types.
17151         (struct exclude): Rewrite.
17152         (fnmatch_pattern_has_wildcards): New function.
17153         (new_exclude_segment, free_exclude_segment): New functions.
17154         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17155         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17156         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17157         * modules/exclude: Depend on hash and mbuiter.
17158
17159         * modules/exclude-tests: New file.
17160         * tests/test-exclude.c: New file.
17161         * tests/test-exclude1.sh: New file.
17162         * tests/test-exclude2.sh: New file.
17163         * tests/test-exclude3.sh: New file.
17164         * tests/test-exclude4.sh: New file.
17165         * tests/test-exclude5.sh: New file.
17166         * tests/test-exclude6.sh: New file.
17167         * tests/test-exclude7.sh: New file.
17168
17169 2009-08-12  Bruno Haible  <bruno@clisp.org>
17170
17171         Ensure that getopt() gets declared by <unistd.h>.
17172         * lib/unistd.in.h: Conditionally include getopt.h.
17173         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17174         Set GNULIB_UNISTD_H_GETOPT.
17175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17176         GNULIB_UNISTD_H_GETOPT.
17177         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17178
17179 2009-08-12  Bruno Haible  <bruno@clisp.org>
17180
17181         Clarify logic.
17182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17183         gl_replace_getopt instead of GETOPT_H.
17184
17185 2009-08-12  Bruno Haible  <bruno@clisp.org>
17186
17187         * m4/getopt.m4: Add comments.
17188
17189 2009-08-12  Bruno Haible  <bruno@clisp.org>
17190
17191         Disable multithread support by default on Cygwin 1.5.x.
17192         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17193         set gl_use_threads=no if not specified otherwise.
17194
17195 2009-08-11  Bruno Haible  <bruno@clisp.org>
17196
17197         Avoid compilation error on NetBSD 5.0.
17198         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17199         * tests/test-stdio.c: Likewise.
17200         * tests/test-stdlib.c: Likewise.
17201         * tests/test-string.c: Likewise.
17202         * tests/test-unistd.c: Likewise.
17203         Reported by Greg Troxel <gdt@ir.bbn.com>
17204         at <https://savannah.gnu.org/support/?106973>.
17205
17206 2009-08-11  Bruno Haible  <bruno@clisp.org>
17207
17208         * modules/dup2-tests (Depends-on): Remove close.
17209
17210         Undo 2009-07-19 commit.
17211         * modules/acl-tests (Depends-on): Remove close.
17212         * modules/binary-io-tests (Depends-on): Likewise.
17213         * modules/closein-tests (Depends-on): Likewise.
17214         * modules/flock-tests (Depends-on): Likewise.
17215         * modules/fsync-tests (Depends-on): Likewise.
17216         * modules/lseek-tests (Depends-on): Likewise.
17217         * modules/pipe-tests (Depends-on): Likewise.
17218         * modules/posix_spawn-tests (Depends-on): Likewise.
17219         * modules/posix_spawnp-tests (Depends-on): Likewise.
17220         * modules/stat-time-tests (Depends-on): Likewise.
17221         * modules/yesno-tests (Depends-on): Likewise.
17222
17223 2009-08-10  Bruno Haible  <bruno@clisp.org>
17224
17225         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17226
17227 2009-08-10  Bruno Haible  <bruno@clisp.org>
17228
17229         Fix a gcc warning.
17230         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17231
17232 2009-08-10  Bruno Haible  <bruno@clisp.org>
17233
17234         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17235         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17236         not only the first time.
17237         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17238         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17239         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17240         is 1, not only the the first time.
17241
17242 2009-08-10  Bruno Haible  <bruno@clisp.org>
17243
17244         Make it possible to use module 'gethostname' without module 'close'.
17245         * lib/unistd.in.h (close): Evoke a link error only if
17246         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17248         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17249         * modules/unistd (Makefile.am): Substitute
17250         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17251         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17252         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17253         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17254         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17255         * modules/sys_ioctl (Makefile.am): Substitute
17256         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17257         * modules/socket (configure.ac): On native Windows, set
17258         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17259         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17260         Reported by Sam Steingold <sds@gnu.org>.
17261
17262 2009-08-10  Bruno Haible  <bruno@clisp.org>
17263
17264         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17265         * modules/ioctl (configure.ac): Likewise.
17266
17267 2009-08-10  Bruno Haible  <bruno@clisp.org>
17268
17269         Avoid collision between gnulib wrapper and libintl wrapper.
17270         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17271         already defined in intl/printf.c.
17272         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17273         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17274
17275 2009-08-09  Bruno Haible  <bruno@clisp.org>
17276
17277         Make <sys/select.h> really self-contained, also on Solaris 10.
17278         * lib/sys_select.in.h: Include <string.h>.
17279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17280         Solaris 10 problem.
17281         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17282         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17283         Reported by Jim Meyering.
17284
17285 2009-08-09  Bruno Haible  <bruno@clisp.org>
17286
17287         Avoid warnings from 'aclocal' that are due to a use of macro name
17288         AM_XGETTEXT_OPTION that is not defined in automake.
17289         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17290         automake.
17291         * modules/error (configure.ac): Likewise.
17292         * modules/propername (configure.ac): Likewise.
17293         * modules/vasprintf (configure.ac): Likewise.
17294         * modules/verror (configure.ac): Likewise.
17295         * modules/xprintf (configure.ac): Likewise.
17296         * modules/xvasprintf (configure.ac): Likewise.
17297
17298 2009-08-08  Bruno Haible  <bruno@clisp.org>
17299
17300         Avoid compilation error in C++ mode.
17301         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17302         Reported by Sam Steingold <sds@gnu.org>.
17303
17304 2009-08-08  Bruno Haible  <bruno@clisp.org>
17305
17306         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17307         for the various Unix platforms.
17308         * doc/posix-headers/limits.texi: Update platforms list regarding
17309         HOST_NAME_MAX.
17310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17311
17312 2009-08-07  Jim Meyering  <meyering@redhat.com>
17313
17314         selinux-at: fix typo in a comment
17315         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17316         Spotted by Paolo Bonzini.
17317
17318         selinux-at: remove redundant m4 code, add documentation
17319         * modules/selinux-at (configure.ac): Remove redundant code.
17320         LIB_SELINUX is already set via the dependent module, selinux-h.
17321         (Include): Add quotes around selinux-at.h.
17322         * lib/selinux-at.h: Add documentation.
17323         Reported by Bruno Haible in
17324         http://marc.info/?l=gnulib-bug&m=124958988300749
17325
17326 2009-08-07  Bruno Haible  <bruno@clisp.org>
17327
17328         Avoid link error on MacOS X 10.3 and 10.4.
17329         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17330         on non-ELF systems.
17331         * lib/argp-pv.c (argp_program_version): Likewise.
17332         Reported by Simon Josefsson.
17333
17334 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17335
17336         * tests/test-version-etc.sh: Use $EXEEXT.
17337
17338 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17339
17340         update-copyright: update documentation to point to maint.mk
17341         * build-aux/update-copyright: Here.
17342
17343 2009-08-06  Jim Meyering  <meyering@redhat.com>
17344
17345         maint.mk: support update-copyright-local
17346         * top/maint.mk (update-copyright-local): Define place-holder.
17347         (update-copyright): Depend on $(update-copyright-local).
17348
17349 2009-08-06  Jim Meyering  <meyering@redhat.com>
17350
17351         selinux-at: new module
17352         Initially written for coreutils, this module will soon be
17353         used by findutils, too.
17354         * MODULES.html.sh [Misc]: Add selinux-at.
17355         * lib/selinux-at.h: New file, from coreutils.
17356         * lib/selinux-at.c: Likewise.
17357         * modules/selinux-at: Likewise.
17358         (License): Change from LGPL to GPL, since it depends
17359         on the GPL'd openat module.
17360
17361         doc: update README
17362         * README: Remove references to cogito.
17363         Remove cvs-repo-updating instructions from 2007.
17364         Don't imply that CVS is better if you have limited disk space.
17365
17366 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17367
17368         update-copyright: support C-style comments
17369         * build-aux/update-copyright: Implement and document.
17370         * tests/test-update-copyright.sh: Test.
17371
17372 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17373
17374         update-copyright: support omitted "(C)"
17375         * build-aux/update-copyright: Implement and document.  Also,
17376         allow variable whitespace before "(C)".
17377         * tests/test-update-copyright.sh: Test.
17378
17379 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17380
17381         update-copyright: don't trip on non-FSF copyright statements
17382         * build-aux/update-copyright: Fix so that the first correctly
17383         formatted FSF copyright statement is recognized no matter what
17384         appears before it.  Update documentation.
17385         * tests/test-update-copyright.sh: Test that.
17386
17387 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17388
17389         update-copyright: clean up code a little
17390         * build-aux/update-copyright: Append "_re" to the name of any
17391         variable holding a regular expression.
17392         Replace "old" and "new" with "stmt" in variable names.
17393         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17394         handled correctly.
17395         Format code more consistently.
17396
17397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17398
17399         update-copyright-tests: improve portability
17400         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17401         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17402
17403 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17404
17405         update-copyright: support @copyright{} and &copy;
17406         * build-aux/update-copyright: Implement and document.
17407         * tests/test-update-copyright.sh: Test.
17408
17409 2009-08-04  Jim Meyering  <meyering@redhat.com>
17410
17411         update-copyright-tests: correctly test EOL=\r\n handling
17412         * tests/test-update-copyright.sh: Put \r at the end of some lines
17413         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17414
17415         maint.mk: make update-copyright exclusion list more configurable
17416         * top/maint.mk (update-copyright): Default to excluding COPYING,
17417         but allow an override, in case someone does want to update that file.
17418
17419         maint.mk: don't update copyright date in COPYING
17420         * top/maint.mk (update-copyright): Exclude COPYING.
17421
17422         maint.mk: add a copyright-updating rule
17423         * top/maint.mk (update-copyright): New rule.
17424         Derived from coreutils/Makefile.am.
17425
17426         update-copyright: rename some variables
17427         * build-aux/update-copyright: Rename a few variables for clarity.
17428         Tweak syntax.  List Joel E. Denny as coauthor.
17429
17430 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17431
17432         update-copyright: fix bug for 2-digit last year and add tests
17433         * build-aux/update-copyright: Fix bug.
17434         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17435         specified.
17436         * modules/update-copyright-tests: New
17437         * tests/test-update-copyright.sh: New.
17438
17439 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17440
17441         update-copyright: handle leading tabs in line prefix
17442         * build-aux/update-copyright: Count leading tabs as 8 spaces
17443         when computing margin.  This helps with the formatting of
17444         ChangeLogs, for example.
17445         Fix documentation a little.
17446
17447 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17448
17449         update-copyright: support EOL=\r\n
17450         * build-aux/update-copyright: Implement that.
17451
17452 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17453
17454         update-copyright: automatically format copyright statements
17455         * build-aux/update-copyright: Implement that.
17456         Also, be a little more predictable and safer by always failing
17457         when the full copyright format is not perfectly recognized as an
17458         unbroken whole.  Discussed at
17459         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17460         Rewrite documentation.
17461
17462 2009-08-03  Bruno Haible  <bruno@clisp.org>
17463
17464         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17465
17466 2009-08-02  Bruno Haible  <bruno@clisp.org>
17467
17468         Tests for module 'uname'.
17469         * modules/uname-tests: New file.
17470         * tests/test-uname.c: New file.
17471
17472         New module 'uname'.
17473         * lib/uname.c: New file.
17474         * m4/uname.m4: New file.
17475         * modules/uname: New file.
17476         * doc/posix-functions/uname.texi: Mention the new module.
17477
17478 2009-08-02  Bruno Haible  <bruno@clisp.org>
17479
17480         Tests for module 'sys_utsname'.
17481         * modules/sys_utsname-tests: New file.
17482         * tests/test-sys_utsname.c: New file.
17483
17484         New module 'sys_utsname'.
17485         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17486         * m4/sys_utsname_h.m4: New file.
17487         * modules/sys_utsname: New file.
17488         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17489
17490 2009-08-02  Bruno Haible  <bruno@clisp.org>
17491
17492         Implicitly initialize the sockets library.
17493         * lib/gethostname.c: Include sockets.h.
17494         (rpl_gethostname): Invoke gl_sockets_startup.
17495         * lib/socket.c: Include sockets.h.
17496         (rpl_socket): Invoke gl_sockets_startup.
17497         * modules/gethostname (Depends-on): Add sockets.
17498         * modules/socket (Depends-on): Likewise.
17499         * tests/test-poll.c: Don't include sockets.h.
17500         (main): Don't invoke gl_sockets_startup.
17501         * tests/test-select.c: Don't include sockets.h.
17502         (main): Don't invoke gl_sockets_startup.
17503
17504 2009-08-02  Bruno Haible  <bruno@clisp.org>
17505
17506         Allow multiple calls to gl_sockets_startup.
17507         * lib/sockets.c (initialized_sockets_version): New variable.
17508         (gl_sockets_startup): Do nothing if already called for this or a higher
17509         version.
17510         (gl_sockets_cleanup): Reset initialized_sockets_version.
17511
17512 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17513
17514         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17515         different project/version.
17516
17517 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17518             Bruno Haible  <bruno@clisp.org>
17519
17520         Tests for module 'pipe-filter-gi'.
17521         * modules/pipe-filter-gi-tests: New file.
17522         * tests/test-pipe-filter-gi1.sh: New file.
17523         * tests/test-pipe-filter-gi1.c: New file.
17524         * tests/test-pipe-filter-gi2.sh: New file.
17525         * tests/test-pipe-filter-gi2-main.c: New file.
17526         * tests/test-pipe-filter-gi2-child.c: New file.
17527
17528         New module 'pipe-filter-gi'.
17529         * lib/pipe-filter-gi.c: New file.
17530         * modules/pipe-filter-gi: New file.
17531
17532 2009-08-02  Bruno Haible  <bruno@clisp.org>
17533             Paolo Bonzini  <bonzini@gnu.org>
17534
17535         Tests for module 'pipe-filter-ii'.
17536         * modules/pipe-filter-ii-tests: New file.
17537         * tests/test-pipe-filter-ii1.sh: New file.
17538         * tests/test-pipe-filter-ii1.c: New file.
17539         * tests/test-pipe-filter-ii2.sh: New file.
17540         * tests/test-pipe-filter-ii2-main.c: New file.
17541         * tests/test-pipe-filter-ii2-child.c: New file.
17542
17543         New module 'pipe-filter-ii'.
17544         * lib/pipe-filter.h: New file.
17545         * lib/pipe-filter-ii.c: New file.
17546         * lib/pipe-filter-aux.h: New file.
17547         * modules/pipe-filter-ii: New file.
17548
17549 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17550
17551         * lib/gc-libgcrypt.c: Change copyright to FSF.
17552         * lib/gc-gnulib.c: Likewise.
17553
17554 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17555
17556         * lib/gethostname.c: Include limits.h.
17557
17558 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17559             Bruno Haible  <bruno@clisp.org>
17560
17561         Ensure HOST_NAME_MAX as part of the gethostname module.
17562         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17563         define also HOST_NAME_MAX.
17564         * tests/test-gethostname.c: Include <limits.h>.
17565         (main): Check also HOST_NAME_MAX.
17566         * doc/posix-headers/limits.texi: Document the mingw problem.
17567
17568 2009-08-02  Bruno Haible  <bruno@clisp.org>
17569
17570         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17571         Add comments.
17572
17573 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17574
17575         * lib/gethostname.c: Add Windows wrapper.
17576         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17577         * modules/gethostname: Depend on sys_socket & errno, for also
17578         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17579         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17580
17581 2009-07-31  Jim Meyering  <meyering@redhat.com>
17582
17583         getloadavg: fix symbol name in comment
17584         * lib/getloadavg.c: Correct a typo I introduced when adding
17585         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17586         Matt Kraai spotted the problem.
17587
17588 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17589
17590         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17591         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17592         code also if ! defined N_NAME_POINTER.
17593         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17594         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17595         but the n_name member is a 12-byte array.
17596
17597 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17598
17599         update-copyright: generalize comment handling
17600         * build-aux/update-copyright: Handle copyright statements
17601         within more comment styles.
17602         Document usage.
17603         Report any file with an external copyright holder or parse failure.
17604
17605 2009-07-29  Jim Meyering  <meyering@redhat.com>
17606
17607         mktime: correct setting of REPLACE_MKTIME
17608         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17609
17610         update-copyright: new module
17611         * modules/update-copyright: New file.
17612         * build-aux/update-copyright: New file.
17613         * MODULES.html.sh (maint+release support): Add update-copyright.
17614
17615 2009-07-27  Bruno Haible  <bruno@clisp.org>
17616
17617         Fix compilation error when <ctime> is used and mktime is replaced.
17618         * lib/time.in.h (mktime): New declaration.
17619         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17620         REPLACE_MKTIME instead of defining mktime in config.h.
17621         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17622         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17623         Reported by Ross McFarland <rwmcfa1@neces.com>.
17624
17625 2009-07-27  Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17628         Reported by Matt Kraai <mkraai@beckman.com>.
17629
17630 2009-07-25  Jim Meyering  <meyering@redhat.com>
17631
17632         maint.mk: avoid warnings about missing files
17633         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17634         diagnostic when .prev-version does not exist.
17635         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17636         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17637         nonexistent cfg.mk.
17638         Suggestions from Simon Josefsson.
17639
17640 2009-07-25  Bruno Haible  <bruno@clisp.org>
17641
17642         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17643         defined as macros. Needed on QNX 6.4.1.
17644         Reported by Matt Kraai <mkraai@beckman.com>.
17645
17646 2009-07-23  Jim Meyering  <meyering@redhat.com>
17647
17648         maint.mk: invoke "make dist" with a working value of XZ_OPT
17649         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17650
17651 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17652
17653         Make fseeko.c compile on QNX.
17654         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17655
17656 2009-07-22  Peter Simons  <simons@cryp.to>
17657
17658         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17659         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17660         * lib/md4.h: Likewise.
17661         * lib/md5.h: Likewise.
17662         * lib/sha1.h: Likewise.
17663         * lib/sha256.h: Likewise.
17664         * lib/sha512.h: Likewise.
17665
17666         tests-sha1: don't assign literal string to 'char *' variable
17667         * tests/test-sha1.c (main): Declare locals with "const" to match
17668         attributes of the right hand side.
17669
17670 2009-07-21  Eric Blake  <ebb9@byu.net>
17671
17672         dup2: fix more mingw problems
17673         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17674         fd to itself.
17675         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17676         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17677         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17678         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17679         care of mingw bugs.
17680
17681 2009-07-21  Jim Meyering  <meyering@redhat.com>
17682
17683         vc-list-files: avoid failure when /bin/sh is dash
17684         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17685         On some Debian based systems, /bin/sh is a symlink to dash, and running
17686         this command would omit the "/" following each 'tests' prefix:
17687           dash -x build-aux/vc-list-files -C . tests
17688         That is because bash and dash work differently:
17689           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17690           bash ok
17691           dash odd
17692
17693 2009-07-21  Eric Blake  <ebb9@byu.net>
17694
17695         dup2-tests: test previous patch
17696         * modules/dup2-tests: New file.
17697         * tests/test-dup2.c: Likewise.
17698         * tests/test-open.c (main): Avoid unspecified behavior.
17699         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17700         test.
17701
17702         dup2: work around mingw and cygwin 1.5 bug
17703         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17705         * modules/unistd (Makefile.am): Substitute it.
17706         * lib/unistd.in.h (dup2): Declare the replacement.
17707         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17708         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17709         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17710         * modules/execute (Depends-on): Add dup2.
17711         * modules/fseterr (Depends-on): Likewise.
17712         * modules/pipe (Depends-on): Likewise.
17713         * modules/posix_spawn-internal (Depends-on): Likewise.
17714
17715 2009-07-21  Bruno Haible  <bruno@clisp.org>
17716
17717         * modules/.gitattributes: New file.
17718
17719 2009-07-20  Bruno Haible  <bruno@clisp.org>
17720
17721         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17722         (main): Use it.
17723
17724 2009-07-20  Eric Blake  <ebb9@byu.net>
17725
17726         test-pipe: make a bit more robust.
17727         * tests/test-pipe.c (myerr): Allow error messages regardless of
17728         what we do to stderr.
17729         (test_pipe): Rearrange to avoid deadlock.
17730         (child_main): Try a larger read, to ensure we avoided deadlock.
17731         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17732         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17733         if misused.
17734
17735 2009-07-19  Jim Meyering  <meyering@redhat.com>
17736
17737         fts: avoid false-positive cycle-detection
17738         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17739         for each new command line argument.
17740
17741 2009-07-19  Bruno Haible  <bruno@clisp.org>
17742
17743         Fix build error on mingw with the modules sys_select and unistd.
17744         * modules/acl-tests (Depends-on): Add close.
17745         * modules/binary-io-tests (Depends-on): Likewise.
17746         * modules/closein-tests (Depends-on): Likewise.
17747         * modules/flock-tests (Depends-on): Likewise.
17748         * modules/fsync-tests (Depends-on): Likewise.
17749         * modules/lseek-tests (Depends-on): Likewise.
17750         * modules/pipe-tests (Depends-on): Likewise.
17751         * modules/posix_spawn-tests (Depends-on): Likewise.
17752         * modules/posix_spawnp-tests (Depends-on): Likewise.
17753         * modules/stat-time-tests (Depends-on): Likewise.
17754         * modules/yesno-tests (Depends-on): Likewise.
17755
17756 2009-07-19  Bruno Haible  <bruno@clisp.org>
17757
17758         Unify conditionals.
17759         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17760         macros, not at the compiler macros.
17761         * lib/pipe.c: Likewise.
17762         * lib/execute.c: Likewise.
17763         * lib/spawni.c: Likewise.
17764
17765 2009-07-19  Bruno Haible  <bruno@clisp.org>
17766
17767         Fix handling of closed stdin/stdout/stderr on mingw.
17768         * lib/w32spawn.h: Include unistd.h.
17769         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17770         file descriptor with O_NOINHERIT flag.
17771         (fd_safer_noinherit): New function, based on fd-safer.c.
17772         (dup_safer_noinherit): New function, based on dup-safer.c.
17773         (undup_safer_noinherit): New function.
17774         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17775         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17776         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17777         instead of fd_safer.
17778         * tests/test-pipe.c: Include <windows.h>.
17779         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17780
17781         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17782         from main.
17783         (test_pipe): Pass an extra argument for disambiguation.
17784         (main): Invoke parent_main or child_main.
17785
17786         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17787         consistently.
17788
17789 2009-07-18  Eric Blake  <ebb9@byu.net>
17790
17791         test-pipe: fix mingw build
17792         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17793
17794 2009-07-18  Bruno Haible  <bruno@clisp.org>
17795
17796         * modules/pipe-tests (Makefile.am): Fix typo.
17797
17798 2009-07-18  Eric Blake  <ebb9@byu.net>
17799
17800         error: fix mingw build
17801         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17802         Reported by Bruno Haible.
17803
17804         error: avoid undefined use of stdout
17805         * lib/error.c (error, error_at_line): Check that fd 1 is open
17806         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17807         is handling faults and the close_stdout module wants to report the
17808         detection of closed stdout as an error.
17809
17810 2009-07-17  Eric Blake  <ebb9@byu.net>
17811
17812         pipe: be robust in face of closed fds
17813         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17814         should cause child to misbehave.
17815         * modules/pipe-tests: New module.
17816         * tests/test-pipe.c: New file.
17817         * tests/test-pipe.sh: New file.
17818         Reported by Akim Demaille.
17819
17820 2009-07-14  Bruno Haible  <bruno@clisp.org>
17821
17822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17823         Reported by anonymous kc.
17824
17825 2009-07-07  Jim Meyering  <meyering@redhat.com>
17826
17827         maint.mk: don't look for translatable strings in *.m4 or *.mk
17828         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17829         when searching for translatable strings.
17830
17831 2009-07-05  Jim Meyering  <meyering@redhat.com>
17832
17833         remove superfluous parentheses in STREQ definition
17834         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17835         * lib/getugroups.c (STREQ): Likewise.
17836         * lib/fnmatch.c (STREQ): Likewise.
17837         Spotted by Bruno Haible.
17838
17839 2009-07-04  Jim Meyering  <meyering@redhat.com>
17840
17841         argv-iter: new module
17842         * MODULES.html.sh: Add argv-iter.
17843         * lib/argv-iter.c, lib/argv-iter.h: New files.
17844         * modules/argv-iter: New file.
17845         * modules/argv-iter-tests: New file.
17846         * tests/test-argv-iter.c: Test it.
17847
17848 2009-07-04  Bruno Haible  <bruno@clisp.org>
17849
17850         Fix assertion.
17851         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17852         contains more exact copies of a given entry than file2, leave the extra
17853         copies unpaired rather than aborting.
17854         Reported by Eric Blake.
17855
17856 2009-07-02  Bruno Haible  <bruno@clisp.org>
17857
17858         Speedup git-merge-changelog for git cherry-pick.
17859         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17860         (entries_mapping_get): New function, extracted from compute_mapping.
17861         (entries_mapping_reverse_get): New function.
17862         (compute_mapping): Add a 'full' argument. Return the result in a
17863         'struct entries_mapping'.
17864         (main): Update. Access the mappings through entries_mapping_get.
17865         Reported by Eric Blake.
17866
17867 2009-07-02  Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17870         best_i.
17871
17872 2009-07-02  Bruno Haible  <bruno@clisp.org>
17873
17874         Speed up approximate search for matching ChangeLog entries.
17875         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17876         argument. Call fstrcmp_bounded instead of fstrcmp.
17877         (compute_mapping, try_split_merged_entry, main): Update callers.
17878
17879 2009-07-02  Bruno Haible  <bruno@clisp.org>
17880
17881         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17882
17883 2009-06-30  Bruno Haible  <bruno@clisp.org>
17884
17885         Reduce the number of uc_is_cased calls.
17886         * lib/unicase.h (casing_suffix_context_t): Add
17887         'first_char_except_ignorable' field.
17888         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17889         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17890         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17891         Update initializer.
17892         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17893         case-ignorable characters.
17894         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17895         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17896         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17897         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17898         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17899
17900 2009-06-30  Bruno Haible  <bruno@clisp.org>
17901
17902         Tests for module 'unicase/ignorable'.
17903         * modules/unicase/ignorable-tests: New file.
17904         * tests/unicase/test-ignorable.c: New file, generated by
17905         gen-uni-tables.
17906
17907         Tests for module 'unicase/cased'.
17908         * modules/unicase/cased-tests: New file.
17909         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17910         * tests/unicase/test-predicate-part1.h: New file, derived from
17911         tests/unictype/test-predicate-part1.h.
17912         * tests/unicase/test-predicate-part2.h: New file, same as
17913         tests/unictype/test-predicate-part2.h.
17914
17915         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17916         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17917         (output_casing_properties): New function.
17918         (main): Call it.
17919         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17920         * lib/unicase/cased.c: Include unictype/bitmap.h.
17921         (uc_is_cased): Define through a bitmap lookup.
17922         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17923         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17924         (uc_is_case_ignorable): Define through a bitmap lookup.
17925         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17926         lib/unictype/bitmap.h.
17927         (Depends-on): Add inline. Clean up.
17928         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17929         lib/unictype/bitmap.h.
17930         (Depends-on): Add inline. Clean up.
17931         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17932         recognition.
17933         * tests/unicase/test-u16-tolower.c (main): Likewise.
17934         * tests/unicase/test-u32-tolower.c (main): Likewise.
17935
17936 2009-06-30  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17939         * lib/unicase/u16-casemap.c: Likewise.
17940         * lib/unicase/u32-casemap.c: Likewise.
17941
17942 2009-06-29  Bruno Haible  <bruno@clisp.org>
17943
17944         Define u32_casefold as a wrapper around u32_ct_casefold.
17945         * lib/unicase/u32-casefold.c: Update.
17946         * modules/unicase/u32-casefold (Depends-on): Add
17947         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17948         unicase/empty-suffix-context. Clean up.
17949
17950         Define u16_casefold as a wrapper around u16_ct_casefold.
17951         * lib/unicase/u16-casefold.c: Update.
17952         * modules/unicase/u16-casefold (Depends-on): Add
17953         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17954         unicase/empty-suffix-context. Clean up.
17955
17956         Define u8_casefold as a wrapper around u8_ct_casefold.
17957         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17958         * lib/unicase/u8-casefold.c: Update.
17959         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17961
17962         Define u32_totitle as a wrapper around u32_ct_totitle.
17963         * lib/unicase/u32-totitle.c: Update.
17964         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17965         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17966
17967         Define u16_totitle as a wrapper around u16_ct_totitle.
17968         * lib/unicase/u16-totitle.c: Update.
17969         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17970         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17971
17972         Define u8_totitle as a wrapper around u8_ct_totitle.
17973         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17974         functions.
17975         (FUNC): Delegate to U_CT_TOTITLE.
17976         * lib/unicase/u8-totitle.c: Update.
17977         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17978         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17979
17980         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17981         invocation.
17982         * modules/unicase/u32-tolower (Depends-on): Add
17983         unicase/empty-prefix-context, unicase/empty-suffix-context.
17984
17985         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17986         invocation.
17987         * modules/unicase/u16-tolower (Depends-on): Add
17988         unicase/empty-prefix-context, unicase/empty-suffix-context.
17989
17990         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17991         * modules/unicase/u8-tolower (Depends-on): Add
17992         unicase/empty-prefix-context, unicase/empty-suffix-context.
17993
17994         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17995         invocation.
17996         * modules/unicase/u32-toupper (Depends-on): Add
17997         unicase/empty-prefix-context, unicase/empty-suffix-context.
17998
17999         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18000         invocation.
18001         * modules/unicase/u16-toupper (Depends-on): Add
18002         unicase/empty-prefix-context, unicase/empty-suffix-context.
18003
18004         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18005         * modules/unicase/u8-toupper (Depends-on): Add
18006         unicase/empty-prefix-context, unicase/empty-suffix-context.
18007
18008         New module 'unicase/u32-ct-casefold'.
18009         * lib/unicase/u32-ct-casefold.c: New file.
18010         * modules/unicase/u32-ct-casefold: New file.
18011
18012         New module 'unicase/u16-ct-casefold'.
18013         * lib/unicase/u16-ct-casefold.c: New file.
18014         * modules/unicase/u16-ct-casefold: New file.
18015
18016         New module 'unicase/u8-ct-casefold'.
18017         * lib/unicase/u8-ct-casefold.c: New file.
18018         * lib/unicase/u-ct-casefold.h: New file, derived from
18019         lib/unicase/u-casefold.h.
18020         * modules/unicase/u8-ct-casefold: New file.
18021
18022         New module 'unicase/u32-ct-totitle'.
18023         * lib/unicase/u32-ct-totitle.c: New file.
18024         * modules/unicase/u32-ct-totitle: New file.
18025
18026         New module 'unicase/u16-ct-totitle'.
18027         * lib/unicase/u16-ct-totitle.c: New file.
18028         * modules/unicase/u16-ct-totitle: New file.
18029
18030         New module 'unicase/u8-ct-totitle'.
18031         * lib/unicase/u8-ct-totitle.c: New file.
18032         * lib/unicase/u-ct-totitle.h: New file, derived from
18033         lib/unicase/u-totitle.h.
18034         * modules/unicase/u8-ct-totitle: New file.
18035
18036         New module 'unicase/u32-ct-tolower'.
18037         * lib/unicase/u32-ct-tolower.c: New file.
18038         * modules/unicase/u32-ct-tolower: New file.
18039
18040         New module 'unicase/u16-ct-tolower'.
18041         * lib/unicase/u16-ct-tolower.c: New file.
18042         * modules/unicase/u16-ct-tolower: New file.
18043
18044         New module 'unicase/u8-ct-tolower'.
18045         * lib/unicase/u8-ct-tolower.c: New file.
18046         * modules/unicase/u8-ct-tolower: New file.
18047
18048         New module 'unicase/u32-ct-toupper'.
18049         * lib/unicase/u32-ct-toupper.c: New file.
18050         * modules/unicase/u32-ct-toupper: New file.
18051
18052         New module 'unicase/u16-ct-toupper'.
18053         * lib/unicase/u16-ct-toupper.c: New file.
18054         * modules/unicase/u16-ct-toupper: New file.
18055
18056         New module 'unicase/u8-ct-toupper'.
18057         * lib/unicase/u8-ct-toupper.c: New file.
18058         * modules/unicase/u8-ct-toupper: New file.
18059
18060         Add context arguments to u*_casemap functions.
18061         * lib/unicase/unicasemap.h: Include unicase.h.
18062         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18063         suffix_context arguments.
18064         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18065         functions.
18066         (FUNC): Add prefix_context and suffix_context arguments. Use
18067         uc_is_cased and uc_is_case_ignorable.
18068         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18069         * lib/unicase/u16-casemap.c: Likewise.
18070         * lib/unicase/u32-casemap.c: Likewise.
18071         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18072         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18073         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18074         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18075         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18076         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18077
18078         New module 'unicase/u32-suffix-context'.
18079         * lib/unicase/u32-suffix-context.c: New file.
18080         * modules/unicase/u32-suffix-context: New file.
18081
18082         New module 'unicase/u16-suffix-context'.
18083         * lib/unicase/u16-suffix-context.c: New file.
18084         * modules/unicase/u16-suffix-context: New file.
18085
18086         New module 'unicase/u8-suffix-context'.
18087         * lib/unicase/u8-suffix-context.c: New file.
18088         * lib/unicase/u-suffix-context.h: New file.
18089         * modules/unicase/u8-suffix-context: New file.
18090
18091         New module 'unicase/empty-suffix-context'.
18092         * lib/unicase/empty-suffix-context.c: New file.
18093         * modules/unicase/empty-suffix-context: New file.
18094
18095         New module 'unicase/u32-prefix-context'.
18096         * lib/unicase/u32-prefix-context.c: New file.
18097         * modules/unicase/u32-prefix-context: New file.
18098
18099         New module 'unicase/u16-prefix-context'.
18100         * lib/unicase/u16-prefix-context.c: New file.
18101         * modules/unicase/u16-prefix-context: New file.
18102
18103         New module 'unicase/u8-prefix-context'.
18104         * lib/unicase/u8-prefix-context.c: New file.
18105         * lib/unicase/u-prefix-context.h: New file.
18106         * lib/unicase/context.h: New file.
18107         * modules/unicase/u8-prefix-context: New file.
18108
18109         New module 'unicase/empty-prefix-context'.
18110         * lib/unicase/empty-prefix-context.c: New file.
18111         * modules/unicase/empty-prefix-context: New file.
18112
18113         New module 'unicase/ignorable'.
18114         * lib/unicase/ignorable.c: New file.
18115         * modules/unicase/ignorable: New file.
18116
18117         New module 'unicase/cased'.
18118         * lib/unicase/caseprop.h: New file.
18119         * lib/unicase/cased.c: New file.
18120         * modules/unicase/cased: New file.
18121
18122         New functions for case mapping of substrings.
18123         * lib/unicase.h (casing_prefix_context_t): New type.
18124         (unicase_empty_prefix_context): New variable.
18125         (u8_casing_prefix_context, u16_casing_prefix_context,
18126         u32_casing_prefix_context, u8_casing_prefixes_context,
18127         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18128         declarations.
18129         (casing_suffix_context_t): New type.
18130         (unicase_empty_suffix_context): New variable.
18131         (u8_casing_suffix_context, u16_casing_suffix_context,
18132         u32_casing_suffix_context, u8_casing_suffixes_context,
18133         u16_casing_suffixes_context, u32_casing_suffixes_context,
18134         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18135         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18136         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18137         declarations.
18138
18139 2009-06-28  Jim Meyering  <meyering@redhat.com>
18140
18141         boostrap: indent only with spaces
18142         * build-aux/bootstrap: Indent only with spaces, never TABs.
18143
18144         bootstrap: split long lines
18145         * build-aux/bootstrap: Keep line length < 80.
18146
18147         bootstrap: sync from coreutils
18148         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18149         just as autoreconf does.  Verify a list of prerequisite
18150         package-name,version-number pairs if defined in bootstrap.conf.
18151         Refer to README-prereq, if prerequisites are not satisfied.
18152
18153 2009-06-27  Eric Blake  <ebb9@byu.net>
18154
18155         tests: add test for bogus NULL definition
18156         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18157         * tests/test-stdlib.c: Likewise.
18158         * tests/test-string.c: Likewise.
18159         * tests/test-locale.c: Likewise.
18160         * tests/test-unistd.c: Likewise.
18161         * modules/stdio-tests (Depends-on): Add verify.
18162         * modules/stdlib-tests (Depends-on): Likewise.
18163         * modules/string-tests (Depends-on): Likewise.
18164         * modules/locale-tests (Depends-on): Likewise.
18165         * modules/unistd-tests (Depends-on): Likewise.
18166
18167 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18168
18169         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18170         self-explaining comment.
18171         * m4/selinux-selinux-h: Update serial.
18172         (gl_LIBSELINUX): New macro, adding a warning for missing development
18173         packages to code extracted from...
18174         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18175         Add warning for missing development packages here, too.
18176
18177 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18178
18179         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18180
18181 2009-06-25  Eric Blake  <ebb9@byu.net>
18182
18183         version-etc: fix regression
18184         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18185         gcc.
18186         (version_etc): Use it, to catch bugs with trailing NULL.
18187         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18188         (version_etc_va): Fix logic bug.
18189         * modules/version-etc-tests: Add test.
18190         * tests/test-version-etc.c: New file.
18191         * tests/test-version-etc.sh: Likewise.
18192
18193 2009-06-25  Sam Steingold  <sds@gnu.org>
18194
18195         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18196         mbtowc declaration.
18197
18198 2009-06-25  Eric Blake  <ebb9@byu.net>
18199
18200         fpurge: migrate into <stdio.h>
18201         * lib/fpurge.h: Delete...
18202         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18203         * lib/fpurge.c (fpurge): Change declaring header.
18204         * modules/fpurge (Files): Drop deleted file.
18205         (Depends-on): Add stdio.
18206         (configure.ac): Set witness.
18207         * modules/stdio (Makefile.am): Support fpurge macros.
18208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18209         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18210         * lib/fflush.c: Update client.
18211         * tests/test-fpurge.c: Likewise.
18212         * NEWS: Mention the change.
18213
18214 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18215
18216         * lib/argp-version-etc.c (program_authors): Add const
18217         qualifier.
18218         * lib/version-etc.c: Fix typos in the comments.
18219         * modules/argp-version-etc: Depends on version-etc.
18220
18221 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18222
18223         argp-version-etc: new module.
18224
18225         * lib/argp-version-etc.c: New file.
18226         * lib/argp-version-etc.h: New file.
18227         * modules/argp-version-etc: New file.
18228         * modules/argp-version-etc-tests: New file.
18229         * tests/test-argp-version-etc.c: New test.
18230         * tests/test-argp-version-etc-1.sh: New test.
18231
18232 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18233
18234         Provide additional interfaces and documentation for version-etc
18235         module.
18236
18237         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18238         interfaces.
18239         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18240         prototypes.
18241
18242 2009-06-24  Bruno Haible  <bruno@clisp.org>
18243
18244         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18245         HAVE_LIB${NAME} macro.
18246         Reported by Sam Steingold <sds@gnu.org>.
18247
18248 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18249
18250         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18251         needed.
18252
18253 2009-06-21  Bruno Haible  <bruno@clisp.org>
18254
18255         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18256         work.
18257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18258         together with LIB${NAME}, LTLIB${NAME}.
18259         Reported by Sam Steingold <sds@gnu.org>.
18260
18261 2009-06-20  Jim Meyering  <meyering@redhat.com>
18262
18263         tests: make sc_require_test_exit_idiom more generic
18264         * top/maint.mk (Exit_witness_file): New overridable variable.
18265         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18266         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18267
18268 2009-06-19  Jim Meyering  <meyering@redhat.com>
18269
18270         hash: reverse order of src/dst parameters in an internal interface
18271         * lib/hash.c (transfer_entries): Reverse order of parameters to
18272         put DST before SRC.  Adjust callers.
18273
18274         tests: test-hash: avoid wholesale duplication
18275         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18276         Instead, use a loop and add a single conditional.
18277
18278         tests: test-hash: allow seed selection via a command line argument
18279         * tests/test-hash.c (get_seed): New function.
18280         (main): Use it.
18281
18282 2009-06-19  Eric Blake  <ebb9@byu.net>
18283
18284         hash: avoid memory leak on allocation failure
18285         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18286         failure.  Factor repeated algorithm...
18287         (transfer_entries): ...into new helper routine.
18288         (hash_delete): React to hash_rehash return value.
18289
18290         hash: reduce memory pressure in hash_rehash no-op case
18291         * lib/hash.c (next_prime): Avoid overflow.
18292         (hash_initialize): Factor bucket size computation...
18293         (compute_bucket_size): ...into new helper function.
18294         (hash_rehash): Use new function and open coding to reduce memory
18295         pressure, and avoid a memory leak in USE_OBSTACK code.
18296         Reported by Jim Meyering.
18297
18298 2009-06-18  Eric Blake  <ebb9@byu.net>
18299
18300         hash: make rotation more obvious
18301         * modules/hash (Depends-on): Add bitrotate and stdint.
18302         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18303         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18304         (SIZE_MAX): Rely on headers for definition.
18305         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18306         (raw_hasher): Use rotr_sz.
18307         Suggested by Jim Meyering.
18308
18309         hash: fix memory leak in last patch
18310         * lib/hash.c (hash_rehash): Avoid memory leak.
18311
18312         hash: avoid no-op rehashing
18313         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18314
18315         hash: provide default callback functions
18316         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18317         (hash_initialize): Use them as defaults.
18318         * tests/test-hash.c (main): Test this.
18319
18320         hash: minor optimization
18321         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18322         when possible.
18323         (hash_initialize): Document this promise.
18324         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18325         * tests/test-hash.c (hash_compare_strings): Test this.
18326
18327 2009-06-18  Bruno Haible  <bruno@clisp.org>
18328
18329         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18330         going to be replaced anyway.
18331
18332 2009-06-18  Bruno Haible  <bruno@clisp.org>
18333
18334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18335         in one place.
18336         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18337         be replaced anyway.
18338
18339 2009-06-18  Eric Blake  <ebb9@byu.net>
18340
18341         hash: check for resize before insertion
18342         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18343         threshold before insertion, so that a pathological hash_rehash
18344         that fills every bucket can still trigger another rehash.
18345
18346 2009-06-18  Jim Meyering  <meyering@redhat.com>
18347
18348         hash-tests: add a loop around the small tests
18349         * tests/test-hash.c (main): Repeat small tests with selected
18350         small initial table sizes.
18351
18352 2009-06-17  Eric Blake  <ebb9@byu.net>
18353
18354         hash: minor cleanups
18355         * lib/hash.h (hash_entry): Make opaque, by moving...
18356         * lib/hash.c (hash_entry): ...here.
18357         (hash_insert): Clarify restrictions on what can be inserted.
18358         (hash_get_next): Clarify when it is safe to remove an element
18359         during traversal.
18360         (check_tuning): Skip verification when tuning is known safe.
18361         (hash_initialize): Clarify restrictions on tuning.
18362
18363 2009-06-17  Jim Meyering  <jim@meyering.net>
18364         and Eric Blake  <ebb9@byu.net>
18365
18366         hash-tests: new module
18367         * modules/hash-tests: New file.
18368         * tests/test-hash.c: New file.
18369
18370 2009-06-17  Eric Blake  <ebb9@byu.net>
18371
18372         strstr-simple: document new module
18373         * MODULES.html.sh: Document new module.
18374
18375         strstr, strcasestr: replace on platforms with broken memchr
18376         * modules/strstr: Split into...
18377         * modules/strstr-simple: ...new module that does not care about
18378         performance, but does care about glibc bug.
18379         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18380         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18381         if platform memchr is broken, per Debian bug 521737.
18382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18383         memchr.
18384         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18385         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18386         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18387         * modules/mountlist (Depends-on): Add strstr-simple.
18388         * modules/gen-uni-tables (Depends-on): Likewise.
18389         * modules/argz (Depends-on): Add strstr.
18390
18391 2009-06-17  Bruno Haible  <bruno@clisp.org>
18392
18393         * modules/posix_spawn-internal (Depends-on): Add errno.
18394
18395 2009-06-17  Bruno Haible  <bruno@clisp.org>
18396
18397         Define missing ESTALE on Interix 3.5.
18398         * lib/errno.in.h (ESTALE): Assign a value if missing.
18399         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18400         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18401         missing.
18402         * doc/posix-headers/errno.texi: Mention the Interix bug.
18403         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18404
18405 2009-06-15  Eric Blake  <ebb9@byu.net>
18406
18407         memchr, memchr2: add valgrind exception
18408         * lib/memchr.valgrind: New file.
18409         * lib/memchr2.valgrind: New file.
18410         * modules/memchr (Files): Distribute valgrind file.
18411         * modules/memchr2 (Files): Likewise.
18412
18413         docs: memchr is no longer obsolete
18414         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18415         * lib/string.in.h (memchr): Simplify logic.
18416
18417 2009-06-14  Jim Meyering  <meyering@redhat.com>
18418
18419         link-follow: fix the "checking..." message to not mention trailing slash
18420         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18421         never considered trailing slashes.
18422
18423 2009-06-14  Bruno Haible  <bruno@clisp.org>
18424
18425         * m4/memchr.m4: Mention also the bug on IA-64.
18426         * doc/posix-functions/memchr.texi: Likewise.
18427
18428 2009-06-12  Eric Blake  <ebb9@byu.net>
18429
18430         memchr: detect broken x86_64 and alpha implementations
18431         * modules/memchr-tests (Depends-on): Move mmap detection...
18432         * modules/memchr (Depends-on): ...here.
18433         (configure.ac): Set indicator.
18434         * lib/string.in.h (memchr): Declare replacement.
18435         * modules/string (Makefile.am): Trigger replacement.
18436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18437         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18438         bugs.
18439         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18440         * modules/getpagesize (License): Relax license.
18441
18442 2009-06-11  Bruno Haible  <bruno@clisp.org>
18443
18444         * lib/idpriv.h: Add more references.
18445
18446 2009-06-08  Bruno Haible  <bruno@clisp.org>
18447
18448         Tests for module 'idpriv-droptemp'.
18449         * modules/idpriv-droptemp-tests: New file.
18450         * tests/test-idpriv-droptemp.sh: New file.
18451         * tests/test-idpriv-droptemp.su.sh: New file.
18452         * tests/test-idpriv-droptemp.c: New file.
18453
18454         New module 'idpriv-droptemp'.
18455         * lib/idpriv-droptemp.c: New file.
18456         * modules/idpriv-droptemp: New file.
18457
18458 2009-06-08  Bruno Haible  <bruno@clisp.org>
18459
18460         Tests for module 'idpriv-drop'.
18461         * modules/idpriv-drop-tests: New file.
18462         * tests/test-idpriv-drop.sh: New file.
18463         * tests/test-idpriv-drop.su.sh: New file.
18464         * tests/test-idpriv-drop.c: New file.
18465
18466         New module 'idpriv-drop'.
18467         * lib/idpriv.h: New file.
18468         * lib-idpriv-drop.c: New file.
18469         * m4/idpriv.m4: New file.
18470         * modules/idpriv-drop: New file.
18471
18472 2009-06-08  Bruno Haible  <bruno@clisp.org>
18473
18474         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18475         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18476         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18477         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18478         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18479         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18480         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18481
18482 2009-06-08  Eric Blake  <ebb9@byu.net>
18483
18484         test-strstr: use memory fence, when possible
18485         * tests/test-strstr.c (main): Use memory fence, in order to be
18486         more likely to trigger Debian bug 521737.
18487         * modules/strstr-tests (Files): Pull in additional files.
18488
18489         memchr: no longer obsolete, for wider field testing
18490         * modules/memchr (Status, Notice): Delete, this module is no
18491         longer obsolete.
18492         * modules/vasnprintf (Depends-on): Add memchr.
18493
18494 2009-06-07  Jim Meyering  <meyering@redhat.com>
18495
18496         hash: declare some functions with the warn_unused_result attribute
18497         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18498
18499 2009-06-07  Bruno Haible  <bruno@clisp.org>
18500
18501         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18502         Reported by Eric Blake.
18503
18504 2009-06-06  Eric Blake  <ebb9@byu.net>
18505
18506         test-alignof: fix typo with long double
18507         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18508         compiler error.
18509
18510 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18511
18512         Escape non-texinfo { and }s.
18513         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18514         markup error.
18515
18516 2009-06-04  Jim Meyering  <meyering@redhat.com>
18517
18518         gitlog-to-changelog: don't infloop on an empty commit log
18519         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18520         Reported by Boris Petersen <transacid@centerim.org>.
18521
18522 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18523
18524         version-etc: extend for packagers
18525         Add three new configure options, intended for packagers:
18526           --with-packager="packager name"
18527           --with-packager-version="packager-specific version"
18528           --with-packager-bug-reports="packager bug reporting"
18529         An example with coreutils:
18530           $ ./configure \
18531             --with-packager=Gentoo \
18532             --with-packager-bug-report=http://bugs.gentoo.org/ \
18533             --with-packager-version="patchset 1.6"
18534           $ ./src/ls --version | head -n2
18535           ls (GNU coreutils) 7.1-dirty
18536           Packaged by Gentoo (patchset 1.6)
18537         Note that the bug reporting info via --help doesn't show up because
18538         coreutils uses its own custom emit_bug_reporting_address() implementation
18539         in src/system.h.  If it didn't, it'd look like:
18540           $ ./src/ls --help | tail -n4
18541           Report bugs to <bug-coreutils@gnu.org>.
18542           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18543           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18544           General help using GNU software: <http://www.gnu.org/gethelp/>.
18545         * lib/version-etc.c: Print new information, if provided.
18546         * m4/version-etc.m4: New file.
18547         * modules/version-etc (Files): Add m4/version-etc.m4.
18548         (configure.ac): Add gl_VERSION_ETC.
18549
18550 2009-05-31  Bruno Haible  <bruno@clisp.org>
18551
18552         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18553         and 'int64_t'.
18554         * modules/alignof-tests (Dependencies): Add stdint.
18555         Reported by Eric Blake.
18556
18557 2009-05-31  Bruno Haible  <bruno@clisp.org>
18558
18559         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18560         restriction due to compiler bugs.
18561         Reported by Eric Blake.
18562
18563 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18564             Bruno Haible  <bruno@clisp.org>
18565
18566         Fix test-alignof failure.
18567         * lib/alignof.h (alignof_slot): New macro.
18568         (alignof_type): New macro, with the same semantics as the previous
18569         'alignof'.
18570         (alignof): Alias to alignof_slot.
18571         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18572         check that the results are usable as constant expressions.
18573
18574 2009-05-31  Bruno Haible  <bruno@clisp.org>
18575
18576         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18577         * tests/test-memchr.c (main): Check that memchr does not read past the
18578         first occurrence of the byte.
18579         * tests/test-strstr.c (main): Update comment.
18580         Suggested by Eric Blake.
18581
18582 2009-05-30  Bruno Haible  <bruno@clisp.org>
18583
18584         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18585         detail how to use dumpbin.
18586         Reported by David Byron <dbyron@dbyron.com>.
18587
18588 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18589
18590         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18591
18592 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18593
18594         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18595
18596 2009-05-28  Bruno Haible  <bruno@clisp.org>
18597
18598         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18599         build-aux/ files.
18600
18601 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18602
18603         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18604
18605 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18606
18607         * gnulib-tool (sed_transform_main_lib_file)
18608         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18609         regexps.
18610
18611 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18612
18613         * tests/test-strstr.c: Add another self-test.
18614         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18615         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18616
18617 2009-05-23  Bruno Haible  <bruno@clisp.org>
18618
18619         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18620         change.
18621
18622 2009-05-21  Bruno Haible  <bruno@clisp.org>
18623
18624         Simplify use of mode_t varargs.
18625         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18626         uses 'mode_t' or 'int'.
18627         * lib/openat.c (openat): Likewise.
18628         * lib/open-safer.c (open_safer): Likewise.
18629         * m4/mode_t.m4: New file.
18630         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18631         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18632         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18633         * modules/open (Files): Add m4/mode_t.m4.
18634         * modules/openat (Files): Likewise.
18635         * modules/fcntl-safer (Files): Likewise.
18636         Suggested by Eric Blake.
18637
18638 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18639
18640         * doc/glibc-functions/fallocate.texi: New file.
18641         * doc/gnulib.texi: Include it.
18642
18643 2009-05-21  Eric Blake  <ebb9@byu.net>
18644             Bruno Haible  <bruno@clisp.org>
18645
18646         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18647         invocations.
18648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18649
18650 2009-05-21  Eric Blake  <ebb9@byu.net>
18651             Bruno Haible  <bruno@clisp.org>
18652
18653         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18654         include_next. Fix of 2008-11-20 commit.
18655         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18656         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18657         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18658         NEXT_MATH_H.
18659         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18660         instead of NEXT_MATH_H.
18661
18662 2009-05-21  Bruno Haible  <bruno@clisp.org>
18663
18664         Avoid redefinition warnings for SIZE_MAX.
18665         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18666         Reported by Simon Josefsson.
18667
18668 2009-05-21  Bruno Haible  <bruno@clisp.org>
18669
18670         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18671         AC_CACHE_VAL.
18672
18673 2009-05-20  Bruno Haible  <bruno@clisp.org>
18674
18675         Make zeroptr.h work on mingw.
18676         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18677         mprotect.
18678         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18679         * modules/memchr2-tests (configure.ac): Likewise.
18680         * modules/memcmp-tests (configure.ac): Likewise.
18681         * modules/memmem-tests (configure.ac): Likewise.
18682         * modules/memrchr-tests (configure.ac): Likewise.
18683         Reported by Simon Josefsson.
18684
18685 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18686
18687         * tests/test-glob.c: Include string.h for strcmp prototype.
18688
18689 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18690
18691         * modules/getdelim (Depends-on): Add explicit stdint, although it
18692         was implicitly already pulled in via realloc-posix.
18693         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18694
18695 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18696
18697         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18698         G. Christensen" <tgc@jupiterrise.com>.
18699         * m4/sys_socket_h.m4: Check for sa_family_t.
18700         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18701         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18702         * tests/test-sys_socket.c: Check that sa_family_t works.
18703
18704 2009-05-18  Eric Blake  <ebb9@byu.net>
18705
18706         maint.mk: allow gnulib_dir in VPATH build
18707         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18708
18709 2009-05-15  Jim Meyering  <meyering@redhat.com>
18710
18711         maint.mk: Give gnulib_dir a default definition.
18712         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18713         Thus, most packages no longer need to specify this variable in cfg.mk
18714
18715 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18716
18717         rename.m4: fix typos that would make non-mingw cross-configure fail
18718         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18719
18720 2009-05-13  Eric Blake  <ebb9@byu.net>
18721
18722         mmap-anon: avoid out-of-order autoconf expansion
18723         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18724         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18725         * modules/memchr-tests (Depends-on): Add extensions.
18726         * modules/memchr2-tests (Depends-on): Add extensions.
18727         * modules/memcmp-tests (Depends-on): Add extensions.
18728         * modules/memmem-tests (Depends-on): Add extensions.
18729         * modules/memrchr-tests (Depends-on): Add extensions.
18730
18731 2009-05-13  Bruno Haible  <bruno@clisp.org>
18732
18733         Make some tests ISO C 99 compliant.
18734         * tests/zerosize-ptr.h: New file.
18735         * tests/test-memchr.c: Include zerosize-ptr.h.
18736         (main): Use a zero-size object pointer instead of NULL.
18737         * tests/test-memchr2.c: Include zerosize-ptr.h.
18738         (main): Use a zero-size object pointer instead of NULL.
18739         * tests/test-memcmp.c: Include zerosize-ptr.h.
18740         (main): Use a zero-size object pointer instead of NULL.
18741         * tests/test-memmem.c: Include zerosize-ptr.h.
18742         (main): Use a zero-size object pointer instead of NULL.
18743         * tests/test-memrchr.c: Include zerosize-ptr.h.
18744         (main): Use a zero-size object pointer instead of NULL.
18745         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18746         m4/mmap-anon.m4.
18747         (Depends-on): Add getpagesize.
18748         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18749         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18750         m4/mmap-anon.m4.
18751         (Depends-on): Add getpagesize.
18752         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18753         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18754         m4/mmap-anon.m4.
18755         (Depends-on): Add getpagesize.
18756         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18757         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18758         m4/mmap-anon.m4.
18759         (Depends-on): Add getpagesize.
18760         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18761         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18762         m4/mmap-anon.m4.
18763         (Depends-on): Add getpagesize.
18764         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18765
18766 2009-05-12  Bruno Haible  <bruno@clisp.org>
18767
18768         Tests for module 'alignof'.
18769         * modules/alignof-tests: New file.
18770         * tests/test-alignof.c: New file.
18771
18772 2009-05-12  Bruno Haible  <bruno@clisp.org>
18773
18774         Fix alignof macro.
18775         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18776         vendor compilers that are always correct.
18777
18778 2009-05-12  Bruno Haible  <bruno@clisp.org>
18779
18780         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18781         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18782         not whether its fully works.
18783
18784 2009-05-12  Bruno Haible  <bruno@clisp.org>
18785
18786         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18787
18788 2009-05-12  Jim Meyering  <meyering@redhat.com>
18789
18790         * top/maint.mk: Adjust backslash alignment.
18791
18792 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18793
18794         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18795
18796 2009-05-11  Eric Blake  <ebb9@byu.net>
18797
18798         argp: avoid undefined behavior
18799         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18800         macros.
18801
18802 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18803
18804         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18805         user.name to prevent git commit from complaining.
18806
18807 2009-05-10  Bruno Haible  <bruno@clisp.org>
18808
18809         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18810         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18811         it rewrites every file name only once.
18812         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18813
18814 2009-05-08  Bruno Haible  <bruno@clisp.org>
18815
18816         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18817         instead of 'max'.
18818
18819 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18820
18821         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18822         sockaddr_storage test.
18823
18824 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18825
18826         * modules/sys_socket (Makefile.am): Substitute
18827         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18828         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18829         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18830         * tests/test-sys_socket.c: Check sockaddr_storage.
18831
18832 2009-05-08  Bruno Haible  <bruno@clisp.org>
18833
18834         New module 'alignof'.
18835         * lib/alignof.h: New file.
18836         * modules/alignof: New file.
18837
18838 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18839             Bruno Haible  <bruno@clisp.org>
18840
18841         Fix test-file-has-acl on FreeBSD.
18842         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18843         mask is implicitly added.
18844         * tests/test-file-has-acl.c: Include <signal.h>.
18845         (main): Terminate the test after 5 seconds.
18846         * modules/acl-tests (configure.ac): Check for alarm function.
18847
18848 2009-05-04  Bruno Haible  <bruno@clisp.org>
18849
18850         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18852         * modules/errno (configure.ac): Drop AC_REQUIRE.
18853         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18854         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18855
18856 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18857
18858         * modules/glob-tests: New module.
18859         * tests/test-glob.c: Add.
18860
18861 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18862
18863         * modules/fnmatch-tests: New module.
18864         * tests/test-fnmatch.c: Add.
18865
18866 2009-05-04  Eric Blake  <ebb9@byu.net>
18867
18868         maint: make the new no-submodule-changes rule VPATH-safe
18869         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18870
18871 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18872             Bruno Haible  <bruno@clisp.org>
18873
18874         acl: Fix infinite loop on FreeBSD.
18875         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18876         of return value from acl_get_entry.
18877         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18878         Likewise.
18879
18880 2009-05-03  Bruno Haible  <bruno@clisp.org>
18881
18882         * lib/acl-internal.h (acl_entries): Clarify return value.
18883         * lib/acl_entries.c (acl_entries): Likewise.
18884
18885 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18886
18887         Bug fix in acl module.
18888         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18889
18890 2009-05-03  Bruno Haible  <bruno@clisp.org>
18891
18892         Create gperf-generated file in the source dir, not in the build dir.
18893         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18894         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18895         * modules/unicase/locale-language (unicase/locale-languages.h):
18896         Likewise.
18897         * modules/unicase/special-casing (unicase/special-casing-table.h):
18898         Likewise.
18899         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18900         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18901         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18902         Reported by Ralf Wildenhues.
18903
18904 2009-05-03  Bruno Haible  <bruno@clisp.org>
18905
18906         * modules/fnmatch (Description, configure.ac): Taken from
18907         fnmatch-posix.
18908         * modules/fnmatch-posix: Turn into a symbolic reference to the
18909         'fnmatch' module, and deprecate.
18910         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18911
18912 2009-05-03  Bruno Haible  <bruno@clisp.org>
18913
18914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18915         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18916         Reported by Ralf Wildenhues.
18917
18918 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18919
18920         * m4/fnmatch.m4: Fix fnmatch re-define.
18921
18922 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18923
18924         priv-set: new module and tests; adapt write-any-file
18925         * lib/priv-set.c: New file.
18926         * lib/priv-set.h: New file.
18927         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18928         * lib/write-any-file.c: Simplify by using priv-set module.
18929         * m4/priv-set.m4: New file.
18930         * modules/priv-set: New file.
18931         * modules/unlinkdir: Add dependency on priv-set module.
18932         * modules/write-any-file: Likewise.
18933
18934         Tests for module 'priv-set'.
18935         * modules/priv-set-tests: New file.
18936         * tests/test-priv-set.c: New file.
18937
18938 2009-05-03  Jim Meyering  <meyering@redhat.com>
18939             Bruno Haible  <bruno@clisp.org>
18940
18941         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18942         use the converted UTF-8 variant of the name instead.
18943
18944 2009-05-03  Jim Meyering  <meyering@redhat.com>
18945
18946         tests: tighten some getdate tests
18947         * tests/test-getdate.c (main): Tighten tests: require equality,
18948         not just greater than.  Set TZ envvar to UTC0.
18949
18950 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18951
18952         getdate: correctly interpret "next monday" when run on a Monday
18953         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18954         that e.g., "next tues" (when run on a tuesday) results in a date
18955         that is one week in the future, and not today's date.
18956         I.e., add a week when the wday is the same as the current one.
18957         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18958         and earlier by Martin Bernreuther and Jan Minář.
18959         * tests/test-getdate.c (main): Check that "next DAY" is always in
18960         the future and that "last DAY" is always in the past.
18961
18962 2009-05-02  Jim Meyering  <meyering@redhat.com>
18963
18964         build: ensure that a release build fails when a submodule is unclean
18965         * top/maint.mk (no-submodule-changes): New rule.
18966         (alpha beta major): Depend on it.
18967
18968 2009-05-02  Bruno Haible  <bruno@clisp.org>
18969
18970         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18971         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18972         shell variable gl_fnmatch_required to detect which variant is
18973         requested.
18974         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18975         gl_FUNC_FNMATCH_POSIX.
18976         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18977         exclude fnmatch-posix.
18978
18979 2009-05-02  Bruno Haible  <bruno@clisp.org>
18980
18981         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18982         * modules/mbsrtowcs (License): Change to LGPLv2+.
18983         * modules/strnlen1 (License): Likewise.
18984         Reported by Simon Josefsson.
18985
18986 2009-05-02  Bruno Haible  <bruno@clisp.org>
18987
18988         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18989         "cross".
18990         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18991         gnulib-tool was called with option --source-base=lib.
18992
18993 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18994
18995         Use automake *-local hooks without commands, for extensibility.
18996         * modules/localcharset (Makefile.am): Rename install-exec-local
18997         rule to install-exec-localcharset, and make it a prerequisite of
18998         install-exec-local.  Likewise, rename the uninstall-local rule to
18999         uninstall-localcharset, and make it a prerequisite of the former.
19000
19001 2009-05-01  Bruno Haible  <bruno@clisp.org>
19002
19003         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19004         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19005         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19007         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19008         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19009         m4/locale-zh.m4, m4/codeset.m4.
19010
19011         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19012         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19013         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19014         m4/locale-zh.m4.
19015
19016         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19017         REPLACE_WCRTOMB if mbstate_t must be replaced.
19018         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19019         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19020
19021 2009-05-01  Bruno Haible  <bruno@clisp.org>
19022
19023         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19024         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19025         dngettext, dcngettext, textdomain, bindtextdomain,
19026         bind_textdomain_codeset): Undefine before redefining.
19027
19028 2009-04-30  Bruno Haible  <bruno@clisp.org>
19029
19030         Fix bug introduced on 2009-04-25.
19031         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19032         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19033         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19034         is defined.
19035         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19036         is defined.
19037         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19038         is defined.
19039         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19040
19041 2009-04-28  Bruno Haible  <bruno@clisp.org>
19042
19043         Comment tweaks.
19044         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19045         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19046         * lib/unicase.h (u*_casexfrm): Likewise.
19047         Reported by Paolo Bonzini.
19048
19049 2009-04-28  Bruno Haible  <bruno@clisp.org>
19050
19051         Fix a compilation error.
19052         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19053         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19054         Reported by Jim Meyering.
19055
19056 2009-04-27  Bruno Haible  <bruno@clisp.org>
19057
19058         New module 'libunistring'.
19059         * modules/libunistring: New file.
19060         * m4/libunistring.m4: New file.
19061         * MODULES.html.sh (Unicode string functions): Add it.
19062
19063 2009-04-27  Eric Blake  <ebb9@byu.net>
19064
19065         maint.mk: allow package-specific header to provide <config.h>
19066         * top/maint.mk (sc_require_config_h): New variable.
19067         (sc_require_config_h, sc_require_config_h_first): Use it.
19068
19069 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19070
19071         * top/maint.mk (sc_avoid_if_before_free): Except
19072         useless-if-before-free script.
19073
19074 2009-04-27  Eric Blake  <ebb9@byu.net>
19075
19076         maintainer-makefile: depend on all required helper scripts
19077         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19078         useless-if-before-free.
19079         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19080         version, rather than assuming gnulib checkout is available.
19081         Reported by Simen Josefsson.
19082
19083 2009-04-26  Bruno Haible  <bruno@clisp.org>
19084
19085         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19086         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19087         "../" or "..".
19088
19089 2009-04-26  Bruno Haible  <bruno@clisp.org>
19090
19091         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19092         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19093         AC_LIB_HAVE_LINKFLAGS.
19094
19095 2009-04-26  Bruno Haible  <bruno@clisp.org>
19096
19097         Simplify calling convention of u*_conv_from_encoding.
19098         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19099         u32_conv_from_encoding): Expect a resultbuf argument and return the
19100         result directly as a pointer.
19101         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19102         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19103         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19104         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19105         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19106         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19107         Update.
19108         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19109         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19110         * lib/vasnprintf.c (VASNPRINTF): Update.
19111         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19112         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19113         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19114         * NEWS: Mention the change.
19115
19116 2009-04-26  Bruno Haible  <bruno@clisp.org>
19117
19118         Simplify calling convention of u*_conv_to_encoding.
19119         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19120         u32_conv_to_encoding): Expect a resultbuf argument and return the
19121         result directly as a pointer.
19122         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19123         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19124         freeing scaled_offsets if mem_iconveha failed.
19125         * lib/unicase/u-casexfrm.h (FUNC): Update.
19126         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19127         * lib/vasnprintf.c (VASNPRINTF): Update.
19128         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19129         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19130         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19131         * NEWS: Mention the change.
19132
19133 2009-04-26  Bruno Haible  <bruno@clisp.org>
19134
19135         Avoid test failures on AIX and OSF/1.
19136         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19137         malloc(0).
19138         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19139         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19140         Likewise.
19141         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19142         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19143         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19144         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19145         * doc/posix-functions/malloc.texi: Document the portability problem
19146         related to malloc(0).
19147
19148 2009-04-26  Bruno Haible  <bruno@clisp.org>
19149
19150         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19151         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19152         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19153
19154 2009-04-25  Bruno Haible  <bruno@clisp.org>
19155
19156         Avoid link error when creating a namespace clean library.
19157         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19158         as macro with arguments if already defined as an alias.
19159         * lib/signbitf.c (gl_signbitf): Don't undefine.
19160         * lib/signbitd.c (gl_signbitd): Don't undefine.
19161         * lib/signbitl.c (gl_signbitl): Don't undefine.
19162
19163 2009-04-25  Jim Meyering  <meyering@redhat.com>
19164
19165         vc-list-files: fix another quoting bug
19166         * build-aux/vc-list-files: Avoid sed backslash expansion
19167         of pathological directory names.
19168
19169 2009-04-25  Eric Blake  <ebb9@byu.net>
19170
19171         vc-list-files: fix shell quoting error
19172         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19173         timestamp.
19174
19175 2009-04-25  Jim Meyering  <meyering@redhat.com>
19176
19177         vc-list-files: restore lost functionality with subdir argument
19178         * build-aux/vc-list-files: When given a non-"." sub-directory
19179         argument, substitute the $dir/ prefix back onto each resulting name.
19180         Otherwise, coreutils' root_tests check would fail.
19181
19182 2009-04-24  Eric Blake  <ebb9@byu.net>
19183
19184         vc-list-files: ignore git symlinks
19185         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19186         than ls-files, to ignore git symlinks.
19187
19188         maint.mk: import improvements from m4
19189         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19190         (move_if_change): Delete unused macro.
19191         (news-date-check, vc-diff-check): Support VPATH builds.
19192         (announcement): Likewise.  Split --bootstrap-tools list...
19193         (boostrap-tools): ...into separate list, which can be overridden
19194         in cfg.mk.
19195         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19196         requiring dependency on useless-if-before-free module.
19197         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19198         Support VPATH builds.
19199
19200 2009-04-24  Jim Meyering  <meyering@redhat.com>
19201
19202         maint.mk: remove coreutils-specific rules and variables
19203         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19204         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19205         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19206
19207         maint.mk: remove obsolete rule
19208         * top/maint.mk (rel-check): Remove rule.
19209         (WGET, WGETFLAGS): Remove now-unused variables.
19210
19211 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19212
19213         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19214         consistency.
19215
19216         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19217         '$(PATH_SEPARATOR)' instead of ':'.
19218
19219 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19220
19221         * lib/getopt1.c (main): Use 'const' for static array.
19222
19223 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19224
19225         * top/maint.mk: Sync with coreutils.
19226         * NEWS: Explain incompatibilities.
19227
19228 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19229             Bruno Haible  <bruno@clisp.org>
19230
19231         Fix cross-compilation results.
19232         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19233         statement, as third argument of AC_TRY_RUN.
19234         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19235         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19236         Likewise.
19237         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19238         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19239         Likewise.
19240         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19242         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19243
19244 2009-04-20  Bruno Haible  <bruno@clisp.org>
19245
19246         Avoid test failure on mingw.
19247         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19248
19249 2009-04-20  Bruno Haible  <bruno@clisp.org>
19250
19251         Avoid compilation error on mingw.
19252         * modules/localename-tests (Depends-on): Add locale.
19253
19254 2009-04-19  Bruno Haible  <bruno@clisp.org>
19255
19256         Support for building a shared library on Windows platforms.
19257         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19258         (main): Test the presence of UNINORM_NFC here.
19259         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19260         (main): Test the presence of UNINORM_NFD here.
19261         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19262         (main): Test the presence of UNINORM_NFKC here.
19263         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19264         (main): Test the presence of UNINORM_NFKD here.
19265
19266 2009-04-19  Bruno Haible  <bruno@clisp.org>
19267
19268         Avoid a compiler warning.
19269         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19270         Change type of variable 'sequence'.
19271
19272 2009-04-19  Bruno Haible  <bruno@clisp.org>
19273
19274         * modules/configmake (Makefile.am): When the contents of configmake.h
19275         does not change, arrange to preserve its modification time.
19276
19277 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19278
19279         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19280         gettext domain.
19281
19282 2009-04-16  Jim Meyering  <meyering@redhat.com>
19283
19284         useless-if-before-free: improve conversion code
19285         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19286         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19287
19288 2009-04-14  Bruno Haible  <bruno@clisp.org>
19289
19290         * modules/fcntl (Depends-on): Add extensions.
19291         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19292
19293 2009-04-12  Ben Pfaff  <blp@gnu.org>
19294
19295         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19296         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19297
19298 2009-03-20  Ben Pfaff  <blp@gnu.org>
19299
19300         Make rename replace existing destinations on Windows.
19301         * m4/rename.m4: Add test for Mingw.
19302         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19303         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19304         * doc/posix-functions/rename.texi: Document.
19305
19306 2009-04-10  Bruno Haible  <bruno@clisp.org>
19307
19308         New include file "iconveh.h".
19309         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19310         * lib/striconveh.h: Include it.
19311         (enum iconv_ilseq_handler): Remove definition.
19312         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19313         striconveh.h.
19314         * lib/striconveha.c: Include striconveh.h.
19315         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19316         * modules/striconveh (Files): Add lib/iconveh.h.
19317         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19318         lib/striconveh.h.
19319
19320 2009-04-10  Bruno Haible  <bruno@clisp.org>
19321
19322         * lib/uniconv.h: Update comment.
19323
19324 2009-04-10  Bruno Haible  <bruno@clisp.org>
19325
19326         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19327         always.
19328         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19329         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19330         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19331         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19332         "unistring-notinline.h", so that the function gets defined always.
19333         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19334         * lib/unistr/u8-uctomb.c: Likewise.
19335         * lib/unistr/u16-mbtouc.c: Likewise.
19336         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19337         * lib/unistr/u16-uctomb.c: Likewise.
19338         * lib/unistr/u32-mbtouc.c: Likewise.
19339         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19340         * lib/unistr/u32-uctomb.c: Likewise.
19341
19342 2009-04-10  Bruno Haible  <bruno@clisp.org>
19343
19344         Mark 'utime' obsolete.
19345         * modules/utime (Status, Notice): New sections.
19346         Suggested by Jim Meyering.
19347
19348         Fix cross-compile guess for utime test.
19349         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19350         autoconf.
19351         * doc/posix-functions/utime.texi: Give more precisions.
19352         Reported by Jan <ipif@ymail.com>.
19353
19354 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19355
19356         filevercmp: correct today's change
19357         * lib/filevercmp.c: Also handle coreutils' test inputs.
19358         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19359
19360         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19361         for reporting it.
19362         * lib/filevercmp.c: Special handle for "", "." and "..".
19363         * tests/test-filevercmp.c: Enlarge the set suite.
19364
19365 2009-04-07  Jim Meyering  <meyering@redhat.com>
19366
19367         useless-if-before-free: show how to remove braced useless free, too
19368         * build-aux/useless-if-before-free: still only in a comment, though.
19369
19370 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19371
19372         maint.mk: import changes to syntax-check macros from coreutils
19373         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19374         Use them in the relevant macros.
19375
19376 2009-04-06  Bruno Haible  <bruno@clisp.org>
19377
19378         Fix unportable use of bit-fields.
19379         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19380         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19381         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19382
19383 2009-04-06  Bruno Haible  <bruno@clisp.org>
19384
19385         Avoid test failures on AIX and OSF/1.
19386         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19387         that malloc(0) = NULL.
19388         * tests/unicase/test-u8-tolower.c (check): Likewise.
19389         * tests/unicase/test-u8-totitle.c (check): Likewise.
19390         * tests/unicase/test-u8-toupper.c (check): Likewise.
19391         * tests/unicase/test-u16-casefold.c (check): Likewise.
19392         * tests/unicase/test-u16-tolower.c (check): Likewise.
19393         * tests/unicase/test-u16-totitle.c (check): Likewise.
19394         * tests/unicase/test-u16-toupper.c (check): Likewise.
19395         * tests/unicase/test-u32-casefold.c (check): Likewise.
19396         * tests/unicase/test-u32-tolower.c (check): Likewise.
19397         * tests/unicase/test-u32-totitle.c (check): Likewise.
19398         * tests/unicase/test-u32-toupper.c (check): Likewise.
19399         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19400         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19401         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19402         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19403         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19404         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19405         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19406         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19407         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19408         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19409         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19410         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19411
19412 2009-04-05  Bruno Haible  <bruno@clisp.org>
19413
19414         Work around an autoconf limitation.
19415         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19416         comment line if it would be longer than 3 KB.
19417
19418 2009-04-05  Bruno Haible  <bruno@clisp.org>
19419
19420         Avoid test failure with libiconv-1.13.
19421         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19422         of the expected test results.
19423
19424 2009-04-05  Bruno Haible  <bruno@clisp.org>
19425
19426         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19427         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19428         that it should be installed.
19429
19430 2009-04-05  Bruno Haible  <bruno@clisp.org>
19431
19432         * gnulib-tool: New option --copy-file.
19433         (func_usage): Document it.
19434         (func_dest_tmpfilename): Moved out of func_import.
19435         (func_add_file, func_update_file): New functions, extracted from
19436         func_import.
19437         (func_import): Update.
19438
19439 2009-04-05  Karl Berry  <karl@gnu.org>
19440
19441         * README: prominently mention gnulib-tool.
19442         Rearrange sections so getting the code is near the top.
19443
19444 2009-04-05  Bruno Haible  <bruno@clisp.org>
19445
19446         * lib/unicase.h: Mention u*_cmp2.
19447         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19448         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19449         * lib/unicase/ulc-casecmp.c: Likewise.
19450         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19451         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19452         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19453         unistr/u8-cmp.
19454         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19455         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19456         unistr/u16-cmp.
19457         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19458         unistr/u32-cmp.
19459
19460         * lib/uninorm.h: Mention u*_cmp2.
19461         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19462         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19463         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19464         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19465         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19466         unistr/u8-cmp.
19467         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19468         unistr/u16-cmp.
19469         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19470         unistr/u32-cmp.
19471
19472         New module 'unistr/u32-cmp2'.
19473         * lib/unistr/u32-cmp2.c: New file.
19474         * modules/unistr/u32-cmp2: New file.
19475
19476         New module 'unistr/u16-cmp2'.
19477         * lib/unistr/u16-cmp2.c: New file.
19478         * modules/unistr/u16-cmp2: New file.
19479
19480         New module 'unistr/u8-cmp2'.
19481         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19482         * lib/unistr/u8-cmp2.c: New file.
19483         * lib/unistr/u-cmp2.h: New file.
19484         * modules/unistr/u8-cmp2: New file.
19485
19486 2009-04-05  Bruno Haible  <bruno@clisp.org>
19487
19488         * lib/unictype.h (uc_property_is_valid): New macro.
19489         * tests/unictype/test-pr_byname.c (main): Use it.
19490
19491         * lib/unistr.h: Doc fixes.
19492         * lib/uniconv.h: Doc fixes.
19493         * lib/unictype.h: Doc fixes.
19494
19495 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19496
19497         Port coreutils 7.2 to Solaris 8.
19498
19499         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19500         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19501         for Solaris 8.  This is a bit of a hack, as it means it's the
19502         caller's responsibility to add -lnsl if needed, but most likely it
19503         won't be needed since only getaddrinfo uses this and getaddrinfo
19504         isn't needed on Solaris 8.
19505
19506         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19507         problem to Solaris 8 encountered with coreutils 7.2, which
19508         resulted in a message "fnmatch.c:292: warning: passing argument 4
19509         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19510         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19511
19512 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19513
19514         * m4/ld-version-script.m4: Add FIXME comment.
19515
19516 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19517
19518         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19519         SOVERSION variable.
19520
19521 2009-04-02  Bruno Haible  <bruno@clisp.org>
19522
19523         * Makefile (info, html, dvi, pdf): Combine the rules.
19524         Suggested by Jim Meyering.
19525
19526 2009-04-01  Bruno Haible  <bruno@clisp.org>
19527
19528         * Makefile (info, html, dvi, pdf): New targets.
19529         Reported by Reuben Thomas <rrt@sc3d.org>.
19530
19531 2009-04-01  Bruno Haible  <bruno@clisp.org>
19532
19533         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19534         can be put into PATH.
19535         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19536
19537 2009-04-01  Bruno Haible  <bruno@clisp.org>
19538
19539         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19540
19541 2009-04-01  Bruno Haible  <bruno@clisp.org>
19542
19543         Rename module 'visibility'.
19544         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19545         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19546         * doc/gnulib.texi: Update.
19547         * MODULES.html.sh (Misc): Update.
19548         * NEWS: Mention the change.
19549
19550 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19551
19552         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19553         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19554         Eric Blake <ebb9@byu.net> for review.
19555         * MODULES.html.sh: Add lib-msvc-compat.
19556         * doc/gnulib.texi: Link to new section.
19557         * m4/ld-output-def.m4: New file.
19558         * doc/ld-output-def.texi: New file.
19559
19560 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19561
19562         Rename ld-version-script to lib-symbol-versions.  Suggested by
19563         Bruno Haible <bruno@clisp.org>.
19564         * modules/ld-version-script: Renamed to lib-symbol-versions.
19565         * doc/ld-version-script.texi: Fix module name.
19566         * MODULES.html.sh: Add lib-symbol-versions.
19567
19568 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19569
19570         * modules/u64-tests: New file.
19571         * tests/test-u64.c: New file.
19572
19573 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19574
19575         * MODULES.html.sh: Mention u64.
19576         * modules/u64: New module.
19577         * modules/crypto/sha512: Depend on u64 module instead of providing
19578         u64.h.
19579
19580 2009-03-27  Eric Blake  <ebb9@byu.net>
19581
19582         test-strerror: make debugging EAI_SYSTEM easier
19583         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19584         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19585         failure was EAI_SYSTEM.
19586
19587 2009-03-25  Bruno Haible  <bruno@clisp.org>
19588
19589         Fix a problem with --enable-relocatable on Solaris 7.
19590         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19591         since 2008-02-24.
19592
19593 2009-03-25  Eric Blake  <ebb9@byu.net>
19594
19595         test-sockets: avoid gcc warning
19596         * tests/test-sockets.c (main): Silence compiler warning.
19597
19598 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19599
19600         New modules nproc, pthread, contributed by Glen Lenker.
19601
19602         * MODULES.html.sh: Add pthread, nproc.
19603         * lib/nproc.c: New file.
19604         * lib/nproc.h: New file.
19605         * lib/pthread.in.h: New file.
19606         * m4/pthread.m4: New file.
19607         * modules/nproc: New file.
19608         * modules/pthread: New file.
19609
19610 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19611
19612         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19613         New variable.
19614
19615 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19616
19617         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19618         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19619         * tests/test-filevercmp.c: Add tests for backup suffixes.
19620
19621 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19622
19623         * modules/stdlib (Depends-on): Add stdint, needed when defining
19624         struct random_data on, for example, HP-UX 10.20.  Reported by
19625         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19626
19627 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19628
19629         * lib/readline.c (readline): Call fflush on stdout after printing
19630         prompt.
19631
19632 2009-03-20  Bruno Haible  <bruno@clisp.org>
19633
19634         Remove dependency from 'close' module to -lws2_32 on native Windows.
19635         * lib/close-hook.h: New file.
19636         * lib/close-hook.c: New file.
19637         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19638         w32sock.h.
19639         (_gl_close_fd_maybe_socket): Remove function.
19640         (rpl_close): Invoke execute_all_close_hooks instead of
19641         _gl_close_fd_maybe_socket.
19642         * lib/sockets.c: Include close-hook.h, w32sock.h.
19643         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19644         (close_sockets_hook): New variable.
19645         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19646         (gl_sockets_cleanup): Unregister it.
19647         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19648         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19649         * modules/close-hook: New file.
19650         * modules/close (Files): Remove lib/w32sock.h.
19651         (Depends-on): Add close-hook.
19652         (Link): Remove section.
19653         * modules/sockets (Files): Add lib/w32sock.h.
19654         (Depends-on): Add close-hook.
19655         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19656         invocation.
19657         * NEWS: Mention that LIB_CLOSE is gone.
19658
19659 2009-03-23  Eric Blake  <ebb9@byu.net>
19660
19661         signal-tests: test previous patch
19662         * tests/test-signal.c: New file.
19663         * modules/signal-tests: Likewise.
19664
19665         signal.h: always support 'volatile sig_atomic_t'
19666         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19667         (gl_SIGNAL_H_DEFAULTS): Add a default.
19668         * modules/signal (Makefile.am): Substitute if needed.
19669         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19670         users can blindly add volatile.
19671         * doc/posix-headers/signal.texi (signal.h): Document it.
19672         Reported by Matthew Woehlke.
19673
19674 2009-03-23  Jim Meyering  <meyering@redhat.com>
19675
19676         pathmax: PATH_MAX: use pathconf only when available
19677         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19678         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19679         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19680         This avoids a link failure in a PSP cross-compilation environment
19681         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19682
19683         * lib/vasnprintf.c (divide): Fix typo in comment.
19684
19685 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19686
19687         * gnulib-tool (func_filter_filelist): Fix comment.
19688
19689 2009-03-20  Bruno Haible  <bruno@clisp.org>
19690
19691         Make sockets.h self-contained.
19692         * lib/sockets.c: Include sockets.h first.
19693         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19694
19695 2009-03-19  Eric Blake  <ebb9@byu.net>
19696
19697         doc: mention more functions added in cygwin 1.7.0
19698         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19699         addition.
19700         * doc/posix-functions/log2f.texi: Likewise.
19701
19702 2009-03-19  Jim Meyering  <meyering@redhat.com>
19703
19704         fsusage: avoid syntax error due to statement-before-declaration
19705         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19706         after all declarations.  Reported by Matthew Woehlke in
19707         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19708
19709 2009-03-18  Eric Blake  <ebb9@byu.net>
19710
19711         build-aux/compile: sync from automake
19712         * build-aux/compile: New file, from automake.
19713         * config/srclist.txt: Mention build-aux/compile.
19714
19715 2009-03-17  Bruno Haible  <bruno@clisp.org>
19716
19717         * lib/git-merge-changelog.c: Fix typo in comment.
19718         Reported by Reuben Thomas <rrt@sc3d.org>.
19719
19720 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19721
19722         * m4/regex.m4: update and improve help for
19723         --without-included-regex.
19724
19725 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19726
19727         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19728         failure on missing include files.
19729
19730 2009-03-17  Eric Blake  <ebb9@byu.net>
19731
19732         doc: mention more functions added in cygwin 1.7.0
19733         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19734         addition.
19735         * doc/posix-functions/fwscanf.texi: Likewise.
19736         * doc/posix-functions/swprintf.texi: Likewise.
19737         * doc/posix-functions/swscanf.texi: Likewise.
19738         * doc/posix-functions/vfwprintf.texi: Likewise.
19739         * doc/posix-functions/vfwscanf.texi: Likewise.
19740         * doc/posix-functions/vswprintf.texi: Likewise.
19741         * doc/posix-functions/vswscanf.texi: Likewise.
19742         * doc/posix-functions/vwprintf.texi: Likewise.
19743         * doc/posix-functions/vwscanf.texi: Likewise.
19744         * doc/posix-functions/wcscasecmp.texi: Likewise.
19745         * doc/posix-functions/wcsdup.texi: Likewise.
19746         * doc/posix-functions/wcsftime.texi: Likewise.
19747         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19748         * doc/posix-functions/wprintf.texi: Likewise.
19749         * doc/posix-functions/wscanf.texi: Likewise.
19750         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19751
19752 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19753
19754         maint.mk: really add $(AM_MAKEFLAGS)
19755         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19756         was inadvertently omitted in the last commit.
19757         Spotted by Bruno Haible.
19758
19759         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19760         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19761         $(AM_MAKEFLAGS)' rather than plain `make'.
19762
19763         gnulib-tool: execute $MAKE not make
19764         * gnulib-tool: Default $MAKE to 'make'.
19765         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19766         than make.  Initialize $MAKE in the do-autobuild script.
19767
19768         gnulib-tool: use $MAKE not make in generated files
19769         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19770         make, in generated files.  Initialize $MAKE in the do-autobuild
19771         script.
19772
19773         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19774
19775         GNUmakefile: disable parallelism only for multiple, recursive targets
19776         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19777         additions in the Makefile.
19778         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19779         by Automake.
19780         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19781         are listed on the command line and at least one of them is
19782         listed in $(ALL_RECURSIVE_TARGETS).
19783
19784 2009-03-14  Bruno Haible  <bruno@clisp.org>
19785
19786         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19787         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19788         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19789         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19790         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19791         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19792         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19793         unistr/u8-uctomb.
19794         * modules/unistr/u8-strchr (Depends-on): Likewise.
19795         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19796         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19797         unistr/u16-uctomb.
19798         * modules/unistr/u16-strchr (Depends-on): Likewise.
19799         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19800
19801 2009-03-12  Bruno Haible  <bruno@clisp.org>
19802
19803         Work around select() bug on Interix 3.5.
19804         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19805         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19806         * m4/select.m4: New file.
19807         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19808         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19809         * modules/select (Files): Add m4/select.m4.
19810         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19811         * modules/nanosleep (Depends-on): Add select.
19812         * modules/poll (Depends-on): Likewise.
19813         * doc/posix-functions/select.texi: Mention the Interix bug.
19814         Reported by Markus Duft <mduft@gentoo.org>.
19815
19816         * lib/select.c: Renamed from lib/winsock-select.c.
19817         * modules/select (Files): Add lib/select.c, remove
19818         lib/winsock-select.c.
19819         (configure.ac): Update.
19820
19821 2009-03-12  Jim Meyering  <meyering@redhat.com>
19822
19823         avoid gcc warnings about unused macro definitions
19824         * lib/readtokens.c (STREQ): Remove unused definition.
19825         * lib/xmalloc.c (SIZE_MAX): Likewise.
19826         * lib/openat-die.c (N_): Likewise.
19827         * lib/mountlist.c (SIZE_MAX): Remove definition.
19828         Instead, include <stdint.h>.
19829         * lib/readutmp.c: Likewise.
19830         * modules/readutmp (Depends-on): Add stdint.
19831         * modules/mountlist (Depends-on): Add stdint.
19832         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19833
19834 2009-03-10  Bruno Haible  <bruno@clisp.org>
19835
19836         Tests for module 'mbmemcasecoll'.
19837         * modules/mbmemcasecoll-tests: New file.
19838         * tests/test-mbmemcasecoll1.sh: New file.
19839         * tests/test-mbmemcasecoll2.sh: New file.
19840         * tests/test-mbmemcasecoll3.sh: New file.
19841         * tests/test-mbmemcasecoll.c: New file.
19842
19843         New module 'mbmemcasecoll'.
19844         * lib/mbmemcasecoll.h: New file.
19845         * lib/mbmemcasecoll.c: New file.
19846         * modules/mbmemcasecoll: New file.
19847
19848         * tests/test-mbmemcasecmp.h: New file, extracted from
19849         tests/test-mbmemcasecmp.c.
19850         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19851         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19852         (main): Update.
19853         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19854
19855 2009-03-09  Bruno Haible  <bruno@clisp.org>
19856
19857         Tests for module 'mbmemcasecmp'.
19858         * modules/mbmemcasecmp-tests: New file.
19859         * tests/test-mbmemcasecmp1.sh: New file.
19860         * tests/test-mbmemcasecmp2.sh: New file.
19861         * tests/test-mbmemcasecmp3.sh: New file.
19862         * tests/test-mbmemcasecmp.c: New file.
19863
19864         New module 'mbmemcasecmp'.
19865         * lib/mbmemcasecmp.h: New file.
19866         * lib/mbmemcasecmp.c: New file.
19867         * modules/mbmemcasecmp: New file.
19868
19869 2009-03-09  Bruno Haible  <bruno@clisp.org>
19870
19871         Tests for module 'unicase/ulc-casecoll'.
19872         * modules/unicase/ulc-casecoll-tests: New file.
19873         * tests/unicase/test-ulc-casecoll1.sh: New file.
19874         * tests/unicase/test-ulc-casecoll2.sh: New file.
19875         * tests/unicase/test-ulc-casecoll.c: New file.
19876
19877         New module 'unicase/ulc-casecoll'.
19878         * lib/unicase.h (ulc_casecoll): New declaration.
19879         * lib/unicase/ulc-casecoll.c: New file.
19880         * modules/unicase/ulc-casecoll: New file.
19881
19882         New module 'unicase/ulc-casexfrm'.
19883         * lib/unicase.h (ulc_casexfrm): New declaration.
19884         * lib/unicase/ulc-casexfrm.c: New file.
19885         * modules/unicase/ulc-casexfrm: New file.
19886
19887 2009-03-09  Bruno Haible  <bruno@clisp.org>
19888
19889         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19890         invocations.
19891
19892         * m4/mbscasecmp.m4: Remove file.
19893         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19894         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19895
19896         * m4/mbscasestr.m4: Remove file.
19897         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19898         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19899
19900         * m4/mbschr.m4: Remove file.
19901         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19902         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19903
19904         * m4/mbscspn.m4: Remove file.
19905         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19906         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19907
19908         * m4/mbslen.m4: Remove file.
19909         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19910         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19911
19912         * m4/mbsncasecmp.m4: Remove file.
19913         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19914         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19915
19916         * m4/mbsnlen.m4: Remove file.
19917         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19918         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19919
19920         * m4/mbspbrk.m4: Remove file.
19921         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19922         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19923
19924         * m4/mbspcasecmp.m4: Remove file.
19925         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19926         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19927
19928         * m4/mbsrchr.m4: Remove file.
19929         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19930         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19931
19932         * m4/mbssep.m4: Remove file.
19933         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19934         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19935
19936         * m4/mbsspn.m4: Remove file.
19937         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19938         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19939
19940         * m4/mbsstr.m4: Remove file.
19941         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19942         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19943
19944         * m4/mbstok_r.m4: Remove file.
19945         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19946         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19947
19948         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19949
19950         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19951         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19952
19953         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19954
19955 2009-03-08  Bruno Haible  <bruno@clisp.org>
19956
19957         Tests for module 'unicase/ulc-casecmp'.
19958         * modules/unicase/ulc-casecmp-tests: New file.
19959         * tests/unicase/test-ulc-casecmp1.sh: New file.
19960         * tests/unicase/test-ulc-casecmp2.sh: New file.
19961         * tests/unicase/test-ulc-casecmp.c: New file.
19962
19963         New module 'unicase/ulc-casecmp'.
19964         * lib/unicase.h (ulc_casecmp): New declaration.
19965         * lib/unicase/ulc-casecmp.c: New file.
19966         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19967         'const SRC_UNIT *'.
19968         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19969         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19970         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19971         * modules/unicase/ulc-casecmp: New file.
19972
19973         Tests for module 'unicase/u32-is-cased'.
19974         * modules/unicase/u32-is-cased-tests: New file.
19975         * tests/unicase/test-u32-is-cased.c: New file.
19976
19977         Tests for module 'unicase/u16-is-cased'.
19978         * modules/unicase/u16-is-cased-tests: New file.
19979         * tests/unicase/test-u16-is-cased.c: New file.
19980
19981         Tests for module 'unicase/u8-is-cased'.
19982         * modules/unicase/u8-is-cased-tests: New file.
19983         * tests/unicase/test-u8-is-cased.c: New file.
19984         * tests/unicase/test-is-cased.h: New file.
19985
19986         New module 'unicase/u32-is-cased'.
19987         * lib/unicase/u32-is-cased.c: New file.
19988         * modules/unicase/u32-is-cased: New file.
19989
19990         New module 'unicase/u16-is-cased'.
19991         * lib/unicase/u16-is-cased.c: New file.
19992         * modules/unicase/u16-is-cased: New file.
19993
19994         New module 'unicase/u8-is-cased'.
19995         * lib/unicase/u8-is-cased.c: New file.
19996         * lib/unicase/u-is-cased.h: New file.
19997         * modules/unicase/u8-is-cased: New file.
19998
19999         Tests for module 'unicase/u32-is-casefolded'.
20000         * modules/unicase/u32-is-casefolded-tests: New file.
20001         * tests/unicase/test-u32-is-casefolded.c: New file.
20002
20003         Tests for module 'unicase/u16-is-casefolded'.
20004         * modules/unicase/u16-is-casefolded-tests: New file.
20005         * tests/unicase/test-u16-is-casefolded.c: New file.
20006
20007         Tests for module 'unicase/u8-is-casefolded'.
20008         * modules/unicase/u8-is-casefolded-tests: New file.
20009         * tests/unicase/test-u8-is-casefolded.c: New file.
20010         * tests/unicase/test-is-casefolded.h: New file.
20011
20012         New module 'unicase/u32-is-casefolded'.
20013         * lib/unicase/u32-is-casefolded.c: New file.
20014         * modules/unicase/u32-is-casefolded: New file.
20015
20016         New module 'unicase/u16-is-casefolded'.
20017         * lib/unicase/u16-is-casefolded.c: New file.
20018         * modules/unicase/u16-is-casefolded: New file.
20019
20020         New module 'unicase/u8-is-casefolded'.
20021         * lib/unicase/u8-is-casefolded.c: New file.
20022         * modules/unicase/u8-is-casefolded: New file.
20023
20024         Tests for module 'unicase/u32-is-titlecase'.
20025         * modules/unicase/u32-is-titlecase-tests: New file.
20026         * tests/unicase/test-u32-is-titlecase.c: New file.
20027
20028         Tests for module 'unicase/u16-is-titlecase'.
20029         * modules/unicase/u16-is-titlecase-tests: New file.
20030         * tests/unicase/test-u16-is-titlecase.c: New file.
20031
20032         Tests for module 'unicase/u8-is-titlecase'.
20033         * modules/unicase/u8-is-titlecase-tests: New file.
20034         * tests/unicase/test-u8-is-titlecase.c: New file.
20035         * tests/unicase/test-is-titlecase.h: New file.
20036
20037         New module 'unicase/u32-is-titlecase'.
20038         * lib/unicase/u32-is-titlecase.c: New file.
20039         * modules/unicase/u32-is-titlecase: New file.
20040
20041         New module 'unicase/u16-is-titlecase'.
20042         * lib/unicase/u16-is-titlecase.c: New file.
20043         * modules/unicase/u16-is-titlecase: New file.
20044
20045         New module 'unicase/u8-is-titlecase'.
20046         * lib/unicase/u8-is-titlecase.c: New file.
20047         * modules/unicase/u8-is-titlecase: New file.
20048
20049         Tests for module 'unicase/u32-is-lowercase'.
20050         * modules/unicase/u32-is-lowercase-tests: New file.
20051         * tests/unicase/test-u32-is-lowercase.c: New file.
20052
20053         Tests for module 'unicase/u16-is-lowercase'.
20054         * modules/unicase/u16-is-lowercase-tests: New file.
20055         * tests/unicase/test-u16-is-lowercase.c: New file.
20056
20057         Tests for module 'unicase/u8-is-lowercase'.
20058         * modules/unicase/u8-is-lowercase-tests: New file.
20059         * tests/unicase/test-u8-is-lowercase.c: New file.
20060         * tests/unicase/test-is-lowercase.h: New file.
20061
20062         New module 'unicase/u32-is-lowercase'.
20063         * lib/unicase/u32-is-lowercase.c: New file.
20064         * modules/unicase/u32-is-lowercase: New file.
20065
20066         New module 'unicase/u16-is-lowercase'.
20067         * lib/unicase/u16-is-lowercase.c: New file.
20068         * modules/unicase/u16-is-lowercase: New file.
20069
20070         New module 'unicase/u8-is-lowercase'.
20071         * lib/unicase/u8-is-lowercase.c: New file.
20072         * modules/unicase/u8-is-lowercase: New file.
20073
20074         Tests for module 'unicase/u32-is-uppercase'.
20075         * modules/unicase/u32-is-uppercase-tests: New file.
20076         * tests/unicase/test-u32-is-uppercase.c: New file.
20077
20078         Tests for module 'unicase/u16-is-uppercase'.
20079         * modules/unicase/u16-is-uppercase-tests: New file.
20080         * tests/unicase/test-u16-is-uppercase.c: New file.
20081
20082         Tests for module 'unicase/u8-is-uppercase'.
20083         * modules/unicase/u8-is-uppercase-tests: New file.
20084         * tests/unicase/test-u8-is-uppercase.c: New file.
20085         * tests/unicase/test-is-uppercase.h: New file.
20086
20087         New module 'unicase/u32-is-uppercase'.
20088         * lib/unicase/u32-is-uppercase.c: New file.
20089         * modules/unicase/u32-is-uppercase: New file.
20090
20091         New module 'unicase/u16-is-uppercase'.
20092         * lib/unicase/u16-is-uppercase.c: New file.
20093         * modules/unicase/u16-is-uppercase: New file.
20094
20095         New module 'unicase/u8-is-uppercase'.
20096         * lib/unicase/u8-is-uppercase.c: New file.
20097         * modules/unicase/u8-is-uppercase: New file.
20098
20099         New module 'unicase/u32-is-invariant'.
20100         * lib/unicase/u32-is-invariant.c: New file.
20101         * modules/unicase/u32-is-invariant: New file.
20102
20103         New module 'unicase/u16-is-invariant'.
20104         * lib/unicase/u16-is-invariant.c: New file.
20105         * modules/unicase/u16-is-invariant: New file.
20106
20107         New module 'unicase/u8-is-invariant'.
20108         * lib/unicase/u8-is-invariant.c: New file.
20109         * lib/unicase/invariant.h: New file.
20110         * lib/unicase/u-is-invariant.h: New file.
20111         * modules/unicase/u8-is-invariant: New file.
20112
20113         Tests for module 'unicase/u32-casecoll'.
20114         * modules/unicase/u32-casecoll-tests: New file.
20115         * tests/unicase/test-u32-casecoll.c: New file.
20116
20117         Tests for module 'unicase/u16-casecoll'.
20118         * modules/unicase/u16-casecoll-tests: New file.
20119         * tests/unicase/test-u16-casecoll.c: New file.
20120
20121         Tests for module 'unicase/u8-casecoll'.
20122         * modules/unicase/u8-casecoll-tests: New file.
20123         * tests/unicase/test-u8-casecoll.c: New file.
20124
20125         New module 'unicase/u32-casecoll'.
20126         * lib/unicase/u32-casecoll.c: New file.
20127         * modules/unicase/u32-casecoll: New file.
20128
20129         New module 'unicase/u16-casecoll'.
20130         * lib/unicase/u16-casecoll.c: New file.
20131         * modules/unicase/u16-casecoll: New file.
20132
20133         New module 'unicase/u8-casecoll'.
20134         * lib/unicase/u8-casecoll.c: New file.
20135         * lib/unicase/u-casecoll.h: New file.
20136         * modules/unicase/u8-casecoll: New file.
20137
20138         New module 'unicase/u32-casexfrm'.
20139         * lib/unicase/u32-casexfrm.c: New file.
20140         * modules/unicase/u32-casexfrm: New file.
20141
20142         New module 'unicase/u16-casexfrm'.
20143         * lib/unicase/u16-casexfrm.c: New file.
20144         * modules/unicase/u16-casexfrm: New file.
20145
20146         New module 'unicase/u8-casexfrm'.
20147         * lib/unicase/u8-casexfrm.c: New file.
20148         * lib/unicase/u-casexfrm.h: New file.
20149         * modules/unicase/u8-casexfrm: New file.
20150
20151         Tests for module 'unicase/u32-casecmp'.
20152         * modules/unicase/u32-casecmp-tests: New file.
20153         * tests/unicase/test-u32-casecmp.c: New file.
20154
20155         Tests for module 'unicase/u16-casecmp'.
20156         * modules/unicase/u16-casecmp-tests: New file.
20157         * tests/unicase/test-u16-casecmp.c: New file.
20158
20159         Tests for module 'unicase/u8-casecmp'.
20160         * modules/unicase/u8-casecmp-tests: New file.
20161         * tests/unicase/test-u8-casecmp.c: New file.
20162         * tests/unicase/test-casecmp.h: New file.
20163
20164         New module 'unicase/u32-casecmp'.
20165         * lib/unicase/u32-casecmp.c: New file.
20166         * modules/unicase/u32-casecmp: New file.
20167
20168         New module 'unicase/u16-casecmp'.
20169         * lib/unicase/u16-casecmp.c: New file.
20170         * modules/unicase/u16-casecmp: New file.
20171
20172         New module 'unicase/u8-casecmp'.
20173         * lib/unicase/u8-casecmp.c: New file.
20174         * lib/unicase/u-casecmp.h: New file.
20175         * modules/unicase/u8-casecmp: New file.
20176
20177         Tests for module 'unicase/u32-casefold'.
20178         * modules/unicase/u32-casefold-tests: New file.
20179         * tests/unicase/test-u32-casefold.c: New file.
20180
20181         Tests for module 'unicase/u16-casefold'.
20182         * modules/unicase/u16-casefold-tests: New file.
20183         * tests/unicase/test-u16-casefold.c: New file.
20184
20185         Tests for module 'unicase/u8-casefold'.
20186         * modules/unicase/u8-casefold-tests: New file.
20187         * tests/unicase/test-u8-casefold.c: New file.
20188
20189         New module 'unicase/u32-casefold'.
20190         * lib/unicase/u32-casefold.c: New file.
20191         * modules/unicase/u32-casefold: New file.
20192
20193         New module 'unicase/u16-casefold'.
20194         * lib/unicase/u16-casefold.c: New file.
20195         * modules/unicase/u16-casefold: New file.
20196
20197         New module 'unicase/u8-casefold'.
20198         * lib/unicase/u8-casefold.c: New file.
20199         * lib/unicase/u-casefold.h: New file.
20200         * modules/unicase/u8-casefold: New file.
20201
20202         New module 'unicase/tocasefold'.
20203         * lib/unicase/casefold.h: New file.
20204         * lib/unicase/tocasefold.c: New file.
20205         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20206         * modules/unicase/tocasefold: New file.
20207
20208         Tests for module 'unicase/u32-totitle'.
20209         * modules/unicase/u32-totitle-tests: New file.
20210         * tests/unicase/test-u32-totitle.c: New file.
20211
20212         Tests for module 'unicase/u16-totitle'.
20213         * modules/unicase/u16-totitle-tests: New file.
20214         * tests/unicase/test-u16-totitle.c: New file.
20215
20216         Tests for module 'unicase/u8-totitle'.
20217         * modules/unicase/u8-totitle-tests: New file.
20218         * tests/unicase/test-u8-totitle.c: New file.
20219
20220         New module 'unicase/u32-totitle'.
20221         * lib/unicase/u32-totitle.c: New file.
20222         * modules/unicase/u32-totitle: New file.
20223
20224         New module 'unicase/u16-totitle'.
20225         * lib/unicase/u16-totitle.c: New file.
20226         * modules/unicase/u16-totitle: New file.
20227
20228         New module 'unicase/u8-totitle'.
20229         * lib/unicase/u8-totitle.c: New file.
20230         * lib/unicase/u-totitle.h: New file.
20231         * modules/unicase/u8-totitle: New file.
20232
20233         Tests for module 'unicase/u32-tolower'.
20234         * modules/unicase/u32-tolower-tests: New file.
20235         * tests/unicase/test-u32-tolower.c: New file.
20236
20237         Tests for module 'unicase/u16-tolower'.
20238         * modules/unicase/u16-tolower-tests: New file.
20239         * tests/unicase/test-u16-tolower.c: New file.
20240
20241         Tests for module 'unicase/u8-tolower'.
20242         * modules/unicase/u8-tolower-tests: New file.
20243         * tests/unicase/test-u8-tolower.c: New file.
20244
20245         New module 'unicase/u32-tolower'.
20246         * lib/unicase/u32-tolower.c: New file.
20247         * modules/unicase/u32-tolower: New file.
20248
20249         New module 'unicase/u16-tolower'.
20250         * lib/unicase/u16-tolower.c: New file.
20251         * modules/unicase/u16-tolower: New file.
20252
20253         New module 'unicase/u8-tolower'.
20254         * lib/unicase/u8-tolower.c: New file.
20255         * modules/unicase/u8-tolower: New file.
20256
20257         Tests for module 'unicase/u32-toupper'.
20258         * modules/unicase/u32-toupper-tests: New file.
20259         * tests/unicase/test-u32-toupper.c: New file.
20260
20261         Tests for module 'unicase/u16-toupper'.
20262         * modules/unicase/u16-toupper-tests: New file.
20263         * tests/unicase/test-u16-toupper.c: New file.
20264
20265         Tests for module 'unicase/u8-toupper'.
20266         * modules/unicase/u8-toupper-tests: New file.
20267         * tests/unicase/test-u8-toupper.c: New file.
20268
20269         New module 'unicase/u32-toupper'.
20270         * lib/unicase/u32-toupper.c: New file.
20271         * modules/unicase/u32-toupper: New file.
20272
20273         New module 'unicase/u16-toupper'.
20274         * lib/unicase/u16-toupper.c: New file.
20275         * modules/unicase/u16-toupper: New file.
20276
20277         New module 'unicase/u8-toupper'.
20278         * lib/unicase/u8-toupper.c: New file.
20279         * modules/unicase/u8-toupper: New file.
20280
20281         New module 'unicase/u32-casemap'.
20282         * lib/unicase/u32-casemap.c: New file.
20283         * modules/unicase/u32-casemap: New file.
20284
20285         New module 'unicase/u16-casemap'.
20286         * lib/unicase/u16-casemap.c: New file.
20287         * modules/unicase/u16-casemap: New file.
20288
20289         New module 'unicase/u8-casemap'.
20290         * lib/unicase/unicasemap.h: New file.
20291         * lib/unicase/u8-casemap.c: New file.
20292         * lib/unicase/u-casemap.h: New file.
20293         * modules/unicase/u8-casemap: New file.
20294
20295         New module 'unicase/special-casing'.
20296         * lib/unicase/special-casing.h: New file.
20297         * lib/unicase/special-casing.c: New file.
20298         * lib/unicase/special-casing-table.gperf: New file, generated by
20299         gen-uni-tables.c.
20300         * modules/unicase/special-casing: New file.
20301
20302         Tests for module 'unicase/locale-language'.
20303         * modules/unicase/locale-language-tests: New file.
20304         * tests/unicase/test-locale-language.sh: New file.
20305         * tests/unicase/test-locale-language.c: New file.
20306
20307         New module 'unicase/locale-language'.
20308         * lib/unicase/locale-language.c: New file.
20309         * lib/unicase/locale-languages.gperf: New file.
20310         * modules/unicase/locale-language: New file.
20311
20312         Generate more tables for case conversion and case folding.
20313         * lib/gen-uni-tables.c (SCC_*): New enum items.
20314         (struct special_casing_rule): New type.
20315         (casing_rules, num_casing_rules, allocated_casing_rules): New
20316         variables.
20317         (add_casing_rule, fill_casing_rules): New functions.
20318         (struct casefold_rule): New type.
20319         (casefolding_rules, num_casefolding_rules,
20320         allocated_casefolding_rules): New variables.
20321         (fill_casefolding_rules): New function.
20322         (unicode_casefold): New variable.
20323         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20324         sort_casing_rules, output_casing_rules): New functions.
20325         (main): Accept to more arguments: SpecialCasing.txt and
20326         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20327         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20328         Output mapping for casefolding.
20329
20330         * lib/unicase.h: Include stdbool.h, uninorm.h.
20331         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20332         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20333         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20334         arguments.
20335         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20336         resultp arguments.
20337         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20338         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20339         resultp arguments.
20340         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20341         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20342         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20343         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20344         declarations.
20345         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20346
20347 2009-03-08  Bruno Haible  <bruno@clisp.org>
20348
20349         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20350         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20351         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20352         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20353
20354 2009-03-07  Bruno Haible  <bruno@clisp.org>
20355
20356         Adjust u*_normcmp, u*_normcoll API.
20357         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20358         u16_normcoll, u32_normcoll): Change failure conventions.
20359         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20360         errno and return -1.
20361         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20362
20363 2009-03-07  Bruno Haible  <bruno@clisp.org>
20364
20365         Tests for module 'uninorm/u32-normcoll'.
20366         * modules/uninorm/u32-normcoll-tests: New file.
20367         * tests/uninorm/test-u32-normcoll.c: New file.
20368
20369         Tests for module 'uninorm/u16-normcoll'.
20370         * modules/uninorm/u16-normcoll-tests: New file.
20371         * tests/uninorm/test-u16-normcoll.c: New file.
20372
20373         Tests for module 'uninorm/u8-normcoll'.
20374         * modules/uninorm/u8-normcoll-tests: New file.
20375         * tests/uninorm/test-u8-normcoll.c: New file.
20376
20377 2009-03-07  Bruno Haible  <bruno@clisp.org>
20378
20379         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20380         tests/uninorm/test-u32-normcmp.c.
20381         * tests/uninorm/test-u32-normcmp.c: Include it.
20382         (test_nonascii): New function, extracted from main. Add some more
20383         tests.
20384         (main): Invoke test_ascii and test_nonascii.
20385         * modules/uninorm/u32-normcmp-tests (Files): Add
20386         tests/uninorm/test-u32-normcmp.h.
20387         (Depends-on): Remove uninorm/u32-normcmp.
20388
20389         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20390         tests/uninorm/test-u16-normcmp.c.
20391         * tests/uninorm/test-u16-normcmp.c: Include it.
20392         (test_nonascii): New function, extracted from main. Add some more
20393         tests.
20394         (main): Invoke test_ascii and test_nonascii.
20395         * modules/uninorm/u16-normcmp-tests (Files): Add
20396         tests/uninorm/test-u16-normcmp.h.
20397         (Depends-on): Remove uninorm/u16-normcmp.
20398
20399         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20400         tests/uninorm/test-u8-normcmp.c.
20401         * tests/uninorm/test-u8-normcmp.c: Include it.
20402         (test_nonascii): New function, extracted from main. Add some more
20403         tests.
20404         (main): Invoke test_ascii and test_nonascii.
20405         * modules/uninorm/u8-normcmp-tests (Files): Add
20406         tests/uninorm/test-u8-normcmp.h.
20407         (Depends-on): Remove uninorm/u8-normcmp.
20408
20409 2009-03-07  Bruno Haible  <bruno@clisp.org>
20410
20411         New module 'uninorm/u32-normcoll'.
20412         * lib/uninorm/u32-normcoll.c: New file.
20413         * modules/uninorm/u32-normcoll: New file.
20414
20415         New module 'uninorm/u16-normcoll'.
20416         * lib/uninorm/u16-normcoll.c: New file.
20417         * modules/uninorm/u16-normcoll: New file.
20418
20419         New module 'uninorm/u8-normcoll'.
20420         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20421         declarations.
20422         * lib/uninorm/u8-normcoll.c: New file.
20423         * lib/uninorm/u-normcoll.h: New file.
20424         * modules/uninorm/u8-normcoll: New file.
20425
20426         New module 'uninorm/u32-normxfrm'.
20427         * lib/uninorm/u32-normxfrm.c: New file.
20428         * modules/uninorm/u32-normxfrm: New file.
20429
20430         New module 'uninorm/u16-normxfrm'.
20431         * lib/uninorm/u16-normxfrm.c: New file.
20432         * modules/uninorm/u16-normxfrm: New file.
20433
20434         New module 'uninorm/u8-normxfrm'.
20435         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20436         declarations.
20437         * lib/uninorm/u8-normxfrm.c: New file.
20438         * lib/uninorm/u-normxfrm.h: New file.
20439         * modules/uninorm/u8-normxfrm: New file.
20440
20441 2009-03-07  Bruno Haible  <bruno@clisp.org>
20442
20443         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20444         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20445         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20446
20447 2009-03-07  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'memxfrm'.
20450         * lib/memxfrm.h: New file.
20451         * lib/memxfrm.c: New file.
20452         * modules/memxfrm: New file.
20453
20454 2009-03-07  Bruno Haible  <bruno@clisp.org>
20455
20456         New module 'memcmp2'.
20457         * lib/memcmp2.h: New file.
20458         * lib/memcmp2.c: New file.
20459         * modules/memcmp2: New file.
20460
20461 2009-03-07  Bruno Haible  <bruno@clisp.org>
20462
20463         Tests for module 'uninorm/decomposing-form'.
20464         * modules/uninorm/decomposing-form-tests: New file.
20465         * tests/uninorm/test-decomposing-form.c: New file.
20466
20467         New module 'uninorm/decomposing-form'.
20468         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20469         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20470         Add 'decomposing_variant' field.
20471         * lib/uninorm/decomposing-form.c: New file.
20472         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20473         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20474         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20475         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20476         * modules/uninorm/decomposing-form: New file.
20477         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20478         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20479
20480 2009-03-07  Bruno Haible  <bruno@clisp.org>
20481
20482         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20483         strings.
20484
20485 2009-03-06  Bruno Haible  <bruno@clisp.org>
20486
20487         Tests for module 'uninorm/u32-normcmp'.
20488         * tests/uninorm/test-u32-normcmp.c: New file.
20489         * modules/uninorm/u32-normcmp-tests: New file.
20490
20491         Tests for module 'uninorm/u16-normcmp'.
20492         * tests/uninorm/test-u16-normcmp.c: New file.
20493         * modules/uninorm/u16-normcmp-tests: New file.
20494
20495         Tests for module 'uninorm/u8-normcmp'.
20496         * tests/uninorm/test-u8-normcmp.c: New file.
20497         * modules/uninorm/u8-normcmp-tests: New file.
20498
20499         New module 'uninorm/u32-normcmp'.
20500         * lib/uninorm/u32-normcmp.c: New file.
20501         * modules/uninorm/u32-normcmp: New file.
20502
20503         New module 'uninorm/u16-normcmp'.
20504         * lib/uninorm/u16-normcmp.c: New file.
20505         * modules/uninorm/u16-normcmp: New file.
20506
20507         New module 'uninorm/u8-normcmp'.
20508         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20509         declarations.
20510         * lib/uninorm/u8-normcmp.c: New file.
20511         * lib/uninorm/u-normcmp.h: New file.
20512         * modules/uninorm/u8-normcmp: New file.
20513
20514 2009-03-06  Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20517         Reported by Eric Blake.
20518
20519 2009-03-06  Eric Blake  <ebb9@byu.net>
20520             Bruno Haible  <bruno@clisp.org>
20521
20522         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20523         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20524         condition.
20525         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20526         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20527         condition.
20528         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20529
20530 2009-03-06  Eric Blake  <ebb9@byu.net>
20531
20532         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20533         to avoid compiler warnings.
20534         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20535
20536 2009-03-05  Bruno Haible  <bruno@clisp.org>
20537
20538         * tests/test-ftell.c (main): Disable test beyond end of file on
20539         FreeMiNT.
20540         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20541
20542 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20543
20544         * lib/filevercmp.c: Move hidden files up in ordering.
20545         * tests/test-filevercmp.c: Add tests for hidden files.
20546
20547 2009-03-04  Bruno Haible  <bruno@clisp.org>
20548
20549         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20550         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20551         AM_CFLAGS.
20552         Reported by Simon Josefsson.
20553
20554 2009-03-03  Bruno Haible  <bruno@clisp.org>
20555
20556         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20557         Reported by Simon Josefsson.
20558
20559         * doc/ld-version-script.texi: Update node reference.
20560
20561 2009-03-03  Bruno Haible  <bruno@clisp.org>
20562
20563         * modules/visibility (License): Change to 'unlimited'.
20564         Suggested by Simon Josefsson.
20565
20566 2009-03-03  Jim Meyering  <meyering@redhat.com>
20567
20568         unlinkdir: cannot_unlink_dir may modify process state
20569         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20570         it's neither thread-safe nor appropriate for use in a library.
20571
20572 2009-03-03  Eric Blake  <ebb9@byu.net>
20573
20574         test-closein: silence test under Darwin
20575         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20576         care if it dies from EPIPE or EBADF.
20577
20578 2009-03-03  Bruno Haible  <bruno@clisp.org>
20579
20580         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20581         earlier.
20582         * doc/visibility.texi: Fix @node and @section.
20583
20584 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20585
20586         * doc/gnulib.texi: Link to sections for ld version script and
20587         visibility.
20588         * doc/visibility.texi: Add @node and @section.
20589         * modules/ld-version-script: New module.
20590         * m4/ld-version-script.m4: New file.
20591         * doc/ld-version-script.texi: New file.
20592
20593 2009-03-02  David Lutterkort  <lutter@redhat.com>
20594
20595         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20597
20598 2009-03-02  Bruno Haible  <bruno@clisp.org>
20599
20600         * doc/visibility.texi: Mention libtool's -export-symbols option.
20601
20602 2009-03-02  Jim Meyering  <meyering@redhat.com>
20603
20604         announce-gen: new option: --no-print-checksums
20605         * build-aux/announce-gen (usage): Describe it.
20606         (print_checksums): Print a newline here, not in the [*] footnote.
20607         (main): Honor it.
20608
20609 2009-03-01  Bruno Haible  <bruno@clisp.org>
20610
20611         Use socklen_t in the native Windows replacements prototypes.
20612         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20613         instead of 'int'.
20614         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20615         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20616         * modules/getsockopt (Depends-on): Add socklen.
20617         * modules/setsockopt (Depends-on): Add socklen.
20618
20619 2009-03-01  Bruno Haible  <bruno@clisp.org>
20620
20621         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20622         least 4.2.
20623
20624 2009-03-01  Eric Blake  <ebb9@byu.net>
20625             Bruno Haible  <bruno@clisp.org>
20626
20627         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20628         error messages.
20629         * lib/wait-process.c (wait_subprocess): Omit error message about
20630         deadly signal sent to the child of termsigp != NULL.
20631
20632 2009-03-01  Eric Blake  <ebb9@byu.net>
20633
20634         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20635
20636 2009-03-01  Bruno Haible  <bruno@clisp.org>
20637
20638         Avoid a gcc warning.
20639         * tests/test-sched.c (b): Make global.
20640         Reported by Eric Blake.
20641
20642 2009-01-19  Martin Lambers  <marlam@marlam.de>
20643
20644         Provide POSIX semantics for socket timeout options on W32.
20645         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20646         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20647         * modules/setsockopt: Depend on sys_time module for struct timeval.
20648         * modules/getsockopt: Depend on sys_time module for struct timeval.
20649
20650 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20651
20652         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20653         __USE_GNU, for consistency with netdb.in.h.
20654         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20655
20656 2009-03-01  Bruno Haible  <bruno@clisp.org>
20657
20658         More support for FreeMiNT.
20659         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20660         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20661
20662 2009-03-01  Bruno Haible  <bruno@clisp.org>
20663
20664         More support for FreeMiNT.
20665         * lib/fpurge.c (fpurge): Correct last commit.
20666         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20667
20668 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20669
20670         Fix unportable awk script in vc-list-files.
20671         * build-aux/vc-list-files: In the replacement awk script, use
20672         substr with a second argument of 1, not zero.
20673         Report by Simon Josefsson.
20674
20675 2009-02-28  Bruno Haible  <bruno@clisp.org>
20676
20677         More support for FreeMiNT.
20678         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20679         to FreeMiNT today.
20680         * lib/fwriting.c (fwriting): Likewise.
20681         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20682
20683 2009-02-28  Bruno Haible  <bruno@clisp.org>
20684
20685         * tests/test-freadseek.c (main): Disable test beyond end of file on
20686         FreeMiNT.
20687         * tests/test-ftello.c (main): Likewise.
20688         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20689
20690 2009-02-28  Bruno Haible  <bruno@clisp.org>
20691
20692         Add tentative support for FreeMiNT.
20693         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20694         * lib/fpurge.c (fpurge): Likewise.
20695         * lib/freadable.c (freadable): Likewise.
20696         * lib/freading.c (freading): Likewise.
20697         * lib/freadptr.c (freadptr): Likewise.
20698         * lib/freadseek.c (freadptrinc): Likewise.
20699         * lib/fseeko.c (rpl_fseeko): Likewise.
20700         * lib/fseterr.c (fseterr): Likewise.
20701         * lib/fwritable.c (fwritable): Likewise.
20702         * lib/fwriting.c (fwriting): Likewise.
20703         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20704         Hourihane.
20705         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20706
20707 2009-02-28  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20710         SIGCHLD.
20711         Reported by Jim Meyering.
20712
20713 2009-02-28  Bruno Haible  <bruno@clisp.org>
20714
20715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20716         Mention the results of these tests on various platforms.
20717         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20718         order.
20719         * doc/posix-functions/printf.texi: Likewise.
20720         * doc/posix-functions/snprintf.texi: Likewise.
20721         * doc/posix-functions/sprintf.texi: Likewise.
20722         * doc/posix-functions/vfprintf.texi: Likewise.
20723         * doc/posix-functions/vprintf.texi: Likewise.
20724         * doc/posix-functions/vsnprintf.texi: Likewise.
20725         * doc/posix-functions/vsprintf.texi: Likewise.
20726         * doc/glibc-functions/obstack_printf.texi: Likewise.
20727         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20728
20729 2009-02-28  Bruno Haible  <bruno@clisp.org>
20730
20731         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20732         Reported by Loïc Minier <lool@dooz.org>.
20733
20734 2009-02-27  Bruno Haible  <bruno@clisp.org>
20735
20736         * gnulib-tool (func_import): Make the sed expression used to create the
20737         sed script for updating the .gitignore file POSIX compliant.
20738         Reported by Eric Blake.
20739
20740 2009-02-27  Bruno Haible  <bruno@clisp.org>
20741
20742         * gnulib-tool (sed): Don't alias as "sed --posix".
20743         Reported by Eric Blake.
20744
20745 2009-02-27  Bruno Haible  <bruno@clisp.org>
20746
20747         Avoid test link errors.
20748         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20749         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20750         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20751         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20753
20754 2009-02-27  Bruno Haible  <bruno@clisp.org>
20755
20756         Avoid spurious "(cached)" in configure output.
20757         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20758         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20760         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20761         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20762         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20763         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20764         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20765         Reported by Eric Blake.
20766
20767 2009-02-27  Eric Blake  <ebb9@byu.net>
20768
20769         printf: fix regression in previous patch
20770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20771
20772 2009-02-27  Bruno Haible  <bruno@clisp.org>
20773
20774         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20775         value.
20776         * lib/stdint.in.h: Likewise.
20777         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20778
20779 2009-02-27  Eric Blake  <ebb9@byu.net>
20780
20781         doc: mention more functions added in cygwin 1.7.0
20782         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20783         addition.
20784         * doc/posix-functions/open_wmemstream.texi: Likewise.
20785         * doc/posix-functions/wcsnlen.texi: Likewise.
20786         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20787         * doc/posix-functions/wcstod.texi: Likewise.
20788         * doc/posix-functions/wcstof.texi: Likewise.
20789         * doc/posix-functions/wcstoimax.texi: Likewise.
20790         * doc/posix-functions/wcstok.texi: Likewise.
20791         * doc/posix-functions/wcstoumax.texi: Likewise.
20792
20793         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20794         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20795         * doc/posix-functions/fprintf.texi: Update.
20796         * doc/posix-functions/printf.texi: Update.
20797         * doc/posix-functions/snprintf.texi: Update.
20798         * doc/posix-functions/sprintf.texi: Update.
20799         * doc/posix-functions/vfprintf.texi: Update.
20800         * doc/posix-functions/vprintf.texi: Update.
20801         * doc/posix-functions/vsnprintf.texi: Update.
20802         * doc/posix-functions/vsprintf.texi: Update.
20803         * doc/glibc-functions/obstack_printf.texi: Update.
20804         * doc/glibc-functions/obstack_vprintf.texi: Update.
20805
20806 2009-02-26  Eric Blake  <ebb9@byu.net>
20807
20808         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20809         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20810         compilation bug by using runtime conversion.
20811         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20812         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20813         * modules/ceill-tests (Files): Use nan.h.
20814         * modules/floorl-tests (Files): Likewise.
20815         * modules/frexpl-tests (Files): Likewise.
20816         * modules/isnanl-tests (Files): Likewise.
20817         * modules/ldexpl-tests (Files): Likewise.
20818         * modules/roundl-tests (Files): Likewise.
20819         * modules/truncl-tests (Files): Likewise.
20820         * tests/test-ceill.c (main): Use a working NaN.
20821         * tests/test-floorl.c (main): Likewise.
20822         * tests/test-frexpl.c (main): Likewise.
20823         * tests/test-isnan.c (test_long_double): Likewise.
20824         * tests/test-isnanl.h (main): Likewise.
20825         * tests/test-ldexpl.h (main): Likewise.
20826         * tests/test-roundl.h (main): Likewise.
20827         * tests/test-truncl.h (main): Likewise.
20828         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20829
20830 2009-02-26  Eric Blake  <ebb9@byu.net>
20831             Bruno Haible  <bruno@clisp.org>
20832
20833         Work around a *printf bug with %ls on Solaris.
20834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20835         precision is specified, sprintf stops converting the wide string
20836         argument when the number of bytes that have been produced by this
20837         conversion equals or exceeds the precision.
20838         * doc/posix-functions/fprintf.texi: Update.
20839         * doc/posix-functions/printf.texi: Update.
20840         * doc/posix-functions/snprintf.texi: Update.
20841         * doc/posix-functions/sprintf.texi: Update.
20842         * doc/posix-functions/vfprintf.texi: Update.
20843         * doc/posix-functions/vprintf.texi: Update.
20844         * doc/posix-functions/vsnprintf.texi: Update.
20845         * doc/posix-functions/vsprintf.texi: Update.
20846         * doc/glibc-functions/obstack_printf.texi: Update.
20847         * doc/glibc-functions/obstack_vprintf.texi: Update.
20848
20849 2009-02-26  Eric Blake  <ebb9@byu.net>
20850
20851         stdlib: favor compiler check of random.h
20852         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20853         to avoid an ObjC random.h installed by Swarm.
20854
20855 2009-02-26  Bruno Haible  <bruno@clisp.org>
20856
20857         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20858         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20859         Reported by Gary V. Vaughan <gary@gnu.org>.
20860
20861 2009-02-26  Bruno Haible  <bruno@clisp.org>
20862
20863         Fix *printf behaviour regarding the %ls directive.
20864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20865         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20866         NEED_PRINTF_DIRECTIVE_LS.
20867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20870         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20871         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20872         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20873         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20878         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20882         * doc/posix-functions/fprintf.texi: Update.
20883         * doc/posix-functions/printf.texi: Update.
20884         * doc/posix-functions/snprintf.texi: Update.
20885         * doc/posix-functions/sprintf.texi: Update.
20886         * doc/posix-functions/vfprintf.texi: Update.
20887         * doc/posix-functions/vprintf.texi: Update.
20888         * doc/posix-functions/vsnprintf.texi: Update.
20889         * doc/posix-functions/vsprintf.texi: Update.
20890         * doc/glibc-functions/obstack_printf.texi: Update.
20891         * doc/glibc-functions/obstack_vprintf.texi: Update.
20892         Reported by Eric Blake.
20893
20894 2009-02-25  Bruno Haible  <bruno@clisp.org>
20895
20896         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20897         with known value.
20898         Reported by Gary V. Vaughan <gary@gnu.org>.
20899
20900 2009-02-25  Bruno Haible  <bruno@clisp.org>
20901
20902         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20903         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20904         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20905         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20906         Reported by Gary V. Vaughan <gary@gnu.org>.
20907
20908 2009-02-25  Bruno Haible  <bruno@clisp.org>
20909
20910         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20911         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20912         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20913         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20914         Reported by Gary V. Vaughan <gary@gnu.org>.
20915
20916 2009-02-25  Eric Blake  <ebb9@byu.net>
20917
20918         tests: skip fseek/ftell tests if ungetc is broken
20919         * m4/ungetc.m4: New file.
20920         * modules/fseek-tests: Split test, so ungetc dependency is
20921         separate from rest of test.
20922         * modules/fseeko-tests: Likewise.
20923         * modules/ftell-tests: Likewise.
20924         * modules/ftello-tests: Likewise.
20925         * tests/test-fseek.c (main): Isolate ungetc dependency.
20926         * tests/test-fseeko.c (main): Likewise.
20927         * tests/test-ftell.c (main): Likewise.
20928         * tests/test-ftello.c (main): Likewise.
20929         * tests/test-fseek2.sh: New file.
20930         * tests/test-fseeko2.sh: Likewise.
20931         * tests/test-ftell2.sh: Likewise.
20932         * tests/test-ftello2.sh: Likewise.
20933
20934 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20935
20936         test-getaddrinfo: fix usage of skip return code 77
20937         * tests/test-gettaddrinfo.c: Return skip code 77 only
20938         for first occurance of skip (4x77 is not 77)
20939
20940 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20941
20942         strtod: avoid C99 decl-after-statement
20943         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20944
20945 2009-02-24  Eric Blake  <ebb9@byu.net>
20946
20947         strtod: detect HP-UX 11.31 bug
20948         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20949         Reported by Gary V. Vaughan.
20950
20951 2009-02-23  Bruno Haible  <bruno@clisp.org>
20952
20953         Fix invalid read past end of memory block.
20954         * lib/vasnprintf.c (DCHAR_SET): Define.
20955         (local_wcslen): Define only when needed.
20956         (local_strnlen, local_wcsnlen): New functions.
20957         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20958         directives that involve a conversion ourselves.
20959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20960         wcsnlen, mbrtowc, wcrtomb.
20961         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20962         * tests/test-vasprintf-posix.c (test_function): Likewise.
20963         * tests/test-snprintf-posix.h (test_function): Likewise.
20964         * tests/test-sprintf-posix.h (test_function): Likewise.
20965         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20966
20967 2009-02-22  Bruno Haible  <bruno@clisp.org>
20968
20969         Implement new clarified decomposition of Hangul syllables.
20970         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20971         of type LTV, return only a pairwise decomposition.
20972         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20973         Likewise.
20974         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20975         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20976         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20977
20978 2009-02-22  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20981         zero-length results and shrink excess allocated memory.
20982         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20983         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20984         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20985         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20986         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20987         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20988         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20989         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20990         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20991         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20992         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20993         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20994
20995 2009-02-21  Bruno Haible  <bruno@clisp.org>
20996
20997         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20998         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20999         spaces after a period. Put a space between a macro name and its
21000         argument list. Trivial rewordings.
21001         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21002         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21003         (main): Return 0 explicitly.
21004
21005 2009-02-21  Bruno Haible  <bruno@clisp.org>
21006
21007         Tests for module 'uninorm/filter'.
21008         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21009         * modules/uninorm/filter-tests: New file.
21010
21011         New module 'uninorm/filter'.
21012         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21013         uninorm_filter_flush, uninorm_filter_free): New declarations.
21014         * lib/uninorm/uninorm-filter.c: New file.
21015         * modules/uninorm/filter: New file.
21016
21017 2009-02-21  Bruno Haible  <bruno@clisp.org>
21018
21019         Tests for module 'uninorm/nfkc'.
21020         * tests/uninorm/test-nfkc.c: New file.
21021         * tests/uninorm/test-u8-nfkc.c: New file.
21022         * tests/uninorm/test-u16-nfkc.c: New file.
21023         * tests/uninorm/test-u32-nfkc.c: New file.
21024         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21025         * tests/uninorm/test-u32-nfkc-big.c: New file.
21026         * modules/uninorm/nfkc-tests: New file.
21027
21028         New module 'uninorm/nfkc'.
21029         * lib/uninorm/nfkc.c: New file.
21030         * modules/uninorm/nfkc: New file.
21031
21032         Tests for module 'uninorm/nfkd'.
21033         * tests/uninorm/test-nfkd.c: New file.
21034         * tests/uninorm/test-u8-nfkd.c: New file.
21035         * tests/uninorm/test-u16-nfkd.c: New file.
21036         * tests/uninorm/test-u32-nfkd.c: New file.
21037         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21038         * tests/uninorm/test-u32-nfkd-big.c: New file.
21039         * modules/uninorm/nfkd-tests: New file.
21040
21041         New module 'uninorm/nfkd'.
21042         * lib/uninorm/nfkd.c: New file.
21043         * modules/uninorm/nfkd: New file.
21044
21045         Tests for module 'uninorm/nfc'.
21046         * tests/uninorm/test-nfc.c: New file.
21047         * tests/uninorm/test-u8-nfc.c: New file.
21048         * tests/uninorm/test-u16-nfc.c: New file.
21049         * tests/uninorm/test-u32-nfc.c: New file.
21050         * tests/uninorm/test-u32-nfc-big.sh: New file.
21051         * tests/uninorm/test-u32-nfc-big.c: New file.
21052         * modules/uninorm/nfc-tests: New file.
21053
21054         New module 'uninorm/nfc'.
21055         * lib/uninorm/nfc.c: New file.
21056         * modules/uninorm/nfc: New file.
21057
21058         Tests for module 'uninorm/nfd'.
21059         * tests/uninorm/test-nfd.c: New file.
21060         * tests/uninorm/test-u8-nfd.c: New file.
21061         * tests/uninorm/test-u16-nfd.c: New file.
21062         * tests/uninorm/test-u32-nfd.c: New file.
21063         * tests/uninorm/test-u32-nfd-big.sh: New file.
21064         * tests/uninorm/test-u32-nfd-big.c: New file.
21065         * tests/uninorm/test-u32-normalize-big.h: New file.
21066         * tests/uninorm/test-u32-normalize-big.c: New file.
21067         * tests/uninorm/NormalizationTest.txt: New file, created from
21068         Unicode 5.1.0 NormalizationTest.txt.
21069         * modules/uninorm/nfd-tests: New file.
21070
21071         New module 'uninorm/nfd'.
21072         * lib/uninorm/nfd.c: New file.
21073         * modules/uninorm/nfd: New file.
21074
21075         New module 'uninorm/u32-normalize'.
21076         * lib/uninorm/u32-normalize.c: New file.
21077         * modules/uninorm/u32-normalize: New file.
21078
21079         New module 'uninorm/u16-normalize'.
21080         * lib/uninorm/u16-normalize.c: New file.
21081         * modules/uninorm/u16-normalize: New file.
21082
21083         New module 'uninorm/u8-normalize'.
21084         * lib/uninorm/u8-normalize.c: New file.
21085         * lib/uninorm/normalize-internal.h: New file.
21086         * lib/uninorm/u-normalize-internal.h: New file.
21087         * modules/uninorm/u8-normalize: New file.
21088
21089         New module 'uninorm/decompose-internal'.
21090         * lib/uninorm/decompose-internal.c: New file.
21091         * modules/uninorm/decompose-internal: New file.
21092
21093         Tests for module 'uninorm/composition'.
21094         * tests/uninorm/test-composition.c: New file.
21095         * modules/uninorm/composition-tests: New file.
21096
21097         New module 'uninorm/composition'.
21098         * lib/uninorm/composition.c: New file.
21099         * lib/uninorm/composition-table.gperf: New file, generated by
21100         gen-uni-tables.
21101         * modules/uninorm/composition: New file.
21102
21103         Tests for module 'uninorm/compat-decomposition'.
21104         * tests/uninorm/test-compat-decomposition.c: New file.
21105         * modules/uninorm/compat-decomposition-tests: New file.
21106
21107         New module 'uninorm/compat-decomposition'.
21108         * lib/uninorm/decompose-internal.h: New file.
21109         * lib/uninorm/compat-decomposition.c: New file.
21110         * modules/uninorm/compat-decomposition: New file.
21111
21112         Tests for module 'uninorm/canonical-decomposition'.
21113         * tests/uninorm/test-canonical-decomposition.c: New file.
21114         * modules/uninorm/canonical-decomposition-tests: New file.
21115
21116         New module 'uninorm/canonical-decomposition'.
21117         * lib/uninorm/canonical-decomposition.c: New file.
21118         * modules/uninorm/canonical-decomposition: New file.
21119
21120         Tests for module 'uninorm/decomposition'.
21121         * tests/uninorm/test-decomposition.c: New file.
21122         * modules/uninorm/decomposition-tests: New file.
21123
21124         New module 'uninorm/decomposition'.
21125         * lib/uninorm/decomposition.c: New file.
21126         * modules/uninorm/decomposition: New file.
21127
21128         New module 'uninorm/decomposition-table'.
21129         * lib/uninorm/decomposition-table.h: New file.
21130         * lib/uninorm/decomposition-table.c: New file.
21131         * lib/uninorm/decomposition-table1.h: New file, generated by
21132         gen-uni-tables.
21133         * lib/uninorm/decomposition-table2.h: New file, generated by
21134         gen-uni-tables.
21135         * modules/uninorm/decomposition-table: New file.
21136
21137         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21138         (UC_DECOMP_*): New enumeration items.
21139         (get_decomposition): New function.
21140         (struct decomp_table): New type.
21141         (output_decomposition, output_decomposition_tables): New functions.
21142         (unicode_composition_exclusions): New variable.
21143         (fill_composition_exclusions, debug_output_composition_tables): New
21144         functions.
21145         (main): Accept one more argument. Invoke fill_composition_exclusions.
21146         Output decomposition and composition tables.
21147
21148         New module 'uninorm/base'.
21149         * lib/uninorm.h: New file.
21150         * lib/unictype.h: Update comment.
21151         * modules/uninorm/base: New file.
21152
21153 2009-02-21  David Lutterkort  <lutter@redhat.com>
21154
21155         Tests for module 'safe-alloc'.
21156         * tests/test-safe-alloc.c: New file.
21157         * modules/safe-alloc-tests: New file.
21158
21159         New module 'safe-alloc'.
21160         * lib/safe-alloc.h: New file.
21161         * lib/safe-alloc.c: New file.
21162         * m4/safe-alloc.m4: New file.
21163         * modules/safe-alloc: New file.
21164         * doc/safe-alloc.texi: New file.
21165         * doc/gnulib.texi: Include it.
21166         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21167         safe-alloc.
21168
21169 2009-02-18  Bruno Haible  <bruno@clisp.org>
21170
21171         Fix link error on non-glibc systems.
21172         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21173         variable.
21174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21175
21176 2009-02-18  Jim Meyering  <meyering@redhat.com>
21177
21178         fts: avoid used-uninitialized error due to recent change
21179         * lib/fts.c (fts_read): Guard uses of the new member,
21180         parent->fts_n_dirs_remaining, since it's not relevant for
21181         the parent of a directory specified on the command-line.
21182
21183 2009-02-17  James Youngman  <jay@gnu.org>
21184             Bruno Haible  <bruno@clisp.org>
21185
21186         * m4/include_next.m4: Reformulate comment.
21187
21188 2009-02-16  Jim Meyering  <meyering@redhat.com>
21189
21190         fts: add #if guards so that the fts_lgpl module still builds
21191         * lib/fts.c: Guard just-added hash-table-using parts with
21192         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21193         Reported by Simon Josefsson.
21194
21195 2009-02-15  Bruno Haible  <bruno@clisp.org>
21196
21197         * modules/array-mergesort-tests: New file.
21198         * tests/test-array-mergesort.c: New file.
21199
21200         New module 'array-mergesort'.
21201         * modules/array-mergesort: New file.
21202         * lib/array-mergesort.h: New file.
21203
21204 2009-02-15  Bruno Haible  <bruno@clisp.org>
21205
21206         Fix 2009-02-07 commit.
21207         * lib/gen-uni-tables.c (output_predicate, output_category,
21208         output_combclass, output_bidi_category, output_decimal_digit,
21209         output_digit, output_numeric, output_mirror, output_scripts,
21210         output_ident_category, output_simple_mapping): Fix format directives.
21211         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21212
21213 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21214
21215         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21216         fixes are available from IBM.
21217
21218 2009-02-13  Jim Meyering  <meyering@redhat.com>
21219
21220         fts: arrange not to stat non-directories in more cases
21221         This makes GNU find (when it doesn't need to stat each file)
21222         *much* more efficient at traversing reiserfs file systems.
21223         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21224         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21225         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21226         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21227         (leaf_optimization_applies): New function.
21228         (LCO_hash, LCO_compare): New helper functions.
21229         (link_count_optimize_ok): New function.
21230         (fts_stat): Initialize new member (if dir).
21231         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21232         we've just stat'ed a directory.  Skip the stat call when possible.
21233         ---
21234         Note this AFS-related exchange:
21235         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21236         and note find's pioctl call in find/fstype.c.
21237         But that is necessary only if you want to enable the
21238         optimization for AFS, and for now, I don't.
21239
21240         fts: move a function definition "up" (no semantic change)
21241         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21242         "up" to precede upcoming use of a related function.
21243
21244 2009-02-11  Jim Meyering  <meyering@redhat.com>
21245
21246         fts: correct internal computation of nlinks (optimization-related)
21247         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21248         whether the current entry is a directory, so don't test it.
21249
21250 2009-02-10  Bruno Haible  <bruno@clisp.org>
21251
21252         Tests for module 'uniwbrk/ulc-wordbreaks'.
21253         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21254         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21255         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21256
21257         Tests for module 'uniwbrk/u32-wordbreaks'.
21258         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21259         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21260
21261         Tests for module 'uniwbrk/u16-wordbreaks'.
21262         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21263         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21264
21265         Tests for module 'uniwbrk/u8-wordbreaks'.
21266         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21267         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21268
21269 2009-02-10  Bruno Haible  <bruno@clisp.org>
21270
21271         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21272         property.
21273         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21274         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21275         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21276
21277 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21278
21279         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21280         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21281
21282 2009-02-10  Bruno Haible  <bruno@clisp.org>
21283
21284         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21285         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21286         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21287         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21288         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21289         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21290
21291 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21292
21293         * lib/sockets.h (gl_fd_to_handle): New function.
21294
21295         * tests/test-sockets.c: Call gl_fd_to_handle.
21296
21297 2009-02-09  Bruno Haible  <bruno@clisp.org>
21298
21299         * doc/havelib.texi: Document the conventions on bi-arch systems.
21300
21301 2009-02-08  Bruno Haible  <bruno@clisp.org>
21302
21303         Document the AC_LIB_LINKFLAGS macro.
21304         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21305         * doc/gnulib.texi: Include it.
21306
21307 2009-02-08  Bruno Haible  <bruno@clisp.org>
21308
21309         Fix wrong order of sections, compared to TOC.
21310         * doc/gnulib.texi: Include relocatable-maint.texi after the
21311         "Regular expressions" node, not before.
21312
21313 2009-02-08  Bruno Haible  <bruno@clisp.org>
21314
21315         Tests for module 'unicase/totitle'.
21316         * modules/unicase/totitle-tests: New file.
21317
21318         Tests for module 'unicase/tolower'.
21319         * modules/unicase/tolower-tests: New file.
21320
21321         Tests for module 'unicase/toupper'.
21322         * modules/unicase/toupper-tests: New file.
21323         * tests/unicase/test-mapping-part1.h: New file.
21324         * tests/unicase/test-mapping-part2.h: New file.
21325
21326         New module 'unicase/totitle'.
21327         * modules/unicase/totitle: New file.
21328         * lib/unicase/totitle.c: New file.
21329
21330         New module 'unicase/tolower'.
21331         * modules/unicase/tolower: New file.
21332         * lib/unicase/tolower.c: New file.
21333
21334         New module 'unicase/toupper'.
21335         * modules/unicase/toupper: New file.
21336         * lib/unicase/toupper.c: New file.
21337         * lib/unicase/simple-mapping.h: New file.
21338
21339         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21340         (mapping_table): New structure.
21341         (output_simple_mapping): New function.
21342         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21343         * modules/gen-uni-tables (Description): Update.
21344         * lib/unicase/toupper.h: New file, automatically generated by
21345         gen-uni-tables.
21346         * lib/unicase/tolower.h: New file, automatically generated by
21347         gen-uni-tables.
21348         * lib/unicase/totitle.h: New file, automatically generated by
21349         gen-uni-tables.
21350         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21351         gen-uni-tables.
21352         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21353         gen-uni-tables.
21354         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21355         gen-uni-tables.
21356
21357         New module 'unicase/base'.
21358         * modules/unicase/base: New file.
21359         * lib/unicase.h: New file.
21360
21361 2009-02-08  Bruno Haible  <bruno@clisp.org>
21362
21363         New module 'uniwbrk/ulc-wordbreaks'.
21364         * modules/uniwbrk/ulc-wordbreaks: New file.
21365         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21366
21367         New module 'uniwbrk/u32-wordbreaks'.
21368         * modules/uniwbrk/u32-wordbreaks: New file.
21369         * lib/uniwbrk/u32-wordbreaks.c: New file.
21370
21371         New module 'uniwbrk/u16-wordbreaks'.
21372         * modules/uniwbrk/u16-wordbreaks: New file.
21373         * lib/uniwbrk/u16-wordbreaks.c: New file.
21374
21375         New module 'uniwbrk/u8-wordbreaks'.
21376         * modules/uniwbrk/u8-wordbreaks: New file.
21377         * lib/uniwbrk/u8-wordbreaks.c: New file.
21378         * lib/uniwbrk/u-wordbreaks.h: New file.
21379
21380         New module 'uniwbrk/table'.
21381         * modules/uniwbrk/table: New file.
21382         * lib/uniwbrk/wbrktable.h: New file.
21383         * lib/uniwbrk/wbrktable.c: New file.
21384
21385         New module 'uniwbrk/wordbreak-property'.
21386         * modules/uniwbrk/wordbreak-property: New file.
21387         * lib/uniwbrk/wordbreak-property.c: New file.
21388
21389         * lib/gen-uni-tables.c (WBP_*): New enum items.
21390         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21391         (unicode_org_wbp): New variable.
21392         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21393         New functions.
21394         (wbp_table): New structure.
21395         (output_wbp, output_wbrk_tables): New functions.
21396         (main): Accept additional argument. Invoke fill_org_wbp,
21397         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21398         output_wbrk_tables.
21399         * modules/gen-uni-tables (Description): Update.
21400         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21401         gen-uni-tables.
21402
21403         New module 'uniwbrk/base'.
21404         * modules/uniwbrk/base: New file.
21405         * lib/uniwbrk.h: New file.
21406
21407 2009-02-08  Bruno Haible  <bruno@clisp.org>
21408
21409         Update to Unicode 5.1.0.
21410         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21411         U+2185..U+2188.
21412         (is_property_default_ignorable_code_point): Don't include characters
21413         of category Cc or Cs and not-a-characters.
21414         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21415         U+0D79, U+109E, U+109F, U+A60C.
21416         * lib/unictype/bidi_of.h: Regenerated.
21417         * lib/unictype/blocks.h: Regenerated.
21418         * lib/unictype/categ_C.h: Regenerated.
21419         * lib/unictype/categ_Cf.h: Regenerated.
21420         * lib/unictype/categ_Cn.h: Regenerated.
21421         * lib/unictype/categ_L.h: Regenerated.
21422         * lib/unictype/categ_Ll.h: Regenerated.
21423         * lib/unictype/categ_Lm.h: Regenerated.
21424         * lib/unictype/categ_Lo.h: Regenerated.
21425         * lib/unictype/categ_Lu.h: Regenerated.
21426         * lib/unictype/categ_M.h: Regenerated.
21427         * lib/unictype/categ_Mc.h: Regenerated.
21428         * lib/unictype/categ_Me.h: Regenerated.
21429         * lib/unictype/categ_Mn.h: Regenerated.
21430         * lib/unictype/categ_N.h: Regenerated.
21431         * lib/unictype/categ_Nd.h: Regenerated.
21432         * lib/unictype/categ_Nl.h: Regenerated.
21433         * lib/unictype/categ_No.h: Regenerated.
21434         * lib/unictype/categ_P.h: Regenerated.
21435         * lib/unictype/categ_Pd.h: Regenerated.
21436         * lib/unictype/categ_Pe.h: Regenerated.
21437         * lib/unictype/categ_Pf.h: Regenerated.
21438         * lib/unictype/categ_Pi.h: Regenerated.
21439         * lib/unictype/categ_Po.h: Regenerated.
21440         * lib/unictype/categ_Ps.h: Regenerated.
21441         * lib/unictype/categ_S.h: Regenerated.
21442         * lib/unictype/categ_Sk.h: Regenerated.
21443         * lib/unictype/categ_Sm.h: Regenerated.
21444         * lib/unictype/categ_So.h: Regenerated.
21445         * lib/unictype/categ_of.h: Regenerated.
21446         * lib/unictype/combining.h: Regenerated.
21447         * lib/unictype/ctype_alnum.h: Regenerated.
21448         * lib/unictype/ctype_alpha.h: Regenerated.
21449         * lib/unictype/ctype_graph.h: Regenerated.
21450         * lib/unictype/ctype_lower.h: Regenerated.
21451         * lib/unictype/ctype_print.h: Regenerated.
21452         * lib/unictype/ctype_punct.h: Regenerated.
21453         * lib/unictype/ctype_upper.h: Regenerated.
21454         * lib/unictype/decdigit.h: Regenerated.
21455         * lib/unictype/digit.h: Regenerated.
21456         * lib/unictype/mirror.h: Regenerated.
21457         * lib/unictype/numeric.h: Regenerated.
21458         * lib/unictype/pr_alphabetic.h: Regenerated.
21459         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21460         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21461         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21462         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21463         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21464         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21465         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21466         * lib/unictype/pr_combining.h: Regenerated.
21467         * lib/unictype/pr_dash.h: Regenerated.
21468         * lib/unictype/pr_decimal_digit.h: Regenerated.
21469         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21470         * lib/unictype/pr_deprecated.h: Regenerated.
21471         * lib/unictype/pr_diacritic.h: Regenerated.
21472         * lib/unictype/pr_extender.h: Regenerated.
21473         * lib/unictype/pr_format_control.h: Regenerated.
21474         * lib/unictype/pr_grapheme_base.h: Regenerated.
21475         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21476         * lib/unictype/pr_grapheme_link.h: Regenerated.
21477         * lib/unictype/pr_id_continue.h: Regenerated.
21478         * lib/unictype/pr_id_start.h: Regenerated.
21479         * lib/unictype/pr_ideographic.h: Regenerated.
21480         * lib/unictype/pr_ignorable_control.h: Regenerated.
21481         * lib/unictype/pr_lowercase.h: Regenerated.
21482         * lib/unictype/pr_math.h: Regenerated.
21483         * lib/unictype/pr_numeric.h: Regenerated.
21484         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21485         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21486         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21487         * lib/unictype/pr_other_id_continue.h: Regenerated.
21488         * lib/unictype/pr_other_lowercase.h: Regenerated.
21489         * lib/unictype/pr_other_math.h: Regenerated.
21490         * lib/unictype/pr_punctuation.h: Regenerated.
21491         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21492         * lib/unictype/pr_soft_dotted.h: Regenerated.
21493         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21494         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21495         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21496         * lib/unictype/pr_uppercase.h: Regenerated.
21497         * lib/unictype/pr_xid_continue.h: Regenerated.
21498         * lib/unictype/pr_xid_start.h: Regenerated.
21499         * lib/unictype/pr_zero_width.h: Regenerated.
21500         * lib/unictype/scripts.h: Regenerated.
21501         * lib/unictype/scripts_byname.gperf: Regenerated.
21502         * lib/unictype/sy_java_ident.h: Regenerated.
21503         * lib/unilbrk/lbrkprop1.h: Regenerated.
21504         * lib/unilbrk/lbrkprop2.h: Regenerated.
21505         * tests/unictype/test-categ_C.c: Regenerated.
21506         * tests/unictype/test-categ_Cf.c: Regenerated.
21507         * tests/unictype/test-categ_Cn.c: Regenerated.
21508         * tests/unictype/test-categ_L.c: Regenerated.
21509         * tests/unictype/test-categ_Ll.c: Regenerated.
21510         * tests/unictype/test-categ_Lm.c: Regenerated.
21511         * tests/unictype/test-categ_Lo.c: Regenerated.
21512         * tests/unictype/test-categ_Lu.c: Regenerated.
21513         * tests/unictype/test-categ_M.c: Regenerated.
21514         * tests/unictype/test-categ_Mc.c: Regenerated.
21515         * tests/unictype/test-categ_Me.c: Regenerated.
21516         * tests/unictype/test-categ_Mn.c: Regenerated.
21517         * tests/unictype/test-categ_N.c: Regenerated.
21518         * tests/unictype/test-categ_Nd.c: Regenerated.
21519         * tests/unictype/test-categ_Nl.c: Regenerated.
21520         * tests/unictype/test-categ_No.c: Regenerated.
21521         * tests/unictype/test-categ_P.c: Regenerated.
21522         * tests/unictype/test-categ_Pd.c: Regenerated.
21523         * tests/unictype/test-categ_Pe.c: Regenerated.
21524         * tests/unictype/test-categ_Pf.c: Regenerated.
21525         * tests/unictype/test-categ_Pi.c: Regenerated.
21526         * tests/unictype/test-categ_Po.c: Regenerated.
21527         * tests/unictype/test-categ_Ps.c: Regenerated.
21528         * tests/unictype/test-categ_S.c: Regenerated.
21529         * tests/unictype/test-categ_Sk.c: Regenerated.
21530         * tests/unictype/test-categ_Sm.c: Regenerated.
21531         * tests/unictype/test-categ_So.c: Regenerated.
21532         * tests/unictype/test-ctype_alnum.c: Regenerated.
21533         * tests/unictype/test-ctype_alpha.c: Regenerated.
21534         * tests/unictype/test-ctype_graph.c: Regenerated.
21535         * tests/unictype/test-ctype_lower.c: Regenerated.
21536         * tests/unictype/test-ctype_print.c: Regenerated.
21537         * tests/unictype/test-ctype_punct.c: Regenerated.
21538         * tests/unictype/test-ctype_upper.c: Regenerated.
21539         * tests/unictype/test-decdigit.h: Regenerated.
21540         * tests/unictype/test-digit.h: Regenerated.
21541         * tests/unictype/test-numeric.h: Regenerated.
21542         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21543         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21544         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21545         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21546         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21547         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21548         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21549         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21550         * tests/unictype/test-pr_combining.c: Regenerated.
21551         * tests/unictype/test-pr_dash.c: Regenerated.
21552         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21553         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21554         * tests/unictype/test-pr_deprecated.c: Regenerated.
21555         * tests/unictype/test-pr_diacritic.c: Regenerated.
21556         * tests/unictype/test-pr_extender.c: Regenerated.
21557         * tests/unictype/test-pr_format_control.c: Regenerated.
21558         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21559         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21560         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21561         * tests/unictype/test-pr_id_continue.c: Regenerated.
21562         * tests/unictype/test-pr_id_start.c: Regenerated.
21563         * tests/unictype/test-pr_ideographic.c: Regenerated.
21564         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21565         * tests/unictype/test-pr_lowercase.c: Regenerated.
21566         * tests/unictype/test-pr_math.c: Regenerated.
21567         * tests/unictype/test-pr_numeric.c: Regenerated.
21568         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21569         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21570         Regenerated.
21571         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21572         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21573         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21574         * tests/unictype/test-pr_other_math.c: Regenerated.
21575         * tests/unictype/test-pr_punctuation.c: Regenerated.
21576         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21577         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21578         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21579         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21580         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21581         * tests/unictype/test-pr_uppercase.c: Regenerated.
21582         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21583         * tests/unictype/test-pr_xid_start.c: Regenerated.
21584         * tests/unictype/test-pr_zero_width.c: Regenerated.
21585
21586         Update to Unicode 5.1.0.
21587         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21588         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21589         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21590         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21591         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21592         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21593         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21594         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21595         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21596         (nonspacing_table_ind): Update.
21597         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21598
21599         Update to Unicode 5.1.0.
21600         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21601         code transform.
21602         * lib/uniname/uniname.c (unicode_character_name,
21603         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21604         * lib/uniname/uninames.h: Regenerated.
21605         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21606
21607 2009-02-07  Bruno Haible  <bruno@clisp.org>
21608
21609         Merge gen-ctype and gen-lbrk into a single program.
21610         * lib/gen-uni-tables.c: New file, incorporating
21611         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21612         Add directory prefixes to the names of the generated files.
21613         * lib/unictype/gen-ctype.c: Remove file.
21614         * lib/unilbrk/gen-lbrk.c: Remove file.
21615         * modules/gen-uni-tables: New file.
21616         * modules/unictype/gen-ctype: Remove file.
21617         * modules/unilbrk/gen-lbrk: Remove file.
21618
21619 2009-02-07  Bruno Haible  <bruno@clisp.org>
21620
21621         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21622
21623         New module 'unistr/u32-strcoll'.
21624         * modules/unistr/u32-strcoll: New file.
21625         * lib/unistr/u32-strcoll.c: New file.
21626
21627         New module 'unistr/u16-strcoll'.
21628         * modules/unistr/u16-strcoll: New file.
21629         * lib/unistr/u16-strcoll.c: New file.
21630
21631         New module 'unistr/u8-strcoll'.
21632         * modules/unistr/u8-strcoll: New file.
21633         * lib/unistr/u8-strcoll.c: New file.
21634         * lib/unistr/u-strcoll.h: New file.
21635
21636 2009-02-07  Bruno Haible  <bruno@clisp.org>
21637
21638         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21639         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21640         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21641         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21642         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21643         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21644
21645 2009-02-07  Bruno Haible  <bruno@clisp.org>
21646
21647         Make 64-bit clean.
21648         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21649         output_combclass, output_bidi_category, output_decimal_digit,
21650         output_digit, output_numeric, output_mirror, output_scripts,
21651         output_ident_category): Use proper width specifier in format strings.
21652
21653 2009-02-07  Bruno Haible  <bruno@clisp.org>
21654
21655         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21656         failure behaviour.
21657
21658 2009-02-07  Jim Meyering  <meyering@redhat.com>
21659
21660         regex: avoid compilation failure with upcoming gcc-4.4
21661         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21662         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21663         "... error: integer overflow in preprocessor expression".
21664
21665 2009-02-05  Ben Pfaff  <blp@gnu.org>
21666
21667         Fix link errors on Windows when close module is used.
21668         * modules/close: Add $(LIB_CLOSE) to Link section.
21669         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21670         $(LIB_CLOSE) on Windows.
21671
21672 2009-02-05  Jim Meyering  <meyering@redhat.com>
21673
21674         still avoid unused-parameter warnings, but do it cleanly
21675         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21676         (get_fs_usage): Cast to void instead.
21677         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21678         (dev_from_mount_options, read_file_system_list): Cast to void.
21679         Prompted by Bruno Haible.
21680
21681 2009-02-04  Jim Meyering  <meyering@redhat.com>
21682
21683         fsusage.c: correct copyright year
21684         * lib/fsusage.c: Reflect year in which the change is pushed into
21685
21686         avoid misc. warnings
21687         * lib/fsusage.c (UNUSED_PARAM): Define.
21688         (get_fs_usage): Mark parameter "disk" as unused.
21689         * lib/getugroups.c (getgrent): Use "void" in prototype.
21690         * lib/mountlist.c: Mark unused parameters.
21691         (read_file_system_list): Declare a local with "const".
21692         * lib/nanosleep.c (getnow): Declare static.
21693         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21694
21695         dirfd: set errno upon failure
21696         * lib/dirfd.c: Include <errno.h>.
21697         Set errno to ENOTSUP when returning -1.
21698         * modules/dirfd (Depends-on): Add errno.
21699         Suggested by John Kodis <kodis@comcast.net>.
21700
21701 2009-02-01  Bruno Haible  <bruno@clisp.org>
21702
21703         Don't assume sizeof (long) >= sizeof (void *).
21704         * lib/memcmp.c: Include stdint.h.
21705         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21706         srcp2 to 'const byte *'.
21707         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21708         types to uintptr_t.
21709         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21710         * modules/memcmp (Depends-on): Add stdint.
21711         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21712
21713 2009-01-30  Eric Blake  <ebb9@byu.net>
21714
21715         fix more require-before-expand issues
21716         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21717         expand, AC_PROG_AWK.
21718         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21719
21720 2009-01-28  Eric Blake  <ebb9@byu.net>
21721
21722         version-etc: use consistent URL formatting
21723         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21724         Improve formatting.  Use fputs for string without %.
21725
21726 2009-01-28  Jim Meyering  <meyering@redhat.com>
21727
21728         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21729         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21730         "underquoted definition of NAME" from autoconf-2.59.
21731
21732 2009-01-28  Bruno Haible  <bruno@clisp.org>
21733
21734         * doc/gnulib.texi: Add "Obsolete modules" to index.
21735
21736 2009-01-28  Jim Meyering  <meyering@redhat.com>
21737
21738         useless-if-before-free: recognize more variants
21739         * build-aux/useless-if-before-free: Also recognize e.g.,
21740         if (NULL != p) free (p);
21741
21742 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21743
21744         test-getaddrinfo: skip (don't fail) this test when there's no network
21745         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21746         on the presumption that it means you lack network access.
21747
21748 2009-01-26  Jim Meyering  <meyering@redhat.com>
21749
21750         fflush: avoid warnings on modern systems
21751         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21752         pos and result, into scopes where they're used.
21753
21754 2009-01-26  Eric Blake  <ebb9@byu.net>
21755
21756         Silence warning reintroduced by recent extensions patch.
21757         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21758         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21759         autoconf.
21760
21761         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21762         * m4/00gnulib.m4: New file.
21763         * gnulib-tool (func_get_filelist): Always use it.
21764         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21765         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21766
21767 2009-01-25  Bruno Haible  <bruno@clisp.org>
21768
21769         Make test-quotearg work on MacOS X and AIX.
21770         * tests/test-quotearg.sh: New file.
21771         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21772         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21773         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21774         include <libintl.h>.
21775         (fake_locale): Remove variable.
21776         (gettext, dgettext, dcgettext): Remove functions.
21777         (main): Instead of setting a fake locale, set a real locale. Call
21778         textdomain and bindtextdomain.
21779         * modules/quotearg-tests (Files): Add the new files.
21780         (Depends-on): Add gettext, setenv, unsetenv.
21781         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21782         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21783         Augment TESTS_ENVIRONMENT.
21784
21785 2009-01-25  Bruno Haible  <bruno@clisp.org>
21786
21787         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21788         fr_FR.ISO8859-1 locale on MacOS X.
21789         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21790         ja_JP.eucJP locale on MacOS X.
21791         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21792         zh_CN.GB18030 locale on MacOS X.
21793
21794 2009-01-25  Bruno Haible  <bruno@clisp.org>
21795
21796         Avoid link errors on MacOS X 10.3.
21797         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21798         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21799
21800 2009-01-25  Bruno Haible  <bruno@clisp.org>
21801
21802         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21803         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21804         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21805         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21806         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21807         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21808         posix_spawnattr_init, posix_spawnattr_setsigmask,
21809         posix_spawnattr_setflags, posix_spawnattr_destroy.
21810
21811         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21812         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21813         * modules/execute (Files): Remove m4/posix_spawn.m4.
21814         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21815         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21816         posix_spawnattr_init, posix_spawnattr_setsigmask,
21817         posix_spawnattr_setflags, posix_spawnattr_destroy.
21818
21819 2009-01-25  Bruno Haible  <bruno@clisp.org>
21820
21821         * lib/glthread/threadlib.c: Include <stdlib.h>.
21822
21823 2009-01-25  Bruno Haible  <bruno@clisp.org>
21824
21825         * lib/glthread/threadlib.c (dummy): New declaration.
21826
21827 2009-01-25  Bruno Haible  <bruno@clisp.org>
21828
21829         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21830         multibyte characters also for the GB18030 encoding. Don't crash when
21831         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21832
21833 2009-01-25  Bruno Haible  <bruno@clisp.org>
21834
21835         Avoid redefining 'struct random_data' on OSF/1 5.1.
21836         * lib/stdlib.in.h: Include <random.h> if it exists.
21837         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21838         HAVE_RANDOM_H. Include <random.h> when testing whether
21839         'struct random_data' exists.
21840         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21841
21842 2009-01-25  Bruno Haible  <bruno@clisp.org>
21843
21844         Don't install charset.alias on MacOS X >= 10.3.
21845         * lib/localcharset.c (DARWIN7): New macro.
21846         (get_charset_aliases): Hardcode the result for Darwin7.
21847         * modules/localcharset (install-exec-local): Don't install
21848         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21849
21850 2009-01-25  Bruno Haible  <bruno@clisp.org>
21851
21852         Don't install charset.alias on mingw and Cygwin.
21853         * modules/localcharset (install-exec-local): Don't install
21854         charset.alias on mingw and Cygwin, if the file does not yet exist.
21855         The result for these platforms is hardcoded in localcharset.c.
21856
21857 2009-01-25  Bruno Haible  <bruno@clisp.org>
21858
21859         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21860         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21861         before requiring AC_USE_SYSTEM_EXTENSIONS.
21862
21863 2009-01-25  Jim Meyering  <meyering@redhat.com>
21864
21865         c-strtod: avoid warnings
21866         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21867         "assignment discards qualifiers from pointer target type" warnings.
21868
21869 2009-01-24  Bruno Haible  <bruno@clisp.org>
21870
21871         Add support for non-UTF-8 locales on MacOS X.
21872         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21873         canonical encodings. For Darwin 7 and newer, don't map traditional
21874         encodings to UTF-8.
21875         Reported by Vincent Lefevre <vincent@vinc17.org>
21876         at <http://savannah.gnu.org/bugs/?25235>.
21877
21878 2009-01-24  Bruno Haible  <bruno@clisp.org>
21879
21880         * doc/gnulib.texi (Obsolete modules): New section.
21881         Reported by Mike Frysinger <vapier@gentoo.org>.
21882
21883 2009-01-24  Bruno Haible  <bruno@clisp.org>
21884
21885         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21886         (%.dvi): New rule.
21887
21888 2009-01-24  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21891         Reported by Eric Blake.
21892
21893 2009-01-24  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21896         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21897         Reported by Gary V. Vaughan <gary@gnu.org>.
21898
21899 2009-01-24  Bruno Haible  <bruno@clisp.org>
21900
21901         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21902
21903 2009-01-23  Bruno Haible  <bruno@clisp.org>
21904
21905         Make c-strtod, c-strtold usable in libraries.
21906         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21907         (C_STRTOD): Call strdup instead of xstrdup.
21908         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21909         * modules/c-strtold (Depends-on): Likewise.
21910         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21911         * NEWS: Mention the change.
21912         Reported by Michael Gold <mgold@ncf.ca>.
21913
21914 2009-01-23  Jim Meyering  <meyering@redhat.com>
21915
21916         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21917         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21918         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21919
21920 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21921
21922         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21923         GNU CoreUtils.
21924         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21925         * modules/version-etc (Description): Update.
21926
21927 2009-01-22  Bruno Haible  <bruno@clisp.org>
21928
21929         Cache the C locale object.
21930         * lib/c-strtod.c (c_locale_cache): New variable.
21931         (c_locale): New function.
21932         (C_STRTOD): Use it, and don't call freelocale.
21933         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21934         Suggested by Paolo Bonzini.
21935
21936 2009-01-21  Bruno Haible  <bruno@clisp.org>
21937
21938         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21939         conditions other than overflow.
21940
21941 2009-01-21  Bruno Haible  <bruno@clisp.org>
21942
21943         * lib/c-strtod.c: Include errno.h.
21944         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21945         value from STRTOD_L and STRTOD.
21946
21947 2009-01-21  Bruno Haible  <bruno@clisp.org>
21948         and Jim Meyering  <meyering@redhat.com>
21949
21950         nanosleep: skip configure test (fail it) for apple universal builds
21951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21952         universal builds, assume that nanosleep does not work.
21953         * modules/nanosleep (Depends-on): Add multiarch.
21954
21955         mktime: skip configure test (fail it) for apple universal builds
21956         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21957         universal builds, assume that mktime does not work.
21958         * modules/mktime (Depends-on): Add multiarch.
21959
21960 2009-01-21  Eric Blake  <ebb9@byu.net>
21961
21962         multiarch: avoid expand-before-require warning
21963         * modules/multiarch (configure.ac): Require, rather than expand,
21964         gl_MULTIARCH.
21965         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21966         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21967         enforce that all clients require it.  Partial reversion of
21968         2008-12-29 patch.
21969
21970         error: avoid expand-before-require warning
21971         * modules/errno (configure.ac): Require, rather than expand,
21972         gl_HEADER_ERRNO_H.
21973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21974         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21975         enforce that all clients require it.
21976
21977         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21978         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21979         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21980         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21981
21982 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21983
21984         Revert:
21985         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21986
21987         regex: do not depend on obsolete modules.
21988         * modules/regex: Remove memcmp and memmove.
21989
21990 2009-01-20  Bruno Haible  <bruno@clisp.org>
21991
21992         Make the 'link' module link on Windows NT 4.
21993         * lib/link.c (_WIN32_WINNT): Don't define.
21994         (CreateHardLinkFuncType): New type.
21995         (CreateHardLinkFunc, initialized): New variables.
21996         (initialize): New function.
21997         (link): Invoke CreateHardLink indirectly through the function pointer.
21998
21999 2009-01-20  Bruno Haible  <bruno@clisp.org>
22000
22001         Fix compilation failure on mingw.
22002         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22003
22004 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22005
22006         * doc/c-strtod.texi: Mention a couple of restrictions.
22007
22008 2009-01-20  Jim Meyering  <meyering@redhat.com>
22009
22010         gettimeofday: move more declarations out of functions
22011         * lib/gettimeofday.c: Move extern declarations of tzset and
22012         gmtime out of containing functions.  Prompted by Bruno Haible.
22013
22014 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22015
22016         regex: do not depend on obsolete modules.
22017         * modules/regex: Remove memcmp and memmove.
22018
22019 2009-01-19  Bruno Haible  <bruno@clisp.org>
22020
22021         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22022         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22023         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22024         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22025         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22026
22027 2009-01-19  Bruno Haible  <bruno@clisp.org>
22028
22029         * tests/test-link.c: Include <errno.h>.
22030         (main): Exit with code 77 when a hard link cannot be created due to
22031         the file system.
22032         * tests/test-link.sh: Skip test when a hard link cannot be created due
22033         to the file system.
22034         Suggested by Eric Blake.
22035
22036 2009-01-19  Martin Lambers  <marlam@marlam.de>
22037
22038         * modules/link-tests: New file.
22039         * tests/test-link.sh: New file.
22040         * tests/test-link.c: New file.
22041
22042 2009-01-19  Eric Blake  <ebb9@byu.net>
22043
22044         doc: mention another function added in cygwin 1.7.0
22045         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22046         Another new function in cygwin 1.7.
22047
22048 2009-01-19  Bruno Haible  <bruno@clisp.org>
22049
22050         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22051         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22052         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22053         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22054         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22055         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22056         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22057         * m4/md4.m4 (gl_MD4): Likewise.
22058         * m4/md5.m4 (gl_MD5): Likewise.
22059         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22060         * m4/sha1.m4 (gl_SHA1): Likewise.
22061         * m4/sha256.m4 (gl_SHA256): Likewise.
22062         * m4/sha512.m4 (gl_SHA512): Likewise.
22063
22064 2009-01-19  Bruno Haible  <bruno@clisp.org>
22065
22066         * modules/uniname/uniname-tests (Depends-on): Add progname.
22067         * tests/uniname/test-uninames.c: Include progname.h.
22068         (main): Call set_program_name.
22069
22070         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22071         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22072         (main): Call set_program_name.
22073
22074         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22075         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22076         (main): Call set_program_name.
22077
22078         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22079         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22080         (main): Call set_program_name.
22081
22082         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22083         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22084         (main): Call set_program_name.
22085
22086         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22087         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22088         (main): Call set_program_name.
22089
22090         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22091         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22092         (main): Call set_program_name.
22093
22094         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22095         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22096         (main): Call set_program_name.
22097
22098         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22099         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22100         (main): Call set_program_name.
22101
22102 2009-01-19  Eric Blake  <ebb9@byu.net>
22103
22104         test-unistd: test previous patch
22105         * tests/test-unistd.c: Test *_FILENO macros.
22106
22107         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22108         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22109         Guarantee a definition.
22110         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22111         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22112         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22113         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22114         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22115         Likewise.
22116         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22117         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22118         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22119         Likewise.
22120         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22121         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22122         (STDERR_FILENO): Likewise.
22123         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22124         (STDERR_FILENO): Likewise.
22125         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22126         (STDERR_FILENO): Likewise.
22127         Reported by Elbert Pol.
22128
22129 2009-01-19  Eric Blake  <ebb9@byu.net>
22130
22131         doc: mention more functions added in cygwin 1.7.0
22132         * doc/posix-functions/abort.texi (abort): Update wording related
22133         to cygwin.
22134         * doc/posix-functions/daylight.texi (daylight): Likewise.
22135         * doc/posix-functions/optarg.texi (optarg): Likewise.
22136         * doc/posix-functions/optarg.texi (opterr): Likewise.
22137         * doc/posix-functions/optarg.texi (optind): Likewise.
22138         * doc/posix-functions/optarg.texi (optopt): Likewise.
22139         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22140         worked in 1.5.x, and was withdrawn in 1.7.
22141         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22142         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22143         cygwin versions.
22144         * doc/posix-functions/perror.texi (perror): Likewise.
22145         * doc/posix-functions/printf.texi (printf): Likewise.
22146         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22147         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22148         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22149         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22150         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22151         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22152         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22153         Likewise.
22154         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22155         Likewise.
22156         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22157         this function.
22158         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22159         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22160         Likewise.
22161         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22162         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22163         * doc/posix-functions/confstr.texi (confstr): Likewise.
22164         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22165         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22166         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22167         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22168         * doc/posix-functions/fputws.texi (fputws): Likewise.
22169         * doc/posix-functions/fwide.texi (fwide): Likewise.
22170         * doc/posix-functions/getwc.texi (getwc): Likewise.
22171         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22172         * doc/posix-functions/putwc.texi (putwc): Likewise.
22173         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22174         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22175         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22176         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22177         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22178         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22179         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22180         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22181         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22182         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22183         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22184
22185 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22186
22187         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22188         * lib/ioctl.c: Include <sys/ioctl.h>.
22189
22190 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22191
22192         * modules/getdate-tests (Depends-on): Add progname.
22193         * tests/test-getdate.c: Use progname module, to avoid link errors
22194         on non-glibc systems.
22195
22196 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22197
22198         * modules/filenamecat-tests (Depends-on): Add progname.
22199         * modules/fstrcmp-tests (Depends-on): Likewise.
22200
22201         * tests/test-filenamecat.c: Use progname module, to avoid link
22202         errors on non-glibc systems.
22203         * tests/test-fstrcmp.c: Likewise.
22204
22205 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22206
22207         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22208         * lib/gettimeofday.c: Move extern declaration out of function.
22209
22210 2009-01-18  Bruno Haible  <bruno@clisp.org>
22211
22212         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22213         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22214         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22215
22216 2009-01-18  Bruno Haible  <bruno@clisp.org>
22217
22218         * lib/strftime.c (MEMPCPY): Remove unused macro.
22219         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22220
22221 2009-01-18  Martin Lambers  <marlam@marlam.de>
22222
22223         New module 'link'.
22224         * lib/unistd.in.h (link): New declaration.
22225         * lib/link.c: New file.
22226         * m4/link.m4: New file.
22227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22228         HAVE_LINK.
22229         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22230         * modules/link: New file.
22231         * doc/posix-functions/link.texi: Mention the new module.
22232
22233 2009-01-18  Bruno Haible  <bruno@clisp.org>
22234
22235         * tests/test-avltree_list.c (main): Call set_program_name.
22236         * tests/test-avltree_oset.c (main): Likewise.
22237         * tests/test-obstack-printf.c: Include progname.h.
22238         (main): Call set_program_name.
22239         * tests/test-quotearg.c: Include progname.h.
22240         (main): Call set_program_name.
22241         * tests/test-xmemdup0.c: Include progname.h.
22242         (main): Call set_program_name.
22243
22244 2009-01-18  Bruno Haible  <bruno@clisp.org>
22245
22246         New module 'alphasort'.
22247         * lib/dirent.in.h (alphasort): New declaration.
22248         * lib/alphasort.c: New file, from glibc with modifications.
22249         * m4/alphasort.m4: New file.
22250         * modules/alphasort: New file.
22251         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22252         HAVE_ALPHASORT.
22253         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22254         HAVE_ALPHASORT.
22255         * doc/posix-functions/alphasort.texi: Mention the new module and the
22256         portability problems.
22257
22258 2009-01-18  Bruno Haible  <bruno@clisp.org>
22259
22260         New module 'scandir'.
22261         * lib/dirent.in.h (scandir): New declaration.
22262         * lib/scandir.c: New file, from glibc with modifications.
22263         * m4/scandir.m4: New file.
22264         * modules/scandir: New file.
22265         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22266         HAVE_SCANDIR.
22267         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22268         HAVE_SCANDIR.
22269         * doc/posix-functions/scandir.texi: Mention the new module and the
22270         portability problems.
22271
22272 2009-01-17  Bruno Haible  <bruno@clisp.org>
22273
22274         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22275         Update documentation.
22276         (func_remove_suffix): Escape all dots in the suffix. Update
22277         documentation.
22278         (func_filter_filelist): Update documentation.
22279         Reported by Ralf Wildenhues.
22280
22281 2009-01-17  Bruno Haible  <bruno@clisp.org>
22282
22283         * modules/dprintf-posix-tests: New file.
22284         * tests/test-dprintf-posix.sh: New file.
22285         * tests/test-dprintf-posix.c: New file.
22286
22287         New modules 'dprintf', 'dprintf-posix'.
22288         * lib/stdio.in.h (dprintf): New declaration.
22289         * lib/dprintf.c: New file.
22290         * m4/dprintf.m4: New file.
22291         * m4/dprintf-posix.m4: New file.
22292         * modules/dprintf: New file.
22293         * modules/dprintf-posix: New file.
22294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22295         HAVE_DPRINTF, REPLACE_DPRINTF.
22296         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22297         HAVE_DPRINTF, REPLACE_DPRINTF.
22298         * doc/posix-functions/dprintf.texi: Mention the new modules.
22299
22300 2009-01-17  Bruno Haible  <bruno@clisp.org>
22301
22302         * modules/vdprintf-posix-tests: New file.
22303         * tests/test-vdprintf-posix.sh: New file.
22304         * tests/test-vdprintf-posix.c: New file.
22305
22306         New modules 'vdprintf', 'vdprintf-posix'.
22307         * lib/stdio.in.h (vdprintf): New declaration.
22308         * lib/vdprintf.c: New file.
22309         * m4/vdprintf.m4: New file.
22310         * m4/vdprintf-posix.m4: New file.
22311         * modules/vdprintf: New file.
22312         * modules/vdprintf-posix: New file.
22313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22314         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22315         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22316         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22317         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22318
22319 2009-01-17  Bruno Haible  <bruno@clisp.org>
22320
22321         Fix replacement of fopen on mingw.
22322         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22323         mingw.
22324
22325 2009-01-17  Bruno Haible  <bruno@clisp.org>
22326
22327         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22328         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22329
22330 2009-01-17  Bruno Haible  <bruno@clisp.org>
22331
22332         Avoid test-fflush2.sh failure on mingw.
22333         * tests/test-fflush2.c: Include binary-io.h.
22334         (main): Put standard input into binary mode.
22335         * modules/fflush-tests (Depends-on): Add binary-io.
22336
22337 2009-01-17  Bruno Haible  <bruno@clisp.org>
22338
22339         * lib/wchar.in.h: In another particular situation, include only the
22340         system's <wchar.h> file.
22341         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22342         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22343         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22344
22345 2009-01-17  Bruno Haible  <bruno@clisp.org>
22346
22347         Support for stripping executables in --enable-relocatable.
22348         * build-aux/install-reloc: Expect one more argument, or an environment
22349         variable RELOC_STRIP_PROG. If set, strip the destination program and
22350         its wrapper.
22351         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22352         RELOC_STRIP_PROG.
22353         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22354         to set RELOCATABLE_STRIP.
22355         * NEWS: Mention the new Makefile requirement.
22356
22357 2009-01-17  Bruno Haible  <bruno@clisp.org>
22358
22359         * build-aux/install-reloc: Remove debugging information left over by
22360         C compiler on MacOS X.
22361
22362 2009-01-17  Bruno Haible  <bruno@clisp.org>
22363
22364         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22365         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22366         _NSGetExecutablePath.
22367
22368 2009-01-16  Jim Meyering  <meyering@redhat.com>
22369
22370         strerror: avoid warnings about discarding "const"
22371         * lib/strerror.c (rpl_strerror): Instead of returning a const
22372         string from each and every "case", use a variable, and add a single
22373         cast after the switch.
22374
22375 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22376
22377         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22378
22379 2009-01-16  Bruno Haible  <bruno@clisp.org>
22380
22381         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22382         array initializer syntax that also works in C++ mode.
22383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22384
22385 2009-01-16  Jim Meyering  <meyering@redhat.com>
22386
22387         poll: suppress a warning
22388         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22389         to ignore "...unsigned expression < 0 is always false" warnings.
22390
22391 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22392
22393         poll: remove declarations of unused variables
22394         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22395         sockbuf and optlen.
22396
22397 2009-01-15  Bruno Haible  <bruno@clisp.org>
22398
22399         Make fflush-after-ungetc POSIX compliant on BSD systems.
22400         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22401         (clear_ungetc_buffer): Implement also for other systems.
22402         (rpl_fflush): On glibc systems, invoke
22403         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22404         clear_ungetc_buffer after fetching the stream's position, not before.
22405
22406 2009-01-15  Bruno Haible  <bruno@clisp.org>
22407
22408         Make fflush-after-ungetc POSIX compliant on glibc systems.
22409         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22410         after ungetc.
22411         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22412         (rpl_fflush): On glibc systems, simply call the system's fflush
22413         function after clearing the ungetc buffer.
22414         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22415         Instead, lseek only to the end of file, then use the system's fseeko
22416         for the rest. On glibc systems, reset the EOF indicator bit.
22417
22418 2009-01-15  Jim Meyering  <meyering@redhat.com>
22419
22420         openmp.m4: revert quote-adding change, for portability to older autoconf
22421         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22422         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22423         Simon Josefsson noticed the problem when using autoconf-2.61.
22424
22425 2009-01-15  Bruno Haible  <bruno@clisp.org>
22426
22427         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22428         * tests/test-fflush2.c (ASSERT): Always fail.
22429         (main): Add two tests for fflush() after ungetc(), taking into account
22430         the Austin Group's clarification.
22431         Suggested by Eric Blake.
22432
22433 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22434
22435         mktime.m4: remove K&R-style function prototypes
22436         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22437         for the Sun C++ compiler.
22438
22439 2009-01-14  Bruno Haible  <bruno@clisp.org>
22440
22441         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22442         while including <wchar.h>.
22443         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22444         the system's <wchar.h> file.
22445         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22446
22447 2009-01-14  Bruno Haible  <bruno@clisp.org>
22448
22449         * m4/csharp.m4: Don't mention gettext on the serial number line.
22450         * m4/csharpexec.m4: Likewise.
22451         * m4/eaccess.m4: Likewise.
22452         * m4/javaexec.m4: Likewise.
22453         * m4/sig_atomic_t.m4: Likewise.
22454         * m4/tmpdir.m4: Likewise.
22455         * m4/intldir.m4: Bump gettext version.
22456         * m4/lib-ld.m4: Likewise.
22457
22458 2009-01-14  Bruno Haible  <bruno@clisp.org>
22459
22460         * lib/progname.c (set_program_name): Add more comments.
22461         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22462
22463 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22464
22465         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22466         were sys/stat.h does not define it.
22467
22468 2009-01-14  Jim Meyering  <meyering@redhat.com>
22469
22470         many *.m4 files: improve m4 quoting
22471         99% of this change was performed by running the following commands:
22472         git ls-files | grep '\.m4$' | xargs perl -pi \
22473           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22474           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22475           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22476           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22477         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22478         The remainder were to add Copyright dates, increment serial numbers,
22479         undo some changes in comments, exclude m4/intl.m4, and add quotes
22480         around the "1" in ",1" where the unusual spacing prohibited the
22481         above regexps from doing the job.  For more details, see
22482         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22483         * m4/acl.m4: Modified.
22484         * m4/afs.m4: Likewise.
22485         * m4/alloca.m4: Likewise.
22486         * m4/argp.m4: Likewise.
22487         * m4/argz.m4: Likewise.
22488         * m4/atexit.m4: Likewise.
22489         * m4/bison-i18n.m4: Likewise.
22490         * m4/bison.m4: Likewise.
22491         * m4/byteswap.m4: Likewise.
22492         * m4/c-stack.m4: Likewise.
22493         * m4/c-strtod.m4: Likewise.
22494         * m4/calloc.m4: Likewise.
22495         * m4/canonicalize-lgpl.m4: Likewise.
22496         * m4/chown.m4: Likewise.
22497         * m4/clock_time.m4: Likewise.
22498         * m4/codeset.m4: Likewise.
22499         * m4/copy-file.m4: Likewise.
22500         * m4/csharp.m4: Likewise.
22501         * m4/csharpcomp.m4: Likewise.
22502         * m4/csharpexec.m4: Likewise.
22503         * m4/d-ino.m4: Likewise.
22504         * m4/d-type.m4: Likewise.
22505         * m4/dirfd.m4: Likewise.
22506         * m4/double-slash-root.m4: Likewise.
22507         * m4/eaccess.m4: Likewise.
22508         * m4/eealloc.m4: Likewise.
22509         * m4/environ.m4: Likewise.
22510         * m4/errno_h.m4: Likewise.
22511         * m4/euidaccess.m4: Likewise.
22512         * m4/execute.m4: Likewise.
22513         * m4/fatal-signal.m4: Likewise.
22514         * m4/fchdir.m4: Likewise.
22515         * m4/fcntl_h.m4: Likewise.
22516         * m4/fileblocks.m4: Likewise.
22517         * m4/filenamecat.m4: Likewise.
22518         * m4/findprog.m4: Likewise.
22519         * m4/flexmember.m4: Likewise.
22520         * m4/fnmatch.m4: Likewise.
22521         * m4/fopen.m4: Likewise.
22522         * m4/fpending.m4: Likewise.
22523         * m4/fprintf-posix.m4: Likewise.
22524         * m4/free.m4: Likewise.
22525         * m4/frexp.m4: Likewise.
22526         * m4/frexpl.m4: Likewise.
22527         * m4/fsusage.m4: Likewise.
22528         * m4/ftruncate.m4: Likewise.
22529         * m4/gc-camellia.m4: Likewise.
22530         * m4/gc-random.m4: Likewise.
22531         * m4/gc.m4: Likewise.
22532         * m4/getaddrinfo.m4: Likewise.
22533         * m4/getcwd-abort-bug.m4: Likewise.
22534         * m4/getcwd-path-max.m4: Likewise.
22535         * m4/getdate.m4: Likewise.
22536         * m4/getdomainname.m4: Likewise.
22537         * m4/getgroups.m4: Likewise.
22538         * m4/gethostname.m4: Likewise.
22539         * m4/gethrxtime.m4: Likewise.
22540         * m4/getline.m4: Likewise.
22541         * m4/getloadavg.m4: Likewise.
22542         * m4/getndelim2.m4: Likewise.
22543         * m4/getpass.m4: Likewise.
22544         * m4/gettext.m4: Likewise.
22545         * m4/gettime.m4: Likewise.
22546         * m4/gettimeofday.m4: Likewise.
22547         * m4/gnulib-common.m4: Likewise.
22548         * m4/group-member.m4: Likewise.
22549         * m4/host-os.m4: Likewise.
22550         * m4/iconv.m4: Likewise.
22551         * m4/iconv_open.m4: Likewise.
22552         * m4/inet_ntop.m4: Likewise.
22553         * m4/inet_pton.m4: Likewise.
22554         * m4/inline.m4: Likewise.
22555         * m4/intldir.m4: Likewise.
22556         * m4/intlmacosx.m4: Likewise.
22557         * m4/intmax.m4: Likewise.
22558         * m4/intmax_t.m4: Likewise.
22559         * m4/inttypes.m4: Likewise.
22560         * m4/inttypes_h.m4: Likewise.
22561         * m4/inttypes-pri.m4: Likewise.
22562         * m4/isapipe.m4: Likewise.
22563         * m4/isnand.m4: Likewise.
22564         * m4/isnanf.m4: Likewise.
22565         * m4/isnanl.m4: Likewise.
22566         * m4/javacomp.m4: Likewise.
22567         * m4/javaexec.m4: Likewise.
22568         * m4/jm-winsz1.m4: Likewise.
22569         * m4/jm-winsz2.m4: Likewise.
22570         * m4/lchown.m4: Likewise.
22571         * m4/lcmessage.m4: Likewise.
22572         * m4/ldexpl.m4: Likewise.
22573         * m4/lib-ld.m4: Likewise.
22574         * m4/lib-link.m4: Likewise.
22575         * m4/libsigsegv.m4: Likewise.
22576         * m4/link-follow.m4: Likewise.
22577         * m4/localcharset.m4: Likewise.
22578         * m4/locale-fr.m4: Likewise.
22579         * m4/locale-ja.m4: Likewise.
22580         * m4/locale-tr.m4: Likewise.
22581         * m4/locale-zh.m4: Likewise.
22582         * m4/lock.m4: Likewise.
22583         * m4/longlong.m4: Likewise.
22584         * m4/ls-mntd-fs.m4: Likewise.
22585         * m4/lstat.m4: Likewise.
22586         * m4/malloc.m4: Likewise.
22587         * m4/mathl.m4: Likewise.
22588         * m4/mbrtowc.m4: Likewise.
22589         * m4/mbstate_t.m4: Likewise.
22590         * m4/mbswidth.m4: Likewise.
22591         * m4/memchr.m4: Likewise.
22592         * m4/memcmp.m4: Likewise.
22593         * m4/memcpy.m4: Likewise.
22594         * m4/memmem.m4: Likewise.
22595         * m4/memmove.m4: Likewise.
22596         * m4/mempcpy.m4: Likewise.
22597         * m4/memrchr.m4: Likewise.
22598         * m4/memset.m4: Likewise.
22599         * m4/minmax.m4: Likewise.
22600         * m4/mkdir-slash.m4: Likewise.
22601         * m4/mkdtemp.m4: Likewise.
22602         * m4/mktime.m4: Likewise.
22603         * m4/mmap-anon.m4: Likewise.
22604         * m4/mountlist.m4: Likewise.
22605         * m4/nanosleep.m4: Likewise.
22606         * m4/nls.m4: Likewise.
22607         * m4/nocrash.m4: Likewise.
22608         * m4/open.m4: Likewise.
22609         * m4/openat.m4: Likewise.
22610         * m4/openmp.m4: Likewise.
22611         * m4/pathmax.m4: Likewise.
22612         * m4/perl.m4: Likewise.
22613         * m4/physmem.m4: Likewise.
22614         * m4/pipe.m4: Likewise.
22615         * m4/po.m4: Likewise.
22616         * m4/poll.m4: Likewise.
22617         * m4/posixtm.m4: Likewise.
22618         * m4/posixver.m4: Likewise.
22619         * m4/printf-frexp.m4: Likewise.
22620         * m4/printf-frexpl.m4: Likewise.
22621         * m4/printf-posix.m4: Likewise.
22622         * m4/printf-posix-rpl.m4: Likewise.
22623         * m4/printf.m4: Likewise.
22624         * m4/progtest.m4: Likewise.
22625         * m4/putenv.m4: Likewise.
22626         * m4/readline.m4: Likewise.
22627         * m4/readlink.m4: Likewise.
22628         * m4/readutmp.m4: Likewise.
22629         * m4/realloc.m4: Likewise.
22630         * m4/regex.m4: Likewise.
22631         * m4/relocatable.m4: Likewise.
22632         * m4/relocatable-lib.m4: Likewise.
22633         * m4/rename-dest-slash.m4: Likewise.
22634         * m4/rename.m4: Likewise.
22635         * m4/rmdir-errno.m4: Likewise.
22636         * m4/rmdir.m4: Likewise.
22637         * m4/roundf.m4: Likewise.
22638         * m4/roundl.m4: Likewise.
22639         * m4/rpmatch.m4: Likewise.
22640         * m4/save-cwd.m4: Likewise.
22641         * m4/selinux-selinux-h.m4: Likewise.
22642         * m4/setenv.m4: Likewise.
22643         * m4/settime.m4: Likewise.
22644         * m4/sig2str.m4: Likewise.
22645         * m4/sig_atomic_t.m4: Likewise.
22646         * m4/signalblocking.m4: Likewise.
22647         * m4/signbit.m4: Likewise.
22648         * m4/sigpipe.m4: Likewise.
22649         * m4/sockets.m4: Likewise.
22650         * m4/sockpfaf.m4: Likewise.
22651         * m4/st_dm_mode.m4: Likewise.
22652         * m4/stat-time.m4: Likewise.
22653         * m4/stdbool.m4: Likewise.
22654         * m4/stdint.m4: Likewise.
22655         * m4/stdint_h.m4: Likewise.
22656         * m4/stpcpy.m4: Likewise.
22657         * m4/stpncpy.m4: Likewise.
22658         * m4/strcase.m4: Likewise.
22659         * m4/strchrnul.m4: Likewise.
22660         * m4/strcspn.m4: Likewise.
22661         * m4/strdup.m4: Likewise.
22662         * m4/strftime.m4: Likewise.
22663         * m4/strndup.m4: Likewise.
22664         * m4/strnlen.m4: Likewise.
22665         * m4/strpbrk.m4: Likewise.
22666         * m4/strptime.m4: Likewise.
22667         * m4/strsep.m4: Likewise.
22668         * m4/strtod.m4: Likewise.
22669         * m4/strtoimax.m4: Likewise.
22670         * m4/strtok_r.m4: Likewise.
22671         * m4/strtol.m4: Likewise.
22672         * m4/strtoll.m4: Likewise.
22673         * m4/strtoul.m4: Likewise.
22674         * m4/strtoull.m4: Likewise.
22675         * m4/strtoumax.m4: Likewise.
22676         * m4/strverscmp.m4: Likewise.
22677         * m4/threadlib.m4: Likewise.
22678         * m4/timegm.m4: Likewise.
22679         * m4/tm_gmtoff.m4: Likewise.
22680         * m4/tmpdir.m4: Likewise.
22681         * m4/tmpfile.m4: Likewise.
22682         * m4/tzset.m4: Likewise.
22683         * m4/uintmax_t.m4: Likewise.
22684         * m4/unlinkdir.m4: Likewise.
22685         * m4/unlocked-io.m4: Likewise.
22686         * m4/uptime.m4: Likewise.
22687         * m4/userspec.m4: Likewise.
22688         * m4/utimbuf.m4: Likewise.
22689         * m4/utime.m4: Likewise.
22690         * m4/utimes-null.m4: Likewise.
22691         * m4/utimes.m4: Likewise.
22692         * m4/vararrays.m4: Likewise.
22693         * m4/vasnprintf.m4: Likewise.
22694         * m4/vfprintf-posix.m4: Likewise.
22695         * m4/vprintf-posix.m4: Likewise.
22696         * m4/wait-process.m4: Likewise.
22697         * m4/wchar_t.m4: Likewise.
22698         * m4/wint_t.m4: Likewise.
22699         * m4/write-any-file.m4: Likewise.
22700         * m4/yield.m4: Likewise.
22701
22702 2009-01-13  Bruno Haible  <bruno@clisp.org>
22703
22704         Avoid test-copy-file.sh failures when ACL support insufficient.
22705         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22706         TESTS_ENVIRONMENT.
22707         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22708         Reported by Jim Meyering.
22709
22710 2009-01-13  Bruno Haible  <bruno@clisp.org>
22711
22712         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22713         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22714         * modules/unistdio/u8-printf-parse (Files): Likewise.
22715         * modules/unistdio/u32-printf-parse (Files): Likewise.
22716         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22717
22718 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22719
22720         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22721         and m4/inttypes_h.m4 too.
22722
22723 2009-01-12  Eric Blake  <ebb9@byu.net>
22724
22725         tests: IRIX 6.2 cc can't compile -0.0 into .data
22726         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22727         rather than at compile-time.
22728         * tests/test-floorl.c (minus_zero): Likewise.
22729         * tests/test-frexpl.c (minus_zero): Likewise.
22730         * tests/test-isnan.c (minus_zerol): Likewise.
22731         * tests/test-isnanl.h (minus_zero): Likewise.
22732         * tests/test-ldexpl.c (minus_zero): Likewise.
22733         * tests/test-roundl.c (minus_zero): Likewise.
22734         * tests/test-signbit.c (minus_zerol): Likewise.
22735         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22736         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22737         * tests/test-truncl.c (minus_zero): Likewise.
22738         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22739         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22740         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22741
22742 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22743
22744         regex: fix glibc bug 9697
22745         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22746         handling.
22747
22748 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22749
22750         regex: fix glibc bug 697
22751         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22752         being NULL also if there are no backreferences.
22753
22754 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22755
22756         regex: merge glibc changes
22757         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22758         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22759         re_string_skip_chars, re_string_reconstruct): Likewise.
22760         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22761
22762 2009-01-07  Jim Meyering  <meyering@redhat.com>
22763
22764         poll: filter through cppi
22765         * lib/poll.c: Indent cpp directives to reflect nesting.
22766
22767 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22768
22769         poll: don't return uninitialized
22770         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22771
22772 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22773
22774         avoid compile failure on AIX 6.1
22775         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22776         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22777
22778 2009-01-04  Jim Meyering  <meyering@redhat.com>
22779
22780         remove duplicate inclusion of <stdio.h>
22781         * tests/test-fprintf-posix.c: Likewise.
22782         * tests/test-printf-posix.c: Likewise.
22783         * tests/test-snprintf-posix.c: Likewise.
22784         * tests/test-sprintf-posix.c: Likewise.
22785         * tests/test-vasprintf-posix.c: Likewise.
22786         * tests/test-vfprintf-posix.c: Likewise.
22787         * tests/test-vprintf-posix.c: Likewise.
22788         * tests/test-vsnprintf-posix.c: Likewise.
22789         * tests/test-vsprintf-posix.c: Likewise.
22790
22791 2009-01-03  Jim Meyering  <meyering@redhat.com>
22792
22793         gnulib-tool: fix sed-based filtering
22794         * gnulib-tool (func_filter_filelist): Remove extra backslash
22795         in sed_fff_filter definition.
22796
22797 2009-01-02  Jim Meyering  <meyering@redhat.com>
22798
22799         strftime: avoid compilation failure on Solaris 2.6
22800         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22801         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22802         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22803         be available.  Reported by Tom G. Christensen.  Details in
22804         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22805
22806 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22807             Bruno Haible  <bruno@clisp.org>
22808
22809         Speed up gnulib-tool by doing more string processing through shell
22810         built-ins.
22811         * gnulib-tool (fast_func_append): New variable.
22812         (func_remove_prefix, func_remove_suffix): New functions.
22813         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22814         (func_filter_filelist): New function.
22815         (func_get_dependencies): Use func_remove_suffix instead of sed.
22816         (func_get_automake_snippet): Use func_filter_filelist instead of a
22817         subshell and sed invocation.
22818
22819 2009-01-01  Bruno Haible  <bruno@clisp.org>
22820
22821         Fix a security bug.
22822         * gnulib-tool (func_import, import, update): Don't allow the characters
22823         '"', '$', '`', '\' in macro arguments that become part of commands that
22824         are evaluated.
22825
22826 2009-01-01  Bruno Haible  <bruno@clisp.org>
22827
22828         * gnulib-tool (func_reset_sigpipe): Add more comments.
22829
22830 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22831
22832         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22833         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22834         already know the answer.
22835
22836 2009-01-01  Jim Meyering  <meyering@redhat.com>
22837
22838         * lib/version-etc.c (version_etc_va): Update copyright year.
22839
22840 2008-12-30  Bruno Haible  <bruno@clisp.org>
22841
22842         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22843         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22844         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22845
22846 2008-12-29  Eric Blake  <ebb9@byu.net>
22847
22848         multiarch: avoid autoconf AC_REQUIRE bug
22849         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22850         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22851         2.63 and older.
22852         Reported by Bruno Haible, and analyzed in
22853         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22854
22855 2008-12-29  Bruno Haible  <bruno@clisp.org>
22856
22857         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22858         files in subdirectories correctly.
22859         Reported by Ralf Wildenhues.
22860
22861 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22862
22863         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22864         rather than 'join FILE -', for Solaris join.
22865
22866 2008-12-29  Bruno Haible  <bruno@clisp.org>
22867
22868         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22869         quoting.
22870         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22871         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22872         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22873         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22874         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22875         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22876         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22877         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22878         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22879         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22880         * m4/nls.m4 (AM_NLS): Likewise.
22881         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22882         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22883         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22884         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22885         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22886         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22887         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22888         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22889         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22890         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22891         * m4/xsize.m4 (gl_XSIZE): Likewise.
22892         Suggested by Jim Meyering.
22893
22894 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22895
22896         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22897         * lib/parse-duration.c: use a switch instead of cascading if's.
22898
22899 2008-12-29  Eric Blake  <ebb9@byu.net>
22900
22901         wchar.h: supply WEOF on Irix 5.3
22902         * lib/wchar.in.h (wint_t): Also supply WEOF.
22903         * lib/wctype.in.h (wint_t): Likewise.
22904         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22905         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22906         Reported by Tom G. Christensen.
22907
22908 2008-12-26  Bruno Haible  <bruno@clisp.org>
22909
22910         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22911         i486, i586, i686.
22912
22913 2008-12-26  Bruno Haible  <bruno@clisp.org>
22914
22915         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22916
22917 2008-12-26  Bruno Haible  <bruno@clisp.org>
22918
22919         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22920         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22921         not __STDC_CONSTANT_MACROS.
22922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22923
22924 2008-12-25  Bruno Haible  <bruno@clisp.org>
22925
22926         Add support for universal builds to vasnprintf.
22927         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22928         universal builds, guess no.
22929         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22930         * modules/vasprintf-posix (Depends-on): Likewise.
22931         * modules/fprintf-posix (Depends-on): Likewise.
22932         * modules/vfprintf-posix (Depends-on): Likewise.
22933         * modules/snprintf-posix (Depends-on): Likewise.
22934         * modules/vsnprintf-posix (Depends-on): Likewise.
22935         * modules/sprintf-posix (Depends-on): Likewise.
22936         * modules/vsprintf-posix (Depends-on): Likewise.
22937         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22938         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22940         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22941         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22942         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22943         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22944
22945         Add support for universal builds to <inttypes.h>.
22946         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22947         _SCNu64_PREFIX): In Apple
22948         universal builds, define directly, using _LP64.
22949         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22950         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22951         * modules/inttypes (Depends-on): Add multiarch.
22952         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22953
22954         Add support for universal builds to <stdint.h>.
22955         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22956         universal builds, define directly, using _LP64.
22957         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22958         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22959         and size_t.
22960         * modules/stdint (Depends-on): Add multiarch.
22961         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22962
22963         New module 'multiarch'.
22964         * modules/multiarch: New file.
22965         * m4/multiarch.m4: New file.
22966
22967 2008-12-25  Bruno Haible  <bruno@clisp.org>
22968
22969         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22970
22971 2008-12-25  Bruno Haible  <bruno@clisp.org>
22972
22973         * modules/btowc (License): Relicense under LGPLv2+.
22974         * modules/mbsinit (License): Likewise.
22975         * modules/mbrtowc (License): Likewise.
22976         * modules/wcrtomb (License): Likewise.
22977         * modules/streq (License): Likewise.
22978         Reported by David Lutterkort <lutter@redhat.com>.
22979
22980 2008-12-23  Bruno Haible  <bruno@clisp.org>
22981
22982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22983
22984 2008-12-23  Bruno Haible  <bruno@clisp.org>
22985
22986         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22988         GETADDRINFO_LIB, not in LIBS.
22989         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22990         * modules/canon-host (Link): Likewise.
22991         * NEWS: Mention the change.
22992         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22993         GETADDRINFO_LIB.
22994
22995 2008-12-22  Bruno Haible  <bruno@clisp.org>
22996
22997         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22998         * doc/posix-functions/iswalpha_l.texi: Likewise.
22999         * doc/posix-functions/iswblank_l.texi: Likewise.
23000         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23001         * doc/posix-functions/iswctype_l.texi: Likewise.
23002         * doc/posix-functions/iswdigit_l.texi: Likewise.
23003         * doc/posix-functions/iswgraph_l.texi: Likewise.
23004         * doc/posix-functions/iswlower_l.texi: Likewise.
23005         * doc/posix-functions/iswprint_l.texi: Likewise.
23006         * doc/posix-functions/iswpunct_l.texi: Likewise.
23007         * doc/posix-functions/iswspace_l.texi: Likewise.
23008         * doc/posix-functions/iswupper_l.texi: Likewise.
23009         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23010         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23011         * doc/posix-functions/open_wmemstream.texi: Likewise.
23012         * doc/posix-functions/swscanf.texi: Likewise.
23013         * doc/posix-functions/towctrans_l.texi: Likewise.
23014         * doc/posix-functions/towlower.texi: Likewise.
23015         * doc/posix-functions/towlower_l.texi: Likewise.
23016         * doc/posix-functions/towupper.texi: Likewise.
23017         * doc/posix-functions/towupper_l.texi: Likewise.
23018         * doc/posix-functions/vfwprintf.texi: Likewise.
23019         * doc/posix-functions/vfwscanf.texi: Likewise.
23020         * doc/posix-functions/vswscanf.texi: Likewise.
23021         * doc/posix-functions/vwprintf.texi: Likewise.
23022         * doc/posix-functions/vwscanf.texi: Likewise.
23023         * doc/posix-functions/wcpcpy.texi: Likewise.
23024         * doc/posix-functions/wcpncpy.texi: Likewise.
23025         * doc/posix-functions/wcscasecmp.texi: Likewise.
23026         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23027         * doc/posix-functions/wcscoll_l.texi: Likewise.
23028         * doc/posix-functions/wcsdup.texi: Likewise.
23029         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23030         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23031         * doc/posix-functions/wcsnlen.texi: Likewise.
23032         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23033         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23034         * doc/posix-functions/wctrans_l.texi: Likewise.
23035         * doc/posix-functions/wctype_l.texi: Likewise.
23036         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23037         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23038         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23039         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23040         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23041         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23042         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23043         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23044         * doc/glibc-functions/wcschrnul.texi: Likewise.
23045         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23046         * doc/glibc-functions/wcstod_l.texi: Likewise.
23047         * doc/glibc-functions/wcstof_l.texi: Likewise.
23048         * doc/glibc-functions/wcstol_l.texi: Likewise.
23049         * doc/glibc-functions/wcstold_l.texi: Likewise.
23050         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23051         * doc/glibc-functions/wcstoq.texi: Likewise.
23052         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23053         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23054         * doc/glibc-functions/wcstouq.texi: Likewise.
23055         * doc/glibc-functions/wmempcpy.texi: Likewise.
23056
23057 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23058             Eric Blake  <ebb9@byu.net>
23059             Paolo Bonzini  <bonzini@gnu.org>
23060             Bruno Haible  <bruno@clisp.org>
23061
23062         Make c-stack work on Haiku.
23063         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23064         (c_stack_action): Use SA_ONSTACK flag.
23065
23066 2008-12-22  Bruno Haible  <bruno@clisp.org>
23067
23068         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23069
23070 2008-12-22  Bruno Haible  <bruno@clisp.org>
23071
23072         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23073         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23074         being overridden.
23075         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23076         New macros.
23077         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23079         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23080         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23081
23082 2008-12-22  Bruno Haible  <bruno@clisp.org>
23083
23084         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23085         from test code.
23086
23087 2008-12-22  Eric Blake  <ebb9@byu.net>
23088
23089         Avoid gcc warnings on cygwin.
23090         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23091         Avoid unused variable.
23092         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23093         Likewise.
23094
23095 2008-12-22  Bruno Haible  <bruno@clisp.org>
23096
23097         Remove HAVE_MBRTOWC conditionals.
23098         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23099         (mbscasecmp): Assume mbrtowc function.
23100         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23101         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23102         * lib/mbschr.c: Include mbuiter.h unconditionally.
23103         (mbschr): Assume mbrtowc function.
23104         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23105         (mbscspn): Assume mbrtowc function.
23106         * lib/mbslen.c: Include mbuiter.h unconditionally.
23107         (mbslen): Assume mbrtowc function.
23108         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23109         (mbsncasecmp): Assume mbrtowc function.
23110         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23111         (mbsnlen): Assume mbrtowc function.
23112         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23113         (mbspbrk): Assume mbrtowc function.
23114         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23115         (mbspcasecmp): Assume mbrtowc function.
23116         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23117         (mbsrchr): Assume mbrtowc function.
23118         * lib/mbssep.c: Include mbuiter.h unconditionally.
23119         (mbssep): Assume mbrtowc function.
23120         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23121         (mbsspn): Assume mbrtowc function.
23122         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23123         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23124         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23125         (mbstok_r): Assume mbrtowc function.
23126         * lib/propername.c: Include mbuiter.h unconditionally.
23127         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23128         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23129         (trim2): Assume mbrtowc function.
23130         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23131         (mbsnwidth): Assume mbrtowc function.
23132         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23133         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23134         fallback definitions.
23135         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23136
23137 2008-12-22  Bruno Haible  <bruno@clisp.org>
23138
23139         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23140
23141 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23142
23143         * modules/regex: Request emulations for the mb*/wc* functions we need.
23144         * m4/regex.m4: Don't look for those functions here.
23145         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23146
23147 2008-12-22  Bruno Haible  <bruno@clisp.org>
23148
23149         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23150
23151 2008-12-21  Bruno Haible  <bruno@clisp.org>
23152
23153         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23154         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23155         (Include): Remove conditionalization.
23156         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23157         (Include): Remove conditionalization.
23158         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23159         (Include): Remove conditionalization.
23160         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23161         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23162         * NEWS: Mention the change.
23163         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23164         via Sergey Poznyakoff <gray@gnu.org.ua>.
23165
23166 2008-12-21  Bruno Haible  <bruno@clisp.org>
23167
23168         * MODULES.html.sh (Extended multibyte and wide character utilities
23169         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23170         wcrtomb, wcsrtombs.
23171         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23172         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23173         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23174         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23175
23176 2008-12-21  Bruno Haible  <bruno@clisp.org>
23177
23178         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23179
23180 2008-12-21  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/wcsnrtombs-tests: New file.
23183         * tests/test-wcsnrtombs1.sh: New file.
23184         * tests/test-wcsnrtombs2.sh: New file.
23185         * tests/test-wcsnrtombs3.sh: New file.
23186         * tests/test-wcsnrtombs4.sh: New file.
23187         * tests/test-wcsnrtombs.c: New file.
23188
23189         New module 'wcsnrtombs'.
23190         * lib/wchar.in.h (wcsnrtombs): New declaration.
23191         * lib/wcsnrtombs.c: New file.
23192         * lib/wcsrtombs-state.c: New file.
23193         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23194         (internal_state): Remove variable.
23195         * m4/wcsnrtombs.m4: New file.
23196         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23197         compilation units.
23198         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23199         HAVE_WCSNRTOMBS.
23200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23201         HAVE_WCSNRTOMBS.
23202         * modules/wcsnrtombs: New file.
23203         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23204         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23205
23206 2008-12-21  Bruno Haible  <bruno@clisp.org>
23207
23208         * modules/wcsrtombs-tests: New file.
23209         * tests/test-wcsrtombs1.sh: New file.
23210         * tests/test-wcsrtombs2.sh: New file.
23211         * tests/test-wcsrtombs3.sh: New file.
23212         * tests/test-wcsrtombs4.sh: New file.
23213         * tests/test-wcsrtombs.c: New file.
23214
23215         New module 'wcsrtombs'.
23216         * lib/wchar.in.h (wcsrtombs): New declaration.
23217         * lib/wcsrtombs.c: New file.
23218         * m4/wcsrtombs.m4: New file.
23219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23220         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23222         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23223         * modules/wcsrtombs: New file.
23224         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23225         bugs.
23226
23227 2008-12-21  Bruno Haible  <bruno@clisp.org>
23228
23229         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23230         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23232         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23233         if not correct.
23234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23235         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23236         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23237         m4/locale-zh.m4, m4/codeset.m4.
23238         * doc/posix-functions/wcrtomb.texi: Document the bug.
23239
23240 2008-12-21  Bruno Haible  <bruno@clisp.org>
23241
23242         Work around a btowc() bug on IRIX 6.5.
23243         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23244         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23245         REPLACE_WTOBC if not.
23246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23247         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23248         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23249
23250 2008-12-21  Bruno Haible  <bruno@clisp.org>
23251
23252         * modules/wcrtomb-tests: New file.
23253         * tests/test-wcrtomb.sh: New file.
23254         * tests/test-wcrtomb.c: New file.
23255
23256         New module 'wcrtomb'.
23257         * lib/wchar.in.h (wcrtomb): New declaration.
23258         * lib/wcrtomb.c: New file.
23259         * m4/wcrtomb.m4: New file.
23260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23261         HAVE_WCRTOMB.
23262         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23263         HAVE_WCRTOMB.
23264         * modules/wcrtomb: New file.
23265         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23266
23267 2008-12-21  Bruno Haible  <bruno@clisp.org>
23268
23269         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23270         * modules/mbsrtowcs (Files): Likewise.
23271         * modules/wctob (Files): Likewise.
23272         * modules/c-strcase-tests (Files): Likewise.
23273         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23274         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23275         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23276         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23277         * modules/vasnprintf-posix-tests (Files): Likewise.
23278
23279 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23280
23281         gitlog-to-changelog: pass all command-line arguments to git-log
23282         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23283         it is sometimes convenient to filter the commits in various ways.
23284         gitlog-to-changelog only allows --since to specify a start date,
23285         but git-log itself supports many other filtering mechanisms.
23286         At the moment, I want to filter by branch name.  Rather than
23287         adding a --branch option to gitlog-to-changelog, it seems more
23288         flexible to simply pass all options directly to git-log and let
23289         git do the work.  Notice that this effectively makes --since a
23290         redundant option for gitlog-to-changelog, but removing it would
23291         require current usage to change since calls would then require
23292         an additional '--'.
23293
23294 2008-12-21  Bruno Haible  <bruno@clisp.org>
23295
23296         * modules/mbsnrtowcs-tests: New file.
23297         * tests/test-mbsnrtowcs1.sh: New file.
23298         * tests/test-mbsnrtowcs2.sh: New file.
23299         * tests/test-mbsnrtowcs3.sh: New file.
23300         * tests/test-mbsnrtowcs4.sh: New file.
23301         * tests/test-mbsnrtowcs.c: New file.
23302
23303         New module 'mbsnrtowcs'.
23304         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23305         * lib/mbsnrtowcs.c: New file.
23306         * lib/mbsrtowcs-state.c: New file.
23307         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23308         (internal_state): Remove variable.
23309         * m4/mbsnrtowcs.m4: New file.
23310         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23311         compilation units.
23312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23313         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23314         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23315         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23316         * modules/mbsnrtowcs: New file.
23317         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23318         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23319         portability problem.
23320
23321 2008-12-21  Bruno Haible  <bruno@clisp.org>
23322
23323         Work around mbsrtowcs bug.
23324         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23325         (gl_FUNC_MBSRTOWCS): Invoke it.
23326         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23327         m4/locale-zh.m4.
23328         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23329
23330 2008-12-21  Bruno Haible  <bruno@clisp.org>
23331
23332         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23333
23334 2008-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         Update doc for AIX.
23337         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23338         16-bit wchar_t type.
23339         * doc/posix-functions/btowc.texi: Likewise.
23340         * doc/posix-functions/fgetwc.texi: Likewise.
23341         * doc/posix-functions/fgetws.texi: Likewise.
23342         * doc/posix-functions/fputwc.texi: Likewise.
23343         * doc/posix-functions/fputws.texi: Likewise.
23344         * doc/posix-functions/fwide.texi: Likewise.
23345         * doc/posix-functions/fwprintf.texi: Likewise.
23346         * doc/posix-functions/fwscanf.texi: Likewise.
23347         * doc/posix-functions/getwchar.texi: Likewise.
23348         * doc/posix-functions/getwc.texi: Likewise.
23349         * doc/posix-functions/iswalnum.texi: Likewise.
23350         * doc/posix-functions/iswalpha.texi: Likewise.
23351         * doc/posix-functions/iswblank.texi: Likewise.
23352         * doc/posix-functions/iswcntrl.texi: Likewise.
23353         * doc/posix-functions/iswctype.texi: Likewise.
23354         * doc/posix-functions/iswdigit.texi: Likewise.
23355         * doc/posix-functions/iswgraph.texi: Likewise.
23356         * doc/posix-functions/iswlower.texi: Likewise.
23357         * doc/posix-functions/iswprint.texi: Likewise.
23358         * doc/posix-functions/iswpunct.texi: Likewise.
23359         * doc/posix-functions/iswspace.texi: Likewise.
23360         * doc/posix-functions/iswupper.texi: Likewise.
23361         * doc/posix-functions/iswxdigit.texi: Likewise.
23362         * doc/posix-functions/mbrtowc.texi: Likewise.
23363         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23364         * doc/posix-functions/mbstowcs.texi: Likewise.
23365         * doc/posix-functions/mbtowc.texi: Likewise.
23366         * doc/posix-functions/putwchar.texi: Likewise.
23367         * doc/posix-functions/putwc.texi: Likewise.
23368         * doc/posix-functions/swprintf.texi: Likewise.
23369         * doc/posix-functions/tolower.texi: Likewise.
23370         * doc/posix-functions/toupper.texi: Likewise.
23371         * doc/posix-functions/towctrans.texi: Likewise.
23372         * doc/posix-functions/ungetwc.texi: Likewise.
23373         * doc/posix-functions/vswprintf.texi: Likewise.
23374         * doc/posix-functions/wcrtomb.texi: Likewise.
23375         * doc/posix-functions/wcscat.texi: Likewise.
23376         * doc/posix-functions/wcschr.texi: Likewise.
23377         * doc/posix-functions/wcscmp.texi: Likewise.
23378         * doc/posix-functions/wcscoll.texi: Likewise.
23379         * doc/posix-functions/wcscpy.texi: Likewise.
23380         * doc/posix-functions/wcscspn.texi: Likewise.
23381         * doc/posix-functions/wcsftime.texi: Likewise.
23382         * doc/posix-functions/wcslen.texi: Likewise.
23383         * doc/posix-functions/wcsncat.texi: Likewise.
23384         * doc/posix-functions/wcsncmp.texi: Likewise.
23385         * doc/posix-functions/wcsncpy.texi: Likewise.
23386         * doc/posix-functions/wcspbrk.texi: Likewise.
23387         * doc/posix-functions/wcsrchr.texi: Likewise.
23388         * doc/posix-functions/wcsrtombs.texi: Likewise.
23389         * doc/posix-functions/wcsspn.texi: Likewise.
23390         * doc/posix-functions/wcsstr.texi: Likewise.
23391         * doc/posix-functions/wcstod.texi: Likewise.
23392         * doc/posix-functions/wcstof.texi: Likewise.
23393         * doc/posix-functions/wcstoimax.texi: Likewise.
23394         * doc/posix-functions/wcstok.texi: Likewise.
23395         * doc/posix-functions/wcstold.texi: Likewise.
23396         * doc/posix-functions/wcstoll.texi: Likewise.
23397         * doc/posix-functions/wcstol.texi: Likewise.
23398         * doc/posix-functions/wcstombs.texi: Likewise.
23399         * doc/posix-functions/wcstoull.texi: Likewise.
23400         * doc/posix-functions/wcstoul.texi: Likewise.
23401         * doc/posix-functions/wcstoumax.texi: Likewise.
23402         * doc/posix-functions/wcswidth.texi: Likewise.
23403         * doc/posix-functions/wcsxfrm.texi: Likewise.
23404         * doc/posix-functions/wctob.texi: Likewise.
23405         * doc/posix-functions/wctomb.texi: Likewise.
23406         * doc/posix-functions/wctrans.texi: Likewise.
23407         * doc/posix-functions/wctype.texi: Likewise.
23408         * doc/posix-functions/wcwidth.texi: Likewise.
23409         * doc/posix-functions/wmemchr.texi: Likewise.
23410         * doc/posix-functions/wmemcmp.texi: Likewise.
23411         * doc/posix-functions/wmemcpy.texi: Likewise.
23412         * doc/posix-functions/wmemmove.texi: Likewise.
23413         * doc/posix-functions/wmemset.texi: Likewise.
23414         * doc/posix-functions/wprintf.texi: Likewise.
23415         * doc/posix-functions/wscanf.texi: Likewise.
23416
23417 2008-12-21  Bruno Haible  <bruno@clisp.org>
23418
23419         Update doc for HP-UX 11.11.
23420         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23421         in HP-UX version 11.00, not in all versions of HP-UX 11.
23422         * doc/posix-functions/fwide.texi: Likewise.
23423         * doc/posix-functions/fwprintf.texi: Likewise.
23424         * doc/posix-functions/fwscanf.texi: Likewise.
23425         * doc/posix-functions/inet_ntop.texi: Likewise.
23426         * doc/posix-functions/inet_pton.texi: Likewise.
23427         * doc/posix-functions/mbrlen.texi: Likewise.
23428         * doc/posix-functions/mbrtowc.texi: Likewise.
23429         * doc/posix-functions/mbsinit.texi: Likewise.
23430         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23431         * doc/posix-functions/swprintf.texi: Likewise.
23432         * doc/posix-functions/swscanf.texi: Likewise.
23433         * doc/posix-functions/towctrans.texi: Likewise.
23434         * doc/posix-functions/vfwprintf.texi: Likewise.
23435         * doc/posix-functions/vswprintf.texi: Likewise.
23436         * doc/posix-functions/vwprintf.texi: Likewise.
23437         * doc/posix-functions/wcrtomb.texi: Likewise.
23438         * doc/posix-functions/wcsrtombs.texi: Likewise.
23439         * doc/posix-functions/wcsstr.texi: Likewise.
23440         * doc/posix-functions/wctob.texi: Likewise.
23441         * doc/posix-functions/wctrans.texi: Likewise.
23442         * doc/posix-functions/wmemchr.texi: Likewise.
23443         * doc/posix-functions/wmemcmp.texi: Likewise.
23444         * doc/posix-functions/wmemcpy.texi: Likewise.
23445         * doc/posix-functions/wmemmove.texi: Likewise.
23446         * doc/posix-functions/wmemset.texi: Likewise.
23447         * doc/posix-functions/wprintf.texi: Likewise.
23448         * doc/posix-functions/wscanf.texi: Likewise.
23449
23450 2008-12-21  Bruno Haible  <bruno@clisp.org>
23451
23452         Work around a portability problem.
23453         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23454         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23455
23456 2008-12-20  Bruno Haible  <bruno@clisp.org>
23457
23458         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23459         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23460         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23462         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23463
23464         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23465         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23466         set.
23467         (GNULIB_defined_mbstate_t): New macro.
23468         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23469         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23470         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23471         reuses the system's mbrtowc function but works around the bugs.
23472         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23473         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23474         macros.
23475         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23476         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23477         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23478         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23479         REPLACE_MBSINIT if mbsinit needs to be overridden.
23480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23481         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23482         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23483         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23484         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23485         m4/locale-zh.m4.
23486         (Depends): Add mbsinit.
23487         * modules/mbsinit (Depends): Add mbrtowc.
23488         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23489
23490 2008-12-20  Bruno Haible  <bruno@clisp.org>
23491
23492         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23493         so that there are no conversion errors on AIX.
23494         * tests/test-mbsrtowcs.c (main): LIkewise.
23495
23496 2008-12-20  Bruno Haible  <bruno@clisp.org>
23497
23498         Work around wctob bug on Solaris <= 9.
23499         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23500         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23502         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23503         * modules/wctob (Files): Add m4/locale-fr.m4.
23504         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23505
23506 2008-12-20  Bruno Haible  <bruno@clisp.org>
23507
23508         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23509         /dev/null.
23510         * tests/test-select-in.sh: Likewise.
23511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23512
23513 2008-12-20  Bruno Haible  <bruno@clisp.org>
23514
23515         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23516         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23517         Cygwin 1.5.x.
23518
23519 2008-12-20  Bruno Haible  <bruno@clisp.org>
23520
23521         Ensure mbstate_t is defined on HP-UX 11.11.
23522         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23523         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23524         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23525         AC_USE_SYSTEM_EXTENSIONS.
23526         * modules/fnmatch (Depends-on): Add extensions.
23527         * modules/mbrlen (Depends-on): Likewise.
23528         * modules/mbrtowc (Depends-on): Likewise.
23529         * modules/mbsinit (Depends-on): Likewise.
23530         * modules/mbsrtowcs (Depends-on): Likewise.
23531         * modules/mbswidth (Depends-on): Likewise.
23532         * modules/quotearg (Depends-on): Likewise.
23533         * modules/strftime (Depends-on): Likewise.
23534
23535 2008-12-20  Bruno Haible  <bruno@clisp.org>
23536
23537         Ensure wctob is declared on IRIX 6.5.
23538         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23539         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23540         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23542         of HAVE_WCTOB.
23543         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23544         HAVE_WCTOB.
23545         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23546
23547 2008-12-19  Bruno Haible  <bruno@clisp.org>
23548
23549         * modules/mbsrtowcs-tests: New file.
23550         * tests/test-mbsrtowcs1.sh: New file.
23551         * tests/test-mbsrtowcs2.sh: New file.
23552         * tests/test-mbsrtowcs3.sh: New file.
23553         * tests/test-mbsrtowcs4.sh: New file.
23554         * tests/test-mbsrtowcs.c: New file.
23555
23556         New module 'mbsrtowcs'.
23557         * lib/wchar.in.h (mbsrtowcs): New declaration.
23558         * lib/mbsrtowcs.c: New file.
23559         * m4/mbsrtowcs.m4: New file.
23560         * modules/mbsrtowcs: New file.
23561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23562         HAVE_MBSRTOWCS.
23563         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23564         HAVE_MBSRTOWCS.
23565         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23566
23567 2008-12-19  Bruno Haible  <bruno@clisp.org>
23568
23569         New module 'mbrlen'.
23570         * lib/wchar.in.h (mbrlen): New declaration.
23571         * lib/mbrlen.c: New file.
23572         * m4/mbrlen.m4: New file.
23573         * modules/mbrlen: New file.
23574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23575         HAVE_MBRLEN.
23576         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23577         HAVE_MBRLEN.
23578         * doc/posix-functions/mbrlen.texi: Document the new module.
23579
23580 2008-12-19  Bruno Haible  <bruno@clisp.org>
23581
23582         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23583         * modules/mbrtowc (Depends-on): Add verify.
23584         Suggested by Paul Eggert.
23585
23586 2008-12-18  Bruno Haible  <bruno@clisp.org>
23587
23588         * modules/mbsinit-tests: New file.
23589         * tests/test-mbsinit.sh: New file.
23590         * tests/test-mbsinit.c: New file.
23591
23592 2008-12-18  Bruno Haible  <bruno@clisp.org>
23593
23594         * modules/mbrtowc-tests: New file.
23595         * tests/test-mbrtowc1.sh: New file.
23596         * tests/test-mbrtowc2.sh: New file.
23597         * tests/test-mbrtowc3.sh: New file.
23598         * tests/test-mbrtowc4.sh: New file.
23599         * tests/test-mbrtowc.c: New file.
23600
23601         New module 'mbrtowc'.
23602         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23603         mbsinit and mbrtowc.
23604         (mbrtowc): New declaration.
23605         * lib/mbrtowc.c: New file.
23606         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23607         * modules/mbrtowc: New file.
23608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23609         HAVE_MBRTOWC.
23610         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23611         HAVE_MBRTOWC.
23612         * doc/posix-functions/mbrtowc.texi: Document the new module.
23613
23614 2008-12-18  Bruno Haible  <bruno@clisp.org>
23615
23616         New module 'wctob'.
23617         * lib/wchar.in.h (wctob): New declaration.
23618         * lib/wctob.c: New file.
23619         * m4/wctob.m4: New file.
23620         * modules/wctob: New file.
23621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23622         HAVE_WCTOB.
23623         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23624         * doc/posix-functions/wctob.texi: Document the new module.
23625
23626 2008-12-18  Bruno Haible  <bruno@clisp.org>
23627
23628         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23629         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23630
23631 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23632
23633         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23634         G. Christensen" <tgc@jupiterrise.com>.
23635
23636         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23637         G. Christensen" <tgc@jupiterrise.com>.
23638
23639         * lib/flock.c: Need to include string.h.  Reported by "Tom
23640         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23641         <ebb9@byu.net>.
23642
23643 2008-12-18  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/locale-ja.m4: New file, from GNU gettext.
23646
23647 2008-12-17  Bruno Haible  <bruno@clisp.org>
23648
23649         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23650         Suggested by Eric Blake.
23651
23652 2008-12-17  Bruno Haible  <bruno@clisp.org>
23653
23654         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23655
23656 2008-12-17  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23659         * modules/mbsinit (Depends-on): Add verify.
23660         Suggested by Paul Eggert.
23661
23662 2008-12-17  Bruno Haible  <bruno@clisp.org>
23663
23664         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23665         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23666         gl_FUNC_MBRTOWC.
23667         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23668         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23669         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23670         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23671         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23672         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23673         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23674         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23675         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23676         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23677         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23678         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23679         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23680         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23681         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23682         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23683         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23684         * modules/trim (configure.ac): Likewise.
23685
23686 2008-12-17  Bruno Haible  <bruno@clisp.org>
23687
23688         * modules/btowc-tests: New file.
23689         * tests/test-btowc1.sh: New file.
23690         * tests/test-btowc2.sh: New file.
23691         * tests/test-btowc.c: New file.
23692
23693         New module 'btowc'.
23694         * lib/wchar.in.h (btowc): New declaration.
23695         * lib/btowc.c: New file.
23696         * m4/btowc.m4: New file.
23697         * modules/btowc: New file.
23698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23699         HAVE_BTOWC.
23700         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23701         * doc/posix-functions/btowc.texi: Document the new module.
23702
23703 2008-12-17  Bruno Haible  <bruno@clisp.org>
23704
23705         New module 'mbsinit'.
23706         * lib/wchar.in.h (mbsinit): New declaration.
23707         * lib/mbsinit.c: New file.
23708         * m4/mbsinit.m4: New file.
23709         * modules/mbsinit: New file.
23710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23711         HAVE_MBSINIT.
23712         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23713         HAVE_MBSINIT.
23714         * doc/posix-functions/mbsinit.texi: Document the new module.
23715
23716 2008-12-16  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/unistd.in.h: Add comment.
23719         * tests/test-environ.c: Don't include <stdlib.h>.
23720
23721 2008-12-16  Bruno Haible  <bruno@clisp.org>
23722
23723         * lib/parse-duration.h (parse_duration): Document return value
23724         convention.
23725         * lib/parse-duration.c: Include specification header first. Add
23726         comments.
23727         (_): Remove macro.
23728         (parse_year_month_day, parse_hour_minute_second): Move side effects
23729         outside of strchr call.
23730         (parse_non_iso8601): Move side effects outside of isspace call.
23731         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23732         call.
23733
23734 2008-12-16  Bruno Haible  <bruno@clisp.org>
23735
23736         * tests/test-parse-duration.sh: Produce no output when the test
23737         succeeds.
23738
23739 2008-12-16  Bruno Haible  <bruno@clisp.org>
23740
23741         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23742         expressions.
23743
23744 2008-12-15  Bruno Haible  <bruno@clisp.org>
23745
23746         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23747         * doc/glibc-functions/flistxattr.texi: Likewise.
23748         * doc/glibc-functions/fopencookie.texi: Likewise.
23749         * doc/glibc-functions/fremovexattr.texi: Likewise.
23750         * doc/glibc-functions/fsetxattr.texi: Likewise.
23751         * doc/glibc-functions/getxattr.texi: Likewise.
23752         * doc/glibc-functions/lgetxattr.texi: Likewise.
23753         * doc/glibc-functions/listxattr.texi: Likewise.
23754         * doc/glibc-functions/llistxattr.texi: Likewise.
23755         * doc/glibc-functions/lremovexattr.texi: Likewise.
23756         * doc/glibc-functions/lsetxattr.texi: Likewise.
23757         * doc/glibc-functions/removexattr.texi: Likewise.
23758         * doc/glibc-functions/setxattr.texi: Likewise.
23759         * doc/posix-functions/open_memstream.texi: Likewise.
23760
23761 2008-12-15  Eric Blake  <ebb9@byu.net>
23762
23763         Update doc for cygwin 1.7.
23764         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23765         functions.
23766         * doc/posix-functions/fchmodat.texi: Likewise.
23767         * doc/posix-functions/fchownat.texi: Likewise.
23768         * doc/posix-functions/fdopendir.texi: Likewise.
23769         * doc/posix-functions/fmemopen.texi: Likewise.
23770         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23771         * doc/posix-functions/fstatat.texi: Likewise.
23772         * doc/posix-functions/futimens.texi: Likewise.
23773         * doc/posix-functions/gai_strerror.texi: Likewise.
23774         * doc/posix-functions/getaddrinfo.texi: Likewise.
23775         * doc/posix-functions/getnameinfo.texi: Likewise.
23776         * doc/posix-functions/if_freenameindex.texi: Likewise.
23777         * doc/posix-functions/if_indextoname.texi: Likewise.
23778         * doc/posix-functions/if_nameindex.texi: Likewise.
23779         * doc/posix-functions/if_nametoindex.texi: Likewise.
23780         * doc/posix-functions/insque.texi: Likewise.
23781         * doc/posix-functions/linkat.texi: Likewise.
23782         * doc/posix-functions/llrint.texi: Likewise.
23783         * doc/posix-functions/llrintf.texi: Likewise.
23784         * doc/posix-functions/llrintl.texi: Likewise.
23785         * doc/posix-functions/lockf.texi: Likewise.
23786         * doc/posix-functions/lrintl.texi: Likewise.
23787         * doc/posix-functions/mkdirat.texi: Likewise.
23788         * doc/posix-functions/mkfifoat.texi: Likewise.
23789         * doc/posix-functions/mknodat.texi: Likewise.
23790         * doc/posix-functions/mq_close.texi: Likewise.
23791         * doc/posix-functions/mq_getattr.texi: Likewise.
23792         * doc/posix-functions/mq_notify.texi: Likewise.
23793         * doc/posix-functions/mq_open.texi: Likewise.
23794         * doc/posix-functions/mq_receive.texi: Likewise.
23795         * doc/posix-functions/mq_send.texi: Likewise.
23796         * doc/posix-functions/mq_setattr.texi: Likewise.
23797         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23798         * doc/posix-functions/mq_timedsend.texi: Likewise.
23799         * doc/posix-functions/mq_unlink.texi: Likewise.
23800         * doc/posix-functions/open_memstream.texi: Likewise.
23801         * doc/posix-functions/openat.texi: Likewise.
23802         * doc/posix-functions/posix_fadvise.texi: Likewise.
23803         * doc/posix-functions/posix_fallocate.texi: Likewise.
23804         * doc/posix-functions/posix_madvise.texi: Likewise.
23805         * doc/posix-functions/posix_memalign.texi: Likewise.
23806         * doc/posix-functions/posix_openpt.texi: Likewise.
23807         * doc/posix-functions/readlinkat.texi: Likewise.
23808         * doc/posix-functions/remque.texi: Likewise.
23809         * doc/posix-functions/renameat.texi: Likewise.
23810         * doc/posix-functions/rintl.texi: Likewise.
23811         * doc/posix-functions/sem_unlink.texi: Likewise.
23812         * doc/posix-functions/shm_open.texi: Likewise.
23813         * doc/posix-functions/shm_unlink.texi: Likewise.
23814         * doc/posix-functions/signgam.texi: Likewise.
23815         * doc/posix-functions/sigset.texi: Likewise.
23816         * doc/posix-functions/stpcpy.texi: Likewise.
23817         * doc/posix-functions/stpncpy.texi: Likewise.
23818         * doc/posix-functions/strerror.texi: Likewise.
23819         * doc/posix-functions/strtod.texi: Likewise.
23820         * doc/posix-functions/symlinkat.texi: Likewise.
23821         * doc/posix-functions/unlinkat.texi: Likewise.
23822         * doc/posix-functions/utimensat.texi: Likewise.
23823         * doc/glibc-functions/bindresvport.texi: Likewise.
23824         * doc/glibc-functions/dn_expand.texi: Likewise.
23825         * doc/glibc-functions/exp10.texi: Likewise.
23826         * doc/glibc-functions/exp10f.texi: Likewise.
23827         * doc/glibc-functions/fgetxattr.texi: Likewise.
23828         * doc/glibc-functions/flistxattr.texi: Likewise.
23829         * doc/glibc-functions/fopencookie.texi: Likewise.
23830         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23831         * doc/glibc-functions/fremovexattr.texi: Likewise.
23832         * doc/glibc-functions/fsetxattr.texi: Likewise.
23833         * doc/glibc-functions/getifaddrs.texi: Likewise.
23834         * doc/glibc-functions/getxattr.texi: Likewise.
23835         * doc/glibc-functions/lgetxattr.texi: Likewise.
23836         * doc/glibc-functions/listxattr.texi: Likewise.
23837         * doc/glibc-functions/llistxattr.texi: Likewise.
23838         * doc/glibc-functions/lremovexattr.texi: Likewise.
23839         * doc/glibc-functions/lsetxattr.texi: Likewise.
23840         * doc/glibc-functions/pow10.texi: Likewise.
23841         * doc/glibc-functions/pow10f.texi: Likewise.
23842         * doc/glibc-functions/rcmd_af.texi: Likewise.
23843         * doc/glibc-functions/removexattr.texi: Likewise.
23844         * doc/glibc-functions/res_init.texi: Likewise.
23845         * doc/glibc-functions/res_mkquery.texi: Likewise.
23846         * doc/glibc-functions/res_query.texi: Likewise.
23847         * doc/glibc-functions/res_querydomain.texi: Likewise.
23848         * doc/glibc-functions/res_send.texi: Likewise.
23849         * doc/glibc-functions/rresvport_af.texi: Likewise.
23850         * doc/glibc-functions/setxattr.texi: Likewise.
23851         * doc/glibc-functions/strcasestr.texi: Likewise.
23852
23853 2008-12-15  Bruno Haible  <bruno@clisp.org>
23854
23855         Fix compilation error on OSF/1 4.0.
23856         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23857         <sys/time.h>, simply delegate to the system header.
23858         Reported by Daniel Richard G. <oss@teragram.com>.
23859
23860 2008-12-15  Bruno Haible  <bruno@clisp.org>
23861
23862         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23863         * doc/posix-functions/fchmodat.texi: Likewise.
23864         * doc/posix-functions/fchownat.texi: Likewise.
23865         * doc/posix-functions/fdopendir.texi: Likewise.
23866         * doc/posix-functions/fstatat.texi: Likewise.
23867         * doc/posix-functions/mkdirat.texi: Likewise.
23868         * doc/posix-functions/unlinkat.texi: Likewise.
23869
23870 2008-12-14  Bruno Haible  <bruno@clisp.org>
23871
23872         Update doc for POSIX:2008.
23873         * doc/posix-functions/faccessat.texi: New file.
23874         * doc/posix-functions/fchmodat.texi: New file.
23875         * doc/posix-functions/fchownat.texi: New file.
23876         * doc/posix-functions/fdopendir.texi: New file.
23877         * doc/posix-functions/fstatat.texi: New file.
23878         * doc/posix-functions/futimens.texi: New file.
23879         * doc/posix-functions/linkat.texi: New file.
23880         * doc/posix-functions/mkdirat.texi: New file.
23881         * doc/posix-functions/mkfifoat.texi: New file.
23882         * doc/posix-functions/mknodat.texi: New file.
23883         * doc/posix-functions/open_wmemstream.texi: New file.
23884         * doc/posix-functions/openat.texi: New file.
23885         * doc/posix-functions/psiginfo.texi: New file.
23886         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23887         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23888         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23889         * doc/posix-functions/readlinkat.texi: New file.
23890         * doc/posix-functions/renameat.texi: New file.
23891         * doc/posix-functions/strerror_l.texi: New file.
23892         * doc/posix-functions/symlinkat.texi: New file.
23893         * doc/posix-functions/unlinkat.texi: New file.
23894         * doc/posix-functions/utimensat.texi: New file.
23895         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23896
23897 2008-12-14  Bruno Haible  <bruno@clisp.org>
23898
23899         Update doc for POSIX:2008.
23900         * doc/posix-functions/alphasort.texi: Renamed from
23901         doc/glibc-functions/alphasort.texi.
23902         * doc/posix-functions/dirfd.texi: Renamed from
23903         doc/glibc-functions/dirfd.texi.
23904         * doc/posix-functions/dprintf.texi: Renamed from
23905         doc/glibc-functions/dprintf.texi.
23906         * doc/posix-functions/duplocale.texi: Renamed from
23907         doc/glibc-functions/duplocale.texi.
23908         * doc/posix-functions/fexecve.texi: Renamed from
23909         doc/glibc-functions/fexecve.texi.
23910         * doc/posix-functions/fmemopen.texi: Renamed from
23911         doc/glibc-functions/fmemopen.texi.
23912         * doc/posix-functions/freelocale.texi: Renamed from
23913         doc/glibc-functions/freelocale.texi.
23914         * doc/posix-functions/getdate_err.texi: Renamed from
23915         doc/glibc-functions/getdate_err.texi.
23916         * doc/posix-functions/isalnum_l.texi: Renamed from
23917         doc/glibc-functions/isalnum_l.texi.
23918         * doc/posix-functions/isalpha_l.texi: Renamed from
23919         doc/glibc-functions/isalpha_l.texi.
23920         * doc/posix-functions/isblank_l.texi: Renamed from
23921         doc/glibc-functions/isblank_l.texi.
23922         * doc/posix-functions/iscntrl_l.texi: Renamed from
23923         doc/glibc-functions/iscntrl_l.texi.
23924         * doc/posix-functions/isdigit_l.texi: Renamed from
23925         doc/glibc-functions/isdigit_l.texi.
23926         * doc/posix-functions/isgraph_l.texi: Renamed from
23927         doc/glibc-functions/isgraph_l.texi.
23928         * doc/posix-functions/islower_l.texi: Renamed from
23929         doc/glibc-functions/islower_l.texi.
23930         * doc/posix-functions/isprint_l.texi: Renamed from
23931         doc/glibc-functions/isprint_l.texi.
23932         * doc/posix-functions/ispunct_l.texi: Renamed from
23933         doc/glibc-functions/ispunct_l.texi.
23934         * doc/posix-functions/isspace_l.texi: Renamed from
23935         doc/glibc-functions/isspace_l.texi.
23936         * doc/posix-functions/isupper_l.texi: Renamed from
23937         doc/glibc-functions/isupper_l.texi.
23938         * doc/posix-functions/iswalnum_l.texi: Renamed from
23939         doc/glibc-functions/iswalnum_l.texi.
23940         * doc/posix-functions/iswalpha_l.texi: Renamed from
23941         doc/glibc-functions/iswalpha_l.texi.
23942         * doc/posix-functions/iswblank_l.texi: Renamed from
23943         doc/glibc-functions/iswblank_l.texi.
23944         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23945         doc/glibc-functions/iswcntrl_l.texi.
23946         * doc/posix-functions/iswctype_l.texi: Renamed from
23947         doc/glibc-functions/iswctype_l.texi.
23948         * doc/posix-functions/iswdigit_l.texi: Renamed from
23949         doc/glibc-functions/iswdigit_l.texi.
23950         * doc/posix-functions/iswgraph_l.texi: Renamed from
23951         doc/glibc-functions/iswgraph_l.texi.
23952         * doc/posix-functions/iswlower_l.texi: Renamed from
23953         doc/glibc-functions/iswlower_l.texi.
23954         * doc/posix-functions/iswprint_l.texi: Renamed from
23955         doc/glibc-functions/iswprint_l.texi.
23956         * doc/posix-functions/iswpunct_l.texi: Renamed from
23957         doc/glibc-functions/iswpunct_l.texi.
23958         * doc/posix-functions/iswspace_l.texi: Renamed from
23959         doc/glibc-functions/iswspace_l.texi.
23960         * doc/posix-functions/iswupper_l.texi: Renamed from
23961         doc/glibc-functions/iswupper_l.texi.
23962         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23963         doc/glibc-functions/iswxdigit_l.texi.
23964         * doc/posix-functions/isxdigit_l.texi: Renamed from
23965         doc/glibc-functions/isxdigit_l.texi.
23966         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23967         doc/glibc-functions/mbsnrtowcs.texi.
23968         * doc/posix-functions/mkdtemp.texi: Renamed from
23969         doc/glibc-functions/mkdtemp.texi.
23970         * doc/posix-functions/newlocale.texi: Renamed from
23971         doc/glibc-functions/newlocale.texi.
23972         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23973         doc/glibc-functions/nl_langinfo_l.texi.
23974         * doc/posix-functions/open_memstream.texi: Renamed from
23975         doc/glibc-functions/open_memstream.texi.
23976         * doc/posix-functions/opterr.texi: Renamed from
23977         doc/glibc-functions/opterr.texi.
23978         * doc/posix-functions/optind.texi: Renamed from
23979         doc/glibc-functions/optind.texi.
23980         * doc/posix-functions/optopt.texi: Renamed from
23981         doc/glibc-functions/optopt.texi.
23982         * doc/posix-functions/psignal.texi: Renamed from
23983         doc/glibc-functions/psignal.texi.
23984         * doc/posix-functions/scandir.texi: Renamed from
23985         doc/glibc-functions/scandir.texi.
23986         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23987         doc/glibc-functions/sched_get_priority_min.texi.
23988         * doc/posix-functions/signgam.texi: Renamed from
23989         doc/glibc-functions/signgam.texi.
23990         * doc/posix-functions/stpcpy.texi: Renamed from
23991         doc/glibc-functions/stpcpy.texi.
23992         * doc/posix-functions/stpncpy.texi: Renamed from
23993         doc/glibc-functions/stpncpy.texi.
23994         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23995         doc/glibc-functions/strcasecmp_l.texi.
23996         * doc/posix-functions/strcoll_l.texi: Renamed from
23997         doc/glibc-functions/strcoll_l.texi.
23998         * doc/posix-functions/strfmon_l.texi: Renamed from
23999         doc/glibc-functions/strfmon_l.texi.
24000         * doc/posix-functions/strftime_l.texi: Renamed from
24001         doc/glibc-functions/strftime_l.texi.
24002         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24003         doc/glibc-functions/strncasecmp_l.texi.
24004         * doc/posix-functions/strndup.texi: Renamed from
24005         doc/glibc-functions/strndup.texi.
24006         * doc/posix-functions/strnlen.texi: Renamed from
24007         doc/glibc-functions/strnlen.texi.
24008         * doc/posix-functions/strsignal.texi: Renamed from
24009         doc/glibc-functions/strsignal.texi.
24010         * doc/posix-functions/strxfrm_l.texi: Renamed from
24011         doc/glibc-functions/strxfrm_l.texi.
24012         * doc/posix-functions/timer_gettime.texi: Renamed from
24013         doc/glibc-functions/timer_gettime.texi.
24014         * doc/posix-functions/tolower_l.texi: Renamed from
24015         doc/glibc-functions/tolower_l.texi.
24016         * doc/posix-functions/toupper_l.texi: Renamed from
24017         doc/glibc-functions/toupper_l.texi.
24018         * doc/posix-functions/towctrans_l.texi: Renamed from
24019         doc/glibc-functions/towctrans_l.texi.
24020         * doc/posix-functions/towlower_l.texi: Renamed from
24021         doc/glibc-functions/towlower_l.texi.
24022         * doc/posix-functions/towupper_l.texi: Renamed from
24023         doc/glibc-functions/towupper_l.texi.
24024         * doc/posix-functions/uselocale.texi: Renamed from
24025         doc/glibc-functions/uselocale.texi.
24026         * doc/posix-functions/vdprintf.texi: Renamed from
24027         doc/glibc-functions/vdprintf.texi.
24028         * doc/posix-functions/wcpcpy.texi:
24029         Renamed from doc/glibc-functions/wcpcpy.texi.
24030         * doc/posix-functions/wcpncpy.texi: Renamed from
24031         doc/glibc-functions/wcpncpy.texi.
24032         * doc/posix-functions/wcscasecmp.texi: Renamed from
24033         doc/glibc-functions/wcscasecmp.texi.
24034         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24035         doc/glibc-functions/wcscasecmp_l.texi.
24036         * doc/posix-functions/wcscoll_l.texi: Renamed from
24037         doc/glibc-functions/wcscoll_l.texi.
24038         * doc/posix-functions/wcsdup.texi: Renamed from
24039         doc/glibc-functions/wcsdup.texi.
24040         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24041         doc/glibc-functions/wcsncasecmp.texi.
24042         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24043         doc/glibc-functions/wcsncasecmp_l.texi.
24044         * doc/posix-functions/wcsnlen.texi: Renamed from
24045         doc/glibc-functions/wcsnlen.texi.
24046         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24047         doc/glibc-functions/wcsnrtombs.texi.
24048         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24049         doc/glibc-functions/wcsxfrm_l.texi.
24050         * doc/posix-functions/wctrans_l.texi: Renamed from
24051         doc/glibc-functions/wctrans_l.texi.
24052         * doc/posix-functions/wctype_l.texi: Renamed from
24053         doc/glibc-functions/wctype_l.texi.
24054         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24055         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24056         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24057         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24058         these subsections.
24059         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24060         Remove sections.
24061
24062 2008-12-14  Bruno Haible  <bruno@clisp.org>
24063
24064         Update doc for POSIX:2008.
24065         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24066
24067 2008-12-14  Bruno Haible  <bruno@clisp.org>
24068
24069         Update doc for POSIX:2008.
24070         * doc/pastposix-functions/bcmp.texi: Renamed from
24071         doc/posix-functions/bcmp.texi.
24072         * doc/pastposix-functions/bcopy.texi: Renamed from
24073         doc/posix-functions/bcopy.texi.
24074         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24075         doc/posix-functions/bsd_signal.texi.
24076         * doc/pastposix-functions/bzero.texi: Renamed from
24077         doc/posix-functions/bzero.texi.
24078         * doc/pastposix-functions/ecvt.texi: Renamed from
24079         doc/posix-functions/ecvt.texi.
24080         * doc/pastposix-functions/fcvt.texi: Renamed from
24081         doc/posix-functions/fcvt.texi.
24082         * doc/pastposix-functions/ftime.texi: Renamed from
24083         doc/posix-functions/ftime.texi.
24084         * doc/pastposix-functions/gcvt.texi: Renamed from
24085         doc/posix-functions/gcvt.texi.
24086         * doc/pastposix-functions/getcontext.texi: Renamed from
24087         doc/posix-functions/getcontext.texi.
24088         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24089         doc/posix-functions/gethostbyaddr.texi.
24090         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24091         doc/posix-functions/gethostbyname.texi.
24092         * doc/pastposix-functions/getwd.texi: Renamed from
24093         doc/posix-functions/getwd.texi.
24094         * doc/pastposix-functions/h_errno.texi: Renamed from
24095         doc/posix-functions/h_errno.texi.
24096         * doc/pastposix-functions/index.texi: Renamed from
24097         doc/posix-functions/index.texi.
24098         * doc/pastposix-functions/makecontext.texi: Renamed from
24099         doc/posix-functions/makecontext.texi.
24100         * doc/pastposix-functions/mktemp.texi: Renamed from
24101         doc/posix-functions/mktemp.texi.
24102         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24103         doc/posix-functions/pthread_attr_getstackaddr.texi.
24104         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24105         doc/posix-functions/pthread_attr_setstackaddr.texi.
24106         * doc/pastposix-functions/rindex.texi: Renamed from
24107         doc/posix-functions/rindex.texi.
24108         * doc/pastposix-functions/scalb.texi: Renamed from
24109         doc/posix-functions/scalb.texi.
24110         * doc/pastposix-functions/setcontext.texi: Renamed from
24111         doc/posix-functions/setcontext.texi.
24112         * doc/pastposix-functions/swapcontext.texi: Renamed from
24113         doc/posix-functions/swapcontext.texi.
24114         * doc/pastposix-functions/ualarm.texi: Renamed from
24115         doc/posix-functions/ualarm.texi.
24116         * doc/pastposix-functions/usleep.texi: Renamed from
24117         doc/posix-functions/usleep.texi.
24118         * doc/pastposix-functions/vfork.texi: Renamed from
24119         doc/posix-functions/vfork.texi.
24120         * doc/pastposix-functions/wcswcs.texi: Renamed from
24121         doc/posix-functions/wcswcs.texi.
24122         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24123         (Function Substitutes): Update.
24124
24125 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24126
24127         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24128         m4/strerror.m4.
24129
24130 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24131             Bruno Haible  <bruno@clisp.org>
24132
24133         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24134
24135 2008-12-13  Bruno Haible  <bruno@clisp.org>
24136
24137         * modules/strtoull (Depends-on): Remove unistd.
24138
24139 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24140
24141         * modules/strtoull (Depends-on): Add stdlib.
24142
24143 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24144
24145         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24146
24147 2008-12-10  Jim Meyering  <meyering@redhat.com>
24148
24149         gl_ASSERT: don't say assertions are disabled when they're not
24150         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24151         "checking whether to enable assertions... no", when they are in
24152         fact enabled.  This is solely a bug in the output of configure.
24153         In spite of saying "no", NDEBUG was not defined in that case.
24154         Also, as noted by Eric Blake, leave assertions enabled upon
24155         --enable-assert=INVALID.
24156
24157 2008-12-10  Bruno Haible  <bruno@clisp.org>
24158
24159         Change MODULES.html to refer to POSIX:2008 where possible.
24160         * MODULES.html.sh (POSIX2008_URL): New variable.
24161         (posix_headers): Remove sys/timeb, ucontext.
24162         (posix2001_headers): New variable.
24163         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24164         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24165         index, makecontext, mktemp, pthread_attr_getstackaddr,
24166         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24167         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24168         (posix2001_functions): New variable.
24169         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24170         otherwise.
24171
24172 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24173
24174         add missing include to parse-duration.c
24175         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24176         * modules/parse-duration (Depends-on): Add xalloc.
24177
24178         fix sed script reading maint.mk
24179         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24180         (syntax-check-rules): Use it.
24181
24182 2008-12-09  Bruno Haible  <bruno@clisp.org>
24183
24184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24185         MacOS X 10.4/PowerPC.
24186         Reported by Simon Josefsson.
24187
24188 2008-12-08  Jim Meyering  <meyering@redhat.com>
24189
24190         work around mingw's lack of some S_IF definitions
24191         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24192         Reported by Simon Josefsson.
24193
24194 2008-12-08  Bruno Haible  <bruno@clisp.org>
24195
24196         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24197         applied to variables. Needed on MacOS X 10.4/PowerPC.
24198         Reported by Simon Josefsson.
24199
24200 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24201         and Eric Blake  <ebb9@byu.net>
24202
24203         assert: honor --enable-assert
24204         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24205         order to honor --enable-assert, rather than treating it as a
24206         synonym for --disable-assert.
24207
24208 2008-12-08  Jim Meyering  <meyering@redhat.com>
24209
24210         * lib/posixtm.c: Remove now-useless declaration of mktime.
24211
24212         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24213
24214 2008-12-07  Bruno Haible  <bruno@clisp.org>
24215
24216         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24217         test_once): Mark functions as static.
24218         * tests/test-tls.c (test_tls): Likewise.
24219
24220 2008-12-07  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24223         iconv_register_autodetect.
24224
24225 2008-12-07  Jim Meyering  <meyering@redhat.com>
24226
24227         posixtm.c: avoid a warning
24228         * lib/posixtm.c (posixtime): Don't initialize tm0.
24229         It's no longer needed to placate gcc4's -Wuninitialized,
24230         and the attempt to placate would elicit a new warning.
24231
24232         unicodeio.c: mark unused parameters
24233         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24234         (fallback_failure_callback): Likewise.
24235
24236 2008-12-07  Bruno Haible  <bruno@clisp.org>
24237
24238         * gnulib-tool (func_create_testdir): When building the tests
24239         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24240         Reported by Simon Josefsson.
24241
24242 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24243
24244         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24245
24246 2008-12-06  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24249         Suggested by Eric Blake.
24250
24251 2008-12-06  Bruno Haible  <bruno@clisp.org>
24252
24253         Fix a c-stack test failure on MacOS X.
24254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24255         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24256         handler for SIGBUS as well.
24257         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24258         install a signal handler for SIGBUS as well.
24259         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24260
24261 2008-12-06  Bruno Haible  <bruno@clisp.org>
24262
24263         Advocacy documentation.
24264         * doc/gnulib-intro.texi (Benefits): New section.
24265         * doc/gnulib.texi: Update.
24266
24267 2008-12-06  Bruno Haible  <bruno@clisp.org>
24268
24269         Document the 'manywarnings' module.
24270         * doc/manywarnings.texi: New file.
24271         * doc/gnulib.texi: Include it.
24272
24273 2008-12-05  Eric Blake  <ebb9@byu.net>
24274
24275         tests: silence some gcc warnings
24276         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24277         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24278         type mismatches.
24279
24280 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24281             Bruno Haible  <bruno@clisp.org>
24282
24283         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24284
24285 2008-11-29  Jim Meyering  <meyering@redhat.com>
24286
24287         unicodeio.c: mark unused parameters
24288         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24289         (fallback_failure_callback): Likewise.
24290
24291         fts: fix a thinko
24292         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24293         (set_stat_type): Return S_IF*-valued "type" directly.
24294         Prompted by James Youngman's spotting a related bug.
24295         Confirmed by further testing through find.
24296
24297         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24298         * lib/fts.c (D_TYPE): Define.
24299         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24300         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24301         (s_ifmt_shift_bits): New function.
24302         (set_stat_type): New function.
24303         (fts_build): When not calling fts_stat, call set_stat_type
24304         to propagate dirent.d_type info to fts_read caller.
24305         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24306         fts_statp->st_mode type information may be valid.
24307
24308 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24309
24310         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24311         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24312         <sds@gnu.org>.
24313
24314 2008-11-20  Bruno Haible  <bruno@clisp.org>
24315
24316         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24317         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24318         INCLUDE_NEXT.
24319         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24320         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24321         * modules/math (Makefile.am): Substitute
24322         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24323         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24324
24325 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24326             Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/stdint.in.h: Define all type macros so that their expansion is
24329         a single typedef'ed token. Fixes a compilation failure in Boost which
24330         does "using ::int8_t;".
24331
24332 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24333
24334         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24335         gl_MANYWARN_ALL_GCC.
24336         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24337         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24338         * modules/manywarnings: New file.
24339         * MODULES.html.sh: Mention manywarnings module.
24340
24341 2008-11-18  Bruno Haible  <bruno@clisp.org>
24342
24343         * doc/gnulib-tool.texi (Unit tests): New section.
24344
24345 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24346
24347         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24348         paths like 'lib/po/foo.po'.
24349
24350 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24351
24352         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24353         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24354
24355 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24356
24357         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24358         parameter works.
24359
24360 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24361
24362         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24363
24364 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24365
24366         * modules/parse-duration-tests: New file.
24367         * tests/test-parse-duration.sh: New file.
24368         * tests/test-parse-duration.c: New file.
24369
24370         New module 'parse-duration'.
24371         * lib/parse-duration.h: New file.
24372         * lib/parse-duration.c: New file.
24373         * modules/parse-duration: New file.
24374
24375 2008-11-17  Bruno Haible  <bruno@clisp.org>
24376
24377         * tests/test-select-out.sh: Comment out the first pipe test.
24378         Reported by Simon Josefsson.
24379
24380 2008-11-17  Bruno Haible  <bruno@clisp.org>
24381
24382         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24384         gl_HOSTENT.
24385
24386 2008-11-17  Bruno Haible  <bruno@clisp.org>
24387
24388         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24389         -lnetwork and -lnet. Needed for Haiku and BeOS.
24390
24391 2008-11-16  Bruno Haible  <bruno@clisp.org>
24392
24393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24394
24395 2008-11-16  Bruno Haible  <bruno@clisp.org>
24396
24397         Avoid test failure on Haiku.
24398         * tests/test-fsync.c: Include <errno.h>.
24399         (main): Don't require that fsync (0) fails.
24400
24401 2008-11-15  Bruno Haible  <bruno@clisp.org>
24402
24403         New module 'hostent'.
24404         * modules/hostent: New file.
24405         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24406
24407 2008-11-15  Bruno Haible  <bruno@clisp.org>
24408
24409         New module 'servent'.
24410         * modules/servent: New file.
24411         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24412
24413 2008-11-15  Bruno Haible  <bruno@clisp.org>
24414
24415         Avoid generating same test program with two different rules.
24416         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24417         test-frexp to test-frexp-nolibm.
24418         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24419         test-frexpl to test-frexpl-nolibm.
24420
24421 2008-11-15  Bruno Haible  <bruno@clisp.org>
24422
24423         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24424         $(FREXPL_LIBM).
24425
24426 2008-11-15  Bruno Haible  <bruno@clisp.org>
24427
24428         * lib/netdb.in.h: Activate the definitions also when the system's
24429         <netdb.h> has 'struct addrinfo'.
24430         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24431         EAI_OVERFLOW or AI_NUMERICSERV.
24432         * doc/posix-headers/netdb.texi: Document the problem.
24433
24434 2008-11-15  Bruno Haible  <bruno@clisp.org>
24435
24436         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24437
24438         Make the 'sched' module work on platforms where <sched.h> exists but
24439         is incomplete (such as Haiku).
24440         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24441         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24442         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24443         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24444         HAVE_STRUCT_SCHED_PARAM.
24445         * modules/sched (Depends-on): Add include_next.
24446         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24447         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24448         * doc/posix-headers/sched.texi: Document the issue.
24449
24450 2008-11-13  Jim Meyering  <meyering@redhat.com>
24451
24452         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24453         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24454         test would fail due to the difference in the Report bugs to ...
24455         line.  The expected address is empty, "<>", while the actual
24456         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24457
24458 2008-11-12  Bruno Haible  <bruno@clisp.org>
24459
24460         lstat: don't compile lstat.c on systems lacking lstat
24461         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24462         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24463         Reported by Daniel P. Berrange via Jim Meyering.
24464
24465 2008-11-12  Jim Meyering  <meyering@redhat.com>
24466
24467         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24468
24469 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24470
24471         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24472         instead.
24473
24474 2008-11-12  Bruno Haible  <bruno@clisp.org>
24475
24476         * lib/unicodeio.c: Include unistr.h.
24477         (utf8_wctomb): Remove function.
24478         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24479
24480 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24481
24482         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24483         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24484         <bruno@clisp.org>.
24485         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24486
24487 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24488
24489         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24490         * doc/gnulib.texi: Add section for warnings.
24491
24492 2008-11-11  Bruno Haible  <bruno@clisp.org>
24493
24494         * lib/sockets.h: Add a comment.
24495
24496 2008-11-11  Karl Berry  <karl@gnu.org>
24497
24498         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24499
24500 2008-11-11  Eric Blake  <ebb9@byu.net>
24501
24502         fdl.texi: avoid git symlinks
24503         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24504
24505 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24506
24507         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24508
24509 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24510
24511         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24512         (gl_WARN_ADD): Substitute $2 if literal.
24513
24514 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24515
24516         * m4/warning.m4: Remove.
24517
24518 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24519
24520         * m4/warnings.m4: Almost complete rewrite. :-)
24521
24522 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24523
24524         * modules/warnings: New module.
24525         * m4/warnings.m4: New file.
24526         * MODULES.html.sh: Mention warnings module.
24527         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24528         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24529
24530 2008-11-10  Eric Blake  <ebb9@byu.net>
24531
24532         fdl.texi: make a symlink to the latest version
24533         * doc/standards.texi: Revert today's earlier change.
24534         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24535         * doc/fdl.texi: ...and replace this with a symlink to the newer
24536         fdl-1.3.texi.
24537
24538 2008-11-10  Bruno Haible  <bruno@clisp.org>
24539
24540         * tests/test-select-fd.c (main): Accept the result file name as fourth
24541         argument.
24542         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24543         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24544
24545 2008-11-10  Bruno Haible  <bruno@clisp.org>
24546
24547         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24548         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24549         as autoconf-substituted macros.
24550         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24551         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24552         gl_NETDB_H_DEFAULTS. Set these variables.
24553         * modules/netdb (Makefile.am): Substitute these variables.
24554
24555 2008-11-10  Eric Blake  <ebb9@byu.net>
24556
24557         standards.texi: include correct file for FDL 1.3
24558         * doc/standards.texi (GNU Free Documentation License): Change
24559         include file to pull in FDL 1.3, not 1.2.
24560
24561         fdl.texi: revert accidental change to license
24562         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24563
24564 2008-11-10  Bruno Haible  <bruno@clisp.org>
24565
24566         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24567         cross-compiling guesses also when the native compile gives no result.
24568
24569 2008-11-10  Bruno Haible  <bruno@clisp.org>
24570
24571         * lib/spawni.c (__spawni): Force variable into the stack.
24572
24573 2008-11-10  Bruno Haible  <bruno@clisp.org>
24574
24575         Add support for Haiku.
24576         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24577         glibc and BeOS, but also on Haiku.
24578         * lib/fpurge.c (fpurge): Likewise.
24579         * lib/freadable.c (freadable): Likewise.
24580         * lib/freadahead.c (freadahead): Likewise.
24581         * lib/freading.c (freading): Likewise.
24582         * lib/freadptr.c (freadptr): Likewise.
24583         * lib/freadseek.c (freadptrinc): Likewise.
24584         * lib/fseeko.c (rpl_fseeko): Likewise.
24585         * lib/fseterr.c (fseterr): Likewise.
24586         * lib/fwritable.c (fwritable): Likewise.
24587         * lib/fwriting.c (fwriting): Likewise.
24588         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24589
24590 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24591
24592         * lib/config.charset: Treat Haiku like BeOS.
24593
24594 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24595
24596         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24597         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24598
24599 2008-11-08  Bruno Haible  <bruno@clisp.org>
24600
24601         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24602         AC_CACHE_CHECK.
24603
24604 2008-11-08  Bruno Haible  <bruno@clisp.org>
24605
24606         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24607
24608 2008-11-08  Bruno Haible  <bruno@clisp.org>
24609
24610         * tests/test-select-fd.c: New file.
24611         * tests/test-select-in.sh: New file.
24612         * tests/test-select-out.sh: New file.
24613         * tests/test-select-stdin.c: New file.
24614         * modules/select-tests (Files): Add the new files.
24615         (Depends-on): Add gettimeofday.
24616         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24617         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24618         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24619
24620 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24621             Bruno Haible  <bruno@clisp.org>
24622
24623         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24624
24625 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24626
24627         * build-aux/pmccabe2html: Added support for C++ source files.
24628
24629 2008-11-05  Ben Pfaff  <blp@gnu.org>
24630
24631         Fix lib/close.c build on Windows.
24632         * modules/close (Files): Add lib/w32sock.h.
24633
24634 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24635
24636         Accept Bison's NEWS format.
24637         * build-aux/announce-gen (print_news_deltas): Tweak
24638         $re_prefix.
24639
24640 2008-11-04  Bruno Haible  <bruno@clisp.org>
24641
24642         * modules/random_r (Maintainer): Add glibc.
24643
24644 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24645
24646         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24647         by karl@freefriends.org (Karl Berry).
24648         * doc/alloca.texi: Likewise.
24649         * doc/c-ctype.texi: Likewise.
24650         * doc/c-strcase.texi: Likewise.
24651         * doc/c-strcaseeq.texi: Likewise.
24652         * doc/c-strcasestr.texi: Likewise.
24653         * doc/c-strstr.texi: Likewise.
24654         * doc/c-strtod.texi: Likewise.
24655         * doc/c-strtold.texi: Likewise.
24656         * doc/ctime.texi: Likewise.
24657         * doc/error.texi: Likewise.
24658         * doc/fdl.texi: Likewise.
24659         * doc/gcd.texi: Likewise.
24660         * doc/getdate.texi: Likewise.
24661         * doc/gnulib-intro.texi: Likewise.
24662         * doc/gnulib-tool.texi: Likewise.
24663         * doc/gnulib.texi: Likewise.
24664         * doc/inet_ntoa.texi: Likewise.
24665         * doc/maintain.texi: Likewise.
24666         * doc/make-stds.texi: Likewise.
24667         * doc/quote.texi: Likewise.
24668         * doc/regexprops-generic.texi: Likewise.
24669         * doc/standards.texi: Likewise.
24670         * doc/verify.texi: Likewise.
24671         * doc/visibility.texi: Likewise.
24672         * doc/gnulib.texi (GNU Free Documentation License): Include
24673         fdl-1.3.texi instead of fdl.texi.
24674
24675 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24676
24677         * doc/fdl-1.3.texi: New file, from
24678         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24679         * modules/fdl-1.3: Add.
24680         * MODULES.html.sh: Add fdl-1.3.
24681
24682 2008-11-03  Bruno Haible  <bruno@clisp.org>
24683
24684         Make determination of absolute name of header file work with AIX xlc.
24685         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24686         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24687         preprocessing.
24688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24689         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24690
24691 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24692
24693         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24694         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24695         <ludo@gnu.org>.
24696
24697 2008-11-02  Bruno Haible  <bruno@clisp.org>
24698
24699         Mark 'strpbrk' obsolete.
24700         * modules/strpbrk (Status, Notice): New sections.
24701         * modules/strtok_r (Depends-on): Add strpbrk.
24702
24703 2008-11-02  Bruno Haible  <bruno@clisp.org>
24704
24705         Mark 'strdup' obsolete.
24706         * modules/strdup (Status, Notice): New sections.
24707         * modules/findprog (Depends-on): Add strdup.
24708         * modules/getaddrinfo (Depends-on): Likewise.
24709         * modules/localename (Depends-on): Likewise.
24710         * modules/relocatable-lib (Depends-on): Likewise.
24711         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24712         * modules/relocatable-prog (Depends-on): Likewise.
24713         * modules/trim (Depends-on): Likewise.
24714         * modules/unictype/gen-ctype (Depends-on): Likewise.
24715         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24716
24717 2008-11-02  Bruno Haible  <bruno@clisp.org>
24718
24719         Mark 'strcspn' obsolete.
24720         * modules/strcspn (Status, Notice): New sections.
24721
24722 2008-11-02  Bruno Haible  <bruno@clisp.org>
24723
24724         Mark 'rmdir' obsolete.
24725         * modules/rmdir (Status, Notice): New sections.
24726         * modules/clean-temp (Depends-on): Add rmdir.
24727         * modules/openat (Depends-on): Likewise.
24728
24729 2008-11-02  Bruno Haible  <bruno@clisp.org>
24730
24731         Mark 'raise' obsolete.
24732         * modules/raise (Status, Notice): New sections.
24733         (Include): Specify <signal.h>.
24734         * modules/stdio (Depends-on): Add raise.
24735         * modules/write (Depends-on): Likewise.
24736
24737 2008-11-02  Bruno Haible  <bruno@clisp.org>
24738
24739         Mark 'memset' obsolete.
24740         * modules/memset (Status, Notice): New sections.
24741
24742 2008-11-02  Bruno Haible  <bruno@clisp.org>
24743
24744         Mark 'memmove' obsolete.
24745         * modules/memmove (Status, Notice): New sections.
24746         * modules/argp (Depends-on): Add memmove.
24747         * modules/argz (Depends-on): Likewise.
24748         * modules/canonicalize (Depends-on): Likewise.
24749         * modules/canonicalize-lgpl (Depends-on): Likewise.
24750         * modules/fts (Depends-on): Likewise.
24751         * modules/getcwd (Depends-on): Likewise.
24752         * modules/human (Depends-on): Likewise.
24753         * modules/regex (Depends-on): Likewise.
24754         * modules/striconveh (Depends-on): Likewise.
24755         * modules/trim (Depends-on): Likewise.
24756         * modules/unistr/u8-move (Depends-on): Likewise.
24757         * modules/unistr/u16-move (Depends-on): Likewise.
24758         * modules/unistr/u32-move (Depends-on): Likewise.
24759
24760 2008-11-02  Bruno Haible  <bruno@clisp.org>
24761
24762         Mark 'memcpy' obsolete.
24763         * modules/memcpy (Status, Notice): New sections.
24764
24765 2008-11-02  Bruno Haible  <bruno@clisp.org>
24766
24767         Mark 'memcmp' obsolete.
24768         * modules/memcmp (Status, Notice): New sections.
24769         * modules/argmatch (Depends-on): Add memchr.
24770         * modules/backupfile (Depends-on): Likewise.
24771         * modules/c-strcasestr (Depends-on): Likewise.
24772         * modules/crypto/des (Depends-on): Likewise.
24773         * modules/csharpcomp (Depends-on): Likewise.
24774         * modules/fnmatch (Depends-on): Likewise.
24775         * modules/git-merge-changelog (Depends-on): Likewise.
24776         * modules/isnand (Depends-on): Likewise.
24777         * modules/isnand-nolibm (Depends-on): Likewise.
24778         * modules/isnanf (Depends-on): Likewise.
24779         * modules/isnanf-nolibm (Depends-on): Likewise.
24780         * modules/isnanl (Depends-on): Likewise.
24781         * modules/isnanl-nolibm (Depends-on): Likewise.
24782         * modules/mbchar (Depends-on): Likewise.
24783         * modules/memcoll (Depends-on): Likewise.
24784         * modules/quotearg (Depends-on): Likewise.
24785         * modules/regex (Depends-on): Likewise.
24786         * modules/relocatable-prog (Depends-on): Likewise.
24787         * modules/same (Depends-on): Likewise.
24788         * modules/signbit (Depends-on): Likewise.
24789         * modules/strcasestr-simple (Depends-on): Likewise.
24790         * modules/unictype/gen-ctype (Depends-on): Likewise.
24791         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24792         * modules/uniname/uniname (Depends-on): Likewise.
24793         * modules/unistr/u8-cmp (Depends-on): Likewise.
24794
24795 2008-11-02  Bruno Haible  <bruno@clisp.org>
24796
24797         Mark 'memchr' obsolete.
24798         * modules/memchr (Status, Notice): New sections.
24799         * modules/argp (Depends-on): Add memchr.
24800         * modules/base64 (Depends-on): Likewise.
24801         * modules/c-strcasestr (Depends-on): Likewise.
24802         * modules/chdir-long (Depends-on): Likewise.
24803         * modules/fnmatch (Depends-on): Likewise.
24804         * modules/getsubopt (Depends-on): Likewise.
24805         * modules/git-merge-changelog (Depends-on): Likewise.
24806         * modules/glob (Depends-on): Likewise.
24807         * modules/strcasestr-simple (Depends-on): Likewise.
24808         * modules/strnlen (Depends-on): Likewise.
24809
24810 2008-11-02  Bruno Haible  <bruno@clisp.org>
24811
24812         Mark 'atexit' obsolete.
24813         * modules/atexit (Status, Notice): New sections.
24814         * modules/chdir-long (Depends-on): Add atexit.
24815         * modules/wait-process (Depends-on): Likewise.
24816
24817 2008-11-02  Bruno Haible  <bruno@clisp.org>
24818
24819         * gnulib-tool: New option --with-obsolete.
24820         (func_usage): Document it.
24821         (func_modules_transitive_closure): Drop obsolete dependencies if
24822         incobsolete is not true.
24823         (func_import): Read and save the incobsolete variable to the cache.
24824
24825 2008-11-02  Bruno Haible  <bruno@clisp.org>
24826
24827         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24828         * gnulib-tool: New option --extract-status.
24829         (func_usage): Document it.
24830         (sed_extract_prog): Recognize it.
24831         (func_get_status): New function.
24832
24833 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24834
24835         * modules/sockets (License): Change from LGPL to LGPLv2+.
24836
24837 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24838
24839         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24840
24841 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24842
24843         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24844         Mention times and sys_times.
24845         * modules/sys_times, modules/sys_times-tests: New modules.
24846         * modules/times, modules/times-tests: Likewise
24847         * m4/sys_times_h.m4: New file.
24848         * lib/sys_times.in.h: Likewise
24849         * lib/times.c: Likewise.
24850         * tests/test-sys_times.c: Likewise.
24851         * tests/test-times.c: Likewise.
24852         * doc/posix-headers/sys_times.texi: Update.
24853         * doc/posix-functions/times.texi: Update.
24854
24855 2008-10-28  Jim Meyering  <meyering@redhat.com>
24856
24857         * modules/tempname (Depends-on): Add lstat.
24858
24859         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24860
24861 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24862
24863         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24864         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24865         using idiom used elsewhere in gnulib.
24866
24867 2008-10-27  Jim Meyering  <meyering@redhat.com>
24868
24869         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24870
24871 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24872
24873         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24874         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24875         programs.
24876         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24877
24878 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24879
24880         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24881
24882 2008-10-27  Bruno Haible  <bruno@clisp.org>
24883
24884         * tests/test-lstat.c: Include <stdio.h>.
24885
24886 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24887
24888         * modules/lstat-tests: New module.
24889         * tests/test-lstat.c: New file.
24890
24891 2008-10-26  Jim Meyering  <meyering@redhat.com>
24892
24893         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24894
24895 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24896             Bruno Haible  <bruno@clisp.org>
24897
24898         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24899         * modules/configmake (Include): Add a note that the include must come
24900         after all system headers.
24901         * lib/javaversion.c: Include configmake.h after all other includes.
24902
24903 2008-10-26  Bruno Haible  <bruno@clisp.org>
24904
24905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24906         HAVE_STRUCT_RANDOM_DATA to 1.
24907         (gl_STDLIB_H): Simplify.
24908
24909 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24910
24911         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24912         substitute HAVE_STRUCT_RANDOM_DATA.
24913         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24914         random_data.
24915         * modules/stdlib (Makefile.am): Substitute
24916         HAVE_STRUCT_RANDOM_DATA.
24917
24918 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24919
24920         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24921         * doc/gnulib-intro.texi (Copyright): Likewise.
24922
24923 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24924
24925         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24926         findings.
24927
24928 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24929             Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/unistd.in.h: Include <winsock2.h>.
24932         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24933         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24934         Provide dummy declarations.
24935         (gethostname): Override.
24936         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24937         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24938         gl_PREREQ_SYS_H_WINSOCK2.
24939         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24940         * doc/posix-functions/gethostname.texi: More details.
24941
24942 2008-10-25  Bruno Haible  <bruno@clisp.org>
24943
24944         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24945         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24946         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24947
24948         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24949         here ...
24950         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24951         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24952         gl_UNISTD_H_DEFAULTS.
24953
24954 2008-10-25  Eric Blake  <ebb9@byu.net>
24955
24956         signbit: avoid spurious compiler failure
24957         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24958         declarations inside function.
24959
24960 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24961             Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24964         * modules/random_r (Depends-on): Add stdint.
24965
24966 2008-10-24  Bruno Haible  <bruno@clisp.org>
24967
24968         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24969         Eggert.
24970         * modules/strerror (License): Likewise.
24971
24972 2008-10-24  Jim Meyering  <meyering@redhat.com>
24973
24974         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24975         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24976
24977 2008-10-24  Eric Blake  <ebb9@byu.net>
24978
24979         getgroups: fix compilation when getgroups is available
24980         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24981         but with <config.h> override of getgroups disabled.
24982
24983 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24984
24985         * doc/gnulib.texi (Header files): Add note about C++ problems.
24986         Explained by Bruno Haible <bruno@clisp.org>.
24987
24988 2008-10-23  Bruno Haible  <bruno@clisp.org>
24989
24990         Define a dummy SA_NODEFER macro on Interix.
24991         * lib/signal.in.h (SA_NODEFER): Define fallback.
24992         Reported by Aleksey Cheusov <cheusov@tut.by> via
24993         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24994
24995 2008-10-23  Bruno Haible  <bruno@clisp.org>
24996
24997         * modules/freadahead (License): Change to LGPLv2+.
24998         Suggested by Simon Josefsson.
24999
25000 2008-10-23  Jim Meyering  <meyering@redhat.com>
25001
25002         random_r: new module
25003         * modules/random_r: New file.
25004         * m4/random_r.m4: New file.
25005         * lib/random_r.c: New file, from glibc.
25006         * modules/random_r-tests: New file.
25007         * tests/test-random_r.c: New file.
25008         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25009          Declare.
25010         (RAND_MAX): Define.
25011         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25012         * modules/stdlib: Substitute them, too.
25013         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25014         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25015         * doc/glibc-functions/random_r.texi: Likewise.
25016         * doc/glibc-functions/setstate_r.texi: Likewise.
25017         * doc/glibc-functions/srandom_r.texi: Likewise.
25018         * config/srclist.txt: Mention it.
25019
25020 2008-10-23  David Lutterkort  <lutter@redhat.com>
25021
25022         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25023         link requirement
25024
25025 2008-10-23  Jim Meyering  <meyering@redhat.com>
25026
25027         selinux-h: mark parameters of stub functions as intentionally unused
25028         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25029         * lib/se-context.in.h: Likewise.
25030
25031 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25032
25033         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25034
25035 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25036
25037         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25038
25039 2008-10-22  Eric Blake  <ebb9@byu.net>
25040
25041         glthread/thread: avoid compiler warning
25042         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25043         Add unreachable abort to silence compiler.
25044
25045 2008-10-22  Eric Blake  <ebb9@byu.net>
25046
25047         netdb: also supply struct addrinfo for cygwin 1.5.x
25048         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25049         older cygwin.
25050         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25051         cygwin.
25052         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25053
25054 2008-10-22  Bruno Haible  <bruno@clisp.org>
25055
25056         * users.txt: Update entry about pspp.
25057
25058 2008-10-21  Bruno Haible  <bruno@clisp.org>
25059
25060         Simplification.
25061         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25062         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25063
25064         Simplification.
25065         * lib/ioctl.c (ioctl): Don't undefine.
25066         * lib/socket.c (socket): Don't undefine.
25067
25068         Remove unused module indicator macros.
25069         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25070         GNULIB_$1 as a C macro.
25071
25072         * doc/posix-functions/close.texi: Undo last change.
25073         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25074         Windows platforms.
25075
25076 2008-10-21  Bruno Haible  <bruno@clisp.org>
25077
25078         Add gethostname() declaration to <unistd.h>.
25079         * lib/unistd.in.h (gethostname): New declaration.
25080         * lib/gethostname.c: Include <unistd.h>.
25081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25082         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25084         and HAVE_GETHOSTNAME.
25085         * modules/gethostname (Depends-on): Add unistd.
25086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25087         (Include): Specify <unistd.h>.
25088         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25089         HAVE_GETHOSTNAME.
25090         * tests/test-gethostname.c: Include <unistd.h> first.
25091
25092 2008-10-21  Bruno Haible  <bruno@clisp.org>
25093
25094         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25095         * modules/select-tests (Depends-on): Likewise.
25096         Reported by Simon Josefsson.
25097
25098 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25099
25100         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25101         * lib/accept.c: New file, based on winsock.c.
25102         * lib/bind.c: New file, based on winsock.c.
25103         * lib/connect.c: New file, based on winsock.c.
25104         * lib/getpeername.c: New file, based on winsock.c.
25105         * lib/getsockname.c: New file, based on winsock.c.
25106         * lib/getsockopt.c: New file, based on winsock.c.
25107         * lib/ioctl.c: New file, based on winsock.c.
25108         * lib/listen.c: New file, based on winsock.c.
25109         * lib/recv.c: New file, based on winsock.c.
25110         * lib/recvfrom.c: New file, based on winsock.c.
25111         * lib/send.c: New file, based on winsock.c.
25112         * lib/sendto.c: New file, based on winsock.c.
25113         * lib/setsockopt.c: New file, based on winsock.c.
25114         * lib/shutdown.c: New file, based on winsock.c.
25115         * lib/socket.c: New file, based on winsock.c.
25116         * lib/w32sock.h: New file, based on winsock.c.
25117         * lib/winsock.c: Remove file.
25118         * modules/accept: Likewise.
25119         * modules/bind: Likewise.
25120         * modules/connect: Likewise.
25121         * modules/getpeername: Likewise.
25122         * modules/getsockname: Likewise.
25123         * modules/getsockopt: Likewise.
25124         * modules/ioctl: Likewise.
25125         * modules/listen: Likewise.
25126         * modules/recv: Likewise.
25127         * modules/recvfrom: Likewise.
25128         * modules/send: Likewise.
25129         * modules/sendto: Likewise.
25130         * modules/setsockopt: Likewise.
25131         * modules/shutdown: Likewise.
25132         * modules/socket: Use socket.c instead of winsock.c.
25133         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25134         * doc/posix-functions/accept.texi: Doc fix.
25135         * doc/posix-functions/bind.texi: Doc fix.
25136         * doc/posix-functions/close.texi: Doc fix.
25137         * doc/posix-functions/connect.texi: Doc fix.
25138         * doc/posix-functions/getpeername.texi: Doc fix.
25139         * doc/posix-functions/getsockname.texi: Doc fix.
25140         * doc/posix-functions/getsockopt.texi: Doc fix.
25141         * doc/posix-functions/ioctl.texi: Doc fix.
25142         * doc/posix-functions/listen.texi: Doc fix.
25143         * doc/posix-functions/recv.texi: Doc fix.
25144         * doc/posix-functions/recvfrom.texi: Doc fix.
25145         * doc/posix-functions/send.texi: Doc fix.
25146         * doc/posix-functions/sendto.texi: Doc fix.
25147         * doc/posix-functions/setsockopt.texi: Doc fix.
25148         * doc/posix-functions/shutdown.texi: Doc fix.
25149         * doc/posix-functions/socket.texi: Doc fix.
25150
25151 2008-10-20  Bruno Haible  <bruno@clisp.org>
25152
25153         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25154         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25155         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25156         as an alias for SIGABRT.
25157         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25158         (sigaction): Map it to SIGABRT.
25159         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25160
25161 2008-10-20  Bruno Haible  <bruno@clisp.org>
25162
25163         * lib/fts.c: Don't include lstat.h.
25164         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25165
25166         Move the lstat() declaration to <sys/stat.h>.
25167         * lib/lstat.h: Remove file.
25168         * lib/sys_stat.in.h: Add special invocation convention.
25169         (lstat): New declaration.
25170         * lib/lstat.c (orig_lstat): New function.
25171         (rpl_lstat): Use orig_lstat instead of lstat.
25172         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25173         AC_C_INLINE. Set REPLACE_LSTAT.
25174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25175         and REPLACE_LSTAT.
25176         * modules/lstat (Files): Remove lib/lstat.h.
25177         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25178         (Include): Specify <sys/stat.h> instead of lstat.h.
25179         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25180         REPLACE_LSTAT.
25181         * NEWS: Mention the change.
25182
25183 2008-10-20  Bruno Haible  <bruno@clisp.org>
25184
25185         * modules/posix_spawn-tests: New file.
25186         * tests/test-posix_spawn3.c: New file.
25187
25188 2008-10-20  Bruno Haible  <bruno@clisp.org>
25189
25190         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25191         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25192         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25193         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25194         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25195
25196 2008-10-20  Bruno Haible  <bruno@clisp.org>
25197
25198         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25199         of posix_spawn on AIX 5.3.
25200
25201 2008-10-20  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25204
25205 2008-10-20  Bruno Haible  <bruno@clisp.org>
25206
25207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25208         of AC_LANG_PROGRAM.
25209
25210 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25211
25212         * lib/netdb.in.h: Don't define GNU specific constants until they
25213         are supported or needed.  Reported by Bruno Haible
25214         <bruno@clisp.org>.
25215
25216 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25217
25218         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25219
25220 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25221
25222         * lib/getaddrinfo.h: Remove file.
25223         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25224         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25225         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25226         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25227         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25228         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25229         * tests/test-getaddrinfo.c: Likewise.
25230         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25231         * NEWS: Mention change.
25232
25233 2008-10-19  Bruno Haible  <bruno@clisp.org>
25234
25235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25236
25237 2008-10-19  Bruno Haible  <bruno@clisp.org>
25238
25239         * lib/wait-process.c: Include simply <sys/wait.h>.
25240         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25241         WIFSTOPPED): Remove fallback definitions.
25242         * modules/wait-process (Depends-on): Add sys_wait.
25243
25244         New module 'sys_wait'.
25245         * modules/sys_wait: New file.
25246         * lib/sys_wait.in.h: New file, partially copied from
25247         lib/wait-process.c.
25248         * m4/sys_wait_h.m4: New file.
25249         * doc/posix-headers/sys_wait.texi: Mention the new module.
25250
25251 2008-10-19  Bruno Haible  <bruno@clisp.org>
25252
25253         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25254
25255 2008-10-19  Bruno Haible  <bruno@clisp.org>
25256
25257         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25258         * lib/wait-process.c (WAIT_T): Remove type.
25259         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25260         (wait_subprocess): Update.
25261
25262 2008-10-19  Bruno Haible  <bruno@clisp.org>
25263
25264         New module 'atoll'.
25265         * modules/atoll: New file.
25266         * lib/stdlib.in.h (atoll): New declaration.
25267         * lib/atoll.c: New file, from glibc with modifications.
25268         * m4/atoll.m4: New file.
25269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25270         HAVE_ATOLL.
25271         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25272         * doc/posix-functions/atoll.texi: Mention the new module.
25273
25274 2008-10-19  Bruno Haible  <bruno@clisp.org>
25275
25276         Add strtoull() declaration to <stdlib.h>.
25277         * lib/stdlib.in.h (strtoull): New declaration.
25278         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25279         Set HAVE_STRTOULL.
25280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25281         HAVE_STRTOULL.
25282         * modules/strtoull (Depends-on): Add stdlib.
25283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25284         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25285         HAVE_STRTOULL.
25286
25287 2008-10-19  Bruno Haible  <bruno@clisp.org>
25288
25289         Add strtoll() declaration to <stdlib.h>.
25290         * lib/stdlib.in.h (strtoll): New declaration.
25291         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25292         Set HAVE_STRTOLL.
25293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25294         HAVE_STRTOLL.
25295         * modules/strtoll (Depends-on): Add stdlib.
25296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25297         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25298
25299 2008-10-19  Bruno Haible  <bruno@clisp.org>
25300
25301         * modules/bcopy (Depends-on): Add strings.
25302         (Include): Specify <strings.h>.
25303
25304 2008-10-19  Bruno Haible  <bruno@clisp.org>
25305
25306         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25307
25308 2008-10-19  Bruno Haible  <bruno@clisp.org>
25309
25310         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25311         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25312         mingw.
25313
25314 2008-10-19  Bruno Haible  <bruno@clisp.org>
25315
25316         * lib/atanl.c: Don't include isnanl.h.
25317         * lib/cosl.c: Likewise.
25318         * lib/ldexpl.c: Likewise.
25319         * lib/logl.c: Likewise.
25320         * lib/sinl.c: Likewise.
25321         * lib/sqrtl.c: Likewise.
25322         * lib/tanl.c: Likewise.
25323
25324         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25325         * lib/isnanf.h: Remove file.
25326         * lib/isnand.h: Remove file.
25327         * lib/isnanl.h: Remove file.
25328         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25329         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25330         macros.
25331         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25332         HAVE_ISNANF, don't define it as a C macro.
25333         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25334         HAVE_ISNAND, don't define it as a C macro.
25335         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25336         HAVE_ISNANL, don't define it as a C macro.
25337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25338         HAVE_ISNAN[FDL].
25339         * modules/isnanf (Files): Remove lib/isnanf.h.
25340         (Depends-on): Add math.
25341         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25342         (Include): Specify <math.h> instead of isnanf.h.
25343         * modules/isnand (Files): Remove lib/isnand.h.
25344         (Depends-on): Add math.
25345         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25346         (Include): Specify <math.h> instead of isnand.h.
25347         * modules/isnanl (Files): Remove lib/isnanl.h.
25348         (Depends-on): Add math.
25349         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25350         (Include): Specify <math.h> instead of isnanl.h.
25351         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25352         HAVE_ISNAN[FDL].
25353         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25354         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25355         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25356         * NEWS: Mention the change.
25357
25358 2008-10-18  Bruno Haible  <bruno@clisp.org>
25359
25360         Add getusershell(), setusershell(), endusershell() declarations to
25361         <unistd.h>.
25362         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25363         declarations.
25364         * lib/getusershell.c: Include unistd.h.
25365         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25366         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25367         HAVE_GETUSERSHELL.
25368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25369         and HAVE_GETUSERSHELL.
25370         * modules/getusershell (Depends-on): Add unistd, extensions.
25371         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25372         (Include): Specify <unistd.h>.
25373         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25374         HAVE_GETUSERSHELL.
25375
25376 2008-10-18  Bruno Haible  <bruno@clisp.org>
25377
25378         Add a getloadavg() declaration to <stdlib.h>.
25379         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25380         getloadavg declaration.
25381         (getloadavg): New declaration.
25382         * lib/getloadavg.c: Include <stdlib.h> first.
25383         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25384         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25385         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25387         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25388         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25390         (Include): Specify <stdlib.h>.
25391         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25392         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25393
25394 2008-10-18  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/dirchownmod.c: Don't include lchmod.h.
25397
25398         Move the lchmod() declaration to <sys/stat.h>.
25399         * lib/lchmod.h: Remove file.
25400         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25401         (lchmod): New declaration, moved here from lib/lchown.h.
25402         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25403         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25405         and HAVE_LCHMOD.
25406         * modules/lchmod (Files): Remove lib/lchmod.h.
25407         (Depends-on): Add sys_stat, extensions.
25408         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25409         (Include): Specify <sys/stat.h> instead of lchmod.h.
25410         * modules/sys_stat (Depends-on): Add link-warning.
25411         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25412         definition of GL_LINK_WARNING.
25413         * NEWS: Mention the change.
25414
25415 2008-10-18  Bruno Haible  <bruno@clisp.org>
25416
25417         * lib/fchdir.c: Don't include dirfd.h.
25418         * lib/fts.c: Likewise.
25419         * lib/getcwd.c: Likewise.
25420         * lib/glob.c: Likewise.
25421
25422         Move the dirfd() declaration to <dirent.h>.
25423         * lib/dirfd.h: Remove file.
25424         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25425         (dirfd): New declaration.
25426         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25427         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25428         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25429         HAVE_DECL_DIRFD.
25430         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25431         HAVE_DECL_DIRFD.
25432         * modules/dirfd (Files): Remove lib/dirfd.h.
25433         (Depends-on): Add dirent, extensions.
25434         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25435         (Include): Specify <dirent.h> instead of dirfd.h.
25436         * modules/dirent (Depends-on): Add link-warning.
25437         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25438         definition of GL_LINK_WARNING.
25439         * NEWS: Mention the change.
25440
25441 2008-10-18  Bruno Haible  <bruno@clisp.org>
25442
25443         Move the euidaccess() declaration to <unistd.h>.
25444         * lib/euidaccess.h: Remove file.
25445         * lib/unistd.in.h (euidaccess): New declaration.
25446         * lib/euidaccess.c: Don't include euidaccess.h.
25447         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25448         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25450         and HAVE_EUIDACCESS.
25451         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25452         (Depends-on): Add unistd.
25453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25454         (Include): Specify <unistd.h> instead of euidaccess.h.
25455         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25456         HAVE_EUIDACCESS.
25457         * NEWS: Mention the change.
25458
25459 2008-10-18  Bruno Haible  <bruno@clisp.org>
25460
25461         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25462
25463         Move the getdomainname() declaration to <unistd.h>.
25464         * lib/getdomainname.h: Remove file.
25465         * lib/unistd.in.h (getdomainname): New declaration.
25466         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25467         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25468         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25469         HAVE_GETDOMAINNAME.
25470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25471         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25472         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25473         (Depends-on): Add unistd, extensions.
25474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25475         (Includes): Specify <unistd.h> instead of getdomainname.h.
25476         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25477         HAVE_GETDOMAINNAME.
25478         * NEWS: Mention the change.
25479
25480 2008-10-18  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/dirent: New file.
25483         * m4/dirent_h.m4: New file.
25484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25485         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25486         * modules/fchdir (Files): Remove lib/dirent.in.h.
25487         (Depends-on): Add dirent.
25488         (Makefile.am): Move rules to modules/dirent.
25489         * doc/posix-headers/dirent.texi: Mention the new module.
25490
25491 2008-10-18  Bruno Haible  <bruno@clisp.org>
25492
25493         Avoid -Wunused-parameter warnings in public gnulib header files.
25494         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25495         macro.
25496         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25497
25498 2008-10-18  Bruno Haible  <bruno@clisp.org>
25499
25500         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25501         * doc/glibc-functions/error.texi: Mention the module 'error'.
25502         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25503         * doc/glibc-functions/getdomainname.texi: Mention the module
25504         'getdomainname'.
25505         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25506         * doc/glibc-functions/getpagesize.texi: Mention the module
25507         'getpagesize'.
25508         * doc/glibc-functions/getusershell.texi: Mention the module
25509         'getusershell'.
25510         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25511         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25512         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25513         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25514         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25515         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25516         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25517         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25518         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25519         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25520         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25521         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25522         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25523         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25524
25525 2008-10-17  Bruno Haible  <bruno@clisp.org>
25526
25527         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25528         HP-UX and IRIX, use -0.0L.
25529         * tests/test-ceill.c (minus_zero): Likewise.
25530         * tests/test-floorl.c (minus_zero): Likewise.
25531         * tests/test-frexpl.c (minus_zero): Likewise.
25532         * tests/test-isnan.c (minus_zerol): Likewise.
25533         * tests/test-isnanl.h (minus_zero): Likewise.
25534         * tests/test-ldexpl.c (minus_zero): Likewise.
25535         * tests/test-roundl.c (minus_zero): Likewise.
25536         * tests/test-signbit.c (minus_zerol): Likewise.
25537         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25538         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25539         * tests/test-truncl.c (minus_zero): Likewise.
25540         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25541         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25542         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25543         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25544
25545 2008-10-17  Bruno Haible  <bruno@clisp.org>
25546
25547         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25548         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25549         that it gets activated only for gcc >= 3.0.
25550         * lib/dirent.in.h: Likewise.
25551         * lib/errno.in.h: Likewise.
25552         * lib/fcntl.in.h: Likewise.
25553         * lib/float.in.h: Likewise.
25554         * lib/iconv.in.h: Likewise.
25555         * lib/inttypes.in.h: Likewise.
25556         * lib/locale.in.h: Likewise.
25557         * lib/math.in.h: Likewise.
25558         * lib/netdb.in.h: Likewise.
25559         * lib/netinet_in.in.h: Likewise.
25560         * lib/search.in.h: Likewise.
25561         * lib/signal.in.h: Likewise.
25562         * lib/spawn.in.h: Likewise.
25563         * lib/stdarg.in.h: Likewise.
25564         * lib/stdint.in.h: Likewise.
25565         * lib/stdio.in.h: Likewise.
25566         * lib/stdlib.in.h: Likewise.
25567         * lib/string.in.h: Likewise.
25568         * lib/strings.in.h: Likewise.
25569         * lib/sys_file.in.h: Likewise.
25570         * lib/sys_ioctl.in.h: Likewise.
25571         * lib/sys_select.in.h: Likewise.
25572         * lib/sys_socket.in.h: Likewise.
25573         * lib/sys_stat.in.h: Likewise.
25574         * lib/sys_time.in.h: Likewise.
25575         * lib/sysexits.in.h: Likewise.
25576         * lib/time.in.h: Likewise.
25577         * lib/unistd.in.h: Likewise.
25578         * lib/wchar.in.h: Likewise.
25579         * lib/wctype.in.h: Likewise.
25580         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25581
25582 2008-10-17  Jim Meyering  <meyering@redhat.com>
25583
25584         ignore-value: don't depend on inline module
25585         * modules/ignore-value (Depends-on): Remove 'inline'.
25586         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25587         Suggestion from Bruno Haible.
25588
25589 2008-10-17  Bruno Haible  <bruno@clisp.org>
25590
25591         New implementation of condition variables for Win32.
25592         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25593         (gl_linked_waitqueue_t): New type.
25594         (gl_cond_t): Use it.
25595         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25596         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25597         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25598         (glthread_cond_init_func, glthread_cond_wait_func,
25599         glthread_cond_timedwait_func, glthread_cond_signal_func,
25600         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25601         Reimplemented on the basis of gl_linked_waitqueue_t.
25602         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25603         gl_waitqueue_t.
25604         (gl_rwlock_t): Update.
25605         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25606
25607 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25608
25609         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25610         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25611
25612 2008-10-17  Jim Meyering  <meyering@redhat.com>
25613
25614         ignore-value: new module
25615         * modules/ignore-value: New file.
25616         * lib/ignore-value.h: New file.
25617         * MODULES.html.sh (Compiler warning management): New section,
25618         just for this module.  More to come.
25619
25620 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25623         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25624         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25625
25626 2008-10-16  Jim Meyering  <meyering@redhat.com>
25627
25628         openat-die.c: avoid 'no previous prototype' warning
25629         * lib/openat-die.c: Include "openat.h".
25630         Reported by Reuben Thomas <rrt@sc3d.org>.
25631
25632 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25633
25634         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25635         * lib/netdb.in.h: Fix typo.
25636         Reported by Bruno Haible  <bruno@clisp.org>
25637
25638         * lib/netdb.in.h: Include sys/socket.h for platforms without
25639         netdb.h, to get structures like hostent on MinGW.
25640         * modules/netdb (Depends-on): Add sys_socket.
25641
25642 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25643
25644         * modules/netdb, modules/netdb-tests: New file.
25645         * m4/netdb_h.m4: New file.
25646         * lib/netdb.in.h: Add, currently just an empty file pending
25647         definitions.
25648         * tests/test-netdb.c: New file.
25649         * doc/posix-headers/netdb.texi: Mention that we replace it if
25650         needed.
25651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25652         netdb.
25653
25654 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25655
25656         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25657         with code.
25658
25659 2008-10-13  Bruno Haible  <bruno@clisp.org>
25660
25661         * lib/glthread/cond.c (glthread_cond_wait_func,
25662         glthread_cond_timedwait_func): Add a comment.
25663
25664 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25665
25666         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25667         * tests/test-select.c: Likewise,
25668
25669 2008-10-13  Bruno Haible  <bruno@clisp.org>
25670
25671         * lib/glthread/cond.c (glthread_cond_wait_func,
25672         glthread_cond_timedwait_func): Fix variable name.
25673         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25674
25675 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25676
25677         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25679         struct sockaddr.sa_len.
25680         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25681
25682 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25683
25684         * build-aux/pmccabe2html: Add css and css_url parameters.
25685
25686 2008-10-12  Bruno Haible  <bruno@clisp.org>
25687
25688         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25689         calling aclx_get.
25690         Reported by Rainer Tammer <tammer@tammer.net>.
25691
25692 2008-10-12  Bruno Haible  <bruno@clisp.org>
25693
25694         Use msvcrt aware primitives for creation/termination of Win32 threads.
25695         * lib/glthread/thread.c: Include <process.h>.
25696         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25697         (wrapper_func): Update signature.
25698         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25699
25700 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25701             Bruno Haible  <bruno@clisp.org>
25702
25703         Provide a Win32 implementation of the 'cond' module.
25704         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25705         * lib/glthread/cond.c (glthread_cond_init_func,
25706         glthread_cond_wait_func, glthread_cond_timedwait_func,
25707         glthread_cond_signal_func, glthread_cond_broadcast_func,
25708         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25709         * modules/cond (Dependencies): Add gettimeofday.
25710
25711 2008-10-11  Bruno Haible  <bruno@clisp.org>
25712
25713         Make sleep work on older versions of mingw.
25714         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25715         only whether it exists.
25716         * doc/posix-functions/sleep.texi: Mention the problem with older
25717         versions of mingw.
25718
25719 2008-10-11  Bruno Haible  <bruno@clisp.org>
25720
25721         New module 'shutdown'.
25722         * modules/shutdown: New file.
25723         * lib/sys_socket.in.h (shutdown): New declaration.
25724         * lib/winsock.c (shutdown): New function.
25725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25726         GNULIB_SHUTDOWN.
25727         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25728         * doc/posix-functions/shutdown.texi: Document the new module.
25729
25730 2008-10-11  Jim Meyering  <meyering@redhat.com>
25731
25732         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25733
25734 2008-10-11  Bruno Haible  <bruno@clisp.org>
25735
25736         New module 'fclose'.
25737         * modules/fclose: New file.
25738         * lib/stdio.in.h (fclose): New declaration.
25739         * lib/fclose.c: New file.
25740         * m4/fclose.m4: New file.
25741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25742         REPLACE_FCLOSE.
25743         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25744         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25745         REPLACE_FCLOSE.
25746         * modules/close (Depends-on): fclose.
25747         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25748
25749 2008-10-11  Bruno Haible  <bruno@clisp.org>
25750
25751         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25752         set errno and don't call _close.
25753
25754 2008-10-10  Bruno Haible  <bruno@clisp.org>
25755
25756         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25757         ACL, not afterwards. Fixes test failure on Cygwin.
25758
25759 2008-10-09  Ben Pfaff  <blp@gnu.org>
25760
25761         * build-aux/announce-gen: Fix gnulib version related part of usage
25762         message.  Die with a useful error message if no tarballs are
25763         found.
25764
25765 2008-10-10  Jim Meyering  <meyering@redhat.com>
25766
25767         bootstrap: use git's --depth=N option only if it's supported
25768         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25769         recognize the --depth option.  Reported by Pádraig Brady.
25770
25771 2008-10-09  Bruno Haible  <bruno@clisp.org>
25772
25773         New module 'ioctl'.
25774         * modules/ioctl: New file.
25775         * lib/sys_socket.in.h (ioctl): Remove declaration.
25776         * lib/winsock.c: Include <sys/ioctl.h>.
25777         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25778         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25779         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25780         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25781         * doc/posix-functions/ioctl.texi: Mention the new module.
25782
25783 2008-10-09  Bruno Haible  <bruno@clisp.org>
25784
25785         New module 'sys_ioctl'.
25786         * lib/sys_ioctl.in.h: New file.
25787         * m4/sys_ioctl_h.m4: New file.
25788         * modules/sys_ioctl: New file.
25789         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25790
25791 2008-10-09  Bruno Haible  <bruno@clisp.org>
25792
25793         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25794         * lib/winsock.c: Include <stdarg.h>.
25795         (rpl_ioctl): Change to second argument 'int' and then varargs.
25796
25797 2008-10-09  Bruno Haible  <bruno@clisp.org>
25798
25799         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25800         when the sys_socket module is present and the system has <winsock2.h>.
25801
25802 2008-10-09  Bruno Haible  <bruno@clisp.org>
25803
25804         * doc/posix-functions/close.texi: Mention module 'close' instead of
25805         module 'sys_socket'.
25806
25807 2008-10-09  Bruno Haible  <bruno@clisp.org>
25808
25809         * doc/glibc-headers/sys_ioctl.texi: New file.
25810         * doc/gnulib.texi: Include it.
25811
25812 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25813             Bruno Haible  <bruno@clisp.org>
25814
25815         Combine the two replacements of 'close'.
25816         * lib/sys_socket.in.h (close): Define to a reminder to include
25817         <unistd.h>.
25818         (_gl_close_fd_maybe_socket): New declaration.
25819         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25820         * lib/winsock.c (close): Remove undefinition.
25821         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25822         needed for the gnulib module 'close'.
25823         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25824         define to an error symbol or to a warning, if suitable.
25825         * lib/close.c: Include <sys/socket.h>.
25826         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25827         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25828         UNISTD_H_HAVE_WINSOCK2_H.
25829         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25831         UNISTD_H_HAVE_WINSOCK2_H.
25832         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25833         (configure.ac): Set a module indicator.
25834         (Makefile.am): Substitute GNULIB_CLOSE.
25835         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25836         * modules/poll-tests (Depends-on): Add close.
25837         * modules/select-tests (Depends-on): Likewise.
25838
25839 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25840             Bruno Haible  <bruno@clisp.org>
25841
25842         New module 'close'.
25843         * modules/close: New file.
25844         * lib/unistd.in.h (close): Move declaration out of the
25845         FCHDIR_REPLACEMENT scope.
25846         (_gl_unregister_fd): New declaration.
25847         * lib/close.c: New file.
25848         * lib/fchdir.c (rpl_close): Remove function.
25849         * m4/close.m4: New file.
25850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25851         close.
25852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25853         REPLACE_CLOSE.
25854         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25855         REPLACE_CLOSE.
25856         * modules/fchdir (Depends-on): Add close.
25857
25858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25859             Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/fcntl.in.h (open): Simplify conditionals.
25862         (_gl_register_fd): New declaration.
25863         * lib/fchdir.c (rpl_open): Remove function.
25864         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25865         also.
25866         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25868         open.
25869
25870 2008-10-09  Jim Meyering  <meyering@redhat.com>
25871
25872         GNUmakefile: use the more name-space-friendly "_version"
25873         * top/GNUmakefile (_dummy): Update.
25874         (_version): Rename from "version".
25875
25876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25877             Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25880         rpl_close.
25881         (_gl_register_fd): New function, extracted from rpl_open.
25882         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25883         (rpl_open, rpl_opendir): Use _gl_register_fd.
25884
25885 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25886
25887         Fix organization of 'open' replacement.
25888         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25889         (gl_FUNC_OPEN): Use it.
25890         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25891
25892 2008-10-08  Bruno Haible  <bruno@clisp.org>
25893
25894         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25895
25896 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25897
25898         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25899         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25900         listen).
25901
25902 2008-10-08  Eric Blake  <ebb9@byu.net>
25903
25904         GNUmakefile: add 'make version' target
25905         * top/GNUmakefile (_curr-ver): Split version update rules...
25906         (version): ...into a target.
25907
25908 2008-10-07  Bruno Haible  <bruno@clisp.org>
25909
25910         Use a more portable replacement expression for -0.0L.
25911         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25912         instead of -0.0L. Fix m4 quotation.
25913
25914         * tests/test-signbit.c: Include <float.h>.
25915         (minus_zero): New variable.
25916         (test_signbitl): Use minus_zero instead of -zero.
25917         * modules/signbit-tests (Depends-on): Add float.
25918
25919         * tests/test-ceill.c: Include <float.h>.
25920         (zero): Remove variable.
25921         (minus_zero): New variable.
25922         (main): Use minus_zero instead of -zero.
25923         * modules/ceill-tests (Depends-on): Add float.
25924
25925         * tests/test-floorl.c: Include <float.h>.
25926         (zero): Remove variable.
25927         (minus_zero): New variable.
25928         (main): Use minus_zero instead of -zero.
25929         * modules/floorl-tests (Depends-on): Add float.
25930
25931         * tests/test-roundl.c: Include <float.h>.
25932         (zero): Remove variable.
25933         (minus_zero): New variable.
25934         (main): Use minus_zero instead of -zero.
25935         * modules/roundl-tests (Depends-on): Add float.
25936
25937         * tests/test-truncl.c: Include <float.h>.
25938         (zero): Remove variable.
25939         (minus_zero): New variable.
25940         (main): Use minus_zero instead of -zero.
25941         * modules/truncl-tests (Depends-on): Add float.
25942
25943         * tests/test-frexpl.c (zero): Remove variable.
25944         (minus_zero): New variable.
25945         (main): Use minus_zero instead of -zero.
25946         * modules/frexpl-tests (Depends-on): Add float.
25947
25948         * tests/test-isnan.c (zerol): Remove variable.
25949         (minus_zerol): New variable.
25950         (test_long_double): Use minus_zerol instead of -zerol.
25951         * modules/isnan-tests (Depends-on): Add float.
25952
25953         * tests/test-isnanl.h (zero): Remove variable.
25954         (minus_zero): New variable.
25955         (main): Use minus_zero instead of -zero.
25956         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25957         * modules/isnanl-tests (Depends-on): Add float.
25958
25959         * tests/test-ldexpl.c (zero): Remove variable.
25960         (minus_zero): New variable.
25961         (main): Use minus_zero instead of -zero.
25962         * modules/ldexpl-tests (Depends-on): Add float.
25963
25964         * tests/test-snprintf-posix.h (zerol): Remove variable.
25965         (minus_zerol): New variable.
25966         (test_function): Use minus_zerol instead of -zerol.
25967         * modules/snprintf-posix-tests (Depends-on): Add float.
25968         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25969
25970         * tests/test-sprintf-posix.h (zerol): Remove variable.
25971         (minus_zerol): New variable.
25972         (test_function): Use minus_zerol instead of -zerol.
25973         * modules/sprintf-posix-tests (Depends-on): Add float.
25974         * modules/vsprintf-posix-tests (Depends-on): Add float.
25975
25976         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25977         (minus_zerol): New variable.
25978         (test_function): Use minus_zerol instead of -zerol.
25979         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25980
25981         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25982         (minus_zerol): New variable.
25983         (test_function): Use minus_zerol instead of -zerol.
25984         * modules/vasprintf-posix-tests (Depends-on): Add float.
25985
25986 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25987
25988         * MODULES.html.sh (Support for building documentation): Mention
25989         pmccabe2html.  Sort entries.
25990
25991         Add pmccabe2html module, from gnupdf.
25992         * build-aux/pmccabe.css: New file.
25993         * build-aux/pmccabe2html: New file.
25994         * m4/pmccabe2html.m4: New file.
25995         * modules/pmccabe2html: New file.
25996
25997 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25998
25999         flock: new module
26000         * MODULES.html.sh: Add to list of modules.
26001         * lib/flock.c: flock implementation for Windows and Unix systems
26002         which have fcntl.
26003         * doc/glibc-functions/flock.texi: Update documentation.
26004         * lib/sys_file.in.h: <sys/file.h> header file.
26005         * m4/flock.m4: M4 macros.
26006         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26007         * modules/flock: flock module.
26008         * modules/flock-tests: flock tests module.
26009         * modules/sys_file: sys/file.h module.
26010         * tests/test-flock.c: test suite for flock.
26011
26012 2008-10-06  Jim Meyering  <meyering@redhat.com>
26013
26014         bootstrap: check for LT_INIT more portably still ;-)
26015         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26016         Spotted by Bruno Haible.
26017
26018 2008-10-06  Eric Blake  <ebb9@byu.net>
26019
26020         test-signbit: avoid tripping Irix cc bug on -0.0L
26021         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26022         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26023         entire testsuite consistent and avoids an Irix 6.2 bug.
26024
26025 2008-10-05  Bruno Haible  <bruno@clisp.org>
26026             Jim Meyering  <jim@meyering.net>
26027
26028         Add an option for ignoring EPIPE during close_stdout.
26029         * lib/closeout.h: Include <stdbool.h>.
26030         (close_stdout_set_ignore_EPIPE): New declaration.
26031         * lib/closeout.c: Include <stdbool.h>.
26032         (ignore_EPIPE): New variable.
26033         (close_stdout_set_ignore_EPIPE): New function.
26034         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26035         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26036         failure.
26037         * modules/closeout (Depends-on): Add stdbool.
26038
26039 2008-10-05  Bruno Haible  <bruno@clisp.org>
26040
26041         * modules/accept: New file.
26042         * modules/bind: New file.
26043         * modules/connect: New file.
26044         * modules/getpeername: New file.
26045         * modules/getsockname: New file.
26046         * modules/getsockopt: New file.
26047         * modules/listen: New file.
26048         * modules/recv: New file.
26049         * modules/recvfrom: New file.
26050         * modules/send: New file.
26051         * modules/sendto: New file.
26052         * modules/setsockopt: New file.
26053         * modules/socket: New file.
26054         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26055         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26056         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26057         the particular module is requested. Add a link warning when the
26058         particular module is not requested.
26059         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26060         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26061         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26062         the particular module is requested.
26063         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26064         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26065         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26066         * modules/sys_socket (Depends-on): Add link-warning.
26067         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26068         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26069         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26070         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26071         GL_LINK_WARNING.
26072         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26073         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26074         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26075         * doc/posix-functions/getpeername.texi: Mention the new module
26076         'getpeername'.
26077         * doc/posix-functions/getsockname.texi: Mention the new module
26078         'getsockname'.
26079         * doc/posix-functions/getsockopt.texi: Mention the new module
26080         'getsockopt'.
26081         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26082         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26083         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26084         * doc/posix-functions/send.texi: Mention the new module 'send'.
26085         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26086         * doc/posix-functions/setsockopt.texi: Mention the new module
26087         'setsockopt'.
26088         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26089         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26090         listen, connect, accept.
26091         * modules/select-tests (Depends-on): Likewise.
26092
26093 2008-10-05  Bruno Haible  <bruno@clisp.org>
26094
26095         * lib/winsock.c (strerror): Remove unused #undef.
26096         (rpl_close): Remove unused local variable.
26097
26098         * modules/sys_socket (Depends-on); Add errno.
26099
26100 2008-10-05  Bruno Haible  <bruno@clisp.org>
26101
26102         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26103         (select): Add a link warning when the 'select' module is not used.
26104         * modules/sys_select (Depends-on): Add link-warning.
26105         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26106         Suggested by Paolo Bonzini.
26107
26108 2008-10-05  Jim Meyering  <meyering@redhat.com>
26109
26110         bootstrap: check for LT_INIT more portably
26111         * build-aux/bootstrap: Avoid using grep -E, since it's not
26112         portable enough.  Suggestion from Bruno Haible.
26113
26114 2008-10-05  Bruno Haible  <bruno@clisp.org>
26115
26116         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26117         as being fixed by gnulib.
26118
26119 2008-10-05  Bruno Haible  <bruno@clisp.org>
26120
26121         * modules/select-tests: New file, mostly copied from
26122         modules/sys_select-tests.
26123         * tests/test-select.c: New file, mostly copied from
26124         tests/test-sys_select.c.
26125         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26126         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26127         (Makefile.am): Remove test_sys_select_LDADD.
26128
26129         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26130         to an undefined symbol, for an error message.
26131         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26132         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26133         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26134         winsock-select.c here.
26135         * modules/sys_select (Files): Remove lib/winsock-select.c.
26136         (Depends-on): Remove alloca.
26137         (Makefile.am): Substitute GNULIB_SELECT.
26138         * modules/select: New file.
26139         * doc/posix-functions/select.texi: Update.
26140
26141 2008-10-05  Bruno Haible  <bruno@clisp.org>
26142
26143         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26144         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26145         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26146         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26147         getdtablesize.
26148         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26149         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26150
26151 2008-10-05  Bruno Haible  <bruno@clisp.org>
26152
26153         * modules/getdtablesize-tests: New file.
26154         * tests/test-getdtablesize.c: New file.
26155
26156         New module 'getdtablesize'.
26157         * lib/unistd.in.h (getdtablesize): New declaration.
26158         * lib/getdtablesize.c: New file.
26159         * m4/getdtablesize.m4: New file.
26160         * modules/getdtablesize: New file.
26161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26162         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26163         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26164         HAVE_GETDTABLESIZE.
26165         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26166
26167 2008-10-05  Bruno Haible  <bruno@clisp.org>
26168
26169         * modules/sched (Makefile.am): Fix typo.
26170         Reported by Simon Josefsson.
26171
26172 2008-10-05  Jim Meyering  <meyering@redhat.com>
26173
26174         bootstrap: check for LT_INIT, too
26175         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26176         are deprecated.  Suggestion from Ralf Wildenhues.
26177
26178 2008-10-05  Bruno Haible  <bruno@clisp.org>
26179
26180         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26181         overriding them by ours.
26182         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26183
26184 2008-10-05  Jim Meyering  <meyering@redhat.com>
26185
26186         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26187         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26188         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26189
26190 2008-10-04  Bruno Haible  <bruno@clisp.org>
26191
26192         * modules/dup2 (License): Change to LGPLv2+.
26193         * modules/sleep (License): Likewise.
26194         * modules/perror (License): Likewise.
26195         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26196         Blake.
26197         * modules/signal (License): Likewise.
26198         * modules/sigprocmask (License): Likewise.
26199         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26200         Meyering.
26201
26202 2008-10-04  Bruno Haible  <bruno@clisp.org>
26203
26204         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26205         Reported by Rainer Tammer <tammer@tammer.net>.
26206
26207 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26208             Bruno Haible  <bruno@clisp.org>
26209
26210         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26211         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26212         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26213
26214 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26215
26216         filevercmp: new module
26217         * lib/filevercmp.h: New function filevercmp comparing version strings.
26218         * lib/filevercmp.c: Implementation of filevercmp function.
26219         * modules/filevercmp: Module metadata.
26220         * tests/test-filevercmp.c: Unit test for new module.
26221         * modules/filevercmp-tests: Unit test metadata.
26222         * MODULES.html.sh: Add filevercmp module.
26223
26224 2008-10-03  Bruno Haible  <bruno@clisp.org>
26225
26226         * lib/c-ctype.h: Add comment.
26227         Reported by Jim Meyering.
26228
26229 2008-10-02  Bruno Haible  <bruno@clisp.org>
26230
26231         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26232
26233 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26234
26235         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26236         name of bootstrap.conf accordingly.
26237
26238 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26239
26240         * build-aux/bootstrap: Install git-merge-changelog configuration
26241         items into .gitconfig if needed.
26242
26243 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26244
26245         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26246         git repository, and initialize/update it accordingly.
26247
26248 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26249
26250         * modules/fsync-tests: New file.
26251         * tests/test-fsync.c: New file.
26252
26253         New module 'fsync'.
26254         * lib/fsync.c: New file.
26255         * m4/fsync.m4: New file.
26256         * modules/fsync: New file.
26257         * lib/unistd.in.h (fsync): New declaration.
26258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26259         GNULIB_FSYNC and HAVE_FSYNC.
26260         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26261         * MODULES.html.sh (posix_functions): Add fsync.
26262         * doc/posix-functions/fsync.texi: Mention the new module.
26263
26264 2008-10-02  Jim Meyering  <meyering@redhat.com>
26265
26266         fts.c: sync with similar code from coreutils' remove.c
26267         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26268         Guard also with "#if defined __linux__", since for now at least,
26269         this code is Linux-kernel-specific.
26270
26271 2008-10-02  Jim Meyering  <meyering@redhat.com>
26272
26273         fts: bug fixes
26274         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26275         Include <sys/vfs.h>, not <sys/statfs.h>.
26276
26277         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26278         Include <sys/vfs.h>, not <sys/statfs.h>.
26279
26280 2008-10-01  Bruno Haible  <bruno@clisp.org>
26281
26282         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26284         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26285         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26286         * doc/posix-functions/posix_spawnp.texi: Likewise.
26287         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26288         whether posix_spawn actually works.
26289         * m4/pipe.m4 (gl_PIPE): Likewise.
26290         * modules/execute (Files): Add m4/posix_spawn.m4.
26291         * modules/pipe (Files): Add m4/posix_spawn.m4.
26292         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26293
26294 2008-10-01  Jim Meyering  <meyering@redhat.com>
26295
26296         remove trailing spaces
26297         * NEWS: Likewise.
26298         * lib/poll.c (poll): Likewise.
26299         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26300         * lib/winsock.c (rpl_close): Likewise.
26301         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26302         * modules/yield: Likewise.
26303         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26304         * tests/test-sys_select.c (connect_to_socket): Likewise.
26305
26306         fts.c: adjust a new interface to be more generally useful
26307         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26308         (fts_build): Adjust caller.
26309
26310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26311
26312         * modules/cond-tests: New file.
26313         * tests/test-cond.c: New file.
26314
26315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26316             Bruno Haible  <bruno@clisp.org>
26317
26318         * modules/cond (Dependencies): Add errno, time.
26319         * lib/glthread/cond.h: Include <time.h>.
26320         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26321         across platforms.
26322
26323 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26324             Bruno Haible  <bruno@clisp.org>
26325
26326         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26327
26328 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26329             Bruno Haible  <bruno@clisp.org>
26330
26331         * modules/tls-tests (Depends-on): Add thread, yield.
26332         (configure.ac): Remove all checks.
26333         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26334         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26335         gl_thread_self): Remove definitions. Include glthread/thread.h and
26336         glthread/yield.h instead.
26337         (test_tls): Pass an additional NULL argument to gl_thread_join.
26338
26339 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26340             Bruno Haible  <bruno@clisp.org>
26341
26342         * modules/lock-tests (Depends-on): Add thread, yield.
26343         (configure.ac): Remove all checks.
26344         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26345         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26346         gl_thread_self): Remove definitions. Include glthread/thread.h and
26347         glthread/yield.h instead.
26348         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26349         additional NULL argument to gl_thread_join.
26350
26351 2008-09-30  Bruno Haible  <bruno@clisp.org>
26352
26353         Fix the Win32 implementation of the 'thread' module.
26354         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26355         pointer type.
26356         (gl_thread_self): Invoke gl_thread_self_func.
26357         (gl_thread_self_func): New declaration.
26358         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26359         (do_init_self_key, init_self_key): New functions.
26360         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26361         Remove some fields.
26362         (running_threads, running_lock): Remove variables.
26363         (get_current_thread_handle): New function.
26364         (gl_thread_self_func, wrapper_func, glthread_create_func,
26365         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26366         simplified.
26367
26368 2008-09-30  Bruno Haible  <bruno@clisp.org>
26369
26370         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26371         files.
26372
26373 2008-09-30  Jim Meyering  <meyering@redhat.com>
26374
26375         fts.m4: correct the test for statfs.f_type
26376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26377         when checking for statfs.f_type.
26378
26379 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26380
26381         tests: avoid some compiler warnings
26382         * tests/test-memchr.c (main): Pass NULL indirectly.
26383         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26384
26385 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26386
26387         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26388         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26389         exactly specified dayshifts.
26390         (dayshift): New rule.
26391         (rel): Add dayshift.
26392         (relative_time_table) [tomorrow, yesterday, today, now]:
26393         Use tDAY_SHIFT in place of tDAY_UNIT.
26394         * tests/test-getdate.c: Add tests for now-disallowed countable
26395         dayshifts, e.g., "4 yesterday ago".
26396
26397 2008-09-29  Bruno Haible  <bruno@clisp.org>
26398
26399         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26400         * tests/test-posix_spawn1.in.sh: Renamed from
26401         tests/test-posix_spawn.in.sh.
26402         * tests/test-posix_spawn2.c: New file.
26403         * tests/test-posix_spawn2.in.sh: New file.
26404         * modules/posix_spawnp-tests (Files): Update.
26405         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26406
26407 2008-09-29  Bruno Haible  <bruno@clisp.org>
26408
26409         Propagate effects of putenv/setenv/unsetenv to child processes.
26410         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26411         * lib/pipe.c (create_pipe): Likewise.
26412
26413 2008-09-29  Bruno Haible  <bruno@clisp.org>
26414
26415         Enable use of shell scripts as executables in mingw.
26416         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26417         run the program as a shell script.
26418         * lib/pipe.c (create_pipe): Likewise.
26419         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26420         resulting array.
26421
26422 2008-09-29  Eric Blake  <ebb9@byu.net>
26423
26424         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26425
26426 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26427
26428         * doc/posix-functions/accept.texi: Update mingw problems.
26429         * doc/posix-functions/bind.texi: Update mingw problems.
26430         * doc/posix-functions/close.texi: Update mingw problems.
26431         * doc/posix-functions/connect.texi: Update mingw problems.
26432         * doc/posix-functions/getpeername.texi: Update mingw problems.
26433         * doc/posix-functions/getsockname.texi: Update mingw problems.
26434         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26435         * doc/posix-functions/ioctl.texi: Update mingw problems.
26436         * doc/posix-functions/listen.texi: Update mingw problems.
26437         * doc/posix-functions/recv.texi: Update mingw problems.
26438         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26439         * doc/posix-functions/select.texi: Update mingw problems.
26440         * doc/posix-functions/send.texi: Update mingw problems.
26441         * doc/posix-functions/sendto.texi: Update mingw problems.
26442         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26443         * doc/posix-functions/socket.texi: Update mingw problems.
26444
26445 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26446             Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/sys_select.in.h: Include sys/time.h.
26449         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26450         * modules/sys_select: Depend on sys_time.
26451         * tests/test-sys_select.c: Test that sys/select.h defines struct
26452         timeval fully.
26453
26454 2008-09-29  Bruno Haible  <bruno@clisp.org>
26455
26456         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26457         * lib/sys_select.in.h: Likewise.
26458
26459 2008-09-29  Bruno Haible  <bruno@clisp.org>
26460
26461         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26462
26463 2008-09-29  Bruno Haible  <bruno@clisp.org>
26464
26465         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26466         Set LIBSOCKET instead of augmenting LIBS.
26467         * modules/sockets (Link): New section.
26468         * modules/sockets-tests (test_sockets_LDADD): New variable.
26469         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26470         * modules/poll-tests (test_poll_LDADD): New variable.
26471         * NEWS: Document the change.
26472
26473 2008-09-29  Bruno Haible  <bruno@clisp.org>
26474
26475         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26476         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26477         ARPA_INET_H directly.
26478         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26479
26480 2008-09-28  Bruno Haible  <bruno@clisp.org>
26481
26482         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26483         from gl_HEADER_SYS_SOCKET.
26484         (gl_HEADER_SYS_SOCKET): Invoke it.
26485         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26486
26487 2008-09-28  Bruno Haible  <bruno@clisp.org>
26488
26489         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26490         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26491         Needed on OSF/1 4.0.
26492
26493 2008-09-28  Bruno Haible  <bruno@clisp.org>
26494
26495         Override open more carefully.
26496         * lib/open.c (orig_open): New function.
26497         (rpl_open): Use orig_open instead of open.
26498         * lib/fcntl.in.h: Add special invocation convention.
26499         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26500         (gl_FUNC_OPEN): Invoke it.
26501
26502         Override freopen more carefully.
26503         * lib/freopen.c (orig_freopen): New function.
26504         (rpl_freopen): Use orig_freopen instead of freopen.
26505         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26506         (gl_FUNC_FREOPEN): Invoke it.
26507
26508         Override fopen more carefully.
26509         * lib/fopen.c (orig_fopen): New function.
26510         (rpl_fopen): Use orig_fopen instead of fopen.
26511         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26512         (gl_FUNC_FOPEN): Invoke it.
26513         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26514
26515 2008-09-28  Bruno Haible  <bruno@clisp.org>
26516
26517         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26518         SIGPIPE.
26519
26520 2008-09-28  Bruno Haible  <bruno@clisp.org>
26521
26522         * tests/test-sigaction.c (handler, main): Disable the check whether
26523         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26524         glibc systems with LinuxThreads.
26525
26526 2008-09-28  Bruno Haible  <bruno@clisp.org>
26527
26528         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26529
26530         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26531         with AIX xlc.
26532         * lib/fcntl.in.h (open): Likewise.
26533         Reported by Rainer Tammer <tammer@tammer.net>.
26534
26535 2008-09-28  Bruno Haible  <bruno@clisp.org>
26536
26537         * modules/posix_spawnp-tests: New file.
26538         * tests/test-posix_spawn.c: New file.
26539         * tests/test-posix_spawn.in.sh: New file.
26540
26541         New module 'posix_spawnp'.
26542         * modules/posix_spawnp: New file.
26543         * lib/spawnp.c: New file, from GNU libc with modifications.
26544         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26545
26546         New module 'posix_spawn'.
26547         * modules/posix_spawn: New file.
26548         * lib/spawn.c: New file, from GNU libc with modifications.
26549         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26550
26551         New module 'posix_spawnattr_destroy'.
26552         * modules/posix_spawnattr_destroy: New file.
26553         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26554         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26555         module.
26556
26557         New module 'posix_spawnattr_setsigmask'.
26558         * modules/posix_spawnattr_setsigmask: New file.
26559         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26560         modifications.
26561         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26562         new module.
26563
26564         New module 'posix_spawnattr_getsigmask'.
26565         * modules/posix_spawnattr_getsigmask: New file.
26566         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26567         modifications.
26568         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26569         new module.
26570
26571         New module 'posix_spawnattr_setsigdefault'.
26572         * modules/posix_spawnattr_setsigdefault: New file.
26573         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26574         modifications.
26575         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26576         new module.
26577
26578         New module 'posix_spawnattr_getsigdefault'.
26579         * modules/posix_spawnattr_getsigdefault: New file.
26580         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26581         modifications.
26582         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26583         new module.
26584
26585         New module 'posix_spawnattr_setschedpolicy'.
26586         * modules/posix_spawnattr_setschedpolicy: New file.
26587         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26588         modifications.
26589         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26590         new module.
26591
26592         New module 'posix_spawnattr_getschedpolicy'.
26593         * modules/posix_spawnattr_getschedpolicy: New file.
26594         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26595         modifications.
26596         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26597         new module.
26598
26599         New module 'posix_spawnattr_setschedparam'.
26600         * modules/posix_spawnattr_setschedparam: New file.
26601         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26602         modifications.
26603         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26604         new module.
26605
26606         New module 'posix_spawnattr_getschedparam'.
26607         * modules/posix_spawnattr_getschedparam: New file.
26608         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26609         modifications.
26610         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26611         new module.
26612
26613         New module 'posix_spawnattr_setpgroup'.
26614         * modules/posix_spawnattr_setpgroup: New file.
26615         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26616         modifications.
26617         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26618         module.
26619
26620         New module 'posix_spawnattr_getpgroup'.
26621         * modules/posix_spawnattr_getpgroup: New file.
26622         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26623         modifications.
26624         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26625         module.
26626
26627         New module 'posix_spawnattr_setflags'.
26628         * modules/posix_spawnattr_setflags: New file.
26629         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26630         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26631         module.
26632
26633         New module 'posix_spawnattr_getflags'.
26634         * modules/posix_spawnattr_getflags: New file.
26635         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26636         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26637         module.
26638
26639         New module 'posix_spawnattr_init'.
26640         * modules/posix_spawnattr_init: New file.
26641         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26642         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26643         module.
26644
26645         New module 'posix_spawn_file_actions_destroy'.
26646         * modules/posix_spawn_file_actions_destroy: New file.
26647         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26648         modifications.
26649         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26650         the new module.
26651
26652         New module 'posix_spawn_file_actions_addopen'.
26653         * modules/posix_spawn_file_actions_addopen: New file.
26654         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26655         modifications.
26656         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26657         the new module.
26658
26659         New module 'posix_spawn_file_actions_adddup2'.
26660         * modules/posix_spawn_file_actions_adddup2: New file.
26661         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26662         modifications.
26663         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26664         the new module.
26665
26666         New module 'posix_spawn_file_actions_addclose'.
26667         * modules/posix_spawn_file_actions_addclose: New file.
26668         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26669         modifications.
26670         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26671         the new module.
26672
26673         New module 'posix_spawn_file_actions_init'.
26674         * modules/posix_spawn_file_actions_init: New file.
26675         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26676         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26677         new module.
26678
26679         New module 'posix_spawn-internal'.
26680         * modules/posix_spawn-internal: New file.
26681         * lib/spawn_int.h: New file, from GNU libc with modifications.
26682         * lib/spawni.c: New file, from GNU libc with modifications.
26683         * m4/posix_spawn.m4: New file.
26684
26685         New module 'spawn'.
26686         * modules/spawn: New file.
26687         * lib/spawn.in.h: New file, from GNU libc with modifications.
26688         * m4/spawn_h.m4: New file.
26689         * doc/posix-headers/spawn.texi: Mention the new module.
26690
26691 2008-09-28  Bruno Haible  <bruno@clisp.org>
26692
26693         * modules/sched-tests: New file.
26694         * tests/test-sched.c: New file.
26695
26696         New module 'sched'.
26697         * modules/sched: New file.
26698         * lib/sched.in.h: New file.
26699         * m4/sched_h.m4: New file.
26700         * doc/posix-headers/sched.texi: Mention the new module.
26701
26702 2008-09-27  Eric Blake  <ebb9@byu.net>
26703
26704         Fix previous patch, and tweak references to $0.
26705         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26706         (func_version, func_gnulib_dir): Don't call this program
26707         gnulib-tool.
26708         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26709         with using $0 in function.
26710         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26711         (func_fatal_error): Reuse the name the user invoked us with.
26712
26713 2008-09-27  Bruno Haible  <bruno@clisp.org>
26714
26715         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26716         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26717         (gl_ICONV_H): Not here.
26718         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26719         instead of assigning ICONV_H directly.
26720
26721         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26723         WCHAR_H directly.
26724
26725 2008-09-27  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26728         * modules/arpa_inet (Depends-on): Add link-warning.
26729         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26730         * modules/unistd (Makefile.am): Likewise.
26731
26732 2008-09-26  Bruno Haible  <bruno@clisp.org>
26733
26734         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26735         variables.
26736         (func_version): Essentially copied from gnulib-tool.
26737         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26738         func_readlink): Copied from gnulib-tool.
26739
26740 2008-09-26  Bruno Haible  <bruno@clisp.org>
26741
26742         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26743         invoking git-version-gen.
26744
26745 2008-09-26  Bruno Haible  <bruno@clisp.org>
26746
26747         * posix-modules: Update to directory names changed on 2008-01-19.
26748         Remove commas in output before splitting into words. No more need to
26749         avoid 'ftruncate' since 2007-02-19.
26750
26751 2008-09-26  Bruno Haible  <bruno@clisp.org>
26752
26753         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26754
26755 2008-09-26  Bruno Haible  <bruno@clisp.org>
26756
26757         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26758         * modules/fwriteerror (Depends-on): Add errno.
26759
26760 2008-09-26  Bruno Haible  <bruno@clisp.org>
26761
26762         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26763         * tests/test-vc-list-files-cvs.sh: Likewise.
26764
26765 2008-09-26  Bruno Haible  <bruno@clisp.org>
26766
26767         * doc/posix-headers/sys_resource.texi: Reorder items.
26768
26769 2008-09-26  Jim Meyering  <meyering@redhat.com>
26770
26771         fts: tweak inode comparison function
26772         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26773         inode numbers, as documented.
26774
26775         fts: sort dirent entries on inode number before traversing
26776         This avoids a quadratic, seek-related performance penalty when
26777         operating on a directory containing many entries (measurable at 10k;
26778         3.5 hours at 2 million entries with a cold cache) on certain types
26779         of file systems, including ext3 and ext4, but not tmpfs.
26780         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26781         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26782         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26783         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26784         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26785         (fts_build): Set the stat.st_ino member from D_INO.
26786         If it is likely to be useful, sort dirent entries on inode number.
26787
26788         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26789         and the struct statfs.f_type member.
26790         * modules/fts (Depends-on): Add d-ino.
26791
26792 2008-09-26  Bruno Haible  <bruno@clisp.org>
26793
26794         * modules/sigpipe-die (Depends-on): Add sigpipe.
26795
26796         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26797         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26798         and GNULIB_STDIO_H_SIGPIPE are set.
26799         * lib/stdio-write.c: New file.
26800         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26801         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26802         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26803         REPLACE_STDIO_WRITE_FUNCS.
26804         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26805         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26806         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26807         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26808         * modules/stdio (Files): Add lib/stdio-write.c.
26809         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26810         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26811         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26812         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26813         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26814         REPLACE_FPRINTF_POSIX.
26815         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26816         REPLACE_PRINTF_POSIX.
26817         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26818         REPLACE_VFPRINTF_POSIX.
26819         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26820         REPLACE_VPRINTF_POSIX.
26821         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26822         SIGPIPE issue.
26823         * doc/posix-functions/fputc.texi: Likewise.
26824         * doc/posix-functions/fputs.texi: Likewise.
26825         * doc/posix-functions/fwrite.texi: Likewise.
26826         * doc/posix-functions/printf.texi: Likewise.
26827         * doc/posix-functions/putc.texi: Likewise.
26828         * doc/posix-functions/putchar.texi: Likewise.
26829         * doc/posix-functions/puts.texi: Likewise.
26830         * doc/posix-functions/vfprintf.texi: Likewise.
26831         * doc/posix-functions/vprintf.texi: Likewise.
26832
26833         * modules/safe-write (Depends-on): Add write.
26834
26835         * modules/sigpipe-tests: New file.
26836         * tests/test-sigpipe.c: New file.
26837         * tests/test-sigpipe.sh: New file.
26838
26839         * modules/write: New file.
26840         * lib/unistd.in.h: Include <sys/types.h>.
26841         (write): New declaration.
26842         * lib/write.c: New file.
26843         * m4/write.m4: New file.
26844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26845         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26846         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26847         GNULIB_WRITE, REPLACE_WRITE.
26848         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26849         and the SIGPIPE issue.
26850
26851         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26852         (raise): New declaration.
26853         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26854         (ext_signal): New function.
26855         (rpl_raise): New function.
26856         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26857         GNULIB_SIGNAL_H_SIGPIPE.
26858         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26859         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26860
26861         * modules/sigpipe: New file.
26862         * m4/sigpipe.m4: New file.
26863
26864 2008-09-25  Derek Price  <derek@ximbiot.com>
26865             Bruno Haible  <bruno@clisp.org>
26866
26867         * gnulib-tool (func_import): Report all license incompatibilities, not
26868         just the first one.
26869
26870 2008-09-25  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_import): When computing the edits, consider not
26873         only the Makefile.ams that exist but also those that will be generated.
26874
26875 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26876
26877         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26878         fixes gnulib-tool --test warning about duplicate dependency.
26879
26880 2008-09-25  Bruno Haible  <bruno@clisp.org>
26881
26882         * gnulib-tool: Don't ask the user to perform edits in the generated
26883         Makefile.ams.
26884         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26885         apply to the Makefile.am being generated.
26886         (func_emit_tests_Makefile_am): Execute edits that apply to the
26887         Makefile.am being generated.
26888         (func_import): Setup list of Makefile.am edits before emitting the
26889         Makefile.ams, not at the end.
26890         (func_create_testdir): Update.
26891         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26892
26893 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26894
26895         * gnulib-tool (func_import): Store the --tests-base option in the
26896         comment in gnulib-cache.m4.
26897
26898 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26899
26900         * NEWS: Document increased portability that sys_select now provides.
26901
26902         * lib/sys_select.in.h: Install select wrapper.
26903         * lib/sys_socket.in.h: Use more descriptive name when there is no
26904         select wrapper.
26905         * lib/winsock-select.c: New.
26906         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26907         Require gl_HEADER_SYS_SOCKET.
26908         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26909         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26910         * tests/test-sys_select.c: Add functional tests.
26911
26912 2008-09-24  Eric Blake  <ebb9@byu.net>
26913
26914         open, fopen: close fd leak in last patch
26915         * lib/open.c (rpl_open): Close fd before returning error.
26916         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26917         * doc/posix-functions/open.texi (open): Document that Irix also
26918         has the bug.
26919         * doc/posix-functions/fopen.texi (fopen): Likewise.
26920         Reported by Paolo Bonzini.
26921
26922 2008-09-24  Bruno Haible  <bruno@clisp.org>
26923
26924         Ensure that a filename ending in a slash cannot be used to access a
26925         non-directory.
26926         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26927         to check whether it's really a directory.
26928         * lib/fopen.c: Include fcntl.h, unistd.h.
26929         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26930         and fdopen().
26931         * modules/fopen (Depends-on): Add unistd.
26932         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26933         * tests/test-fopen.c (main): Likewise.
26934         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26935         * doc/posix-functions/fopen.texi: Likewise.
26936         Reported by Eric Blake.
26937
26938 2008-09-23  Eric Blake  <ebb9@byu.net>
26939
26940         c-stack: avoid compiler optimizations when provoking overflow
26941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26942         recursion harder to optimize, to ensure a stack overflow occurs.
26943         * tests/test-c-stack.c (recurse): Likewise.
26944         Borrowed from libsigsegv.
26945
26946         c-stack: work around Irix sigaltstack bug
26947         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26948         whether sigaltstack uses wrong end of stack_t (copied in part from
26949         libsigsegv).
26950         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26951         Irix bug, without requiring an over-allocation.
26952         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26953         bug.
26954
26955         fopen: document mingw bug on directories
26956         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26957         not allowing a stream visiting a directory, even though reading
26958         from such a stream is not portable.
26959
26960 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26961
26962         * lib/poll.c: Rewrite.
26963         * modules/poll: Depend on alloca.
26964
26965 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26966
26967         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26968         instead define prototypes for a full set of wrappers.  Ensure
26969         that Cygwin does not use the compatibility code, which is only
26970         for MinGW.
26971         * lib/winsock.c: New.
26972         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26973         * modules/sys_socket: Add lib/winsock.c.
26974
26975         * modules/poll-tests: Add errno and perror.
26976         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26977
26978 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26979
26980         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26981
26982 2008-09-23  Bruno Haible  <bruno@clisp.org>
26983
26984         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26985         * doc/glibc-functions/*: Likewise.
26986
26987 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26988
26989         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26990         success.
26991
26992 2008-09-22  Eric Blake  <ebb9@byu.net>
26993             Bruno Haible  <bruno@clisp.org>
26994
26995         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26996         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26997         supply %A but mishandle pseudo-NaN.
26998         Reported by Simon Josefsson.
26999
27000 2008-09-21  Bruno Haible  <bruno@clisp.org>
27001
27002         * tests/test-lock.c (main): Tweak skip message.
27003         * tests/test-tls.c (main): Likewise.
27004
27005 2008-09-21  Bruno Haible  <bruno@clisp.org>
27006
27007         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27008         whether 'struct sigaction' has sa_sigaction here...
27009         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27010         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27011
27012 2008-09-21  Bruno Haible  <bruno@clisp.org>
27013
27014         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27015         section.
27016         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27017         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27018         the new section.
27019         (Support for obsolete systems lacking POSIX:2001): New section.
27020         (String handling <string.h>): Move strdup to the new section.
27021         Suggested by Simon Josefsson and Paolo Bonzini.
27022
27023 2008-09-21  Bruno Haible  <bruno@clisp.org>
27024
27025         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27026         exponents in %e and %g results on 'long double'. Needed for mingw's
27027         improved *printf functions.
27028         * tests/test-vasprintf-posix.c (test_function): Likewise.
27029         * tests/test-snprintf-posix.h (test_function): Likewise.
27030         * tests/test-sprintf-posix.h (test_function): Likewise.
27031         Reported by Eric Blake.
27032
27033 2008-09-21  Bruno Haible  <bruno@clisp.org>
27034
27035         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27036         * tests/test-sprintf-posix.h (test_function): Likewise.
27037
27038 2008-09-21  Bruno Haible  <bruno@clisp.org>
27039
27040         * modules/getpass (Depends-on): Add strdup-posix.
27041
27042         New module 'strdup-posix'.
27043         * modules/strdup-posix: New file.
27044         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27045         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27047         REPLACE_STRDUP.
27048         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27049         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27051         strdup-posix.
27052
27053         * modules/strdup (Depends-on): Remove malloc-posix.
27054
27055 2008-09-20  Bruno Haible  <bruno@clisp.org>
27056
27057         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27058         Wildenhues.
27059
27060 2008-09-20  Bruno Haible  <bruno@clisp.org>
27061
27062         Ensure that wint_t gets defined on IRIX 5.3.
27063         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27064         * lib/wctype.in.h (wint_t): Likewise.
27065         (__wctype_wint_t): Remove type.
27066         (isw*): Use wint_t instead of __wctype_wint_t.
27067         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27068         * modules/wchar (Files): Add m4/wint_t.m4.
27069         (Makefile.am): Substitute HAVE_WINT_T.
27070         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27071         * tests/test-wctype.c: Check that wint_t is defined.
27072         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27073         * doc/posix-headers/wctype.texi: Likewise.
27074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27075
27076 2008-09-18  Bruno Haible  <bruno@clisp.org>
27077
27078         * gnulib-tool (func_exit): Update comment.
27079
27080 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27081
27082         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27083         assumes strdup exists and does not depend on strdup to return
27084         ENOMEM on out of memory conditions.
27085
27086 2008-09-18  Bruno Haible  <bruno@clisp.org>
27087
27088         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27089         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27090         digits for the exponent.
27091
27092 2008-09-18  Jim Meyering  <meyering@redhat.com>
27093             Bruno Haible  <bruno@clisp.org>
27094
27095         * lib/vasnprintf.c (decimal_point_char): Define also if
27096         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27097
27098 2008-09-16  Bruno Haible  <bruno@clisp.org>
27099         and Eric Blake  <ebb9@byu.net>
27100
27101         vasnprintf: support Irix 5.3
27102         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27103         that mishandle long double infinity.
27104         Reported by Tom G. Christensen.
27105
27106 2008-09-16  Bruno Haible  <bruno@clisp.org>
27107
27108         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27109         Solaris 9.
27110         * doc/glibc-functions/alphasort.texi: Likewise.
27111         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27112
27113 2008-09-16  Jim Meyering  <meyering@redhat.com>
27114
27115         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27116         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27117         a umask modification leak out of a subshell.  Otherwise, the
27118         opensolaris /bin/sh would be accepted and thus cause unwarranted
27119         failures in the coreutils test suite.
27120
27121 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27122
27123         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27124         to succeed.
27125
27126 2008-09-16  Jim Meyering  <meyering@redhat.com>
27127
27128         avoid spurious test failure when library is built without ACL support
27129         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27130         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27131         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27132         * tests/test-copy-acl.sh: Likewise.
27133
27134 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27135
27136         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27137         based on character occurrence counts.
27138
27139 2008-09-15  Eric Blake  <ebb9@byu.net>
27140
27141         tests: avoid some compiler warnings
27142         * tests/test-memchr.c (main): Pass NULL indirectly.
27143         * tests/test-closein.c (main): Avoid unused variable.
27144
27145 2008-09-15  Bruno Haible  <bruno@clisp.org>
27146
27147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27148         are missing on OpenBSD 4.0 individually.
27149         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27150
27151 2008-09-15  Bruno Haible  <bruno@clisp.org>
27152
27153         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27154         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27155         * doc/posix-functions/perror.texi: Likewise.
27156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27157         is missing.
27158         Reported by Eric Blake.
27159
27160         * lib/errno.in.h: Use replacement values >= 2000.
27161         Reported by Eric Blake.
27162
27163 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27164
27165         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27166         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27167         limit.
27168         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27169         compareseq was aborted.
27170
27171 2008-09-14  Bruno Haible  <bruno@clisp.org>
27172
27173         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27174         yvec_edit_count.
27175         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27176         (fstrcmp_bounded): Simplify result computation accordingly.
27177
27178 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27179
27180         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27181         (fstrcmp): Define in terms of fstrcmp_bounded.
27182         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27183         lower_bound argument.
27184         Return quickly if the result is certainly < lower_bound.
27185         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27186
27187 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27188
27189         * lib/diffseq.h (EARLY_ABORT): New macro.
27190         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27191         evaluates to true.
27192
27193 2008-09-14  Bruno Haible  <bruno@clisp.org>
27194
27195         * modules/perror-tests: New file.
27196         * tests/test-perror.sh: New file.
27197         * tests/test-perror.c: New file.
27198
27199         New module 'perror'.
27200         * lib/stdio.in.h (perror): New declaration.
27201         * lib/perror.c: New file.
27202         * m4/perror.m4: New file.
27203         * modules/perror: New file.
27204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27205         * doc/posix-functions/perror.texi: Mention the perror module.
27206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27207         REPLACE_PERROR.
27208         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27209         REPLACE_PERROR.
27210
27211 2008-09-14  Bruno Haible  <bruno@clisp.org>
27212
27213         * modules/stdio (Makefile.am): Reorder to match the order in
27214         lib/stdio.in.h.
27215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27216
27217 2008-09-13  Bruno Haible  <bruno@clisp.org>
27218
27219         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27220
27221 2008-09-13  Bruno Haible  <bruno@clisp.org>
27222
27223         Extend strerror to cover the added errno values.
27224         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27225         (rpl_strerror): Provide error messages for the added errno values and
27226         for the WSA* values.
27227         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27228         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27229         strerror.
27230         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27231         * modules/strerror (Depends-on): Add errno.
27232         * doc/posix-functions/strerror.texi: Document the change.
27233         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27234         and EOVERFLOW.
27235
27236 2008-09-13  Bruno Haible  <bruno@clisp.org>
27237
27238         * modules/EOVERFLOW: Remove file.
27239         * m4/eoverflow.m4: Remove file.
27240         * modules/EOVERFLOW-tests: Remove file.
27241         * tests/test-EOVERFLOW.c: Remove file.
27242         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27243         * modules/ftell (Depends-on): Likewise.
27244         * modules/getdelim (Depends-on): Likewise.
27245         * modules/getugroups (Depends-on): Likewise.
27246         * modules/poll (Depends-on): Likewise.
27247         * modules/snprintf (Depends-on): Likewise.
27248         * modules/sprintf-posix (Depends-on): Likewise.
27249         * modules/vasnprintf (Depends-on): Likewise.
27250         * modules/vasprintf (Depends-on): Likewise.
27251         * modules/vfprintf-posix (Depends-on): Likewise.
27252         * modules/vsnprintf (Depends-on): Likewise.
27253         * modules/vsprintf-posix (Depends-on): Likewise.
27254         * modules/xvasprintf (Depends-on): Likewise.
27255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27256         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27257         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27258         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27259         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27260         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27261         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27262         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27263         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27264         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27265         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27266         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27267         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27268         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27269         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27270         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27271         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27272         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27273         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27274         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27276         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27277         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27278         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27279         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27280         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27281         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27282         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27283         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27284         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27285         * MODULES.html.sh: Remove EOVERFLOW.
27286         * NEWS: Mention the change.
27287
27288 2008-09-13  Bruno Haible  <bruno@clisp.org>
27289
27290         * modules/errno-tests: New file.
27291         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27292
27293         * lib/errno.in.h: New file.
27294         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27295         * modules/errno: New file.
27296         * doc/posix-headers/errno.texi: Update documentation.
27297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27298
27299 2008-09-13  Bruno Haible  <bruno@clisp.org>
27300
27301         * tests/test-poll.c: Use #if for native Windows, rather than testing
27302         __MSVCRT__.
27303
27304 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27305             Bruno Haible  <bruno@clisp.org>
27306
27307         * lib/glob.c: Don't include <pwd.h> on native Windows.
27308         (WINDOWS32): New macro.
27309         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27310
27311 2008-09-13  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27314         (ETIMEDOUT): Remove macro.
27315         (glthread_cond_timedwait_multithreaded): New declaration.
27316         (glthread_cond_timedwait): Use it.
27317         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27318         (glthread_cond_timedwait_multithreaded): New function.
27319
27320 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27321
27322         * modules/poll-tests: Do not check for io.h.
27323         * tests/test-poll.c: Check for __MSVCRT__ instead.
27324
27325 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27326
27327         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27328         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27329         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27330
27331 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27332
27333         * modules/poll-tests: New.
27334         * tests/test-poll.c: New.
27335
27336 2008-09-12  Eric Blake  <ebb9@byu.net>
27337
27338         frexp: test for NetBSD failure on -0.0
27339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27340         not all, bugs from NetBSD 3.0 have been fixed.
27341         * doc/posix-functions/frexp.texi (frexp): Document bug.
27342         Reported by Thomas Klausner.
27343
27344         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27345         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27346         literal -0.0.
27347         Reported by Jonathan C. Patschke <jp@centtech.com>.
27348
27349 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27350
27351         * lib/glthread/cond.h: Use dummy implementation also if
27352         USE_WIN32_THREADS.
27353
27354 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27355
27356         * modules/fnmatch-posix (License): Change to LGPLv2+.
27357         * modules/fnmatch-gnu (License): Likewise.
27358
27359 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27360
27361         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27362
27363 2008-09-11  Jim Meyering  <meyering@redhat.com>
27364
27365         * users.txt: Add gtk-vnc.
27366
27367 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27368
27369         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27370         rotate amounts.
27371
27372         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27373         required for 16-bit and 8-bit rotates.
27374         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27375         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27376         UINT8_MAX instead of hard-coded constants.
27377         Suggested by Paul Eggert.
27378
27379 2008-09-07  Bruno Haible  <bruno@clisp.org>
27380
27381         * tests/test-striconveh.c (main): Check behaviour when converting from
27382         UTF-7.
27383
27384         Make striconveh work better with stateful encodings.
27385         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27386         that iconv does not increment the inptr when returning -1/EINVAL.
27387
27388 2008-09-07  Bruno Haible  <bruno@clisp.org>
27389
27390         * build-aux/config.rpath: Update according to libtool-2.2.6.
27391         * build-aux/config.libpath: Likewise.
27392
27393 2008-09-06  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27396         * lib/freadptr.c (freadptr): Likewise.
27397         * lib/freadseek.c (freadptrinc): Likewise.
27398         Reported by Simon Josefsson.
27399
27400 2008-09-06  Bruno Haible  <bruno@clisp.org>
27401
27402         * modules/freadptr (License): Change to LGPLv2+.
27403         * modules/freadseek (License): Likewise.
27404         Suggested by Eric Blake.
27405
27406         * modules/memchr2 (License): Change to LGPLv2+.
27407         Approved by Eric Blake.
27408
27409 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27410             Bruno Haible  <bruno@clisp.org>
27411
27412         Make gnulib-tool work with native 'sed' on AIX.
27413         * gnulib-tool (sed_noop): New variable.
27414         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27415         func_add_or_update, func_create_testdir): Use it to initialize sed
27416         script variables.
27417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27418
27419 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27420             Bruno Haible  <bruno@clisp.org>
27421
27422         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27423         also works after #include directives.
27424
27425 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27426
27427         getdate.y: reject an out-of-range timezone value
27428         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27429         the range [-24...+24].  When specified with only one or two digits,
27430         * tests/test-getdate.c: Tests for the fix.
27431         * doc/getdate.texi: Document this change.
27432
27433 2008-09-03  Bruno Haible  <bruno@clisp.org>
27434
27435         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27436
27437 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27438
27439         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27440         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27441         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27442         Blake <ebb9@byu.net>.
27443
27444         * tests/test-bitrotate.c: Add more test vectors.
27445
27446 2008-09-02  Eric Blake  <ebb9@byu.net>
27447
27448         vasnprintf-posix: handle large precision via %.*d
27449         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27450         when handling it ourselves.
27451         * tests/test-vasnprintf-posix.c (test_function): Add test.
27452         * tests/test-snprintf-posix.h (test_function): Likewise.
27453         * tests/test-sprintf-posix.h (test_function): Likewise.
27454         * tests/test-vasprintf-posix.c (test_function): Likewise.
27455         Reported by Alain Guibert.
27456
27457 2008-09-01  Eric Blake  <ebb9@byu.net>
27458
27459         c-stack: make configure-time check more robust
27460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27461         successful sigaction call.
27462         Reported by Tom G. Christensen.
27463
27464 2008-09-01  Bruno Haible  <bruno@clisp.org>
27465
27466         New module 'findprog-lgpl'.
27467         * modules/findprog-lgpl: New file.
27468         * lib/findprog-lgpl.c: New file.
27469         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27470         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27471         to decide whether to use strdup or xstrdup, concatenated_filename or
27472         xconcatenated_filename.
27473
27474 2008-09-01  Bruno Haible  <bruno@clisp.org>
27475
27476         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27477         'xconcat-filename' (GPL).
27478         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27479         (License): Change to LGPLv2+.
27480         * modules/xconcat-filename: New file.
27481         * lib/concat-filename.h (concatenated_filename): Change specification.
27482         (xconcatenated_filename): New declaration.
27483         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27484         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27485         memory situations.
27486         * lib/xconcat-filename.c: New file.
27487         * NEWS: Mention the change.
27488         * lib/findprog.c: Include concat-filename.h, not filename.h.
27489         (find_in_path): Use xconcatenated_filename instead of
27490         concatenated_filename.
27491         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27492         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27493         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27494         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27495         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27496         instead of concatenated_filename.
27497         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27498         (execute_java_class): Use xconcatenated_filename instead of
27499         concatenated_filename.
27500         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27501         * modules/javacomp (Depends-on): Likewise.
27502         * modules/javaexec (Depends-on): Likewise.
27503
27504 2008-09-01  Bruno Haible  <bruno@clisp.org>
27505
27506         Split module 'filename' into 'filename' and 'concat-filename'.
27507         * modules/filename: Keep only lib/filename.h.
27508         (License): Change to LGPLv2+.
27509         * modules/concat-filename: New file, extracted from modules/filename.
27510         * lib/filename.h (concatenated_filename): Remove declaration.
27511         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27512         * lib/concat-filename.c: Include concat-filename.h.
27513         * NEWS: Mention the change.
27514
27515 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27516
27517         * lib/bitrotate.h (rotl8, rotr8): Add.
27518
27519         * modules/bitrotate (configure.ac): Need
27520         AC_REQUIRE([AC_C_INLINE]).
27521         (Description): Mention stdint.h.  Reported by Bruno Haible
27522         <bruno@clisp.org>.
27523
27524         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27525         Paolo Bonzini <bonzini@gnu.org>.
27526
27527 2008-08-31  Bruno Haible  <bruno@clisp.org>
27528
27529         Assume Solaris specific bi-arch conventions on Solaris systems.
27530         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27531         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27533         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27534         like acl_libdirstem.
27535         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27536         acl_libdirstem.
27537         * NEWS: Mention the change.
27538         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27539
27540 2008-08-31  Jim Meyering  <meyering@redhat.com>
27541
27542         * lib/strftime.h: Add comments describing the two added arguments.
27543
27544         remove duplicate #include directives
27545         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27546         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27547
27548 2008-08-31  Bruno Haible  <bruno@clisp.org>
27549
27550         New module 'sigpipe-die'.
27551         * modules/sigpipe-die: New file.
27552         * lib/sigpipe-die.h: New file.
27553         * lib/sigpipe-die.c: New file.
27554         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27555
27556 2008-08-31  Bruno Haible  <bruno@clisp.org>
27557
27558         Don't override previously installed signal handlers.
27559         * lib/fatal-signal.c (saved_sigactions): New variable.
27560         (uninstall_handlers): Reset the signal to the saved handler, not
27561         to SIG_DFL (except when ignored).
27562         (install_handlers): Save the previous handlers.
27563
27564 2008-08-30  Bruno Haible  <bruno@clisp.org>
27565
27566         * gnulib-tool (func_reset_sigpipe): New function.
27567         (func_get_automake_snippet, func_modules_transitive_closure,
27568         func_import): Invoke it before a join command that reads from stdin,
27569         to avoid "echo: write error: Broken pipe" error messages on stderr.
27570         Reported by Sam Steingold <sds@gnu.org>.
27571
27572 2008-08-30  Bruno Haible  <bruno@clisp.org>
27573
27574         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27575         Code copied from m4/open.m4.
27576         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27577         access and the filename ends in a slash. Code copied from lib/open.c.
27578         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27579         * tests/test-fopen.c (main): Check against bug with trailing slash.
27580
27581 2008-08-29  Bruno Haible  <bruno@clisp.org>
27582
27583         Avoid some "gcc -pedantic" warnings.
27584         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27585         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27586         * lib/dirent.in.h: Likewise.
27587         * lib/fcntl.in.h: Likewise.
27588         * lib/float.in.h: Likewise.
27589         * lib/iconv.in.h: Likewise.
27590         * lib/inttypes.in.h: Likewise.
27591         * lib/locale.in.h: Likewise.
27592         * lib/math.in.h: Likewise.
27593         * lib/netinet_in.in.h: Likewise.
27594         * lib/search.in.h: Likewise.
27595         * lib/signal.in.h: Likewise.
27596         * lib/stdarg.in.h: Likewise.
27597         * lib/stdint.in.h: Likewise.
27598         * lib/stdio.in.h: Likewise.
27599         * lib/stdlib.in.h: Likewise.
27600         * lib/string.in.h: Likewise.
27601         * lib/strings.in.h: Likewise.
27602         * lib/sys_select.in.h: Likewise.
27603         * lib/sys_socket.in.h: Likewise.
27604         * lib/sys_stat.in.h: Likewise.
27605         * lib/sys_time.in.h: Likewise.
27606         * lib/sysexits.in.h: Likewise.
27607         * lib/time.in.h: Likewise.
27608         * lib/unistd.in.h: Likewise.
27609         * lib/wchar.in.h: Likewise.
27610         * lib/wctype.in.h: Likewise.
27611         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27612         * modules/fchdir (Makefile.am): Likewise.
27613         * modules/fcntl (Makefile.am): Likewise.
27614         * modules/float (Makefile.am): Likewise.
27615         * modules/iconv_open (Makefile.am): Likewise.
27616         * modules/inttypes (Makefile.am): Likewise.
27617         * modules/locale (Makefile.am): Likewise.
27618         * modules/math (Makefile.am): Likewise.
27619         * modules/netinet_in (Makefile.am): Likewise.
27620         * modules/search (Makefile.am): Likewise.
27621         * modules/signal (Makefile.am): Likewise.
27622         * modules/stdarg (Makefile.am): Likewise.
27623         * modules/stdint (Makefile.am): Likewise.
27624         * modules/stdio (Makefile.am): Likewise.
27625         * modules/stdlib (Makefile.am): Likewise.
27626         * modules/string (Makefile.am): Likewise.
27627         * modules/strings (Makefile.am): Likewise.
27628         * modules/sys_select (Makefile.am): Likewise.
27629         * modules/sys_socket (Makefile.am): Likewise.
27630         * modules/sys_stat (Makefile.am): Likewise.
27631         * modules/sys_time (Makefile.am): Likewise.
27632         * modules/sysexits (Makefile.am): Likewise.
27633         * modules/time (Makefile.am): Likewise.
27634         * modules/unistd (Makefile.am): Likewise.
27635         * modules/wchar (Makefile.am): Likewise.
27636         * modules/wctype (Makefile.am): Likewise.
27637         Reported by Reuben Thomas <rrt@sc3d.org>.
27638
27639 2008-08-29  Bruno Haible  <bruno@clisp.org>
27640
27641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27642         any more.
27643
27644 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27645
27646         * MODULES.html.sh (Misc): Add bitrotate.
27647
27648         * modules/bitrotate: New file.
27649
27650         * lib/bitrotate.h: New file.
27651
27652         * modules/bitrotate-tests: New file.
27653
27654         * tests/test-bitrotate.c: New file.
27655
27656         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27657         on the bitrotate module.
27658
27659         * lib/arctwo.c: Use new bitrotate module.
27660
27661 2008-08-29  Jim Meyering  <meyering@redhat.com>
27662
27663         bootstrap: merge changes from coreutils
27664         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27665         of copied files.  Remove a kludge, now that this is fixed.
27666         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27667         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27668         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27669
27670 2008-08-29  Bruno Haible  <bruno@clisp.org>
27671
27672         * MODULES.html.sh: Remove --cvs-urls option.
27673
27674 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27675
27676         maint.mk: adjust to file name change
27677         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27678
27679 2008-08-28  Jim Meyering  <meyering@redhat.com>
27680
27681         * modules/getndelim2 (License): Relicense to LGPLv2+.
27682         Approved by Richard Stallman for the version of 1995, and by
27683         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27684
27685 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27686
27687         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27688         dummy if one is not available.  Do not touch them if
27689         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27690         (getc_maybe_unlocked): New.
27691         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27692
27693 2008-08-26  Eric Blake  <ebb9@byu.net>
27694
27695         doc/INSTALL: resync from autoconf
27696         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27697         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27698         moving...
27699         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27700         * INSTALL: Regenerate.
27701         * INSTALL.ISO: New file.
27702         * INSTALL.UTF-8: Likewise.
27703
27704 2008-08-26  Jim Meyering  <meyering@redhat.com>
27705
27706         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27707         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27708         these definitions conditional, so that they may be overridden, too.
27709
27710 2008-08-26  Bruno Haible  <bruno@clisp.org>
27711
27712         Generate INSTALL file variants with prettier quotes.
27713         * doc/Makefile (INSTALL_PRELUDE): New macro.
27714         (INSTALL): Use it.
27715         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27716
27717 2008-08-26  Bruno Haible  <bruno@clisp.org>
27718
27719         Run makeinfo in an English locale.
27720         * doc/Makefile (MAKEINFO): New variable.
27721
27722 2008-08-26  Bruno Haible  <bruno@clisp.org>
27723
27724         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27725         Suggested by Eric Blake.
27726
27727 2008-08-25  Bruno Haible  <bruno@clisp.org>
27728
27729         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27730
27731 2008-08-25  Eric Blake  <ebb9@byu.net>
27732
27733         c-stack: test that stack overflow can be caught
27734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27735         that platform allows handling stack overflow; at least OS/2 EMX
27736         has sigaltstack, but crashes before transferring control to
27737         handler on stack overflow.
27738         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27739         check for HAVE_STACK_OVERFLOW_HANDLING.
27740         Reported by Elbert Pol.
27741
27742 2008-08-25  Bruno Haible  <bruno@clisp.org>
27743
27744         * doc/posix-functions/strftime.texi: Fix description of strftime
27745         module.
27746
27747 2008-08-24  Bruno Haible  <bruno@clisp.org>
27748
27749         * tests/uniwidth/test-uc_width2.c: New file.
27750         * tests/uniwidth/test-uc_width2.sh: New file.
27751         * modules/uniwidth/width-tests (Files): Add the new files.
27752         (TESTS): Add uniwidth/test-uc_width2.sh.
27753         (TESTS_ENVIRONMENT): New variable.
27754         (check_PROGRAMS): Add test-uc_width2.
27755         (test_uc_width2_SOURCES): New variable.
27756
27757         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27758         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27759         not 0x00AB.
27760         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27761
27762 2008-08-22  Eric Blake  <ebb9@byu.net>
27763
27764         test-lock, test-tls: mention why a test is skipped
27765         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27766         skipped.
27767         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27768
27769         count-one-bits: relax license
27770         * modules/count-one-bits (License): Relicense to LGPLv2+.
27771         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27772
27773 2008-08-22  Andreas Schwab  <schwab@suse.de>
27774
27775         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27776         Remove spurious space in assignment.
27777
27778 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27779
27780         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27781         Paul Eggert <eggert@CS.UCLA.EDU>.
27782
27783 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27784
27785         * modules/gettext: Add m4/threadlib.m4.
27786
27787 2008-08-19  Eric Blake  <ebb9@byu.net>
27788
27789         test-c-stack: fix compilation failure on FreeBSD 5.0
27790         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27791         headers before <sys/resource.h>.
27792         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27793         the bug.
27794         Reported by Nelson H. F. Beebe.
27795
27796         strverscmp: migrate from "strverscmp.h" to <string.h>
27797         * modules/string (Makefile.am): Add new hooks.
27798         * modules/strverscmp (Files): Remove strverscmp.h.
27799         (Depends-on): Add string.
27800         (configure.ac): Add indicator.
27801         (Include): Mention new header.
27802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27803         defaults.
27804         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27805         results.
27806         * lib/strverscmp.h: Delete.
27807         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27808         * tests/test-strverscmp.c (includes): Adjust client.
27809         * lib/check-version.c (includes): Likewise.
27810         * NEWS: Document the change.
27811
27812         strverscmp: add unit test
27813         * modules/strverscmp-tests: New file.
27814         * tests/test-strverscmp.c: Likewise.
27815
27816 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27817
27818         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27819         regarding Windows crypto stuff, from Mono.
27820
27821 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27822
27823         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27824         if present, for intel RND.  Return error on failures.
27825
27826 2008-08-18  Ben Pfaff  <blp@gnu.org>
27827
27828         gitlog-to-changelog: give better diagnostic for failed pipe-open
27829         * build-aux/gitlog-to-changelog: Improve error message: suggest
27830         that the version of Git may be too old.
27831
27832 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27833
27834         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27835         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27836
27837 2008-08-18  Bruno Haible  <bruno@clisp.org>
27838
27839         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27840         pthread_in_use().
27841
27842 2008-08-18  Bruno Haible  <bruno@clisp.org>
27843
27844         * lib/glthread/threadlib.c: Include <pthread.h>.
27845
27846 2008-08-18  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27849         glthread_recursive_lock_* macros.
27850         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27851         Fix syntax error.
27852
27853 2008-08-18  Bruno Haible  <bruno@clisp.org>
27854
27855         * lib/glthread/thread.c: Avoid forcing a context switch right after
27856         thread creation.
27857
27858 2008-08-17  Bruno Haible  <bruno@clisp.org>
27859
27860         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27861         * lib/glthread/thread.h: Provide Win32 specific implementation.
27862         * modules/thread (Files): Add lib/glthread/thread.c.
27863         (Depends-on): Add lock.
27864         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27865
27866 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27867
27868         New module 'yield'.
27869         * modules/yield: New file.
27870         * lib/glthread/yield.h: New file.
27871         * m4/yield.m4: New file.
27872         * MODULES.html.sh (Multithreading): Add yield.
27873
27874 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27875
27876         New module 'thread'.
27877         * modules/thread: New file.
27878         * lib/glthread/thread.h: New file.
27879         * m4/thread.m4: New file.
27880         * MODULES.html.sh (Multithreading): Add thread.
27881
27882 2008-08-17  Bruno Haible  <bruno@clisp.org>
27883
27884         * lib/glthread/lock.h: Include <stdlib.h> always.
27885         * lib/glthread/tls.h: Likewise.
27886         * lib/glthread/cond.h: Likewise.
27887
27888 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27889
27890         New module 'cond'.
27891         * modules/cond: New file.
27892         * lib/glthread/cond.h: New file.
27893         * lib/glthread/cond.c: New file.
27894         * m4/cond.m4: New file.
27895         * MODULES.html.sh (Multithreading): Add cond.
27896
27897 2008-08-16  Eric Blake  <ebb9@byu.net>
27898
27899         c-stack: fix regression on Irix 5.3 from 2008-06-21
27900         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27901         sa_sigaction...
27902         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27903         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27904         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27905         * modules/signal (Makefile.am): Use the value.
27906         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27907         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27908         * doc/posix-headers/signal.texi (signal.h): Document this
27909         portability issue.
27910         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27911         Reported by Tom G. Christensen.
27912
27913 2008-08-17  Bruno Haible  <bruno@clisp.org>
27914
27915         New module 'threadlib'.
27916         * modules/threadlib: New file.
27917         * lib/glthread/threadlib.c: New file, extracted from
27918         lib/glthread/lock.c.
27919         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27920         functions.
27921         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27922         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27923         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27924         macros.
27925         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27926         (gl_DISABLE_THREADS): Remove macro.
27927         * modules/lock (Files): Remove build-aux/config.rpath.
27928         (Depends-on): Remove havelib. Add threadlib.
27929         (configure.ac-early): Remove section.
27930         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27931         * modules/tls (Depends-on): Remove lock. Add threadlib.
27932         (Link): New section, copied from threadlib.
27933         * MODULES.html.sh (Multithreading): Add threadlib.
27934
27935 2008-08-14  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27938         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27939         glthread_rwlock_unlock, glthread_rwlock_destroy,
27940         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27941         glthread_recursive_lock_destroy): Define as macros always.
27942         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27943         glthread_lock_lock.
27944         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27945         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27946         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27947         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27948         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27949         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27950         (glthread_recursive_lock_lock_func): Renamed from
27951         glthread_recursive_lock_lock.
27952         (glthread_recursive_lock_unlock_func): Renamed from
27953         glthread_recursive_lock_unlock.
27954         (glthread_recursive_lock_destroy_func): Renamed from
27955         glthread_recursive_lock_destroy.
27956
27957 2008-08-14  Bruno Haible  <bruno@clisp.org>
27958
27959         * lib/glthread/lock.h: Renamed from lib/lock.h.
27960         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27961         * lib/glthread/tls.h: Renamed from lib/tls.h.
27962         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27963         * lib/fstrcmp.c: Update includes.
27964         * lib/strsignal.c: Update includes.
27965         * modules/lock (Files, Makefile.am): Update.
27966         (Include): Change to "glthread/lock.h".
27967         * modules/tls (Files, Makefile.am): Update.
27968         (Include): Change to "glthread/tls.h".
27969         * tests/test-lock.c: Update includes.
27970         * tests/test-tls.c: Update includes.
27971         * NEWS: Mention the renamed header files.
27972
27973 2008-08-11  Jim Meyering  <meyering@redhat.com>
27974
27975         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27976
27977 2008-08-11  Eric Blake  <ebb9@byu.net>
27978
27979         test-c-stack: avoid C99-ism
27980         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27981         before statement.
27982         Reported by Alain Guibert.
27983
27984 2008-08-10  Jim Meyering  <meyering@redhat.com>
27985
27986         ensure that return value of uinttostr et al are not ignored
27987         * lib/inttostr.h (__GNUC_PREREQ): Define.
27988         (__attribute_warn_unused_result__): Define.
27989         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27990
27991 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27992
27993         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27994         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27995
27996 2008-08-07  Jim Meyering  <meyering@redhat.com>
27997
27998         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27999
28000         * modules/mkstemp (License): Relicense under LGPLv2+.
28001         * modules/tempname (License): Likewise.
28002
28003 2008-08-06  Bruno Haible  <bruno@clisp.org>
28004
28005         * lib/poll.c (poll): Further micro-optimization.
28006
28007 2008-08-06  Jim Meyering  <meyering@redhat.com>
28008
28009         inet_pton.c: use locale-independent tolower
28010         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28011         (inet_pton6): Use c_tolower rather than tolower.
28012         * modules/inet_pton (Depends-on): Add c-ctype.
28013
28014 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28015
28016         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28017         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28018
28019 2008-08-06  Jim Meyering  <meyering@redhat.com>
28020
28021         * modules/inet_pton (License): Relicense under LGPLv2+.
28022
28023 2008-08-03  Bruno Haible  <bruno@clisp.org>
28024
28025         Additional non-aborting API for lock and tls.
28026         * lib/lock.h: Include <errno.h>.
28027         (glthread_lock_init): New macro/function.
28028         (gl_lock_init): Define as wrapper around glthread_lock_init.
28029         (glthread_lock_lock): New macro/function.
28030         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28031         (glthread_lock_unlock): New macro/function.
28032         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28033         (glthread_lock_destroy): New macro/function.
28034         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28035         (glthread_rwlock_init): New macro/function.
28036         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28037         (glthread_rwlock_rdlock): New macro/function.
28038         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28039         (glthread_rwlock_wrlock): New macro/function.
28040         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28041         (glthread_rwlock_unlock): New macro/function.
28042         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28043         (glthread_rwlock_destroy): New macro/function.
28044         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28045         (glthread_recursive_lock_init): New macro/function.
28046         (gl_recursive_lock_init): Define as wrapper around
28047         glthread_recursive_lock_init.
28048         (glthread_recursive_lock_lock): New macro/function.
28049         (gl_recursive_lock_lock): Define as wrapper around
28050         glthread_recursive_lock_lock.
28051         (glthread_recursive_lock_unlock): New macro/function.
28052         (gl_recursive_lock_unlock): Define as wrapper around
28053         glthread_recursive_lock_unlock.
28054         (glthread_recursive_lock_destroy): New macro/function.
28055         (gl_recursive_lock_destroy): Define as wrapper around
28056         glthread_recursive_lock_destroy.
28057         (glthread_once): New macro/function.
28058         (gl_once): Define as wrapper around glthread_once.
28059         Update function declarations.
28060         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28061         glthread_rwlock_init. Return error code.
28062         (glthread_rwlock_rdlock_multithreaded): Renamed from
28063         glthread_rwlock_rdlock. Return error code.
28064         (glthread_rwlock_wrlock_multithreaded): Renamed from
28065         glthread_rwlock_wrlock. Return error code.
28066         (glthread_rwlock_unlock_multithreaded): Renamed from
28067         glthread_rwlock_unlock. Return error code.
28068         (glthread_rwlock_destroy_multithreaded): Renamed from
28069         glthread_rwlock_destroy. Return error code.
28070         (glthread_recursive_lock_init_multithreaded): Renamed from
28071         glthread_recursive_lock_init. Return error code.
28072         (glthread_recursive_lock_lock_multithreaded): Renamed from
28073         glthread_recursive_lock_lock. Return error code.
28074         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28075         glthread_recursive_lock_unlock. Return error code.
28076         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28077         glthread_recursive_lock_destroy. Return error code.
28078         (glthread_once_call): Make static.
28079         (glthread_once_multithreaded): Renamed from glthread_once.
28080         * lib/tls.h: Include <errno.h>.
28081         (glthread_tls_key_init): New macro/function.
28082         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28083         (glthread_tls_set): New macro/function.
28084         (gl_tls_set): Define as wrapper around glthread_tls_set.
28085         (glthread_tls_key_destroy): New macro/function.
28086         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28087         Update function declarations.
28088         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28089         glthread_tls_get.
28090         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28091
28092 2008-08-04  Eric Blake  <ebb9@byu.net>
28093
28094         gnumakefile: use space, not TAB, outside of targets
28095         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28096
28097 2008-08-02  Jim Meyering  <meyering@redhat.com>
28098
28099         getdate.y: avoid locale-dependent date parsing failure
28100         In Turkish locales, getdate would fail to recognize keywords
28101         containing a lowercase "i".  The solution is not to rely on
28102         locale-sensitive case-conversion.
28103         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28104         (lookup_word): Use c_toupper in place of toupper.
28105         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28106         Reported by Vefa Bicakci <bicave@superonline.com> in
28107         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28108         * modules/getdate (Depends-on): Add c-ctype.
28109
28110 2008-08-02  Bruno Haible  <bruno@clisp.org>
28111
28112         * gnulib-tool (func_import): When updating or creating a .gitignore
28113         file, prepend each added line with a slash, and ignore leading slashes
28114         from the existing lines.
28115         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28116
28117 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28118
28119         Portability fix for GNU make 3.79.1.
28120         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28121         versions do not understand.
28122
28123 2008-08-01  Bruno Haible  <bruno@clisp.org>
28124
28125         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28126         * tests/test-isnanf.h (zero): New variable.
28127         (main): Avoid literal -0.0f.
28128         * tests/test-isnand.h (zero): New variable.
28129         (main): Avoid literal -0.0.
28130         * tests/test-isnanl.h (zero): New variable.
28131         (main): Avoid literal -0.0L.
28132         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28133         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28134         -0.0, -0.0L.
28135         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28136         (test_signbitd): Avoid literal -0.0.
28137         (test_signbitl): Avoid literal -0.0L.
28138         * tests/test-ceilf1.c (zero): New variable.
28139         (main): Avoid literal -0.0f.
28140         * tests/test-ceill.c (zero): New variable.
28141         (main): Avoid literal -0.0L.
28142         * tests/test-floorf1.c (zero): New variable.
28143         (main): Avoid literal -0.0f.
28144         * tests/test-floorl.c (zero): New variable.
28145         (main): Avoid literal -0.0L.
28146         * tests/test-roundf1.c (zero): New variable.
28147         (main): Avoid literal -0.0f.
28148         * tests/test-round1.c (zero): New variable.
28149         (main): Avoid literal -0.0.
28150         * tests/test-roundl.c (zero): New variable.
28151         (main): Avoid literal -0.0L.
28152         * tests/test-truncf1.c (zero): New variable.
28153         (main): Avoid literal -0.0f.
28154         * tests/test-trunc1.c (zero): New variable.
28155         (main): Avoid literal -0.0.
28156         * tests/test-truncl.c (zero): New variable.
28157         (main): Avoid literal -0.0L.
28158         * tests/test-frexp.c (zero): New variable.
28159         (main): Avoid literal -0.0.
28160         * tests/test-frexpl.c (zero): New variable.
28161         (main): Avoid literal -0.0L.
28162         * tests/test-ldexpl.c (zero): New variable.
28163         (main): Avoid literal -0.0L.
28164         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28165         (zerod, zerol): New variables.
28166         (test_function): Avoid literals -0.0, -0.0L.
28167         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28168         (zerod, zerol): New variables.
28169         (test_function): Avoid literals -0.0, -0.0L.
28170         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28171         (zerod, zerol): New variables.
28172         (test_function): Avoid literals -0.0, -0.0L.
28173         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28174         (zerod, zerol): New variables.
28175         (test_function): Avoid literals -0.0, -0.0L.
28176         * tests/test-strtod.c (zero): New variable.
28177         (main): Avoid literal -0.0.
28178         Reported by Jonathan C. Patschke <jp@centtech.com>.
28179
28180 2008-07-31  Jim Meyering  <meyering@redhat.com>
28181
28182         sha256.h: correct definition of SHA224_DIGEST_SIZE
28183         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28184         Reported by Paulie Pena IV <paulie4@gmail.com>.
28185         Define as 224 / 8, rather than as a literal.
28186         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28187         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28188         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28189
28190 2008-07-31  Bruno Haible  <bruno@clisp.org>
28191
28192         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28193         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28194         Reported by Jonathan Patschke <jp@centtech.com>.
28195
28196 2008-07-31  Bruno Haible  <bruno@clisp.org>
28197
28198         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28199         Reported by Paolo Bonzini <bonzini@gnu.org>.
28200
28201 2008-07-30  Eric Blake  <ebb9@byu.net>
28202
28203         test-strtod: allow compilation without -lm
28204         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28205         Reported by Dennis Clarke <blastwave@gmail.com>.
28206
28207 2008-07-28  Jim Meyering  <meyering@redhat.com>
28208
28209         bootstrap: work also when there are no .po files in po/
28210         * build-aux/bootstrap (update_po_files): Complete the change
28211         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28212
28213 2008-07-27  Jim Meyering  <meyering@redhat.com>
28214
28215         * users.txt: Add zile.
28216
28217 2008-07-26  Ben Pfaff  <blp@gnu.org>
28218
28219         Add missing dependencies on new m4/exponent[fdl].m4 files.
28220         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28221         * modules/isnand-nolibm: Add m4/exponentd.m4.
28222         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28223         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28224         m4/isnan[fdl].m4, because the macros actually used moved.
28225         Reported by Jim Meyering.
28226
28227 2008-07-14  Ben Pfaff  <blp@gnu.org>
28228
28229         Add isinf module.
28230         * lib/isinf.c: New file.
28231         * lib/math.in.h: Define isinf macro if we have decided to replace
28232         it.
28233         * m4/isinf.m4: New file.
28234         * m4/math_h.m4: Initialize and substitute variables for isinf
28235         module.
28236         * modules/isinf: New file.
28237         * modules/isinf-tests: New file.
28238         * modules/math: Add substitutions for new module.
28239         * tests/test-isinf.c: New file.
28240         * doc/posix-functions/isinf.texi: Mention new module.
28241         * MODULES.html.sh: Mention new module.
28242
28243 2008-07-14  Ben Pfaff  <blp@gnu.org>
28244
28245         Factor out some macros for use by additional modules.
28246         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28247         exponentf.m4.
28248         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28249         exponentd.m4.
28250         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28251         file exponentl.m4.
28252         * m4/exponentf.m4: New file.
28253         * m4/exponentd.m4: New file.
28254         * m4/exponentl.m4: New file.
28255         * modules/isnanf: Use new file m4/exponentf.m4.
28256         * modules/isnand: Use new file m4/exponentd.m4.
28257         * modules/isnanl: Use new file m4/exponentl.m4.
28258
28259 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28260
28261         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28262         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28263         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28264         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28265
28266         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28267         readlink on platforms without PATH_MAX.
28268
28269 2008-07-21  Eric Blake  <ebb9@byu.net>
28270
28271         Warn, not fail, on stale version.
28272         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28273
28274         Don't allow installation with stale devel version number.
28275         * top/GNUmakefile (_is-install-target): New macro.
28276         (_curr-ver): Forbid installation with stale version number.
28277
28278 2008-07-20  Bruno Haible  <bruno@clisp.org>
28279
28280         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28281         TESTS_ENVIRONMENT.
28282         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28283
28284 2008-07-20  Bruno Haible  <bruno@clisp.org>
28285
28286         * lib/c-stack.h (c_stack_action): Add documentation.
28287         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28288
28289 2008-07-20  Bruno Haible  <bruno@clisp.org>
28290
28291         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28292         * modules/readlink (License): Likewise.
28293
28294 2008-07-17  Eric Blake  <ebb9@byu.net>
28295
28296         * modules/c-stack (Link): Fix typo.
28297
28298         Make c-stack use libsigsegv, when available.
28299         * modules/c-stack (Depends-on): Add libsigsegv.
28300         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28301         needed.
28302         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28303         (segv_handler, overflow_handler, c_stack_action)
28304         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28305         implementation when libsigsegv is available, but only when using
28306         the library is necessary.
28307         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28308         comment, explaining why XSI check fails on Linux.
28309         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28310         * tests/test-c-stack2.sh: Tweak skip message.
28311         * NEWS: Document new link-time requirements.
28312
28313 2008-07-16  Eric Blake  <ebb9@byu.net>
28314
28315         c-stack: Expose false positives when not using libsigsegv.
28316         * modules/c-stack-tests (Files): Expand test.
28317         * tests/test-c-stack.c (main): Add means to conditionally trigger
28318         non-overflow SIGSEGV.
28319         * tests/test-c-stack2.sh: New file.
28320
28321 2008-07-14  Bruno Haible  <bruno@clisp.org>
28322
28323         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28324         Reported by Eric Blake.
28325
28326 2008-07-14  Sam Steingold  <sds@gnu.org>
28327             Bruno Haible  <bruno@clisp.org>
28328
28329         New module libsigsegv.
28330         * modules/libsigsegv: New file.
28331         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28332         modifications.
28333         * MODULES.html.sh (Signal handling): New section.
28334
28335 2008-07-14  Bruno Haible  <bruno@clisp.org>
28336
28337         * modules/unictype/ctype-* (Description): Add the word "function".
28338         Improves the resulting doc in MODULES.html.
28339
28340 2008-07-12  Ben Pfaff  <blp@gnu.org>
28341
28342         Add longlong module.
28343         * modules/longlong: New file.
28344
28345 2008-07-12  Bruno Haible  <bruno@clisp.org>
28346
28347         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28348         to empty.
28349
28350 2008-07-10  Ben Pfaff  <blp@gnu.org>
28351
28352         Add isnan module.
28353         * doc/posix-functions/isnan.texi: Mention new module.
28354         * lib/math.in.h: Define isnan macro if we have decided to replace
28355         it.
28356         * m4/isnan.m4: New file.
28357         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28358         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28359         also.
28360         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28361         redundancy.
28362         * m4/math_h.m4: Initialize and substitute variables for isnan
28363         module.
28364         * modules/isnan: New file.
28365         * modules/isnan-tests: New file.
28366         * modules/math: Add substitutions for new module.
28367         * tests/test-isnan.c: New file.
28368         * MODULES.html.sh: Mention new module.
28369
28370 2008-07-10  Ben Pfaff  <blp@gnu.org>
28371
28372         Add isnanf module.
28373         * lib/isnanf.m4: New file.
28374         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28375         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28376         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28377         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28378         * modules/isnanf: New file.
28379         * modules/isnanf-tests: New file.
28380         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28381         files.
28382         * tests/test-isnanf-nolibm.c: factored most of its contents into
28383         new file tests/test-isnanf.h.
28384         * tests/test-isnanf.h: New file.
28385         * tests/test-isnanf.c: New file.
28386         * MODULES.html.sh: Mention new module.
28387         * doc/glibc-functions/isnanf.texi: Mention new module.
28388
28389 2008-07-10  Ben Pfaff  <blp@gnu.org>
28390
28391         Add isnand module.
28392         * lib/isnand.h: New file.
28393         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28394         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28395         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28396         functionality also.
28397         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28398         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28399         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28400         * modules/isnand: New file.
28401         * modules/isnand-tests: New file.
28402         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28403         files.
28404         * tests/test-isnand-nolibm.c: factored most of its contents into
28405         new file tests/test-isnand.h.
28406         * tests/test-isnand.h: New file.
28407         * tests/test-isnand.c: New file.
28408         * MODULES.html.sh: Mention new module.
28409
28410 2008-07-10  Ben Pfaff  <blp@gnu.org>
28411
28412         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28413         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28414         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28415         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28416         * modules/isnanf-nolibm: Update references to renamed files.
28417         * modules/isnand-nolibm: Likewise.
28418         * modules/isnanf-nolibm-tests: Likewise.
28419         * modules/isnand-nolibm-tests: Likewise.
28420         * lib/frexp.c: Likewise.
28421         * lib/isfinite.c: Likewise.
28422         * lib/signbitd.c: Likewise.
28423         * lib/signbitf.c: Likewise.
28424         * lib/vasnprintf.c: Likewise.
28425         * tests/test-ceilf1.c: Likewise.
28426         * tests/test-ceilf2.c: Likewise.
28427         * tests/test-floorf1.c: Likewise.
28428         * tests/test-floorf2.c: Likewise.
28429         * tests/test-frexp.c: Likewise.
28430         * tests/test-round1.c: Likewise.
28431         * tests/test-round2.c: Likewise.
28432         * tests/test-roundf1.c: Likewise.
28433         * tests/test-strtod.c: Likewise.
28434         * tests/test-trunc1.c: Likewise.
28435         * tests/test-trunc2.c: Likewise.
28436         * tests/test-truncf1.c: Likewise.
28437         * tests/test-truncf2.c: Likewise.
28438         * NEWS: Mention the renamed header files.
28439
28440 2008-07-11  Jim Meyering  <meyering@redhat.com>
28441
28442         vc-list-files: make the last-resort awk code more portable
28443         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28444         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28445         does not support it.
28446
28447 2008-07-10  Eric Blake  <ebb9@byu.net>
28448
28449         Work with tar's bootstrap.
28450         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28451         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28452         an m4 comment.
28453
28454 2008-07-09  Jim Meyering  <meyering@redhat.com>
28455
28456         posix-shell.m4: fix typo that made this test malfunction
28457         * m4/posix-shell.m4: Remove capitalization in variable name.
28458
28459 2008-07-08  Bruno Haible  <bruno@clisp.org>
28460
28461         * m4/onceonly.m4: Update comments.
28462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28463
28464 2008-07-04  Jim Meyering  <meyering@redhat.com>
28465
28466         * users.txt: Add vc-dwim.
28467         (bison, coreutils): Use the gitweb URL.
28468
28469 2008-07-03  Jim Meyering  <meyering@redhat.com>
28470
28471         * users.txt: Add libffcall.  From Sam Steingold.
28472
28473 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28474
28475         getdate.y: do not ignore TZ with relative day, month or year offset
28476         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28477         relative-date-handling, since otherwise, the latter would clobber the
28478         sole output (an updated Start value) of the tz-handling block.
28479         * tests/test-getdate.c: Tests for the fix
28480
28481 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28482
28483         Recognize 'foo_LIBRARIES += libgnu.a'.
28484         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28485         makefile snippet has already specified an installation location,
28486         also using '+='.
28487
28488 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28489
28490         getdate.y: factor out common actions
28491         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28492         Use them in place of open-coded actions.
28493
28494 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28495
28496         Add self-test for getdate module.
28497         * modules/getdate-tests: New file.
28498         * tests/test-getdate.c: New file.
28499
28500 2008-06-29  Bruno Haible  <bruno@clisp.org>
28501
28502         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28503         .gitignore.
28504         Reported by Sylvain Beucler <beuc@beuc.net>.
28505
28506 2008-06-29  Bruno Haible  <bruno@clisp.org>
28507
28508         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28509         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28510
28511 2008-06-29  Bruno Haible  <bruno@clisp.org>
28512
28513         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28514         EXTRA_DIST.
28515         Reported by Sylvain Beucler <beuc@beuc.net>.
28516
28517 2008-06-26  Jim Meyering  <meyering@redhat.com>
28518
28519         make several modules depend on the "open" module
28520         This provides slightly increased consistency when opening-for-write
28521         the name of a non-directory spelled with a trailing slash.
28522         * modules/chdir-safer: Likewise.
28523         * modules/chown: Likewise.
28524         * modules/clean-temp: Likewise.
28525         * modules/copy-file: Likewise.
28526         * modules/fchdir: Likewise.
28527         * modules/fcntl-safer: Likewise.
28528         * modules/pipe: Likewise.
28529         * modules/utime: Likewise.
28530         Prompted by Eric Blake and Bruno Haible.
28531
28532 2008-06-24  Andreas Schwab  <schwab@suse.de>
28533
28534         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28535         literals can be used as initializers for global variables.
28536
28537 2008-06-23  Eric Blake  <ebb9@byu.net>
28538
28539         Make gnulib-cache.m4 easier to diff.
28540         * gnulib-tool (func_import): Allow newlines when reading cached
28541         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28542
28543 2008-06-23  Bruno Haible  <bruno@clisp.org>
28544
28545         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28546         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28547         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28548         m4/signalblocking.m4.
28549         (gl_PREREQ_SIGACTION): Don't invoke it.
28550         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28551         gl_PREREQ_SIG_HANDLER_H.
28552         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28553         Don't check for sigaction here.
28554
28555 2008-06-23  Bruno Haible  <bruno@clisp.org>
28556
28557         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28558         (install_handlers): Don't set the SA_RESETHAND flag.
28559
28560 2008-06-23  Bruno Haible  <bruno@clisp.org>
28561
28562         * m4/sigaction.m4: Comment fixes.
28563         * lib/signal.in.h: Likewise.
28564
28565 2008-06-23  Eric Blake  <ebb9@byu.net>
28566
28567         Fix typo.
28568         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28569
28570         Avoid SA_ namespace.
28571         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28572         Reported by Ralf Wildenhues.
28573
28574         Avoid test failure due to SA_RESTORER.
28575         * tests/test-sigaction.c (SA_MASK): New macro.
28576         (main): Avoid failing due to extension flags being set.
28577         Reported by Jim Meyering.
28578
28579         Revert use of sig-handler.h in sigprocmask.c.
28580         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28581         it requires the existence of struct sigaction.
28582         * lib/sigprocmask.c (handler_t): Restore typedef.
28583         (rpl_signal, old_handlers): Use local type.
28584
28585 2008-06-22  Bruno Haible  <bruno@clisp.org>
28586
28587         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28588         conditionally.
28589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28590
28591 2008-06-22  Bruno Haible  <bruno@clisp.org>
28592
28593         * doc/posix-functions/siginterrupt.texi: Move note.
28594
28595         * lib/signal.in.h (SA_RESTART): New macro.
28596         * lib/sigaction.c: Update comment.
28597
28598         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28599
28600         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28601         (gl_PREREQ_SIGPROCMASK): Invoke it.
28602         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28603
28604         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28605
28606         * lib/sigprocmask.c: Update a comment.
28607
28608 2008-06-21  Eric Blake  <ebb9@byu.net>
28609
28610         Use sigaction module rather than signal().
28611         * modules/c-stack (Depends-on): Add sigaction.
28612         * modules/fatal-signal (Depends-on): Likewise.
28613         * modules/nanosleep (Depends-on): Likewise.
28614         * modules/sigprocmask (Files): Add sig-handler.h.
28615         * modules/sigaction (Files): Likewise.
28616         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28617         Eggert.
28618         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28619         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28620         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28621         (init_fatal_signals): Likewise.
28622         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28623         (siginterrupt): Delete fallback.
28624         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28625         instead.
28626         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28627         siginterrupt.
28628
28629         New module sigaction, for mingw.
28630         * modules/sigaction: New module...
28631         * modules/sigaction-tests: ...and its test.
28632         * m4/sigaction.m4: New file.
28633         * lib/sigaction.c: Likewise.
28634         * tests/test-sigaction.c: Likewise.
28635         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28636         * modules/signal (Makefile.am): Likewise.
28637         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28638         needed.
28639         * doc/posix-headers/signal.texi (signal.h): Mention provided
28640         types.
28641         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28642         that sigaction is preferable.
28643         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28644         module.
28645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28646         sigaction.
28647
28648         Improve robustness of sigprocmask by overriding signal.
28649         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28650         is in use.
28651         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28652         (SIGKILL, SIGSTOP): Provide fallbacks.
28653         (rpl_signal): Implement.
28654         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28655         signal can be called inside handlers.
28656
28657         Fix nanosleep module on mingw.
28658         * modules/nanosleep (Depends-on): Add sys_select.
28659         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28660
28661         Fix licensing of sigprocmask.
28662         * modules/raise (License): Relicense as LGPL.
28663
28664 2008-06-21  Bruno Haible  <bruno@clisp.org>
28665
28666         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28667         result if it contains question marks.
28668         Reported by Michael Geng <linux@michaelgeng.de>.
28669
28670 2008-06-19  Bruno Haible  <bruno@clisp.org>
28671
28672         Fix CVS-ism.
28673         * doc/gnulib.texi: Include updated-stamp.texi.
28674         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28675         (updated-stamp.texi): New rule.
28676         (gnulib.info): Depend on it.
28677         * doc/.gitignore: Add updated-stamp.texi.
28678         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28679
28680 2008-06-19  Bruno Haible  <bruno@clisp.org>
28681
28682         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28683         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28684
28685 2008-06-19  Eric Blake  <ebb9@byu.net>
28686
28687         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28688         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28689         Reported by Stepan Kasal.
28690
28691 2008-06-18  Bruno Haible  <bruno@clisp.org>
28692
28693         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28694         Reported by Eric Blake.
28695
28696 2008-06-18  Eric Blake  <ebb9@byu.net>
28697
28698         Work around cygwin 1.5.25 strsignal bug.
28699         * tests/test-strsignal.c: Allow for const char *.
28700         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28701
28702 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28703
28704         * users.txt: Update URL to article and add author/date
28705         information.
28706
28707 2008-06-17  Bruno Haible  <bruno@clisp.org>
28708
28709         New macro gl_DISABLE_THREADS.
28710         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28711         if the user did not pass --enable-threads or --disable-threads option.
28712         (gl_DISABLE_THREADS): New macro.
28713         Reported by Eric Blake <ebb9@byu.net>.
28714
28715 2008-06-17  Bruno Haible  <bruno@clisp.org>
28716
28717         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28718         when the macro ignores it.
28719         Based on a patch by Eric Blake <ebb9@byu.net>.
28720
28721 2008-06-17  Bruno Haible  <bruno@clisp.org>
28722
28723         * modules/tls (License): Change to LGPLv2+.
28724         Reported by Eric Blake.
28725
28726 2008-06-17  Eric Blake  <ebb9@byu.net>
28727
28728         Simplify c-stack prerequisites.
28729         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28730         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28731         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28732         check.
28733         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28734         <sys/resource.h>.
28735
28736         Move c-stack test into testsuite.
28737         * modules/c-stack-tests: New file.
28738         * lib/c-stack.c [DEBUG]: Move test program...
28739         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28740         fail test if sigaltstack is lacking.
28741         * tests/test-c-stack.sh: New driver file.
28742
28743 2008-06-16  Eric Blake  <ebb9@byu.net>
28744
28745         Use raise module consistently.
28746         * modules/fatal-signal (Depends-on): Add raise.
28747         * modules/sigprocmask (Depends-on): Likewise.
28748         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28749         * lib/sigprocmask.c (sigprocmask): Likewise.
28750         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28751         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28752
28753         Fix compliance bug in sigpending.
28754         * lib/sigprocmask.c (sigpending): Return pending array via
28755         parameter, not return value.
28756
28757 2008-06-14  Eric Blake  <ebb9@byu.net>
28758
28759         Improve obstack-printf test code.
28760         * tests/test-obstack-printf.c (test_function): Fix comment, and
28761         simplify usage of obstack_* in macros.  Add a test for coverage.
28762         Reported by Bruno Haible.
28763
28764 2008-06-14  Bruno Haible  <bruno@clisp.org>
28765
28766         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28767         array size as a constant, not as a const variable.
28768         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28769         AC_USE_SYSTEM_EXTENSIONS.
28770         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28771         Test whether the obstack_printf function actually exists.
28772         * modules/obstack-printf (Depends-on): Add extensions.
28773         (Include): Remove obstack.h.
28774         * modules/obstack-printf-posix (Depends-on): Add extensions.
28775         (Include): Remove obstack.h.
28776
28777 2008-06-13  Eric Blake  <ebb9@byu.net>
28778
28779         Add obstack-printf and obstack-printf-posix modules.
28780         * modules/obstack-printf: New file.
28781         * modules/obstack-printf-posix: Likewise.
28782         * MODULES.html.sh (Misc): Mention them.
28783         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28784         Likewise.
28785         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28786         Likewise.
28787         * modules/stdio (Makefile.am): Accomodate new modules.
28788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28789         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28790         Declare.
28791         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28792         functions.
28793         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28794         (gl_REPLACE_OBSTACK_PRINTF): New macros
28795         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28796         * tests/test-obstack-printf.c: New file.
28797         * modules/obstack-printf-tests: Likewise.
28798         * modules/obstack-printf-posix-tests: Likewise.
28799
28800 2008-06-11  Bruno Haible  <bruno@clisp.org>
28801
28802         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28803         * lib/open.c: Include errno.h.
28804         (open): Fail when attempting to write to a file that has a trailing
28805         slash.
28806         * tests/test-open.c (main): Test against trailing slash bug.
28807         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28808
28809 2008-06-10  Bruno Haible  <bruno@clisp.org>
28810
28811         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28812         for $? to work inside the trap command, with various /bin/sh-s.
28813         * tests/test-vc-list-files-cvs.sh: Likewise.
28814
28815 2008-06-10  Bruno Haible  <bruno@clisp.org>
28816
28817         * lib/acl-internal.h: Don't include gettext.h here.
28818         * lib/set-mode-acl.c: Include gettext.h here.
28819         * lib/copy-acl.c: Likewise.
28820
28821 2008-06-10  Bruno Haible  <bruno@clisp.org>
28822
28823         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28824         * lib/wait-process.c (wait_subprocess): Likewise.
28825         * lib/execute.h (execute): Add termsigp argument.
28826         * lib/execute.c (execute): Likewise.
28827         * lib/csharpcomp.c (compile_csharp_using_pnet,
28828         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28829         * lib/csharpexec.c (execute_csharp_using_pnet,
28830         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28831         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28832         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28833         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28834         is_jikes_present): Update.
28835         * lib/javaexec.c (execute_java_class): Update.
28836         * lib/javaversion.c (execute_and_read_line): Update.
28837         * NEWS: Document the changes.
28838         Reported by Eric Blake.
28839
28840 2008-06-10  Eric Blake  <ebb9@byu.net>
28841
28842         Add missing include.
28843         * tests/test-strstr.c (includes): Add <signal.h>.
28844         * tests/test-strcasestr.c (includes): Likewise.
28845         * tests/test-memmem.c (includes): Likewise.
28846
28847 2008-06-10  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/wait-process.c (wait_subprocess): Add an assertion.
28850
28851 2008-06-10  Bruno Haible  <bruno@clisp.org>
28852
28853         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28854
28855 2008-06-10  Bruno Haible  <bruno@clisp.org>
28856
28857         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28858         using alarm().
28859         * tests/test-strcasestr.c (main): Likewise.
28860         * tests/test-strstr.c (main): Likewise.
28861
28862 2008-06-09  Bruno Haible  <bruno@clisp.org>
28863
28864         Work around the Solaris 10 ACE ACLs ABI change.
28865         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28866         declare if ACL_NO_TRIVIAL is present.
28867         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28868         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28869         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28870         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28871         define if ACL_NO_TRIVIAL is present.
28872         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28873         and use the current ABI.
28874         (file_has_acl): Use same #if condition as elsewhere.
28875         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28876         in use, and use the current ABI.
28877         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28878         Reported by Jim Meyering.
28879
28880 2008-06-09  Eric Blake  <ebb9@byu.net>
28881
28882         Work around environments that (stupidly) ignore SIGALRM.
28883         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28884         before using alarm().
28885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28887         Reported by Ian Beckwith <ianb@erislabs.net>.
28888
28889         Produce autobuild blurb earlier in log.
28890         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28891
28892 2008-06-09  Jim Meyering  <meyering@redhat.com>
28893         and Ondřej Vašík  <ovasik@redhat.com>
28894
28895         utimens.c: correct kernel bug work-around
28896         Ondřej Vašík found that the invalid return value of 280 indicates
28897         failure, not success, and the kernel bug we're trying to work
28898         around affects not just the utimensat call, but also the fallback
28899         futimens call.
28900         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28901         not success.
28902         [HAVE_FUTIMENS]: Use the same work-around, here.
28903
28904 2008-06-09  Jim Meyering  <meyering@redhat.com>
28905
28906         add more guards around definition of ACE_-related code
28907         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28908         ALLOW and ACE_OWNER are also defined.
28909
28910 2008-06-08  Bruno Haible  <bruno@clisp.org>
28911
28912         * lib/acl-internal.h: Add me as co-author.
28913         * lib/file-has-acl.c: Likewise.
28914         * lib/set-mode-acl.c: Likewise.
28915         * lib/copy-acl.c: Likewise.
28916
28917 2008-06-08  Bruno Haible  <bruno@clisp.org>
28918
28919         Add support for AIX ACLs.
28920         * lib/acl-internal.h (acl_nontrivial): New declaration.
28921         * lib/file-has-acl.c (acl_nontrivial): New function.
28922         (file_has_acl): Add implementation using AIX 4 ACL API.
28923         * lib/set-mode-acl.c (qset_acl): Likewise.
28924         * lib/copy-acl.c (qcopy_acl): Likewise.
28925
28926 2008-06-08  Bruno Haible  <bruno@clisp.org>
28927
28928         Add support for HP-UX ACLs.
28929         * lib/acl-internal.h (acl_nontrivial): New declaration.
28930         * lib/file-has-acl.c (acl_nontrivial): New function.
28931         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28932         * lib/set-mode-acl.c (qset_acl): Likewise.
28933         * lib/copy-acl.c (qcopy_acl): Likewise.
28934
28935 2008-06-08  Bruno Haible  <bruno@clisp.org>
28936
28937         Add support for Cygwin ACLs.
28938         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28939         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28940         the chmod_or_fchmod call.
28941         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28942
28943 2008-06-08  Bruno Haible  <bruno@clisp.org>
28944
28945         Fix bug with setuid modes in Solaris 10+ code.
28946         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28947         succeeded, when the mode contains some special bits.
28948
28949 2008-06-08  Bruno Haible  <bruno@clisp.org>
28950
28951         Add support for Solaris 7..10 ACLs.
28952         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28953         declarations.
28954         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28955         functions.
28956         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28957         * lib/set-mode-acl.c (qset_acl): Likewise.
28958         * lib/copy-acl.c (qcopy_acl): Likewise.
28959
28960 2008-06-08  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28963         declaration.
28964         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28965         (acl_access_nontrivial): Remove MacOS X case.
28966         (file_has_acl): Use acl_extended_nontrivial.
28967         * lib/copy-acl.c (qcopy_acl): Likewise.
28968
28969 2008-06-08  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28972
28973 2008-06-08  Jim Meyering  <meyering@redhat.com>
28974
28975         * modules/acl (Maintainer): Add Bruno Haible.
28976
28977 2008-06-07  Bruno Haible  <bruno@clisp.org>
28978
28979         Improve support for Tru64 ACLs.
28980         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28981         ACL on OSF/1.
28982
28983 2008-06-07  Bruno Haible  <bruno@clisp.org>
28984
28985         Add support for MacOS X ACLs.
28986         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28987         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28988         * lib/set-mode-acl.c (qset_acl): Likewise.
28989         * lib/copy-acl.c (qcopy_acl): Likewise.
28990
28991 2008-06-07  Bruno Haible  <bruno@clisp.org>
28992
28993         Fix memory leak introduced on 2008-05-22.
28994         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28995         use.
28996
28997 2008-06-07  Bruno Haible  <bruno@clisp.org>
28998
28999         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29000         to construct an empty ACL.
29001
29002 2008-06-07  Bruno Haible  <bruno@clisp.org>
29003
29004         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29005         precisely.
29006         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29007
29008 2008-06-07  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29011         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29012
29013 2008-06-07  Bruno Haible  <bruno@clisp.org>
29014
29015         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29016         regardless of POSIX.
29017         * doc/posix-functions/_longjmp.texi: Likewise.
29018         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29019         SystemV platform in this case.
29020
29021 2008-06-06  Eric Blake  <ebb9@byu.net>
29022
29023         Document abort() bugs.
29024         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29025
29026         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29027         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29028         sigsetjmp.
29029         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29030         siglongjmp, but only as a macro.
29031         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29032         is obsolete.
29033         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29034
29035         Tweak documentation to cover cygwin argz bugs.
29036         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29037         argz bug fix; no code change needed since no cygwin releases
29038         occurred between the last fix and the bug being tested.
29039         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29040         module and recently fixed cygwin bugs.
29041         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29042         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29043         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29044         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29045         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29046         Likewise.
29047         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29048         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29049         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29050         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29051         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29052         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29053         Likewise.
29054
29055         Avoid gcc warning on cygwin.
29056         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29057         !ACL_NO_TRIVIAL]: Avoid unused variable.
29058
29059 2008-06-05  Eric Blake  <ebb9@byu.net>
29060
29061         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29062         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29063         git-version-gen fails to come up with a version.
29064         Reported by Simon Josefsson.
29065
29066 2008-06-05  Jim Meyering  <meyering@redhat.com>
29067             Paul Eggert  <eggert@cs.ucla.edu>
29068
29069         utimens.c: work around a probable Linux kernel bug
29070         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29071         appears to be a kernel bug that causes utimensat to return 280
29072         instead of 0, indicating success.
29073
29074 2008-06-04  Bruno Haible  <bruno@clisp.org>
29075
29076         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29077         2008-06-01 commit.
29078
29079 2008-06-04  Bruno Haible  <bruno@clisp.org>
29080
29081         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29082         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29083         (file_has_acl): Use it. Save errno afterwards.
29084         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29085
29086 2008-06-03  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29089         draft code. Simplify #ifs.
29090         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29091         Put Solaris code after POSIX-draft code. Fix comments regarding
29092         Solaris 10, HP-UX. Mention Cygwin.
29093         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29094
29095 2008-06-03  Eric Blake  <ebb9@byu.net>
29096
29097         Provide fallback for older kernels.
29098         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29099         Provide runtime fallback if kernel lacks support.
29100         Reported by Mike Frysinger.
29101
29102 2008-06-02  Bruno Haible  <bruno@clisp.org>
29103
29104         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29105         it exists.
29106
29107 2008-06-02  Bruno Haible  <bruno@clisp.org>
29108
29109         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29110         * lib/copy-acl.c (qcopy_acl): Update comment.
29111
29112 2008-06-02  Bruno Haible  <bruno@clisp.org>
29113
29114         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29115         like ACL APIs.
29116
29117 2008-06-02  Bruno Haible  <bruno@clisp.org>
29118
29119         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29120         * tests/test-set-mode-acl.sh: Likewise.
29121         * tests/test-copy-acl.sh: Likewise.
29122         * tests/test-copy-file.sh: Likewise.
29123
29124 2008-06-02  Bruno Haible  <bruno@clisp.org>
29125
29126         * tests/test-file-has-acl.sh: Remove unused code.
29127
29128 2008-06-01  Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29131         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29132         messages.
29133         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29134
29135 2008-06-01  Bruno Haible  <bruno@clisp.org>
29136
29137         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29138         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29139         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29140         APIs.
29141         * modules/acl-tests (configure.ac): Remove tests now contained in
29142         m4/acl.m4.
29143
29144 2008-06-02  Jim Meyering  <meyering@redhat.com>
29145
29146         announce-gen: use a better key-server host name
29147         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29148         it may be more consistently reliable.  Suggested by Werner Koch
29149         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29150
29151 2008-06-01  Bruno Haible  <bruno@clisp.org>
29152
29153         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29154         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29155
29156 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29157
29158         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29159
29160 2008-06-01  Bruno Haible  <bruno@clisp.org>
29161
29162         New ACL tests.
29163         * tests/test-file-has-acl.sh: New file.
29164         * tests/test-file-has-acl.c: New file.
29165         * tests/test-set-mode-acl.sh: New file.
29166         * tests/test-set-mode-acl.c: New file.
29167         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29168         * tests/test-copy-acl.c: New file.
29169         * modules/acl-tests: New file, based on modules/copy-file-tests.
29170         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29171         (Depends-on): Add acl-tests.
29172         (configure.ac): Remove checks.
29173         (Makefile.am): Don't create test-sameacls program here any more.
29174
29175 2008-06-01  Bruno Haible  <bruno@clisp.org>
29176
29177         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29178         * tests/test-sameacls.c: Include progname.h.
29179         (main): Invoke set_program_name. Portability fixes for MacOS X,
29180         Solaris, HP-UX.
29181
29182 2008-06-01  Bruno Haible  <bruno@clisp.org>
29183
29184         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29185         function.
29186         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29187
29188 2008-06-01  Bruno Haible  <bruno@clisp.org>
29189
29190         * modules/rpmatch (Depends-on): Add strdup.
29191
29192 2008-06-01  Bruno Haible  <bruno@clisp.org>
29193
29194         * lib/pipe.c: Include unistd-safer.h.
29195         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29196         * modules/pipe (Depends-on): Add unistd-safer.
29197
29198 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29199
29200         * modules/autobuild (configure.ac): Call AB_INIT.
29201
29202 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29203
29204         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29205         Suggested by Bruno Haible <bruno@clisp.org>.
29206
29207 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29208
29209         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29210         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29211         <bruno@clisp.org>.
29212
29213 2008-05-29  Eric Blake  <ebb9@byu.net>
29214
29215         Prefer new POSIX 200x interfaces over futimesat.
29216         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29217         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29218         when available.
29219         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29220
29221 2008-05-28  Bruno Haible  <bruno@clisp.org>
29222
29223         * modules/stpcpy (License): Change to LGPLv2+.
29224         Requested by David Lutterkort <dlutter@redhat.com>.
29225
29226 2008-05-27  Bruno Haible  <bruno@clisp.org>
29227
29228         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29229         current mingw.
29230         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29231
29232 2008-05-27  Bruno Haible  <bruno@clisp.org>
29233
29234         * modules/iconv_open (Link): New section, from module 'iconv'.
29235         * modules/striconv (Link): Likewise.
29236         * modules/striconveh (Link): Likewise.
29237         * modules/xstriconv (Link): Likewise.
29238         * modules/unicodeio (Link): Likewise.
29239         * modules/propername (Link): Likewise.
29240         Reported by Jim Meyering.
29241
29242 2008-05-26  Jim Meyering  <meyering@redhat.com>
29243
29244         sha256: do not artificially restrict buffer length to be < 2^32
29245         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29246         uint32_t to size_t.
29247         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29248         to match.
29249
29250         avoid unaligned access errors, e.g., on sparc
29251         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29252         direct access through a possibly-unaligned uint64* pointer.
29253         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29254         direct access through a possibly-unaligned uint32* pointer.
29255         Prompted by this patch from Tom "spot" Callaway:
29256         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29257
29258         sha512.c: fix typo in comment
29259         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29260
29261 2008-05-25  Bruno Haible  <bruno@clisp.org>
29262
29263         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29264         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29265         (Makefile.am): Update lib_SOURCES.
29266
29267 2008-05-25  Bruno Haible  <bruno@clisp.org>
29268
29269         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29270
29271 2008-05-25  Jim Meyering  <meyering@redhat.com>
29272
29273         useless-if-before-free: freed expr may have white-space differences
29274         * build-aux/useless-if-before-free: Recognize cases in which the
29275         freed expression differs from the tested one in embedded white
29276         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29277         $1 was used, so we can't make any regexp shy.  Improved tests now
29278         detect this.
29279
29280         useless-if-before-free: accept white space in the expression.
29281         * build-aux/useless-if-before-free: For now, any white space
29282         in the expression must be identical in the free argument.
29283
29284         useless-if-before-free: efficiency tweak
29285         * build-aux/useless-if-before-free: Make the expression-matching
29286         regexp "shy".
29287         Make the *outer* regexp shy, not the expr-matching one.
29288
29289         update code-in-comment to accept cast of free arg
29290         * build-aux/useless-if-before-free: Update regexp.
29291
29292 2008-05-25  Bruno Haible  <bruno@clisp.org>
29293
29294         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29295         * modules/copy-file-tests (Files, Makefile.am): Update.
29296         * tests/test-copy-file.c (func_test_copy): Update.
29297
29298 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29299
29300         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29301
29302 2008-05-23  Bruno Haible  <bruno@clisp.org>
29303
29304         Improve support for ACLs on OSF/1.
29305         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29306         Remove fallback for unknown flavors of ACLs.
29307
29308 2008-05-22  Bruno Haible  <bruno@clisp.org>
29309
29310         Add support for ACLs on OSF/1.
29311         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29312         replacements.
29313         (acl_free_text): New macro fallback.
29314         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29315         acl_free.
29316         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29317         acl_free_text function. Require AC_C_INLINE.
29318
29319 2008-05-22  Bruno Haible  <bruno@clisp.org>
29320
29321         Make copy_acl work on MacOS X 10.5.
29322         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29323         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29324         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29325         If MODE_INSIDE_ACL, don't assume that every system has the same text
29326         representation for ACLs as FreeBSD.
29327         * lib/copy-acl.c (copy_acl): Add support for platforms with
29328         !MODE_INSIDE_ACL.
29329         * lib/file-has-acl.c (file_has_acl): Likewise.
29330         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29331         FreeBSD, MacOS X, or IRIX, respectively.
29332
29333 2008-05-22  Bruno Haible  <bruno@clisp.org>
29334
29335         * lib/acl.h: Don't include <sys/acl.h>.
29336         (GETACLCNT): Move fallback to lib/acl-internal.h.
29337         * lib/acl-internal.h: Include <sys/acl.h> here.
29338         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29339
29340 2008-05-22  Bruno Haible  <bruno@clisp.org>
29341
29342         Split off copy_acl function to separate file.
29343         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29344         * lib/acl.c (copy_acl): Moved function to separate file.
29345         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29346         * modules/acl (Files): Add lib/copy-acl.c.
29347         (Makefiles.am): Augment lib_SOURCES.
29348
29349 2008-05-22  Bruno Haible  <bruno@clisp.org>
29350
29351         * modules/copy-file-tests: New file.
29352         * tests/test-copy-file.sh: New file.
29353         * tests/test-copy-file.c: New file.
29354         * tests/test-copy-file-sameacls.c: New file.
29355
29356 2008-05-22  Eric Blake  <ebb9@byu.net>
29357
29358         Avoid gcc warning.
29359         * tests/test-memcmp.c (main): Pass NULL indirectly.
29360
29361 2008-05-21  Bruno Haible  <bruno@clisp.org>
29362
29363         Add reference doc about ACLs.
29364         * doc/acl-resources.txt: New file.
29365         * doc/acl-cygwin.txt: New file.
29366
29367 2008-05-21  Bruno Haible  <bruno@clisp.org>
29368
29369         Avoid one more warning from gcc.
29370         * lib/vasnprintf.c (IF_LINT): Update comments.
29371         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29372
29373 2008-05-21  Jim Meyering  <meyering@redhat.com>
29374
29375         avoid a warning from gcc
29376         * lib/vasnprintf.c (IF_LINT): Define.
29377         (scale10_round_decimal_long_double):
29378         Use it to avoid a "may be used uninitialized" warning.
29379         (scale10_round_decimal_double): Likewise.
29380
29381 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29382
29383         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29384         declared.
29385
29386 2008-05-20  Bruno Haible  <bruno@clisp.org>
29387
29388         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29389         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29390
29391 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29392
29393         * modules/memcmp-tests: New file.
29394         * tests/test-memcmp.c: New file.
29395
29396 2008-05-19  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/propername (Notice, configure.ac): Put quoted "..." into
29399         --keyword option.
29400         * lib/propername.h: Update comments accordingly.
29401         Reported by Eric Blake.
29402
29403 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29404
29405         * modules/getpass-gnu (Depends-on): Add fseeko.
29406
29407 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29408
29409         * modules/base64-tests: New file.
29410
29411 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29412
29413         * lib/base64.c (base64_decode_ctx): If a decode context structure
29414         was passed in use it to ignore newlines.  If a context structure
29415         was _not_ passed in, continue to treat newlines as garbage (this
29416         is the historical behavior).  Formerly base64_decode.
29417         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29418         takes a decode context structure.
29419         * lib/base64.h (base64_decode): Macro for four-argument calls.
29420         (base64_decode_alloc): Likewise.
29421         * lib/base64.c (base64_decode_ctx): If a decode context structure
29422         was passed in use it to ignore newlines.  If a context structure
29423         was _not_ passed in, continue to treat newlines as garbage (this
29424         is the historical behavior).  Formerly base64_decode.
29425         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29426         takes a decode context structure.
29427         * lib/base64.h (base64_decode): Macro for four-argument calls.
29428         (base64_decode_alloc): Likewise.
29429
29430 2008-05-19  Jim Meyering  <meyering@redhat.com>
29431
29432         avoid a warning from gcc
29433         * lib/trim.c (IF_LINT): Define.
29434         (trim2): Use it to avoid a "may be used uninitialized" warning.
29435
29436         Fix doc typo.
29437         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29438
29439 2008-05-19  Bruno Haible  <bruno@clisp.org>
29440
29441         * doc/glibc-functions/getpass.texi: Document limits of other
29442         implementations.
29443
29444 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29445             Bruno Haible <bruno@clisp.org>
29446
29447         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29448
29449 2008-05-18  Bruno Haible  <bruno@clisp.org>
29450
29451         * modules/propername: New file, from GNU gettext.
29452         * lib/propername.h: New file, from GNU gettext.
29453         * lib/propername.c: New file, from GNU gettext.
29454         * MODULES.html.sh (Internationalization functions): Add propername.
29455
29456 2008-05-16  Jim Meyering  <meyering@redhat.com>
29457             Bruno Haible  <bruno@clisp.org>
29458
29459         Avoid some warnings from "gcc -Wshadow".
29460         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29461
29462 2008-05-15  Eric Blake  <ebb9@byu.net>
29463
29464         Extend previous patch to cygwin 1.7.0.
29465         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29466         fast implementation in cygwin >= 1.7.0.
29467         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29468         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29469
29470 2008-05-15  Bruno Haible  <bruno@clisp.org>
29471
29472         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29473         implementation in glibc >= 2.9.
29474         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29476
29477 2008-05-15  Bruno Haible  <bruno@clisp.org>
29478
29479         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29480         (Unicode string functions): Add unilbrk/*.
29481         Reported by Karl Berry.
29482
29483 2008-05-15  Eric Blake  <ebb9@byu.net>
29484
29485         Fix violation of <stdbool.h> replacement in regex.
29486         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29487         * lib/regexec.c (re_search_internal): Likewise.
29488         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29489
29490 2008-05-15  Jim Meyering  <meyering@redhat.com>
29491
29492         avoid distracting test output when git or cvs is not found
29493         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29494         * tests/test-vc-list-files-git.sh: Likewise.
29495
29496 2008-05-15  Eric Blake  <ebb9@byu.net>
29497
29498         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29499         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29500         glibc version.
29501         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29502         * doc/posix-functions/strstr.texi (strstr): Likewise.
29503         * lib/str-two-way.h (MAX): Sychronize with glibc.
29504
29505 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29506
29507         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29508         opr.ctx_type.
29509         (calc_first): Initialize constraint field.
29510         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29511         Fix grammar.
29512         (duplicate_node): Merge constraint field for all node types.
29513         (calc_eclosure_iter): Look at constraint field for all node types.
29514         * lib/regex_internal.c (create_cd_newstate): Don't look at
29515         opr.ctx_type.
29516
29517 2008-05-14  Bruno Haible  <bruno@clisp.org>
29518
29519         Help GCC to do better code generation.
29520         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29521         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29522         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29523         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29524         Declare with attribute 'malloc' if supported.
29525
29526 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29527
29528         use "echo STR|wc -c" rather than unportable "expr length STR"
29529         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29530         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29531
29532 2008-05-14  Jim Meyering  <meyering@redhat.com>
29533
29534         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29535         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29536         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29537         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29538         via Collin Lasse.
29539
29540 2008-05-14  Eric Blake  <ebb9@byu.net>
29541
29542         Avoid quadratic growth in gl_LIBSOURCES.
29543         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29544         Suggested by Bruno Haible.
29545
29546         Test xmemdup0.
29547         * modules/xmemdup0-tests: New file.
29548         * tests/test-xmemdup0.c: Likewise.
29549
29550 2008-05-13  Eric Blake  <ebb9@byu.net>
29551
29552         Split xmemdup0 into its own module.
29553         * modules/xmemdup0: New file.
29554         * lib/xmemdup0.h: Likewise.
29555         * lib/xmemdup0.c: Likewise.
29556         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29557         * lib/xalloc.h (xmemdup0): Remove.
29558         * lib/xmalloc.c (xmemdup0): Likewise.
29559
29560 2008-05-13  Eric Blake  <ebb9@byu.net>
29561             Bruno Haible  <bruno@clisp.org>
29562
29563         Reduce number of forks required during autoconf.
29564         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29565         and gl_LIBSOURCES_DIR.
29566         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29567         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29568         m4_syscmd per file.
29569         <m4_foreach_w>: Move...
29570         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29571
29572 2008-05-13  Eric Blake  <ebb9@byu.net>
29573
29574         * gnulib-tool: Fix various comment typos.
29575
29576 2008-05-12  Bruno Haible  <bruno@clisp.org>
29577
29578         Tailor the linebreaking algorithm.
29579         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29580
29581 2008-05-12  Bruno Haible  <bruno@clisp.org>
29582
29583         Update to Unicode 5.0.0.
29584         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29585         LBP_JV, LBP_JT. Redistribute values.
29586         (unilbrk_table): Change size.
29587         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29588         Unicode TR#14 rev. 22.
29589         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29590         LBP_JV, LBP_JT. Redistribute values.
29591         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29592         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29593         Update.
29594         * lib/unilbrk/lbrkprop1.h: Regenerated.
29595         * lib/unilbrk/lbrkprop2.h: Regenerated.
29596         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29597         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29598         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29599         Likewise.
29600         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29601         Likewise.
29602         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29603         result.
29604         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29605         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29606         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29607         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29608         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29609         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29610
29611 2008-05-11  Bruno Haible  <bruno@clisp.org>
29612
29613         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29614
29615 2008-05-11  Bruno Haible  <bruno@clisp.org>
29616
29617         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29618         * modules/unilbrk/gen-lbrk: New file.
29619
29620 2008-05-11  Bruno Haible  <bruno@clisp.org>
29621
29622         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29623         * m4/sha512.m4 (gl_SHA512): Likewise.
29624
29625 2008-05-11  Jim Meyering  <meyering@redhat.com>
29626
29627         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29628         * modules/crypto/sha256: New file.
29629         * modules/crypto/sha512: Likewise.
29630         * lib/sha256.c: Likewise.
29631         * lib/sha256.h: Likewise.
29632         * lib/sha512.c: Likewise.
29633         * lib/sha512.h: Likewise.
29634         * lib/u64.h: Likewise.
29635         * m4/sha256.m4: Likewise.
29636         * m4/sha512.m4: Likewise.
29637         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29638
29639 2008-05-10  Bruno Haible  <bruno@clisp.org>
29640
29641         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29642         (Input/Output <stdio.h>): Add xprintf.
29643         (Signal handling <signal.h>): Add strsignal.
29644         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29645         (Core language properties): Add func.
29646         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29647         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29648         strings.
29649         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29650         (Input/output): New section.
29651         (File system functions): Add openat-die, stat-macros.
29652         (Networking functions): Add sockets.
29653         (Unicode string functions): Add unictype/*.
29654         (Support for building libraries and executables): Add gperf.
29655         (Support for building documentation): Add agpl-3.0.
29656         (Misc): Add nocrash.
29657
29658 2008-05-10  Bruno Haible  <bruno@clisp.org>
29659
29660         * modules/unictype/gen-ctype: New file.
29661
29662 2008-05-10  Jim Meyering  <meyering@redhat.com>
29663
29664         Make chdir-safer.c more efficient on a system with no symlinks.
29665         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29666         also if ELOOP is zero.  Suggested by Bruno Haible.
29667
29668         Make chdir-safer.c slightly safer.
29669         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29670         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29671
29672         Avoid compile failure on systems without ELOOP (like mingw).
29673         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29674         Reported by Bruno Haible.
29675
29676 2008-05-10  Bruno Haible  <bruno@clisp.org>
29677
29678         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29679         (is_utf8_encoding): Use a case-insensitive comparison.
29680         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29681         streq.
29682
29683 2008-05-10  Bruno Haible  <bruno@clisp.org>
29684
29685         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29686         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29687         * lib/unilbrk/ulc-common.h (iconv_string_length,
29688         iconv_string_keeping_offsets): Remove declarations.
29689         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29690         Don't include <iconv.h>, streq.h, xsize.h.
29691         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29692         conversion.
29693         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29694         <iconv.h>, streq.h, xsize.h.
29695         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29696         conversion.
29697         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29698         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29699         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29700         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29701
29702 2008-05-10  Bruno Haible  <bruno@clisp.org>
29703
29704         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29705         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29706
29707         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29708         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29709
29710         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29711         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29712
29713         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29714         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29715
29716         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29717         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29718
29719         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29720         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29721
29722         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29723         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29724
29725         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29726         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29727
29728 2008-05-10  Bruno Haible  <bruno@clisp.org>
29729
29730         Split up 'linebreak' module.
29731         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29732         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29733         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29734         modifications.
29735         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29736         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29737         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29738         lib/linebreak.c.
29739         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29740         lib/linebreak.c.
29741         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29742         lib/linebreak.c.
29743         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29744         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29745         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29746         lib/linebreak.c.
29747         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29748         lib/linebreak.c.
29749         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29750         lib/linebreak.c.
29751         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29752         lib/linebreak.c.
29753         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29754         lib/linebreak.c.
29755         * modules/unilbrk/base: New file.
29756         * modules/unilbrk/tables: New file.
29757         * modules/unilbrk/u8-possible-linebreaks: New file.
29758         * modules/unilbrk/u16-possible-linebreaks: New file.
29759         * modules/unilbrk/u32-possible-linebreaks: New file.
29760         * modules/unilbrk/ulc-common: New file.
29761         * modules/unilbrk/ulc-possible-linebreaks: New file.
29762         * modules/unilbrk/u8-width-linebreaks: New file.
29763         * modules/unilbrk/u16-width-linebreaks: New file.
29764         * modules/unilbrk/u32-width-linebreaks: New file.
29765         * modules/unilbrk/ulc-width-linebreaks: New file.
29766         * lib/linebreak.h: Remove file.
29767         * lib/linebreak.c: Remove file.
29768         * m4/linebreak.m4: Remove file.
29769         * modules/linebreak: Remove file.
29770         * NEWS: Mention the changes.
29771
29772 2008-05-09  Eric Blake  <ebb9@byu.net>
29773
29774         Add xmemdup0.
29775         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29776         implementation.
29777         * lib/xmalloc.c (xmemdup0): New C implementation.
29778
29779 2008-05-08  Bruno Haible  <bruno@clisp.org>
29780
29781         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29782
29783 2008-05-07  Eric Blake  <ebb9@byu.net>
29784
29785         Support cross-compilation of <wctype.h>.
29786         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29787         AC_CACHE_CHECK.
29788
29789 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29790
29791         * build-aux/vc-list-files: Add support for bzr.
29792
29793 2008-05-03  Jim Meyering  <meyering@redhat.com>
29794
29795         avoid failed assertion with tight malloc
29796         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29797
29798 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29799
29800         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29801         are needed from arpa/inet.h.
29802         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29803         Reported by Bruno Haible.
29804
29805 2008-05-02  Jim Meyering  <meyering@redhat.com>
29806
29807         avoid compilation error on FreeBSD 6
29808         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29809
29810 2008-05-01  Jim Meyering  <meyering@redhat.com>
29811
29812         useless-if-before-free: correct --help's exit status description
29813         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29814         for one or more matches, etc.  Reported by Bruno Haible.
29815
29816         vc-list-files: make the stand-alone gnulib test work
29817         * modules/vc-list-files-tests (configure.ac):
29818         Define and AC_SUBST abs_aux_dir.
29819         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29820         $(abs_top_srcdir) to each script and having each of them
29821         duplicate the work of setting PATH, set PATH here, using
29822         the new variable, abs_aux_dir instead.
29823         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29824         * tests/test-vc-list-files-git.sh: Likewise.
29825         Reported by Bruno Haible.
29826
29827 2008-05-01  Bruno Haible  <bruno@clisp.org>
29828
29829         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29830         reallocation. Rename 'done' to 'found_delimiter'.
29831
29832 2008-05-01  Jim Meyering  <meyering@redhat.com>
29833
29834         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29835         * build-aux/vc-list-files: Use `...`, not $(...).
29836
29837 2008-04-30  Jim Meyering  <meyering@redhat.com>
29838
29839         add tests for vc-list-files
29840         * modules/vc-list-files-tests: New module.
29841         * tests/test-vc-list-files-cvs.sh: New file.
29842         * tests/test-vc-list-files-git.sh: New file.
29843
29844         avoid a warning from gcc
29845         * lib/getndelim2.c (IF_LINT): Define.
29846         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29847
29848         vc-list-files: work properly with build-aux/cvsu, too
29849         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29850         to all cvs-based clauses.
29851
29852         vc-list-files: work properly in the CVS+awk case, too
29853         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29854
29855         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29856         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29857         take more than one file argument, so .  Add quotes, just in case $dir
29858         ever contains a shell meta-character.  Prompted by Soren Hansen in
29859         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29860
29861 2008-04-29  Eric Blake  <ebb9@byu.net>
29862
29863         Optimize getndelim2 to use block operations when possible.
29864         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29865         freadseek, and memchr2.
29866         * lib/getndelim2.c (getndelim2): Use them for block reads.
29867
29868 2008-04-29  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29872         * modules/inet_ntop (Depends-on): Add extensions.
29873         * modules/inet_pton (Depends-on): Likewise.
29874         Reported by Simon Josefsson.
29875
29876 2008-04-29  Jim Meyering  <meyering@redhat.com>
29877
29878         When the is more than one match in a block, match all of them.
29879         * build-aux/useless-if-before-free: Iterate through each block
29880         until there are no more matches.
29881
29882         Fix broken useless-if-before-free script.
29883         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29884         the expression to match cast of argument to free-like function.
29885
29886 2008-04-29  Eric Blake  <ebb9@byu.net>
29887
29888         Use new header.
29889         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29890
29891 2008-04-29  Jim Meyering  <meyering@redhat.com>
29892
29893         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29894         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29895         by gnulib to exist and to declare e.g., inet_ntop.
29896         Don't include "inet_ntop.h", now removed.
29897
29898         * m4/arpa_inet_h.m4: Remove trailing blanks.
29899
29900 2008-04-29  Eric Blake  <ebb9@byu.net>
29901
29902         Silence valgrind on safe reads beyond potential array bounds.
29903         * lib/rawmemchr.valgrind: New file.
29904         * lib/strchrnul.valgrind: Likewise.
29905         * modules/rawmemchr (Files): Distribute new file.
29906         * modules/strchrnul (Files): Likewise.
29907         Suggested by Bruno Haible.
29908
29909 2008-04-29  Bruno Haible  <bruno@clisp.org>
29910
29911         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29912         (inet_ntop, inet_pton): Change portability warning's wording.
29913         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29914         Invoke gl_CHECK_NEXT_HEADERS.
29915         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29916         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29917         set ARPA_INET_H.
29918         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29919         * modules/arpa_inet (Description): No longer only for systems that
29920         lack it.
29921         (Depends-on): Add include_next.
29922         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29923         HAVE_ARPA_INET_H.
29924
29925 2008-04-29  Jim Meyering  <meyering@redhat.com>
29926
29927         * modules/mkdir (License): Re-license as LGPLv2+.
29928
29929 2008-04-29  Bruno Haible  <bruno@clisp.org>
29930
29931         * modules/rawmemchr (Maintainer): Set to Eric.
29932         * modules/strchrnul (Maintainer): Likewise.
29933
29934 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29935
29936         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29937         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29938
29939         * modules/arpa_inet (arpa/inet.h): Use them.
29940
29941 2008-04-28  Eric Blake  <ebb9@byu.net>
29942
29943         Test getndelim2.
29944         * modules/getndelim2-tests: New file.
29945         * tests/test-getndelim2.c: Likewise.
29946         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29947         stream.
29948         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29949
29950         * MODULES.html.sh: Document new module.
29951
29952 2008-04-20  Bruno Haible  <bruno@clisp.org>
29953
29954         * lib/c-stack.c (die): Use raise.
29955         * modules/c-stack (Depends-on): Add raise.
29956
29957 2008-04-28  Bruno Haible  <bruno@clisp.org>
29958
29959         Expect rpmatch to be declared.
29960         * lib/yesno.c (rpmatch): Remove declaration.
29961
29962         Declare rpmatch.
29963         * lib/stdlib.in.h (rpmatch): New declaration.
29964         * lib/rpmatch.c: Include <stdlib.h> first.
29965         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29966         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29968         HAVE_RPMATCH.
29969         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29970         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29971         (Include): Set to <stdlib.h>.
29972         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29973         HAVE_RPMATCH.
29974         * NEWS: Document the change.
29975
29976 2008-04-28  Bruno Haible  <bruno@clisp.org>
29977
29978         Change rpmatch to use nl_langinfo when appropriate.
29979         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29980         (N_): New macro.
29981         (localized_pattern): New function/macro.
29982         (try): Remove match, nomatch arguments. Copy the pattern into safe
29983         memory before caching it.
29984         (rpmatch): Use localized_pattern. Add translator comments.
29985         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29986         Suggested by Eric Blake.
29987         * modules/rpmatch (Depends-on): Add stdbool.
29988
29989 2008-04-28  Eric Blake  <ebb9@byu.net>
29990
29991         Add rawmemchr module, matching glibc.
29992         * modules/string (Makefile.am): New indicator.
29993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29994         * lib/string.in.h (rawmemchr): Declare when appropriate.
29995         * modules/rawmemchr: New file.
29996         * m4/rawmemchr.m4: Likewise.
29997         * lib/rawmemchr.c: Likewise.
29998         * modules/rawmemchr-tests: Likewise.
29999         * tests/test-rawmemchr.c: Likewise.
30000         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30001         module.
30002         * modules/strchrnul (Depends-on): Add rawmemchr.
30003         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30004
30005         Whitespace cleanup.
30006         * tests/test-strchrnul.c: Reindent.
30007         * lib/strchrnul.c: Likewise.
30008
30009         Optimize and test strchrnul.
30010         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30011         * modules/strchrnul-tests: New file.
30012         * tests/test-strchrnul.c: Likewise.
30013
30014         Remove intprops dependency.
30015         * modules/memchr (Depends-on): Remove intprops.
30016         * modules/memrchr (Depends-on): Likewise.
30017         * modules/memchr2 (Depends-on): Likewise.
30018         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30019         * lib/memrchr.c (__memrchr): Likewise.
30020         * lib/memrchr2.c (memchr2): Likewise.
30021         Reported by Simon Josefsson.
30022
30023 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30024
30025         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30026         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30027
30028 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30029
30030         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30031
30032         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30033
30034         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30035
30036         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30037         declarations.
30038         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30039
30040         * m4/inet_pton.m4: Don't check for header files.
30041
30042         * m4/inet_ntop.m4: Don't check for header files.
30043
30044 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30045
30046         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30047         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30048         trigger for cygwin).
30049         Reported by Bruno Haible  <bruno@clisp.org>.
30050
30051 2008-04-28  Bruno Haible  <bruno@clisp.org>
30052
30053         * doc/posix-functions/strdup.texi: Mention mingw problem.
30054
30055 2008-04-27  Bruno Haible  <bruno@clisp.org>
30056
30057         * modules/stat-time-tests (Depends-on): Add sleep.
30058         * tests/test-stat-time.c (force_unlink): New function.
30059         (cleanup): Use it.
30060         (test_mtime): Remove the ctime related tests.
30061         (test_ctime): New function, containing the ctime related tests.
30062         (main): Call test_ctime, except on native Windows platforms.
30063
30064 2008-04-27  Bruno Haible  <bruno@clisp.org>
30065
30066         * lib/rpmatch.c (rpmatch): Add some comments.
30067         Reported by James Youngman <jay@gnu.org>.
30068
30069 2008-04-27  Bruno Haible  <bruno@clisp.org>
30070
30071         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30072         quiet NaNs.
30073
30074 2008-04-27  Bruno Haible  <bruno@clisp.org>
30075
30076         Make test-yesno.sh work on mingw.
30077         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30078         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30079         (main): Set stdin to binary mode.
30080         * modules/yesno-tests (Depends-on): Add binary-io.
30081
30082 2008-04-27  Bruno Haible  <bruno@clisp.org>
30083
30084         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30085         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30086         argument that lie outside the IEEE 854 domain.
30087         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30088         (gl_ISFINITE): Use it.
30089         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30090
30091 2008-04-27  Bruno Haible  <bruno@clisp.org>
30092
30093         Allow local renaming in config.h.
30094         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30095
30096 2008-04-27  Bruno Haible  <bruno@clisp.org>
30097
30098         * lib/memchr.c (__memchr): Change type of 'i'.
30099         * lib/memchr2.c (memchr2): Likewise.
30100
30101 2008-04-26  Eric Blake  <ebb9@byu.net>
30102         and Bruno Haible  <bruno@clisp.org>
30103
30104         Optimize and test memrchr.
30105         * modules/memrchr (Depends-on): Add intprops.
30106         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30107         * modules/memrchr-tests: New file.
30108         * tests/test-memrchr.c: New file.
30109
30110 2008-04-26  Bruno Haible  <bruno@clisp.org>
30111
30112         Add tentative support for DragonFly BSD.
30113         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30114         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30115         fp.
30116         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30117         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30118         * lib/fpurge.c (fpurge): Likewise.
30119         * lib/freadable.c (freaadable): Likewise.
30120         * lib/freadahead.c (freadahead): Likewise.
30121         * lib/freading.c (freading): Likewise.
30122         * lib/freadptr.c (freadptr): Likewise.
30123         * lib/freadseek.c (freadptrinc): Likewise.
30124         * lib/fseeko.c (fseeko): Likewise.
30125         * lib/fseterr.c (fseterr): Likewise.
30126         * lib/fwritable.c (fwritable): Likewise.
30127         * lib/fwriting.c (fwriting): Likewise.
30128
30129 2008-04-26  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/stdio-impl.h: New file.
30132         * lib/fbufmode.c: Include stdio-impl.h.
30133         (fbufmode): Use fp_, remove redundant #defines.
30134         * lib/fflush.c: Include stdio-impl.h.
30135         (clear_ungetc_buffer): Remove redundant #defines.
30136         * lib/fpurge.c: Include stdio-impl.h.
30137         (fpurge): Remove redundant #defines.
30138         * lib/freadable.c: Include stdio-impl.h.
30139         (freadable): Remove redundant #defines.
30140         * lib/freadahead.c: Include stdio-impl.h.
30141         (freadahead): Remove redundant #defines.
30142         * lib/freading.c: Include stdio-impl.h.
30143         (freading): Remove redundant #defines.
30144         * lib/freadptr.c: Include stdio-impl.h.
30145         (freadptr): Remove redundant #defines.
30146         * lib/freadseek.c: Include stdio-impl.h.
30147         (freadptrinc): Remove redundant #defines.
30148         * lib/fseeko.c: Include stdio-impl.h.
30149         (rpl_fseeko): Remove redundant #defines.
30150         * lib/fseterr.c: Include stdio-impl.h.
30151         (fseterr): Remove redundant #defines.
30152         * lib/fwritable.c: Include stdio-impl.h.
30153         (fwritable: Remove redundant #defines.
30154         * lib/fwriting.c: Include stdio-impl.h.
30155         (fwriting): Remove redundant #defines.
30156         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30157         * modules/fflush (Files): Likewise.
30158         * modules/fpurge (Files): Likewise.
30159         * modules/freadable (Files): Likewise.
30160         * modules/freadahead (Files): Likewise.
30161         * modules/freading (Files): Likewise.
30162         * modules/freadptr (Files): Likewise.
30163         * modules/freadseek (Files): Likewise.
30164         * modules/fseeko (Files): Likewise.
30165         * modules/fseterr (Files): Likewise.
30166         * modules/fwritable (Files): Likewise.
30167         * modules/fwriting (Files): Likewise.
30168
30169 2008-04-26  Bruno Haible  <bruno@clisp.org>
30170
30171         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30172         restore_seek_optimization, update_fpos_cache): New functions, extracted
30173         from rpl_fflush.
30174         (rpl_fflush): Use them.
30175         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30176         (gl_REPLACE_FFLUSH): Use it.
30177
30178 2008-04-26  Bruno Haible  <bruno@clisp.org>
30179
30180         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30181         on Solaris.
30182         * tests/test-xstrtoimax.sh: Likewise.
30183         * tests/test-xstrtoumax.sh: Likewise.
30184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30185
30186 2008-04-26  Bruno Haible  <bruno@clisp.org>
30187
30188         * modules/memchr-tests: New file.
30189         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30190
30191 2008-04-26  Eric Blake  <ebb9@byu.net>
30192             Bruno Haible  <bruno@clisp.org>
30193
30194         * lib/memchr.c: Include intprops.h.
30195         (__memchr): Optimize parallel detection of matching bytes. Rename local
30196         variables. Add explanatory comments.
30197
30198 2008-04-26  Bruno Haible  <bruno@clisp.org>
30199
30200         Fix module 'memchr', broken since 2000-10-28.
30201         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30202
30203 2008-04-26  Bruno Haible  <bruno@clisp.org>
30204
30205         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30206         comments.
30207
30208 2008-04-25  Eric Blake  <ebb9@byu.net>
30209
30210         Use native fstatat on cygwin 1.7.0.
30211         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30212         first.
30213
30214 2008-04-23  Eric Blake  <ebb9@byu.net>
30215
30216         Improve memchr2 performance.
30217         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30218         NUL bytes.
30219         * modules/memchr2 (Depends-on): Use intprops.h.
30220
30221 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30222
30223         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30224         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30225         <blp@cs.stanford.edu>.
30226
30227 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30228
30229         * lib/arpa_inet.in.h: New file.
30230
30231         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30232         (Makefile.am): Sed in substitute header file.
30233
30234         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30235         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30236
30237         * modules/inet_ntop (configure.ac): Use
30238         gl_ARPA_INET_MODULE_INDICATOR.
30239
30240         * modules/inet_pton (configure.ac): Use
30241         gl_ARPA_INET_MODULE_INDICATOR.
30242
30243 2008-04-22  Jim Meyering  <meyering@redhat.com>
30244
30245         * modules/verify (License): Re-license as LGPLv2+.
30246
30247 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30248
30249         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30250         parameter to void* as per POSIX standard (MinGW uses char*).
30251
30252 2008-04-21  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30255         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30256         Define to replacements if REPLACE_ISWCNTRL is 1.
30257         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30258         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30259         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30260         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30261         what it fixes.
30262         * doc/posix-functions/iswalpha.texi: Likewise.
30263         * doc/posix-functions/iswblank.texi: Likewise.
30264         * doc/posix-functions/iswcntrl.texi: Likewise.
30265         * doc/posix-functions/iswdigit.texi: Likewise.
30266         * doc/posix-functions/iswgraph.texi: Likewise.
30267         * doc/posix-functions/iswlower.texi: Likewise.
30268         * doc/posix-functions/iswprint.texi: Likewise.
30269         * doc/posix-functions/iswpunct.texi: Likewise.
30270         * doc/posix-functions/iswspace.texi: Likewise.
30271         * doc/posix-functions/iswupper.texi: Likewise.
30272         * doc/posix-functions/iswxdigit.texi: Likewise.
30273         Reported by Alain Guibert.
30274
30275 2008-04-21  Bruno Haible  <bruno@clisp.org>
30276
30277         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30278         Patch by Alain Guibert.
30279
30280 2008-04-21  Bruno Haible  <bruno@clisp.org>
30281
30282         Fix test failures on mingw.
30283         * tests/test-xstrtol.c (print_no_progname): New function.
30284         (main): Install it in error_print_progname hook.
30285         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30286         * tests/test-xstrtoimax.sh: Likewise.
30287         * tests/test-xstrtoumax.sh: Likewise.
30288
30289 2008-04-21  Bruno Haible  <bruno@clisp.org>
30290
30291         Fix test failure on mingw.
30292         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30293
30294 2008-04-21  Bruno Haible  <bruno@clisp.org>
30295
30296         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30297         Actually assign a value.
30298
30299 2008-04-20  Bruno Haible  <bruno@clisp.org>
30300
30301         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30302         take 2.
30303         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30304         'canonicalize-lgpl' module is also used.
30305         * lib/canonicalize-lgpl.c: Undo last change.
30306         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30307
30308 2008-04-20  Bruno Haible  <bruno@clisp.org>
30309
30310         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30311         config.h. Provide _mkdir based fallback for mingw.
30312         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30313         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30314         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30315         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30316         rather than defining mkdir in config.h.
30317         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30318         (gl_SYS_STAT_H_DEFAULTS): New macro.
30319         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30320         HAVE_IO_H any more.
30321         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30322         HAVE_DECL_MKDIR and HAVE_IO_H.
30323
30324 2008-04-20  Bruno Haible  <bruno@clisp.org>
30325
30326         * lib/isapipe.c: Port to native Windows platforms.
30327
30328 2008-04-20  Bruno Haible  <bruno@clisp.org>
30329
30330         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30331
30332 2008-04-21  Eric Blake  <ebb9@byu.net>
30333
30334         Work around preprocessors that don't handle UINTMAX_MAX.
30335         * lib/memchr2.c (memchr2): Avoid embedded #if.
30336         Reported by Alain Guibert, fix suggested by Bruno Haible.
30337
30338 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30339
30340         * doc/posix-functions/strftime.texi (strftime): Explain better
30341         Windows incompatibility.  Suggested by Micah Cowan
30342         <micah@cowan.name>.
30343
30344 2008-04-20  Bruno Haible  <bruno@clisp.org>
30345
30346         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30347         unistr/u8-mblen.
30348
30349 2008-04-20  Bruno Haible  <bruno@clisp.org>
30350
30351         Fix test failure on platforms with non-GNU iconv.
30352         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30353         (U_TO_U8): Use it, rather than u16_to_u8.
30354         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30355         units at the end of the input string.
30356         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30357
30358 2008-04-20  Bruno Haible  <bruno@clisp.org>
30359
30360         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30361         when the resulting length is 0.
30362         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30363
30364 2008-04-20  Bruno Haible  <bruno@clisp.org>
30365
30366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30367         works.
30368         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30369
30370 2008-04-20  Bruno Haible  <bruno@clisp.org>
30371
30372         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30373         * modules/tsearch-tests (configure.ac): Test for initstate function.
30374
30375 2008-04-20  Bruno Haible  <bruno@clisp.org>
30376
30377         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30378         for nlink_t if missing.
30379         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30380
30381 2008-04-19  Bruno Haible  <bruno@clisp.org>
30382
30383         Work around snprintf bug on Linux libc5.
30384         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30386         gl_SNPRINTF_SIZE1.
30387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30388         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30389         that test failed.
30390         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30391         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30392         * modules/snprintf (Files): Add m4/printf.m4.
30393         * modules/vsnprintf (Files): Likewise.
30394         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30395         * doc/posix-functions/vsnprintf.texi: Likewise.
30396
30397 2008-04-19  Bruno Haible  <bruno@clisp.org>
30398
30399         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30400         from 0.0058 to less than 10^-7.
30401
30402 2008-04-19  Bruno Haible  <bruno@clisp.org>
30403
30404         Fix rounding when a precision is given.
30405         * lib/vasnprintf.c (is_borderline): New function.
30406         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30407         9...9x.
30408         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30409         %e, %g.
30410         * tests/test-vasprintf-posix.c (test_function): Likewise.
30411         * tests/test-snprintf-posix.h (test_function): Likewise.
30412         * tests/test-sprintf-posix.h (test_function): Likewise.
30413         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30414         * tests/test-printf-posix.h (test_function): Likewise.
30415         * tests/test-printf-posix.output: Update.
30416         Reported by John Darrington <john@darrington.wattle.id.au> via
30417         Ben Pfaff <blp@cs.stanford.edu>.
30418
30419 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30420
30421         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30422         Suggested by Bruno Haible <bruno@clisp.org>.
30423
30424 2008-04-17  Bruno Haible  <bruno@clisp.org>
30425
30426         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30427         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30428         implementation.
30429         Patch by Bruce Merry <bmerry@gmail.com>.
30430
30431 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30432
30433         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30434         doesn't work under Windows.
30435
30436 2008-04-16  Bruno Haible  <bruno@clisp.org>
30437
30438         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30439         New macros.
30440         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30441         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30442         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30443         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30444         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30445         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30446         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30447         macros.
30448         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30449         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30450         Northern Sotho, Uighur.
30451
30452 2008-04-16  Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30455         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30456         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30457         Reported by Daniel Bergström <daniel@octocode.com>.
30458
30459 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30460             Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30463         function.
30464         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30465         New functions, mostly extracted from gl_locale_name_default.
30466         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30467
30468 2008-04-16  Eric Blake  <ebb9@byu.net>
30469
30470         Adjust strtod detection to catch glibc 2.7 bug.
30471         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30472         Reported by John Gatewood Ham.
30473
30474 2008-04-16  Bruno Haible  <bruno@clisp.org>
30475
30476         Add tentative support for Linux libc5.
30477         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30478         * lib/fpurge.c (fpurge): Likewise.
30479         * lib/freadable.c (freadable): Likewise.
30480         * lib/freadahead.c (freadahead): Likewise.
30481         * lib/freading.c (freading): Likewise.
30482         * lib/freadptr.c (freadptr): Likewise.
30483         * lib/freadseek.c (freadptrinc): Likewise.
30484         * lib/fseeko.c (rpl_fseeko): Likewise.
30485         * lib/fseterr.c (fseterr): Likewise.
30486         * lib/fwritable.c (fwritable): Likewise.
30487         * lib/fwriting.c (fwriting): Likewise.
30488         Reported by Alain Guibert <alguibert+bts@free.fr>.
30489
30490 2008-04-15  Bruno Haible  <bruno@clisp.org>
30491
30492         * modules/mathl (configure.ac): Define module indicator.
30493
30494 2008-04-15  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/logl.c (logl): Remove unused variables.
30497
30498 2008-04-15  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30501         fails.
30502
30503 2008-04-15  Bruno Haible  <bruno@clisp.org>
30504
30505         * lib/trim.c (trim2): Fix argument of isspace() macro.
30506
30507 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30508
30509         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30510         to 0.
30511         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30512
30513 2008-04-14  Bruno Haible  <bruno@clisp.org>
30514
30515         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30516         AC_LANG_PROGRAM argument.
30517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30518         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30520         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30521         * m4/math_h.m4 (gl_MATH_H): Likewise.
30522         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30524         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30525         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30526         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30527         * m4/regex.m4 (gl_REGEX): Likewise.
30528         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30529         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30530         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30531         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30533         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30534         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30535         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30536
30537 2008-04-14  Jim Meyering  <meyering@redhat.com>
30538
30539         test-strtod: fix typos: s/abs/fabs/
30540         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30541
30542 2008-04-13  Bruno Haible  <bruno@clisp.org>
30543
30544         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30545         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30546         module is also used and while not building the reloc-wrapper.
30547
30548 2008-04-13  Bruno Haible  <bruno@clisp.org>
30549
30550         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30551
30552 2008-04-13  Bruno Haible  <bruno@clisp.org>
30553
30554         Fix AIX compilation failure introduced on 2008-04-02.
30555         * tests/test-frexp.c (exp): Undefine before redefining.
30556         * tests/test-frexpl.c (exp): Likewise.
30557
30558 2008-04-13  Bruno Haible  <bruno@clisp.org>
30559
30560         Work around a HP-UX stdio bug.
30561         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30562         * tests/test-ftello.c (main): Likewise.
30563         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30564         * doc/posix-functions/ftello.texi: Likewise.
30565
30566 2008-04-13  Bruno Haible  <bruno@clisp.org>
30567
30568         Make test-signbit pass on HP-UX/hppa.
30569         * tests/test-signbit.c (minus_zerol): New variable.
30570         (test_signbitl): Use it.
30571
30572 2008-04-13  Bruno Haible  <bruno@clisp.org>
30573
30574         Make truncl work on OSF/1 4.0.
30575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30576         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30577         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30579         HAVE_DECL_TRUNCL.
30580         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30581         HAVE_DECL_TRUNCL.
30582         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30583
30584 2008-04-13  Bruno Haible  <bruno@clisp.org>
30585
30586         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30587
30588 2008-04-13  Bruno Haible  <bruno@clisp.org>
30589
30590         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30591         expression, so as to avoid HP-UX 11 cc compiler bug.
30592
30593 2008-04-13  Bruno Haible  <bruno@clisp.org>
30594
30595         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30596
30597 2008-04-13  Bruno Haible  <bruno@clisp.org>
30598
30599         * lib/git-merge-changelog.c: Remove empty declaration outside of
30600         functions.
30601
30602 2008-04-13  Bruno Haible  <bruno@clisp.org>
30603
30604         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30605
30606 2008-04-13  Bruno Haible  <bruno@clisp.org>
30607
30608         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30609         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30610         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30611         also if it exists but lacks definitions of the SHUT_* macros.
30612         * modules/sys_socket (Description): Update.
30613         Reported by Elbert Pol <e.pol@chello.nl>.
30614
30615 2008-04-13  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/localcharset.c (OS2): Don't redefine if already defined.
30618         Reported by Elbert Pol <e.pol@chello.nl>.
30619
30620 2008-04-13  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/binary-io.h [__EMX__]: Include <io.h>.
30623         Reported by Elbert Pol <e.pol@chello.nl>.
30624
30625 2008-04-12  Bruno Haible  <bruno@clisp.org>
30626
30627         * lib/fpucw.h: Enable the definitions also for x86_64.
30628         Needed for NetBSD/x86_64.
30629         Reported by Thomas Klausner <tk@giga.or.at>.
30630
30631 2008-04-12  Bruno Haible  <bruno@clisp.org>
30632
30633         * tests/test-strtod.c: Include isnand.h.
30634         (main): Use isnand instead of isnan.
30635         Reported by Jim Meyering.
30636
30637 2008-04-12  Bruno Haible  <bruno@clisp.org>
30638
30639         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30640         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30641
30642 2008-04-12  Jim Meyering  <meyering@redhat.com>
30643
30644         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30645
30646 2008-04-12  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30649         Reported by Elbert Pol <e.pol@chello.nl>.
30650
30651 2008-04-12  Eric Blake  <ebb9@byu.net>
30652
30653         Work around Solaris 10 math.h bug.
30654         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30655         (gl_MATH_H_DEFAULTS): Set up default.
30656         * modules/math (Makefile.am): Replace new indicators.
30657         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30658         * tests/test-math.c (main): Test this.
30659         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30660         * doc/posix-headers/math.texi (math.h): Mention bug.
30661         Reported by Nelson H. F. Beebe and Jim Meyering.
30662
30663 2008-04-11  Bruno Haible  <bruno@clisp.org>
30664
30665         Adapt to future versions of Apple GCC.
30666         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30667         Reported by Peter O'Gorman <peter@pogma.com>.
30668
30669 2008-04-11  Bruno Haible  <bruno@clisp.org>
30670
30671         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30672
30673 2008-04-11  Bruno Haible  <bruno@clisp.org>
30674
30675         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30676
30677         * modules/getaddrinfo-tests (Makefile.am): Define
30678         test_getaddrinfo_LDADD.
30679
30680 2008-04-11  Bruno Haible  <bruno@clisp.org>
30681
30682         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30683         (init): Fix syntax error.
30684         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30685         is declared.
30686
30687 2008-04-11  Bruno Haible  <bruno@clisp.org>
30688
30689         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30690         * modules/glob (Depends-on): Add stdbool.
30691
30692 2008-04-11  Bruno Haible  <bruno@clisp.org>
30693
30694         * lib/trim.c: Include <string.h>.
30695
30696 2008-04-11  Eric Blake  <ebb9@byu.net>
30697
30698         Avoid compile failure on OS/2.
30699         * lib/regex_internal.h (internal_function): Disable optimization
30700         on OS/2 (__EMX__), where it caused compiler error.
30701         Reported by Elbert Pol.
30702
30703 2008-04-11  Bruno Haible  <bruno@clisp.org>
30704
30705         Flush the standard error stream before aborting. Needed on mingw.
30706         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30707         * tests/test-array_list.c (ASSERT): Likewise.
30708         * tests/test-array_oset.c (ASSERT): Likewise.
30709         * tests/test-avltree_list.c (ASSERT): Likewise.
30710         * tests/test-avltree_oset.c (ASSERT): Likewise.
30711         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30712         * tests/test-binary-io.c (ASSERT): Likewise.
30713         * tests/test-byteswap.c (ASSERT): Likewise.
30714         * tests/test-c-ctype.c (ASSERT): Likewise.
30715         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30716         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30717         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30718         * tests/test-c-strstr.c (ASSERT): Likewise.
30719         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30720         * tests/test-canonicalize.c (ASSERT): Likewise.
30721         * tests/test-carray_list.c (ASSERT): Likewise.
30722         * tests/test-ceilf1.c (ASSERT): Likewise.
30723         * tests/test-ceilf2.c (ASSERT): Likewise.
30724         * tests/test-ceill.c (ASSERT): Likewise.
30725         * tests/test-count-one-bits.c (ASSERT): Likewise.
30726         * tests/test-fbufmode.c (ASSERT): Likewise.
30727         * tests/test-fflush2.c (ASSERT): Likewise.
30728         * tests/test-floorf1.c (ASSERT): Likewise.
30729         * tests/test-floorf2.c (ASSERT): Likewise.
30730         * tests/test-floorl.c (ASSERT): Likewise.
30731         * tests/test-fopen.c (ASSERT): Likewise.
30732         * tests/test-fpending.c (ASSERT): Likewise.
30733         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30734         * tests/test-fpurge.c (ASSERT): Likewise.
30735         * tests/test-freadable.c (ASSERT): Likewise.
30736         * tests/test-freadahead.c (ASSERT): Likewise.
30737         * tests/test-freading.c (ASSERT): Likewise.
30738         * tests/test-freadptr.c (ASSERT): Likewise.
30739         * tests/test-freadptr2.c (ASSERT): Likewise.
30740         * tests/test-freadseek.c (ASSERT): Likewise.
30741         * tests/test-freopen.c (ASSERT): Likewise.
30742         * tests/test-frexp.c (ASSERT): Likewise.
30743         * tests/test-frexpl.c (ASSERT): Likewise.
30744         * tests/test-fseek.c (ASSERT): Likewise.
30745         * tests/test-fseeko.c (ASSERT): Likewise.
30746         * tests/test-fstrcmp.c (ASSERT): Likewise.
30747         * tests/test-ftell.c (ASSERT): Likewise.
30748         * tests/test-ftello.c (ASSERT): Likewise.
30749         * tests/test-func.c (ASSERT): Likewise.
30750         * tests/test-fwritable.c (ASSERT): Likewise.
30751         * tests/test-fwriting.c (ASSERT): Likewise.
30752         * tests/test-getdelim.c (ASSERT): Likewise.
30753         * tests/test-getline.c (ASSERT): Likewise.
30754         * tests/test-i-ring.c (ASSERT): Likewise.
30755         * tests/test-iconv-utf.c (ASSERT): Likewise.
30756         * tests/test-iconv.c (ASSERT): Likewise.
30757         * tests/test-isfinite.c (ASSERT): Likewise.
30758         * tests/test-isnand.c (ASSERT): Likewise.
30759         * tests/test-isnanf.c (ASSERT): Likewise.
30760         * tests/test-isnanl.h (ASSERT): Likewise.
30761         * tests/test-ldexpl.c (ASSERT): Likewise.
30762         * tests/test-linked_list.c (ASSERT): Likewise.
30763         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30764         * tests/test-localename.c (ASSERT): Likewise.
30765         * tests/test-lseek.c (ASSERT): Likewise.
30766         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30767         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30768         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30769         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30770         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30771         * tests/test-mbschr.c (ASSERT): Likewise.
30772         * tests/test-mbscspn.c (ASSERT): Likewise.
30773         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30774         * tests/test-mbspbrk.c (ASSERT): Likewise.
30775         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30776         * tests/test-mbsrchr.c (ASSERT): Likewise.
30777         * tests/test-mbsspn.c (ASSERT): Likewise.
30778         * tests/test-mbsstr1.c (ASSERT): Likewise.
30779         * tests/test-mbsstr2.c (ASSERT): Likewise.
30780         * tests/test-mbsstr3.c (ASSERT): Likewise.
30781         * tests/test-memchr2.c (ASSERT): Likewise.
30782         * tests/test-memmem.c (ASSERT): Likewise.
30783         * tests/test-open.c (ASSERT): Likewise.
30784         * tests/test-printf-frexp.c (ASSERT): Likewise.
30785         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30786         * tests/test-printf-posix.c (ASSERT): Likewise.
30787         * tests/test-quotearg.c (ASSERT): Likewise.
30788         * tests/test-rbtree_list.c (ASSERT): Likewise.
30789         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30790         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30791         * tests/test-round1.c (ASSERT): Likewise.
30792         * tests/test-roundf1.c (ASSERT): Likewise.
30793         * tests/test-roundl.c (ASSERT): Likewise.
30794         * tests/test-signbit.c (ASSERT): Likewise.
30795         * tests/test-sleep.c (ASSERT): Likewise.
30796         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30797         * tests/test-snprintf.c (ASSERT): Likewise.
30798         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30799         * tests/test-stat-time.c (ASSERT): Likewise.
30800         * tests/test-strcasestr.c (ASSERT): Likewise.
30801         * tests/test-strerror.c (ASSERT): Likewise.
30802         * tests/test-striconv.c (ASSERT): Likewise.
30803         * tests/test-striconveh.c (ASSERT): Likewise.
30804         * tests/test-striconveha.c (ASSERT): Likewise.
30805         * tests/test-strsignal.c (ASSERT): Likewise.
30806         * tests/test-strstr.c (ASSERT): Likewise.
30807         * tests/test-strtod.c (ASSERT): Likewise.
30808         * tests/test-trunc1.c (ASSERT): Likewise.
30809         * tests/test-trunc2.c (ASSERT): Likewise.
30810         * tests/test-truncf1.c (ASSERT): Likewise.
30811         * tests/test-truncf2.c (ASSERT): Likewise.
30812         * tests/test-truncl.c (ASSERT): Likewise.
30813         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30814         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30815         * tests/test-vasnprintf.c (ASSERT): Likewise.
30816         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30817         * tests/test-vasprintf.c (ASSERT): Likewise.
30818         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30819         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30820         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30821         * tests/test-vsnprintf.c (ASSERT): Likewise.
30822         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30823         * tests/test-wcwidth.c (ASSERT): Likewise.
30824         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30825         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30826         * tests/test-xvasprintf.c (ASSERT): Likewise.
30827         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30828         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30829         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30830         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30831         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30832         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30833         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30834         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30835         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30836         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30837         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30838         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30839         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30840         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30841         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30842         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30843         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30844         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30845         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30846         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30847         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30848         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30849         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30850         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30851         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30852         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30853         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30854         * tests/unictype/test-combining.c (ASSERT): Likewise.
30855         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30856         * tests/unictype/test-digit.c (ASSERT): Likewise.
30857         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30858         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30859         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30860         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30861         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30862         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30863         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30864         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30865         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30866         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30867         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30868         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30869         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30870         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30871         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30872         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30873         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30874         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30875         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30876         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30877         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30878         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30879         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30880         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30881         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30882         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30883         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30884         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30885         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30886         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30887         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30888         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30889         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30890         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30891         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30892         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30893         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30894         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30895         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30896         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30897         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30898         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30899         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30900         Reported by Eric Blake.
30901
30902 2008-04-11  Bruno Haible  <bruno@clisp.org>
30903
30904         * lib/wchar.in.h: Tweak comment.
30905
30906 2008-04-11  Bruno Haible  <bruno@clisp.org>
30907
30908         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30909         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30910         gl_COMMON.
30911         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30912
30913 2008-04-11  Bruno Haible  <bruno@clisp.org>
30914
30915         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30916
30917 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30918
30919         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30920         of attempting to use non-existing /dev/*random.  Based on patch
30921         from Adam Strzelecki <ono@java.pl> in
30922         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30923
30924 2008-04-08  Bruno Haible  <bruno@clisp.org>
30925
30926         Add tentative support for emx+gcc.
30927         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30928         * lib/fpurge.c (fpurge): Likewise.
30929         * lib/freadable.c (freadable): Likewise.
30930         * lib/freadahead.c (freadahead): Likewise.
30931         * lib/freading.c (freading): Likewise.
30932         * lib/freadptr.c (freadptr): Likewise.
30933         * lib/freadseek.c (freadptrinc): Likewise.
30934         * lib/fseeko.c (rpl_fseeko): Likewise.
30935         * lib/fseterr.c (fseterr): Likewise.
30936         * lib/fwritable.c (fwritable): Likewise.
30937         * lib/fwriting.c (fwriting): Likewise.
30938         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30939
30940 2008-04-09  Eric Blake  <ebb9@byu.net>
30941
30942         Avoid some autoconf warnings.
30943         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30944         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30945         * m4/afs.m4 (gl_AFS): Likewise.
30946         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30947         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30948         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30949         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30950         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30951         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30952         (AC_CHECK_DECLS_ONCE): Likewise.
30953         Rename file...
30954         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30955         gnulib-tool requires autoconf 2.59 or better.
30956         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30957
30958 2008-04-08  Eric Blake  <ebb9@byu.net>
30959
30960         Use 'git describe --match' if present (added in git 1.5.5).
30961         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30962         if possible.
30963
30964 2008-04-08  Bruno Haible  <bruno@clisp.org>
30965
30966         Add tentative support for OpenServer.
30967         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30968         _ptr, _cnt.
30969         * lib/fpurge.c (fpurge): Likewise.
30970         * lib/freadable.c (freadable): Likewise.
30971         * lib/freadahead.c (freadahead): Likewise.
30972         * lib/freading.c (freading): Likewise.
30973         * lib/freadptr.c (freadptr): Likewise.
30974         * lib/freadseek.c (freadptrinc): Likewise.
30975         * lib/fseeko.c (rpl_fseeko): Likewise.
30976         * lib/fseterr.c (fseterr): Likewise.
30977         * lib/fwritable.c (fwritable): Likewise.
30978         * lib/fwriting.c (fwriting): Likewise.
30979         Reported by Roger Cornelius <rac@tenzing.org> and
30980         Brian K. White <brian@aljex.com>.
30981
30982 2008-04-06  Jim Meyering  <meyering@redhat.com>
30983
30984         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30985
30986 2008-04-06  Bruno Haible  <bruno@clisp.org>
30987
30988         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30989         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30990         * tests/test-printf-posix.sh: Likewise.
30991         * tests/test-vfprintf-posix.sh: Likewise.
30992         * tests/test-vprintf-posix.sh: Likewise.
30993         * tests/test-xprintf-posix.sh: Likewise.
30994
30995 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30996
30997         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30998         hide error from 'ls', needed on OS/2.
30999         Report by Elbert Pol <elbert.pol@gmail.com>.
31000
31001 2008-04-04  Eric Blake  <ebb9@byu.net>
31002
31003         Make test-fseeko.c failures meaningful.
31004         * tests/test-fseeko.c: Print line number on failure.
31005         * tests/test-fseek.c: Likewise.
31006         Reported by Nelson H. F. Beebe.
31007
31008         Improve strtod bug detection check.
31009         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31010         required for Solaris 10.
31011         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31012
31013 2008-04-04  Bruno Haible  <bruno@clisp.org>
31014
31015         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31016         by m4/setenv.m4.
31017
31018 2008-04-03  Eric Blake  <ebb9@byu.net>
31019
31020         Ensure sane .version contents.
31021         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31022         version string.
31023         * build-aux/git-version-gen: Improve documentation.
31024
31025         Make GNU make output nicer.
31026         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31027         MAKECMDGOALS to enforce message for all command line targets.  Set
31028         srcdir for use in maint.mk.
31029
31030         Another maintainer tweak.
31031         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31032         a target that regenerates version.
31033
31034 2008-04-03  Jim Meyering  <meyering@redhat.com>
31035
31036         vc-list-files: don't cause coreutils "make po-check" failure
31037         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31038
31039 2008-04-03  Eric Blake  <ebb9@byu.net>
31040
31041         Allow VPATH usage of vc-list-files.
31042         * build-aux/vc-list-files (scriptversion): Add timestamp.
31043         (options): Add --help, --version, -C.
31044         (CVS): Support installed cvsu.
31045
31046 2008-04-02  Bruno Haible  <bruno@clisp.org>
31047
31048         Avoid some "statement with no effect" warnings from gcc.
31049         * tests/test-wctype.c (main): Explicitly ignore unused values.
31050         Reported by Jim Meyering.
31051
31052 2008-04-02  Jim Meyering  <meyering@redhat.com>
31053
31054         Avoid some warnings from "gcc -Wshadow".
31055         * tests/test-frexp.c (exp): Define to a different identifier.
31056         * tests/test-frexpl.c (exp): Likewise.
31057
31058 2008-04-03  Jim Meyering  <meyering@redhat.com>
31059
31060         bootstrap: remove dangling *.[ch] symlinks from lib
31061         * build-aux/bootstrap [dangling symlink removal]: Move find's
31062         -depth option to precede all others, to avoid a warning.
31063         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31064
31065 2008-04-02  Bruno Haible  <bruno@clisp.org>
31066
31067         Avoid some warnings from "gcc -Wshadow".
31068         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31069         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31070         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31071         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31072         Reported by Jim Meyering.
31073
31074 2008-04-01  Bruno Haible  <bruno@clisp.org>
31075
31076         Fix test to work on IRIX 6.5 with cc.
31077         * tests/test-math.c (numeric_equal): New function.
31078         (main): Use it.
31079
31080 2008-04-01  Bruno Haible  <bruno@clisp.org>
31081
31082         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31083
31084 2008-04-01  Bruno Haible  <bruno@clisp.org>
31085
31086         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31088         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31089         (Depends-on): Remove math.
31090
31091         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31092         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31093         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31094         (Depends-on): Remove math.
31095
31096         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31097         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31098         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31099         (Depends-on): Remove math.
31100         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31101         (Depends-on): Remove math.
31102
31103         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31104         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31105         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31106         (Depends-on): Remove math.
31107         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31108         (Depends-on): Remove math.
31109
31110         * tests/test-round1.c: Include nan.h.
31111         (main): Use NaNd instead of NAN.
31112         * modules/round-tests (Files): Add tests/nan.h.
31113
31114         * tests/test-trunc1.c: Include nan.h.
31115         (main): Use NaNd instead of NAN.
31116         * modules/trunc-tests (Files): Add tests/nan.h.
31117
31118         * tests/test-roundf1.c: Include nan.h.
31119         (main): Use NaNf instead of NAN.
31120         * modules/roundf-tests (Files): Add tests/nan.h.
31121
31122         * tests/test-truncf1.c: Include nan.h.
31123         (main): Use NaNf instead of NAN.
31124         * modules/truncf-tests (Files): Add tests/nan.h.
31125
31126         * tests/test-ceilf1.c: Include nan.h.
31127         (main): Use NaNf instead of NAN.
31128         * modules/ceilf-tests (Files): Add tests/nan.h.
31129
31130         * tests/test-floorf1.c: Include nan.h.
31131         (main): Use NaNf instead of NAN.
31132         * modules/floorf-tests (Files): Add tests/nan.h.
31133
31134         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31135         (main): Use NaNf instead of NAN.
31136         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31137
31138         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31139         (main): Use NaNd instead of NAN.
31140         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31141
31142         * tests/test-frexp.c: Include nan.h.
31143         (main): Use NaNd instead of NAN.
31144         * modules/frexp-tests (Files): Add tests/nan.h.
31145
31146         * lib/isnan.c: Don't include <math.h>.
31147         (FUNC): Don't use NAN macro.
31148         * modules/isnand-nolibm (Depends-on): Remove math.
31149         * modules/isnanf-nolibm (Depends-on): Remove math.
31150         * modules/isnanl (Depends-on): Remove math.
31151         * modules/isnanl-nolibm (Depends-on): Remove math.
31152
31153         * tests/nan.h: New file.
31154
31155 2008-04-01  Eric Blake  <ebb9@byu.net>
31156
31157         Fix typos.
31158         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31159         values to be the right type.
31160
31161         For now, cater to gnulib strtod inaccuracies.
31162         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31163         fractional results.  While not as nice from a QoI perspective, it
31164         is a quicker patch than correctly implementing decimal to binary
31165         rounding.
31166
31167 2008-03-31  Eric Blake  <ebb9@byu.net>
31168
31169         Guarantee a definition of NAN.
31170         * lib/math.in.h (NAN): Define if missing.
31171         * tests/test-math.c (main): Test it.
31172         * doc/posix-headers/math.texi (math.h): Document this.
31173         * lib/isnan.c (rpl_isnand): Use it.
31174         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31175         * tests/test-floorf1.c (NaN): Likewise.
31176         * tests/test-frexp.c (NaN): Likewise.
31177         * tests/test-isnand.c (NaN): Likewise.
31178         * tests/test-isnanf.c (NaN): Likewise.
31179         * tests/test-round1.c (NaN): Likewise.
31180         * tests/test-roundf1.c (NaN): Likewise.
31181         * tests/test-snprintf-posix.h (NaN): Likewise.
31182         * tests/test-sprintf-posix.h (NaN): Likewise.
31183         * tests/test-trunc1.c (NaN): Likewise.
31184         * tests/test-truncf1.c (NaN): Likewise.
31185         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31186         * tests/test-vasprintf-posix.c (NaN): Likewise.
31187         * modules/isnand-nolibm (Depends-on): Add math.
31188         * modules/isnanf-nolibm (Depends-on): Likewise.
31189         * modules/isnanl (Depends-on): Likewise.
31190         * modules/isnanl-nolibm (Depends-on): Likewise.
31191         * modules/snprintf-posix-tests (Depends-on): Likewise.
31192         * modules/sprintf-posix-tests (Depends-on): Likewise.
31193         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31194         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31195         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31196         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31197
31198 2008-03-31  Bruno Haible  <bruno@clisp.org>
31199
31200         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31201         * doc/posix-functions/strtod.texi: Likewise.
31202
31203 2008-03-31  Bruno Haible  <bruno@clisp.org>
31204
31205         * tests/test-strtod.c (main): Don't use C99 syntax.
31206
31207 2008-03-31  Bruno Haible  <bruno@clisp.org>
31208
31209         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31210         Reported by Eric Blake.
31211
31212 2008-03-31  Jim Meyering  <meyering@redhat.com>
31213
31214         Don't compare actual signbit return values.
31215         * tests/test-strtod.c (main): Rather, compare only their
31216         zero/non-zero nature.
31217
31218 2008-03-31  Eric Blake  <ebb9@byu.net>
31219
31220         More strtod documentation.
31221         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31222         failures as distinct bugs.
31223
31224 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31225
31226         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31227         Problem reported by Erik Benada in
31228         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31229
31230 2008-03-30  Bruno Haible  <bruno@clisp.org>
31231
31232         * tests/test-strtod.c: Add comments about which assertion fails on which
31233         platform.
31234         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31235
31236 2008-03-30  Eric Blake  <ebb9@byu.net>
31237
31238         Test signbit behavior on zeros.
31239         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31240         (test_signbitd, test_signbitl): Likewise.
31241
31242         More strtod touchups.
31243         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31244         sign of negative underflow, for now.  Use .5, not .1.
31245         * doc/posix-functions/strtod.texi (strtod): Mention these
31246         limitations.
31247         Reported by Jim Meyering.
31248
31249 2008-03-30  Bruno Haible  <bruno@clisp.org>
31250
31251         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31252         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31253
31254 2008-03-30  Bruno Haible  <bruno@clisp.org>
31255
31256         Avoid failure when attempting to return empty iconv results on some
31257         platforms.
31258         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31259         allocation, don't report ENOMEM when the resulting string is empty.
31260
31261 2008-03-30  Bruno Haible  <bruno@clisp.org>
31262
31263         Fix buffer overrun.
31264         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31265         Don't consider the width for tmp_length. Check count against tmp_length
31266         before doing the padding. Ensure enough allocation during padding.
31267
31268 2008-03-30  Eric Blake  <ebb9@byu.net>
31269
31270         strtod touchups.
31271         * lib/strtod.c (strtod): Avoid compiler warnings.
31272         Reported by Jim Meyering.
31273
31274 2008-03-30  Bruno Haible  <bruno@clisp.org>
31275
31276         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31277         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31278         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31279         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31280         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31281         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31282         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31283         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31284
31285         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31286         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31287         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31288         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31289         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31290         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31291         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31292         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31293
31294         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31295         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31296         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31298         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31299         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31300         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31301         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31302
31303         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31304         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31305
31306         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31307         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31308
31309         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31310         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31311
31312         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31314         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31315
31316         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31318         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31319
31320         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31322         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31323
31324         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31326         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31327
31328         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31329         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31331         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31332         (Depends-on): Add EOVERFLOW.
31333         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31334         (Depends-on): Add EOVERFLOW.
31335         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31336         (Depends-on): Add EOVERFLOW.
31337         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31338         (Depends-on): Add EOVERFLOW.
31339         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31340         (Depends-on): Add EOVERFLOW.
31341         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31342         (Depends-on): Add EOVERFLOW.
31343         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31344         (Depends-on): Add EOVERFLOW.
31345         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31346         (Depends-on): Add EOVERFLOW.
31347
31348         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31350         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31351
31352         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31354         * modules/snprintf (Depends-on): Add EOVERFLOW.
31355
31356         * lib/poll.c (EOVERFLOW): Remove fallback.
31357         * modules/poll (Depends-on): Add EOVERFLOW.
31358
31359         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31360         * modules/getugroups (Depends-on): Add EOVERFLOW.
31361
31362         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31363         * modules/getdelim (Depends-on): Add EOVERFLOW.
31364
31365         * lib/ftell.c (EOVERFLOW): Remove fallback.
31366         * modules/ftell (Depends-on): Add EOVERFLOW.
31367
31368         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31370         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31371
31372         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31373
31374         * modules/EOVERFLOW-tests: New file.
31375         * tests/test-EOVERFLOW.c: New file.
31376
31377         * modules/EOVERFLOW: New file.
31378         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31379
31380 2008-03-30  Bruno Haible  <bruno@clisp.org>
31381
31382         Fix bug introduced on 2007-06-10.
31383         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31384         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31385
31386 2008-03-30  Bruno Haible  <bruno@clisp.org>
31387
31388         Improve freadseek's efficiency after ungetc.
31389         * lib/freadseek.c: Include freadahead.h.
31390         (freadptrinc): New function, extracted from freadseek.
31391         (freadseek): Use it in a loop. Use freadahead to determine the number
31392         of loop iterations.
31393         * modules/freadseek (Depends-on): Add freadahead.
31394         (configure.ac): Require AC_C_INLINE.
31395
31396 2008-03-30  Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/freadseek.c (freadseek): Don't ignore the return value of
31399         freadptr.
31400
31401 2008-03-29  Eric Blake  <ebb9@byu.net>
31402
31403         Add hex float support.
31404         * modules/strtod (Depends-on): Add c-ctype.
31405         (Link): Mention POW_LIB.
31406         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31407         whitespace between 'e' and exponent.
31408         * tests/test-strtod.c (main): Enable hex float tests.
31409         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31410         now provides.
31411
31412         Document various strtod bugs, with some fixes.
31413         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31414         "-0x", "inf", "nan", and hex constants.
31415         * doc/posix-functions/atof.texi (atof): Likewise.
31416         * modules/stdlib (Makefile.am): Support strtod.
31417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31418         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31419         detect additional strtod bugs.
31420         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31421         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31422         bool where appropriate.  Parse 'inf' and 'nan'.
31423         * tests/test-strtod.c: New file.
31424         * modules/strtod (Depends-on): Add stdbool, stdlib.
31425         (configure.ac): Turn on module indicator.
31426         * modules/strtod-tests: New module.
31427
31428 2008-03-29  Eric Blake  <ebb9@byu.net>
31429
31430         Fix ftell on mingw.
31431         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31432         * modules/ftell-tests (Depends-on): Add binary-io.
31433         * modules/ftello-tests (Depends-on): Likewise.
31434         * tests/test-ftell.c (main): Enhance test to cover behavior after
31435         ungetc.  Enforce binary mode.
31436         * tests/test-ftello.c (main): Likewise.
31437
31438         Pass test-freadseek on cygwin.
31439         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31440         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31441         ungetc buffer.
31442
31443         * tests/test-fflush2.c (main): Fix typo.
31444
31445 2008-03-29  Bruno Haible  <bruno@clisp.org>
31446
31447         * tests/test-fflush2.c (main): Temporarily disable the contents of
31448         this test.
31449         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31450         Reported by Eric Blake.
31451
31452 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31453
31454         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31455         (GC_SHA224_DIGEST_SIZE): Add.
31456
31457         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31458         (gc_hash_digest_length): Likewise.
31459         (gc_hash_buffer): Likewise.
31460
31461 2008-03-25  Bruno Haible  <bruno@clisp.org>
31462
31463         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31464         detail which gettext release to use.
31465         Reported by Simon Josefsson.
31466
31467 2008-03-26  Jim Meyering  <meyering@redhat.com>
31468
31469         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31470         * modules/gnumakefile (clean-GNUmakefile): Also, use
31471         test ... && ... || : syntax rather than if-then ... fi.
31472
31473         gnumakefile: Don't double-quote-expand $(VPATH) value.
31474         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31475
31476 2008-03-24  Eric Blake  <ebb9@byu.net>
31477
31478         Alter GNUmakefile to install into top directory.
31479         * modules/maintainer-makefile: Split, and add dependency...
31480         * modules/gnumakefile: to this new module.
31481         * build-aux/GNUmakefile: Move...
31482         * top/GNUmakefile: ...here.
31483         * build-aux/maint.mk: Move...
31484         * top/maint.mk: ...here.
31485         * MODULES.html.sh (Support for maintaining...): Document new
31486         module.
31487
31488 2008-03-23  Bruno Haible  <bruno@clisp.org>
31489
31490         * gnulib-tool: New options --vc-files, --no-vc-files.
31491         (func_usage): Document them.
31492         (vc_files): New variable.
31493         (func_import): Consider vc_files.
31494         (func_create_testdir): Set vc_files to empty.
31495         Suggested by Jim Meyering and Karl Berry.
31496
31497 2008-03-23  Bruno Haible  <bruno@clisp.org>
31498
31499         Fix regex compilation error on HP-UX 11.
31500         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31501         * modules/regex (Files): Add m4/mbstate_t.m4.
31502         Reported by Ton Voon <ton.voon@altinity.com>.
31503
31504 2008-03-23  Bruno Haible  <bruno@clisp.org>
31505
31506         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31507
31508 2008-03-23  Eric Blake  <ebb9@byu.net>
31509             Bruno Haible  <bruno@clisp.org>
31510
31511         Install files from top/ in the destination directory.
31512         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31513         augmentation also for the files from top/.
31514         (func_import, func_create_testdir): Rewrite file names:
31515         top/filename -> filename.
31516
31517 2008-03-23  Bruno Haible  <bruno@clisp.org>
31518
31519         Tweak "gnulib --version" output.
31520         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31521
31522 2008-03-23  Bruno Haible  <bruno@clisp.org>
31523
31524         Tweak "gnulib --version" output.
31525         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31526         rather than contents of ChangeLog, when possible.
31527
31528 2008-03-21  Eric Blake  <ebb9@byu.net>
31529
31530         More --version tweaks.
31531         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31532         date of last ChangeLog entry.
31533
31534 2008-03-21  Jim Meyering  <meyering@redhat.com>
31535
31536         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31537
31538 2008-03-20  Eric Blake  <ebb9@byu.net>
31539
31540         VPATH fix.
31541         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31542
31543 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31544
31545         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31546         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31547
31548 2008-03-20  Eric Blake  <ebb9@byu.net>
31549
31550         Sync GNUmakefile with coreutils.
31551         * build-aux/GNUmakefile (have-Makefile): Rename...
31552         (_have-Makefile): ...to this, for namespace consideration.
31553         (GNUmakefile.cfg): Include, if present.
31554         (_autoreconf): Define a default.
31555         (_is-dist-target): New rule for rebuilds to pick up intra-release
31556         version.
31557         (maint-cfg.mk): Rename...
31558         (cfg.mk): ...to this.
31559
31560 2008-03-18  Jim Meyering  <meyering@redhat.com>
31561
31562         New script and module: mktempd
31563         * MODULES.html.sh (maint+release support): Add mktempd.
31564         * build-aux/mktempd: New file.
31565         * modules/mktempd: New file.
31566
31567 2008-03-15  Jim Meyering  <meyering@redhat.com>
31568
31569         Undo last change.
31570         * lib/sha1.c, lib/md5.c: 63 != ~63.
31571         Reported by Andreas Schwab.
31572
31573         sha1.c, md5.c: Hoist a redundant expression.
31574         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31575         "ctx->buflen" only once, before calling *_process_block.
31576         * lib/md5.c (md5_process_bytes): Likewise.
31577
31578 2008-03-14  Eric Blake  <ebb9@byu.net>
31579
31580         Bump copyright year in files generated by gnulib-tool.
31581         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31582         gnulib-tool, rather than hard-coding it.
31583
31584         Fix 'gnulib-tool --version' output to work with git.
31585         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31586         (startup): ...here.
31587         (func_version): Use it to invoke git-version-gen, rather than
31588         relying on CVS keyword expansion.  Modernize wording.
31589         (cvsdatestamp, last_checkin_date, version): Kill unused
31590         variables.
31591
31592 2008-03-12  Jim Meyering  <meyering@redhat.com>
31593
31594         Recognize optional cast of the argument to free.
31595         * build-aux/useless-if-before-free: Update regexps.
31596
31597         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31598
31599 2008-03-11  Bruno Haible  <bruno@clisp.org>
31600
31601         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31602         by a single package.
31603         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31604         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31605         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31606         Reported by Sam Steingold <sds@gnu.org>.
31607
31608 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31609
31610         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31611         repositories.
31612
31613 2008-03-11  Bruno Haible  <bruno@clisp.org>
31614
31615         Avoid conflicts between local macro definitions.
31616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31617         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31618
31619 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31620             Bruno Haible  <bruno@clisp.org>
31621
31622         Make va_copy work with some version of xlc on AIX 5.1.
31623         * lib/stdarg.in.h: New file.
31624         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31625         On AIX, use a <stdarg.h> file substitute.
31626         * modules/stdarg (Files): Add lib/stdarg.in.h.
31627         (Depends-on): Add include_next.
31628         (Makefile.am): Build a stdarg.h substitute if requested.
31629         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31630
31631 2008-03-10  Bruno Haible  <bruno@clisp.org>
31632
31633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31634         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31635         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31636
31637 2008-03-10  Bruno Haible  <bruno@clisp.org>
31638
31639         * modules/stdlib (Depends-on): Add include_next, remove
31640         absolute-header.
31641
31642 2008-03-09  Bruno Haible  <bruno@clisp.org>
31643
31644         * lib/freadahead.h (freadahead): Document more precisely.
31645         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31646         the sum of both buffer sizes.
31647         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31648         * NEWS: Document the change.
31649
31650 2008-03-09  Bruno Haible  <bruno@clisp.org>
31651
31652         Extend freadptr to return also the buffer size.
31653         * lib/freadptr.h (freadptr): Add sizep argument.
31654         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31655         (freadptr): Add sizep argument. Determine buffer size like freadahead
31656         does.
31657         * tests/test-freadptr.c: Don't include freadahead.h.
31658         (main): Adapt for new calling convention of freadptr.
31659         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31660         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31661         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31662         tests/test-freadptr2.sh.
31663         (Depends): Remove freadahead.
31664         (TESTS): Add test-freadptr2.sh.
31665         (check_PROGRAMS): Add test-freadptr2.
31666
31667 2008-03-09  Bruno Haible  <bruno@clisp.org>
31668
31669         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31670         Report and solution by Simon Josefsson.
31671
31672 2008-03-06  Bruno Haible  <bruno@clisp.org>
31673
31674         Make fflush after ungetc work on BSD platforms.
31675         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31676         * tests/test-fflush2.c: New file.
31677         * tests/test-fflush2.sh: New file.
31678         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31679         tests/test-fflush2.c.
31680         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31681         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31682
31683 2008-03-06  Eric Blake  <ebb9@byu.net>
31684
31685         Likewise for ftello.
31686         * modules/ftello (Dependencies): Add extensions.
31687         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31688
31689 2008-03-06  Bruno Haible  <bruno@clisp.org>
31690
31691         * modules/fseeko (Dependencies): Add extensions.
31692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31693         Needed on glibc systems.
31694
31695 2008-03-06  Bruno Haible  <bruno@clisp.org>
31696
31697         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31698         email address.
31699         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31700
31701 2008-03-06  Bruno Haible  <bruno@clisp.org>
31702
31703         * users.txt: Add libgnupdf.
31704
31705 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31706
31707         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31708         (Header File Substitutes, Function Substitutes,
31709         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31710         (Build robot for gnulib): Fix typo.
31711
31712 2008-03-06  Bruno Haible  <bruno@clisp.org>
31713
31714         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31715         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31716
31717 2008-03-06  Bruno Haible  <bruno@clisp.org>
31718
31719         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31720         * doc/gnulib.texi: Include it.
31721
31722 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31723
31724         * modules/func (License): Change license to unlimited; there was
31725         no LGPL parts in the module anyway.
31726
31727 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31728
31729         * modules/__func__: Renamed to modules/func.
31730         * modules/__func__-tests: Renamed to modules/func-tests.
31731         * tests/test-__func__.c: Renamed to tests/test-func.c.
31732         * m4/__func__.m4: Renamed to m4/func.m4.
31733         * doc/gnulib.texi (__func__): Section renamed to func.
31734         Suggested by Eric Blake <ebb9@byu.net>.
31735
31736 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31737
31738         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31739         about __func__.  Make example self-contained.  Suggested by Eric
31740         Blake <ebb9@byu.net>.
31741
31742         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31743         Suggested by Eric Blake <ebb9@byu.net>.
31744
31745 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31746
31747         * modules/__func__: New file.
31748         * modules/__func__-tests: New file.
31749         * tests/test-__func__.c: New file.
31750         * m4/__func__.m4: New file.
31751         * doc/gnulib.texi (__func__): Document __func__ module.
31752
31753 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31754
31755         * modules/byteswap (License): Re-license as LGPLv2+.
31756
31757 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31758
31759         * doc/Makefile: Add pdf target.
31760
31761 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31762
31763         * modules/inline (License): Use 'unlimited', since there are only
31764         *.m4 files in this module.
31765
31766 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31767             Bruno Haible  <bruno@clisp.org>
31768
31769         Add support for HP C 7.1 on OpenVMS 8.3.
31770         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31771
31772 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31773
31774         Update VMS specifics.
31775         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31776
31777 2008-03-02  Jim Meyering  <meyering@redhat.com>
31778
31779         Remove the last dependency on the "free" module.
31780         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31781         Reported by Bob Proulx.
31782
31783         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31784
31785         Remove useless "if" tests before free.  Deprecate "free" module.
31786         * doc/posix-functions/free.texi: Mention that this
31787         module is no longer useful.
31788         * modules/free (Notice): Say this module is obsolete.
31789         * modules/readutmp (Depends-on): Remove free.
31790         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31791         * lib/putenv.c (putenv): Likewise.
31792         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31793         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31794         * tests/test-c-strcasestr.c (main): Likewise.
31795         * tests/test-c-strstr.c (main): Likewise.
31796         * tests/test-mbscasestr1.c (main): Likewise.
31797         * tests/test-mbscasestr2.c (main): Likewise.
31798         * tests/test-mbsstr1.c (main): Likewise.
31799         * tests/test-mbsstr2.c (main): Likewise.
31800         * tests/test-memmem.c (main): Likewise.
31801         * tests/test-strcasestr.c (main): Likewise.
31802         * tests/test-striconv.c (main): Likewise.
31803         * tests/test-striconveh.c (main): Likewise.
31804         * tests/test-striconveha.c (main): Likewise.
31805         * tests/test-strstr.c (main): Likewise.
31806
31807         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31808
31809         bootstrap: sync from coreutils again
31810         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31811
31812 2008-03-01  Jim Meyering  <meyering@redhat.com>
31813
31814         bootstrap: sync from coreutils
31815         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31816         also when the target doesn't exist.
31817
31818 2008-03-01  Eric Blake  <ebb9@byu.net>
31819
31820         Fix bugs in last patch.
31821         * lib/memchr2.c (memchr2): Fix typo.
31822         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31823         extension.
31824         Reported by Bruce Korb.
31825
31826         New module 'memchr2'.
31827         * modules/memchr2: New file.
31828         * modules/memchr2-tests: Likewise.
31829         * lib/memchr2.h: Likewise.
31830         * lib/memchr2.c: Likewise, based on memchr.c.
31831         * tests/test-memchr2.c: New test.
31832         * MODULES.html.sh (String handling): Add memchr2.
31833
31834 2008-02-29  Bruno Haible  <bruno@clisp.org>
31835
31836         * modules/freadseek-tests: New file.
31837         * tests/test-freadseek.sh: New file.
31838         * tests/test-freadseek.c: New file.
31839
31840         New module 'freadseek'.
31841         * modules/freadseek: New file.
31842         * lib/freadseek.h: New file.
31843         * lib/freadseek.c: New file.
31844         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31845
31846 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31847
31848         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31849         wydawca.
31850
31851         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31852         program_invocation_name and program_invocation_short_name are
31853         present.
31854
31855 2008-02-28  Bruno Haible  <bruno@clisp.org>
31856
31857         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31858         * tests/test-freadptr.sh: Also test non-seekable stdin.
31859
31860 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31861
31862         * build-aux/bootstrap (source_base, m4_base)
31863         (doc_base, tests_base): New variables.
31864         (gnulib_tool_options): Do not hardcode base directories, use
31865         the above variables instead.
31866
31867 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31868
31869         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31870
31871 2008-02-28  Bruno Haible  <bruno@clisp.org>
31872
31873         * modules/freadptr-tests: New file.
31874         * tests/test-freadptr.sh: New file.
31875         * tests/test-freadptr.c: New file.
31876
31877         New module 'freadptr'.
31878         * modules/freadptr: New file.
31879         * lib/freadptr.h: New file.
31880         * lib/freadptr.c: New file.
31881         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31882
31883 2008-02-26  Karl Berry  <karl@freefriends.org>
31884
31885         Sync from Libtool:
31886         * libltdl/argz.c (argz_add, argz_count): New functions.
31887         * libltdl/argz.in.h: Declare them.
31888         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31889
31890 2008-02-22  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31893         is a pointer type.  Needed for HP-UX 10.
31894         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31895         * doc/posix-functions/gmtime_r.texi: Likewise.
31896         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31897
31898 2008-02-24  Bruno Haible  <bruno@clisp.org>
31899
31900         * modules/environ-tests: New file.
31901         * tests/test-environ.c: New file.
31902
31903         New module 'environ'.
31904         * modules/environ: New file.
31905         * lib/unistd.in.h (environ): New declaration.
31906         * m4/environ.m4: New file.
31907         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31908         after use.
31909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31910         HAVE_DECL_ENVIRON.
31911         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31912         HAVE_DECL_ENVIRON.
31913         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31914         wrong claim that 'environ' is missing on some systems.
31915         * modules/execute (Depends-on): Add environ.
31916         * lib/execute.c (environ): Remove fallback declaration.
31917         * modules/pipe (Depends-on): Add environ.
31918         * lib/pipe.c (environ): Remove fallback declaration.
31919         * modules/setenv (Depends-on): Add environ.
31920         * lib/setenv.c (environ): Remove fallback declaration.
31921         * modules/unsetenv (Depends-on): Add environ.
31922         * lib/unsetenv.c (environ): Remove fallback declaration.
31923         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31924         m4/environ.m4.
31925         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31926         (gl_PREREQ_UNSETENV): Likewise.
31927
31928 2008-02-24  Bruno Haible  <bruno@clisp.org>
31929
31930         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31931
31932 2008-02-20  Bob Proulx  <bob@proulx.com>
31933
31934         Enable use of older two part flavor 'git describe'.
31935         * build-aux/git-version-gen: If using the older two part flavor of
31936         git version then recreate the third part now present in the
31937         newer three part flavor of git describe.
31938
31939 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31940
31941         * lib/fts.c (fts_build): Typo correction to comment.
31942
31943 2008-02-17  Bruno Haible  <bruno@clisp.org>
31944
31945         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31946         generating no-op conflicts.
31947
31948 2008-02-17  Bruno Haible  <bruno@clisp.org>
31949
31950         Speed up by 10%.
31951         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31952         result_entries, rather than an index-based loop.
31953
31954 2008-02-17  Bruno Haible  <bruno@clisp.org>
31955
31956         Speed up by 25%.
31957         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31958         'hashcode_cached'.
31959         (entry_create): New function.
31960         (entry_hashcode): Use the cached hashcode if possible.
31961         (read_changelog_file, try_split_merged_entry): Use entry_create.
31962
31963 2008-02-17  Bruno Haible  <bruno@clisp.org>
31964
31965         Speed up from O(n^2) to O(n) for long ChangeLog files.
31966         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31967         (read_changelog_file): Change implementation of entries_reversed list
31968         to rbtreehash.
31969         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31970
31971 2008-02-17  Bruno Haible  <bruno@clisp.org>
31972
31973         New option --split-merged-entry.
31974         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31975         (find_paragraph_end, try_split_merged_entry): New functions.
31976         (long_options): Add option --split-merged-entry.
31977         (usage): Document option --split-merged-entry.
31978         (main): Implement option --split-merged-entry.
31979         Reported by Eric Blake.
31980
31981 2008-02-17  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/git-merge-changelog.c: Include c-strstr.h.
31984         (main): Support the "git pull --rebase" situation.
31985         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31986         Reported by Eric Blake.
31987
31988 2008-02-16  Eric Blake  <ebb9@byu.net>
31989
31990         Avoid doubling \ in common case of "c-maybe" quoting style.
31991         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31992         eliding outer quotes.
31993         * lib/quotearg.h: Document this.
31994         * tests/test-quotearg.c (result_strings, inputs, results_g)
31995         (flag_results, locale_results): Test it by adding a new string to
31996         each test group.
31997         (compare_strings): Test new string.
31998
31999 2008-02-13  Eric Blake  <ebb9@byu.net>
32000
32001         Avoid trigraph quoting in default output.
32002         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32003         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32004         unless explicitly requested.
32005         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32006
32007 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32008
32009         Don't rely on signed integer overflowing to negative value.
32010         * lib/getugroups.c (getugroups): Include <limits.h>.
32011         Instead, compare against INT_MAX, and increment only if the test passes.
32012
32013 2008-02-13  Jim Meyering  <meyering@redhat.com>
32014         and Eric Blake  <ebb9@byu.net>
32015
32016         Avoid shadowing warning and compile errors on Linux.
32017         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32018         forwarding macros on Linux.
32019         (dcgettext): Define a stub, for Linux.
32020         (results_g, main): Avoid warnings.
32021
32022 2008-02-12  Eric Blake  <ebb9@byu.net>
32023
32024         Silence warning in last patch.
32025         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32026
32027         Quotearg part 4: add tests, fix c-maybe colon quoting.
32028         * lib/quotearg.h: Improve documentation.
32029         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32030         escapes when adding outer quotes.  When quoting trigraphs, use
32031         valid C notation.  When quoting NUL, omit extra characters if next
32032         character is not digit.  Alter prototype.
32033         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32034         callers.
32035         * modules/quotearg-tests: New module.
32036         * tests/test-quotearg.c: New test.
32037
32038 2008-02-07  Eric Blake  <ebb9@byu.net>
32039
32040         Quotearg part 3: add flag to control outer quote elision.
32041         * lib/quotearg.h (c_maybe_quoting_style): New style.
32042         (enum quoting_flags): Better documentation of flags.
32043         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32044         c-maybe style.
32045         (quotearg_buffer_restyled): Handle new flag to elide outer
32046         quotes.
32047
32048         Quotearg part 2: add flag that can control NUL elision.
32049         * lib/quotearg.h (set_quoting_flags): New prototype.
32050         * lib/quotearg.c (struct quoting_options): Add flag field.
32051         (set_quoting_flags): New function.
32052         (quotearg_buffer_restyled): Add flags parameter.
32053         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32054         (quotearg_n_options): Set the flag, since length cannot be
32055         returned.
32056         (quoting_options_from_style): Default flags correctly.
32057
32058         Quotearg part 1: more wrappers, restore quotearg_char state.
32059         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32060         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32061         (quotearg_colon_mem): New wrappers.
32062         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32063         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32064         functions.
32065         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32066         (quotearg_colon_mem): New functions.
32067
32068 2008-02-11  Bruno Haible  <bruno@clisp.org>
32069
32070         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32071         library in the current directory: it does not work with parallel make.
32072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32073
32074 2008-02-11  Bruno Haible  <bruno@clisp.org>
32075
32076         * .gitattributes: New file.
32077
32078 2008-02-11  Jim Meyering  <meyering@redhat.com>
32079
32080         useless-if-before-free: Fix reversed exit values.
32081         * build-aux/useless-if-before-free: Use correct values
32082         for EXIT_MATCH and EXIT_NO_MATCH.
32083
32084         * build-aux/useless-if-before-free: Close stdout carefully.
32085
32086 2008-02-10  Bruno Haible  <bruno@clisp.org>
32087
32088         New module 'git-merge-changelog'.
32089         * modules/git-merge-changelog: New file.
32090         * lib/git-merge-changelog.c: New file.
32091
32092 2008-02-10  Jim Meyering  <meyering@redhat.com>
32093
32094         useless-if-before-free: New option: --list (-l).
32095
32096         useless-if-before-free: Don't exit immediately upon open failure.
32097         * build-aux/useless-if-before-free: Exit 2 for errors.
32098         Upon failure to open a file, don't exit immediately.
32099         Rather, just warn and continue with any remaining files.
32100
32101 2008-02-10  Bruno Haible  <bruno@clisp.org>
32102
32103         New abstract list operation 'node_set_value'.
32104         * lib/gl_list.h (gl_list_node_set_value): New function.
32105         (struct gl_list_implementation): New field node_set_value.
32106         * lib/gl_list.c (gl_list_node_set_value): New function.
32107         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32108         (gl_array_list_implementation): Update.
32109         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32110         (gl_carray_list_implementation): Update.
32111         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32112         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32113         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32114         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32115         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32116         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32117         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32118         Update.
32119         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32120         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32121         (gl_sublist_list_implementation): Update.
32122
32123 2008-02-10  Bruno Haible  <bruno@clisp.org>
32124
32125         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32126         Needed when ELEMENT is #defined to 'some_type *'.
32127
32128 2008-02-10  Jim Meyering  <meyering@redhat.com>
32129
32130         New script and module: useless-if-before-free
32131         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32132         * build-aux/useless-if-before-free: New file.
32133         * modules/useless-if-before-free: New file.
32134
32135         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32136
32137         xstrtol_error: Fix typo.
32138         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32139         s/exit_failure/exit_status/.
32140
32141 2008-02-09  Jim Meyering  <meyering@redhat.com>
32142
32143         New script and module: gitlog-to-changelog
32144         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32145         * modules/gitlog-to-changelog: New file.
32146         * build-aux/gitlog-to-changelog: New file.
32147
32148 2008-02-08  Jim Meyering  <meyering@redhat.com>
32149
32150         Avoid two "parameter unused" warnings.
32151         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32152         Mark "st" as used.
32153
32154         Use "git COMMAND", not "git-COMMAND".
32155         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32156         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32157         * build-aux/git-version-gen: Use "git status", not "git-status".
32158
32159 2008-02-07  Bruno Haible  <bruno@clisp.org>
32160
32161         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32162         Avoids a crash on Windows Vista.
32163         Reported by Adam Strzelecki <ono@java.pl> via
32164         Simon Josefsson <simon@josefsson.org>.
32165
32166 2008-02-06  Bruno Haible  <bruno@clisp.org>
32167
32168         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32169         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32170         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32172         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32174         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32175         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32183         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32184         left-adjust flag.
32185         * tests/test-snprintf-posix.h (test_function): Likewise.
32186         * tests/test-sprintf-posix.h (test_function): Likewise.
32187         * tests/test-vasprintf-posix.c (test_function): Likewise.
32188         * doc/posix-functions/fprintf.texi: Update.
32189         * doc/posix-functions/printf.texi: Update.
32190         * doc/posix-functions/snprintf.texi: Update.
32191         * doc/posix-functions/sprintf.texi: Update.
32192         * doc/posix-functions/vfprintf.texi: Update.
32193         * doc/posix-functions/vprintf.texi: Update.
32194         * doc/posix-functions/vsnprintf.texi: Update.
32195         * doc/posix-functions/vsprintf.texi: Update.
32196         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32197
32198 2008-02-06  Bruno Haible  <bruno@clisp.org>
32199
32200         Fix bug introduced on 2008-01-26.
32201         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32202
32203 2008-02-06  Bruno Haible  <bruno@clisp.org>
32204
32205         Fix bug introduced on 2007-06-10.
32206         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32207         !NEED_PRINTF_FLAG_ZERO.
32208
32209 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32210
32211         getloadavg: use libperfstat on AIX5
32212         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32213
32214 2008-02-03  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/diffseq.h: Add comments about required #includes.
32217         Reported by Michael Biggs <gnulib@doubleplum.net>.
32218
32219 2008-02-01  Bruno Haible  <bruno@clisp.org>
32220
32221         * users.txt: Add gnuit.
32222
32223 2008-01-31  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/md4.c (set_uint32): Mark as inline.
32226         * lib/md5.c (set_uint32): Likewise.
32227         * lib/sha1.c (set_uint32): Likewise.
32228         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32229         * m4/md5.m4 (gl_MD5): Likewise.
32230         * m4/sha1.m4 (gl_SHA1): Likewise.
32231
32232 2008-01-31  Jim Meyering  <meyering@redhat.com>
32233
32234         Use "sizeof VAR", rather than a literal "4".
32235         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32236         * lib/md4.c (md4_read_ctx): Likewise.
32237         * lib/sha1.c (sha1_read_ctx): Likewise.
32238
32239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32240
32241         * tests/test-sha1.c: New file, based on test-md5.c.
32242
32243         * modules/crypto/sha1-tests: New file.
32244
32245 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32246
32247         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32248
32249 2008-01-31  Jim Meyering  <meyering@redhat.com>
32250
32251         Prefer "sizeof v" over the equivalent "4".
32252         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32253         * lib/md5.c (set_uint32): Likewise.
32254         * lib/sha1.c (set_uint32): Likewise.
32255
32256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32257
32258         * lib/sha1.c (set_uint32): Mark function as static.
32259
32260 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32261
32262         md2: clarify comments to say that alignment is not required.
32263         * lib/md2.h: Remove warning about alignment in comment.
32264         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32265         never been required.
32266
32267 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32268
32269         md4: adapt alignment constraint fix from sha1.
32270         * lib/md4.c (set_uint32): New function, from sha1.c
32271         (md4_read_ctx): Use it.
32272         (md4_finish_ctx): Doc fix.
32273         * lib/md4.h: Doc fix.
32274
32275 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32276
32277         md5: adapt alignment constraint fix from sha1.
32278         * lib/md5.c (set_uint32): New function, from sha1.c
32279         (md5_read_ctx): Use it.
32280         (md5_finish_ctx): Doc fix.
32281         * lib/md5.h: Doc fix.
32282
32283 2008-01-30  Peter Palfrader  <weasel@debian.org>
32284
32285         sha1: remove the result buffer alignment constraint
32286         * lib/sha1.c (set_uint32): New function.
32287         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32288         constraint.
32289         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32290         * lib/sha1.h: Likewise.
32291
32292 2008-01-30  Andreas Schwab  <schwab@suse.de>
32293             Bruno Haible  <bruno@clisp.org>
32294
32295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32296         correct definition of LDBL_MIN_EXP.
32297
32298 2008-01-30  Karl Berry  <karl@gnu.org>
32299
32300         * config/srclist-update: try to preserve x bit on updates.
32301         * config/srclistvars.sh: update for karl.
32302
32303 2008-01-29  Jim Meyering  <meyering@redhat.com>
32304
32305         vasnprintf.c: Avoid warning about unused label
32306         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32307         "overflow" label definition and associated code with the
32308         same cpp condition that guards the sole use of that label.
32309
32310 2008-01-26  Bruno Haible  <bruno@clisp.org>
32311
32312         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32313         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32314         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32315         * lib/isnanl-nolibm.h (isnanl): Likewise.
32316         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32317
32318 2008-01-26  Bruno Haible  <bruno@clisp.org>
32319
32320         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32321         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32322
32323 2008-01-26  Bruno Haible  <bruno@clisp.org>
32324
32325         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32326         GCC >= 4.0 built-in.
32327         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32328
32329 2008-01-26  Bruno Haible  <bruno@clisp.org>
32330
32331         Rename isnan, applicable to 'double' only, to isnand.
32332         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32333         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32334         (configure.ac): Update.
32335         (Include): Replace "isnan.h" with "isnand.h".
32336         * m4/isnand.m4: Renamed from m4/isnan.m4.
32337         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32338         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32339         instead of isnan.c.
32340         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32341         instead of HAVE_ISNAN_IN_LIBC.
32342         (isnand): Renamed from isnan.
32343         * lib/isnand.c: New file.
32344         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32345         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32346         (Makefile.am): Update.
32347         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32348         Include isnand.h instead of isnan.h.
32349         (main): Test isnand instead of isnan.
32350         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32351         isnan-nolibm.
32352         * modules/frexp (Depends-on): Likewise.
32353         * modules/frexp-tests (Depends-on): Likewise.
32354         * modules/frexp-nolibm (Depends-on): Likewise.
32355         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32356         * modules/isfinite (Depends-on): Likewise.
32357         * modules/round-tests (Depends-on): Likewise.
32358         * modules/signbit (Depends-on): Likewise.
32359         * modules/signbit-tests (Depends-on): Likewise.
32360         * modules/snprintf-posix (Depends-on): Likewise.
32361         * modules/sprintf-posix (Depends-on): Likewise.
32362         * modules/trunc-tests (Depends-on): Likewise.
32363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32365         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32366         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32367         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32368         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32369         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32370         * modules/vasnprintf-posix (Depends-on): Likewise.
32371         * modules/vasprintf-posix (Depends-on): Likewise.
32372         * modules/vfprintf-posix (Depends-on): Likewise.
32373         * modules/vsnprintf-posix (Depends-on): Likewise.
32374         * modules/vsprintf-posix (Depends-on): Likewise.
32375         * lib/frexp.c: Include isnand.h instead of isnan.h.
32376         (ISNAN): Set to isnand instead of isnan.
32377         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32378         (gl_isfinited): Use isnand instead of isnan.
32379         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32380         (gl_signbitd): Use isnand instead of isnan.
32381         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32382         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32383         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32384         (main): Use isnand instead of isnan.
32385         * tests/test-round1.c: Include isnand.h.
32386         (main): Use isnand instead of isnan.
32387         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32388         (ISNAN): Set to isnand instead of isnan.
32389         * tests/test-trunc1.c: Include isnand.h.
32390         (main): Use isnand instead of isnan.
32391         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32392         (equal): Use isnand instead of isnan.
32393         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32394         isnand-nolibm.
32395         * NEWS: Mention the change.
32396
32397 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32398             Bruno Haible  <bruno@clisp.org>
32399
32400         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32401         the GCC builtins for signbits are present and set
32402         REPLACE_SIGNBIT_USING_GCC if so.
32403         * lib/math.in.h (signbit): Define using GCC builtins if
32404         REPLACE_SIGNBIT_USING_GCC is set.
32405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32406         REPLACE_SIGNBIT_USING_GCC.
32407         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32408
32409 2008-01-25  Jim Meyering  <meyering@redhat.com>
32410
32411         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32412         * lib/poll.c: Include <config.h>, not "config.h".
32413         * tests/test-getaddrinfo.c: Likewise.
32414
32415 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32416
32417         * modules/sockets-tests: New file.
32418
32419 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32420
32421         * modules/sockets: New module, can be used to call WSA_Startup and
32422         WSA_Cleanup when needed.
32423
32424         * lib/sockets.h, lib/sockets.c: New files.
32425
32426         * m4/sockets.m4: New file.
32427
32428         * tests/test-sockets.c: New file.
32429
32430 2008-01-19  Bruno Haible  <bruno@clisp.org>
32431
32432         * doc/posix-headers: Renamed from doc/headers.
32433         * doc/posix-functions: Renamed from doc/functions.
32434         * doc/gnulib.texi: Update.
32435
32436 2008-01-19  Bruno Haible  <bruno@clisp.org>
32437
32438         * doc/glibc-functions/strcasestr.texi: Include contents of
32439         doc/functions/strcasestr.texi, fixing the list of platforms.
32440         * doc/functions/strcasestr.texi: Remove file.
32441
32442 2008-01-19  Bruno Haible  <bruno@clisp.org>
32443
32444         * doc/glibc-functions/memmem.texi: Include contents of
32445         doc/functions/memmem.texi.
32446         * doc/functions/memmem.texi: Remove file.
32447
32448 2008-01-18  Bruno Haible  <bruno@clisp.org>
32449
32450         * doc/glibc-functions/*.texi: New files.
32451         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32452         to use the new files.
32453
32454 2008-01-17  Bruno Haible  <bruno@clisp.org>
32455
32456         * tests/test-gethostname.c (main): Fix printf statement.
32457
32458 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32459
32460         * modules/gethostname-tests: New file.
32461
32462         * tests/test-gethostname.c: New file.
32463
32464 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32465
32466         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32467         used by the UNAME case.  Reported by Bruno Haible
32468         <bruno@clisp.org>.
32469
32470 2008-01-17  Eric Blake  <ebb9@byu.net>
32471
32472         Convert c-strcasestr to be more efficient.
32473         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32474         (Depends-on): Add c-strcase, remove malloca, strnlen.
32475         * tests/test-c-strcasestr.c (main): Enhance test.
32476         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32477
32478 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32479
32480         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32481         Use it in creating po/Makevars.
32482
32483 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32484
32485         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32486         Applications that requires it should initialize libgcrypt
32487         manually.
32488
32489 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32490
32491         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32492
32493 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32494
32495         Fix problem with getdate on mingw32 reported by Simon Josefsson
32496         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32497         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32498         tzname", when deciding whether to declare tzname.
32499         * lib/strftime.c (tzname): Likewise.
32500
32501 2008-01-15  Bruno Haible  <bruno@clisp.org>
32502
32503         Work around a MacOS X 10.5 bug in frexpl().
32504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32505         * doc/functions/frexpl.texi: Document the bug.
32506         Reported by Elias Pipping <pipping@gentoo.org>.
32507
32508 2008-01-14  Eric Blake  <ebb9@byu.net>
32509
32510         Touch up previous patch.
32511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32512         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32513
32514         Convert strcasestr module to use Two-Way algorithm.
32515         * modules/strcasestr-simple: New module, based on the old
32516         strcasestr, but with Two-Way rather than KMP.
32517         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32518         * lib/string.in.h (rpl_strcasestr): Declare.
32519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32520         performance.
32521         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32522         * modules/string (Makefile.am): Support strcasestr.
32523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32524         * modules/strcasestr-tests (Depends-on): Check for alarm.
32525         * tests/test-strcasestr.c: Augment test.
32526         * lib/str-two-way.h: Clean up stray macro.
32527         * NEWS: Document new module.
32528         * MODULES.html.sh (string handling): Likewise.
32529         * doc/functions/strcasestr.texi: New file.
32530         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32531         here, since it is not a POSIX function.
32532
32533 2008-01-14  Colin Watson  <cjwatson@debian.org>
32534             Bruno Haible  <bruno@clisp.org>
32535
32536         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32537         works fine; if not, set REPLACE_STRSIGNAL.
32538         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32540         REPLACE_STRSIGNAL.
32541         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32542         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32543         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32544
32545 2008-01-14  Bruno Haible  <bruno@clisp.org>
32546
32547         * modules/strsignal (Include): Change to <string.h>.
32548
32549 2008-01-14  Colin Watson  <cjwatson@debian.org>
32550
32551         * modules/argp (Notice): Add a notice recommending to change
32552         XGETTEXT_OPTIONS.
32553         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32554
32555 2008-01-13  Colin Watson  <cjwatson@debian.org>
32556
32557         * modules/strsignal-tests: New file.
32558         * tests/test-strsignal.c: New file.
32559
32560         * lib/strsignal.c: New file, from glibc with modifications.
32561         * lib/siglist.h: New file, from glibc with modifications.
32562         * lib/string.in.h (strsignal): New declaration.
32563         * m4/strsignal.m4: New file.
32564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32565         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32566         * modules/strsignal: New file.
32567         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32568         HAVE_DECL_STRSIGNAL.
32569
32570 2008-01-13  Bruno Haible  <bruno@clisp.org>
32571
32572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32573         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32576
32577 2008-01-13  Bruno Haible  <bruno@clisp.org>
32578
32579         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32580         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32581         * lib/argp.h (__attribute__): Likewise.
32582         * lib/c-stack.c (__attribute__): Likewise.
32583         * lib/error.h (__attribute__): Likewise.
32584         * lib/fts.c (__attribute__): Likewise.
32585         * lib/openat.h (__attribute__): Likewise.
32586         * lib/stdio.in.h (__attribute__): Likewise.
32587         * lib/string.in.h (__attribute__): Likewise.
32588         * lib/utimens.c (__attribute__): Likewise.
32589         * lib/vasnprintf.h (__attribute__): Likewise.
32590         * lib/xalloc.h (__attribute__): Likewise.
32591         * lib/xprintf.h (__attribute__): Likewise.
32592         * lib/xstrtol.h (__attribute__): Likewise.
32593         * lib/xvasprintf.h (__attribute__): Likewise.
32594
32595 2008-01-12  Bruno Haible  <bruno@clisp.org>
32596
32597         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32598         * doc/glibc-headers/a.out.texi: New file.
32599         * doc/glibc-headers/aliases.texi: New file.
32600         * doc/glibc-headers/alloca.texi: New file.
32601         * doc/glibc-headers/ar.texi: New file.
32602         * doc/glibc-headers/argp.texi: New file.
32603         * doc/glibc-headers/argz.texi: New file.
32604         * doc/glibc-headers/byteswap.texi: New file.
32605         * doc/glibc-headers/crypt.texi: New file.
32606         * doc/glibc-headers/endian.texi: New file.
32607         * doc/glibc-headers/envz.texi: New file.
32608         * doc/glibc-headers/err.texi: New file.
32609         * doc/glibc-headers/error.texi: New file.
32610         * doc/glibc-headers/execinfo.texi: New file.
32611         * doc/glibc-headers/fpu_control.texi: New file.
32612         * doc/glibc-headers/fstab.texi: New file.
32613         * doc/glibc-headers/fts.texi: New file.
32614         * doc/glibc-headers/getopt.texi: New file.
32615         * doc/glibc-headers/ieee754.texi: New file.
32616         * doc/glibc-headers/ifaddrs.texi: New file.
32617         * doc/glibc-headers/libintl.texi: New file.
32618         * doc/glibc-headers/mcheck.texi: New file.
32619         * doc/glibc-headers/mntent.texi: New file.
32620         * doc/glibc-headers/obstack.texi: New file.
32621         * doc/glibc-headers/paths.texi: New file.
32622         * doc/glibc-headers/printf.texi: New file.
32623         * doc/glibc-headers/pty.texi: New file.
32624         * doc/glibc-headers/resolv.texi: New file.
32625         * doc/glibc-headers/shadow.texi: New file.
32626         * doc/glibc-headers/sysexits.texi: New file.
32627         * doc/glibc-headers/ttyent.texi: New file.
32628
32629 2008-01-12  Jim Meyering  <meyering@redhat.com>
32630
32631         announce-gen: emit Gnulib's git-based version string.
32632         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32633         New option --gnulib-version=V, where V is expected to be
32634         the output of running git describe in the gnulib directory.
32635         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32636         not useful, and plan to stop publishing an xdelta file with each
32637         coreutils release.
32638
32639         * build-aux/announce-gen: Also check for lzma-compressed files.
32640
32641 2008-01-11  Bruno Haible  <bruno@clisp.org>
32642
32643         * tests/test-memmem.c (main): Increase maximum allowed time.
32644         * tests/test-strstr.c (main): Likewise.
32645
32646 2008-01-11  Bruno Haible  <bruno@clisp.org>
32647
32648         * doc/functions/memmem.texi: Add more precisions about platforms.
32649         * doc/functions/strstr.texi: Likewise.
32650
32651 2008-01-10  Eric Blake  <ebb9@byu.net>
32652
32653         * m4/strstr.m4: Delete cruft from copy-n-paste.
32654         Reported by Bruno Haible.
32655
32656 2008-01-10  Bruno Haible  <bruno@clisp.org>
32657
32658         Make c-strstr rely on strstr.
32659         * lib/c-strstr.c: Don't include str-kmp.h.
32660         (c_strstr): Define in terms of strstr.
32661         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32662         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32663
32664 2008-01-10  Bruno Haible  <bruno@clisp.org>
32665
32666         * doc/gnulib.texi (String Functions in C Locale): New section.
32667         * doc/c-ctype.texi: New file.
32668         * doc/c-strcase.texi: New file.
32669         * doc/c-strcaseeq.texi: New file.
32670         * doc/c-strcasestr.texi: New file.
32671         * doc/c-strstr.texi: New file.
32672         * doc/c-strtod.texi: New file.
32673         * doc/c-strtold.texi: New file.
32674
32675 2008-01-10  Eric Blake  <ebb9@byu.net>
32676
32677         * lib/relocatable.h: Fix a comment.
32678
32679 2008-01-10  Eric Blake  <ebb9@byu.net>
32680
32681         Share two-way algorithm.
32682         * lib/str-two-way.h: New file, merged from...
32683         * lib/memmem.c: ...here...
32684         * lib/strstr.c: ...and here.
32685         * modules/memmem (Files): Use it.
32686         * modules/strstr (Files): Likewise.
32687
32688         Avoid quadratic strstr implementations.
32689         * lib/strstr.c: New file.
32690         * m4/strstr.m4: Likewise.
32691         * modules/strstr: Likewise.
32692         * modules/strstr-tests: Likewise.
32693         * tests/test-strstr.c: Likewise.
32694         * lib/string.in.h (rpl_strstr): Declare.
32695         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32697         * modules/string (Makefile.am): Likewise.
32698         * MODULES.html.sh (string handling): Mention new module.
32699         * doc/functions/strstr.texi (strstr): Document the bug.
32700
32701 2008-01-10  Bruno Haible  <bruno@clisp.org>
32702
32703         * lib/relocatable.h (relocate): State whether result is freshly
32704         allocated or not.
32705         * lib/relocatable.c (relocate): Return a freshly allocated string
32706         instead of a pointer to a privately held string.
32707         Reported by Sylvain Beucler <beuc@gnu.org>.
32708
32709 2008-01-10  Colin Watson  <cjwatson@debian.org>
32710
32711         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32712         s/S_ISNLK/S_ISLNK/.
32713
32714 2008-01-09  Bruno Haible  <bruno@clisp.org>
32715
32716         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32717         and other files.
32718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32719         if it's only a guess.
32720         * modules/memmem: Simplify by depending on memmem-simple.
32721
32722 2008-01-09  Bruno Haible  <bruno@clisp.org>
32723
32724         Work around OpenBSD 4.0 tdelete() bug.
32725         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32726         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32727         macros and don't redefine the enum values.
32728         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32729         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32730         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32731
32732 2008-01-09  Bruno Haible  <bruno@clisp.org>
32733
32734         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32735         (main): Don't perform the tests if setlocale did not install a UTF-8
32736         locale. Needed on OpenBSD 4.0.
32737         * modules/wcwidth-tests (Depends-on): Add localcharset.
32738
32739 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32740
32741         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32742         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32743         * NEWS: announce this.
32744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32745
32746 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32747         and Eric Blake  <ebb9@byu.net>
32748
32749         Add memmem-simple module.
32750         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32751         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32752         * modules/memmem-simple: New file.
32753         * modules/memmem (Description): Tweak.
32754         * MODULES.html.sh (string handling): Mention new module.
32755         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32756         addressed by memmem-simple.
32757         * NEWS: Document the difference.
32758
32759 2008-01-09  Eric Blake  <ebb9@byu.net>
32760
32761         Give gcc some memmem optimization hints.
32762         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32763         (strcasestr): Declare as pure.
32764         * modules/memmem (Maintainer): Claim my implementation.
32765
32766 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32767
32768         Support AIX 6.1 and higher.
32769         * build-aux/config.libpath: Likewise.
32770         * build-aux/config.rpath: Likewise.
32771
32772 2008-01-08  Jim Meyering  <meyering@redhat.com>
32773             Bruno Haible  <bruno@clisp.org>
32774
32775         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32776         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32777         Reported by Peter Fales in
32778         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32779
32780 2008-01-08  Bruno Haible  <bruno@clisp.org>
32781
32782         * modules/unictype/category-of (Depends-on): Add
32783         unictype/category-none.
32784         * modules/unictype/category-and-tests (Depends-on): Add
32785         unictype/category-{L,N,Lu,Nd}.
32786         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32787         * modules/unictype/category-or-tests (Depends-on): Add
32788         unictype/category-{L,N}.
32789         * modules/unictype/category-name-tests (Depends-on): Add
32790         unictype/category-{Z,Nl}.
32791         Reported by Simon Josefsson.
32792
32793 2008-01-08  Bruno Haible  <bruno@clisp.org>
32794
32795         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32796         convention better.
32797         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32798         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32799         Reported by Peter Miller <millerp@canb.auug.org.au>.
32800
32801 2008-01-08  Eric Blake  <ebb9@byu.net>
32802
32803         Rewrite memmem to guarantee linear complexity without malloc.
32804         * lib/memmem.c (memmem): Use Two-Way rather than
32805         Knuth-Morris-Pratt, to allow O(1) space usage.
32806         (critical_factorization, two_way_short_needle)
32807         (two_way_long_needle): New functions.
32808         (knuth_morris_pratt): Delete.
32809         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32810         Add stdint.
32811         * tests/test-memmem.c (main): Add tests for periodic needle and
32812         sublinear performance.
32813         * doc/functions/memmem.texi (memmem): Document other deficiencies
32814         in cygwin and older glibc.
32815
32816 2008-01-08  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32819         augmentation.
32820
32821 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32822
32823         Add a configure time option: --disable-acl.
32824         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32825         AC_ARG_ENABLE(acl).
32826
32827 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32828
32829         * tests/test-localename.c: Don't include obsolete "setenv.h".
32830
32831         * modules/localename-tests (Depends-on): Need unsetenv.
32832
32833 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32834
32835         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32836
32837 2008-01-06  Colin Watson  <cjwatson@debian.org>
32838
32839         * users.txt: Add man-db.
32840
32841 2008-01-07  Bruno Haible  <bruno@clisp.org>
32842
32843         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32844         previous section name.
32845
32846 2008-01-07  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/progname.c (set_program_name): Don't strip off a leading
32849         "lt-" prefix outside a .libs directory.
32850         Suggested by Paul Eggert.
32851
32852 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32853             Bruno Haible  <bruno@clisp.org>
32854
32855         Improve memory cleanup in 'relocatable' module.
32856         * lib/relocatable.h (compute_curr_prefix): Change return type to
32857         'char *'.
32858         * lib/relocatable.c (compute_curr_prefix): Change return type to
32859         'char *'. Free curr_installdir after use.
32860         (relocate): Free curr_prefix_better after use.
32861         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32862
32863 2008-01-01  Bruno Haible  <bruno@clisp.org>
32864
32865         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32866         failure on older glibc systems.
32867         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32868
32869 2008-01-05  Eric Blake  <ebb9@byu.net>
32870
32871         Avoid quadratic system memmem.
32872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32873         Reported by Ralf Wildenhues.
32874
32875         Fix memmem test for mingw.
32876         * modules/memmem-tests (configure.ac): Check for alarm.
32877         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32878         it.
32879         * doc/functions/memmem.texi: New file.
32880         * doc/gnulib.texi (Function Substitutes): Add memmem.
32881         Reported by Bruno Haible.
32882
32883 2008-01-04  Bruno Haible  <bruno@clisp.org>
32884
32885         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32886         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32887         gl_HEADER_STRING_H_DEFAULTS.
32888
32889 2008-01-04  Eric Blake  <ebb9@byu.net>
32890
32891         Shorten duration of memmem test.
32892         * tests/test-memmem.c (main): Use alarm to declare failure if test
32893         is taking too long.
32894         Reported by Ralf Wildenhues.
32895
32896 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32897
32898         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32899         string, needed by strerror.
32900
32901 2008-01-03  Colin Watson  <cjwatson@debian.org>
32902             Bruno Haible  <bruno@clisp.org>
32903
32904         * doc/gnulib-tool.texi (Localization): New section.
32905
32906 2008-01-02  Bruno Haible  <bruno@clisp.org>
32907
32908         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32909         variables to 'unsigned char *' type.
32910         Reported by Paul Eggert.
32911
32912 2008-01-02  Jim Meyering  <jim@meyering.net>
32913
32914         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32915
32916 2007-12-31  Jim Meyering  <jim@meyering.net>
32917
32918         Avoid use of private FTS type name.
32919         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32920
32921 2007-12-30  Karl Berry  <karl@gnu.org>
32922
32923         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32924         work around defect in Texinfo and/or the standalone Info browser.
32925
32926 2007-12-30  Bruno Haible  <bruno@clisp.org>
32927
32928         Unify 5 copies of the KMP code.
32929         * lib/str-kmp.h: New file.
32930         * lib/c-strcasestr.c: Include str-kmp.h.
32931         (knuth_morris_pratt): Remove function.
32932         (c_strcasestr): Update.
32933         * lib/c-strstr.c: Include str-kmp.h.
32934         (knuth_morris_pratt): Remove function.
32935         (c_strcasestr): Update.
32936         * lib/mbscasestr.c: Include str-kmp.h.
32937         (knuth_morris_pratt_unibyte): Remove function.
32938         * lib/mbsstr.c: Include str-kmp.h.
32939         (knuth_morris_pratt_unibyte): Remove function.
32940         * lib/strcasestr.c: Include str-kmp.h.
32941         (knuth_morris_pratt): Remove function.
32942         (strcasestr): Update.
32943         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32944         * modules/c-strstr (Files): Likewise.
32945         * modules/mbscasestr (Files): Likewise.
32946         * modules/mbsstr (Files): Likewise.
32947         * modules/strcasestr (Files): Likewise.
32948         Suggested by Paul Eggert.
32949
32950 2007-12-30  Bruno Haible  <bruno@clisp.org>
32951
32952         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32953         defined.
32954
32955 2007-12-30  Bruno Haible  <bruno@clisp.org>
32956
32957         * lib/xmalloca.h: Include xalloc.h.
32958         (xnmalloca): New macro.
32959
32960 2007-12-30  Bruno Haible  <bruno@clisp.org>
32961
32962         * lib/malloca.h (nmalloca): New macro.
32963         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32964         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32965         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32966         knuth_morris_pratt_multibyte): Likewise.
32967         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32968         knuth_morris_pratt_multibyte): Likewise.
32969         * lib/memmem.c (knuth_morris_pratt): Likewise.
32970         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32971
32972 2007-12-25  Bruno Haible  <bruno@clisp.org>
32973
32974         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32975         * lib/glob.c: Don't include openat.h.
32976         (link_exists2_p): Add back the code that deals with the
32977         !GLOB_ALTDIRFUNC case.
32978         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32979         let it do the filename concatenation.
32980         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32981         * modules/glob (Depends-on): Remove openat.
32982
32983 2007-12-31  Bruno Haible  <bruno@clisp.org>
32984
32985         * modules/dirfd (License): Change to LGPLv2+.
32986         Approved by Jim Meyering.
32987
32988 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32991         when multiplying M by sizeof (size_t).
32992
32993 2007-12-10  Martin Lambers  <marlam@marlam.de>
32994
32995         Override getpagesize on mingw.
32996         * lib/getpagesize.c: New file.
32997         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32998         * modules/getpagesize (Files): Add lib/getpagesize.c.
32999         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33001         REPLACE_GETPAGESIZE.
33002         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33003
33004 2007-12-25  Bruno Haible  <bruno@clisp.org>
33005
33006         * modules/localcharset (Notice): New field.
33007         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33008         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33009
33010 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33011             Bruno Haible  <bruno@clisp.org>
33012
33013         Avoid using the syntax symbol() in formatted documentation.
33014         * MODULES.html.sh (func_module): When replacing symbol() with a
33015         hyperlink, remove the parentheses. Show an error if some remain.
33016         Recognize and render the '...' syntax.
33017         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33018         Rework. Add paragraph about GCC's inlining.
33019         * doc/alloca.texi: Likewise.
33020         * doc/error.texi: Remove parentheses from symbol reference.
33021         * doc/gnulib-intro.texi: Likewise.
33022         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33023         * modules/fnmatch (Description): Reword to say "the ... function".
33024         * modules/full-read (Description): Likewise.
33025         * modules/full-write (Description): Likewise.
33026         * modules/safe-read (Description): Likewise.
33027         * modules/safe-write (Description): Likewise.
33028         * modules/strchrnul (Description): Likewise.
33029         * modules/trim (Description): Likewise.
33030         * modules/error (Description): Remove parentheses from symbol
33031         references.
33032         * modules/verror (Description): Likewise.
33033         Reported by Karl Berry.
33034
33035 2007-12-25  Bruno Haible  <bruno@clisp.org>
33036
33037         Fixup after 2007-10-16 commit.
33038         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33039
33040 2007-12-24  Bruno Haible  <bruno@clisp.org>
33041
33042         Make --enable-relocatable work with DESTDIR.
33043         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33044         to compute installdir from destprog.
33045         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33046         also set the RELOC_DESTDIR variable.
33047         Reported by Левашев Иван <octagram@bluebottle.com>.
33048
33049 2007-12-24  Bruno Haible  <bruno@clisp.org>
33050
33051         Fix link error due to xalloc_die().
33052         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33053         of xreadlink.
33054         * lib/relocwrapper.c: Update comments.
33055         * build-aux/install-reloc: Remove xreadlink.c from file list.
33056         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33057         xreadlink.c.
33058         Reported by Левашев Иван <octagram@bluebottle.com>.
33059
33060 2007-12-24  Bruno Haible  <bruno@clisp.org>
33061
33062         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33063         * lib/setenv.h: Remove file.
33064         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33065         lib/setenv.h.
33066         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33067         (Depends-on): Add stdlib.
33068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33069         gl_FUNC_UNSETENV.
33070         (Include): Replace setenv.h with <stdlib.h>.
33071         * modules/unsetenv: New file.
33072         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33073         * lib/unsetenv.c: Include <stdlib.h> first.
33074         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33075         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33076         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33077         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33078         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33079         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33081         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33082         * doc/functions/unsetenv.texi: Update.
33083         * modules/xsetenv (Depends-on): Add unsetenv.
33084         * modules/getdate (Depends-on): Likewise.
33085         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33086         * lib/xsetenv.c: Don't include setenv.h.
33087         * lib/getdate.y: Likewise.
33088         * lib/relocwrapper.c: Likewise.
33089         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33090         (Depends-on): Add stdlib.
33091         * NEWS: Mention the changes.
33092         Reported by Левашев Иван <octagram@bluebottle.com>.
33093
33094 2007-12-23  Bruno Haible  <bruno@clisp.org>
33095
33096         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33097         indentation.
33098
33099 2007-12-23  Bruno Haible  <bruno@clisp.org>
33100
33101         * lib/c-strcasestr.c: Add more comments.
33102         * lib/c-strstr.c: Likewise.
33103         * lib/mbscasestr.c: Likewise.
33104         * lib/mbsstr.c: Likewise.
33105         * lib/strcasestr.c: Likewise.
33106         * lib/memmem.c: Likewise.
33107
33108 2007-12-23  Bruno Haible  <bruno@clisp.org>
33109
33110         * tests/test-memmem.c: Include <string.h> first.
33111
33112 2007-12-22  Bruno Haible  <bruno@clisp.org>
33113
33114         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33115         the contents of $testsbase.
33116         Reported by Ralf Wildenhues.
33117
33118 2007-12-22  Bruno Haible  <bruno@clisp.org>
33119
33120         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33121         two variables local_ldadd_before, local_ldadd_last.
33122
33123 2007-12-20  Eric Blake  <ebb9@byu.net>
33124
33125         Work around circular library issue when cross-compiling.
33126         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33127         that progname.o does not need to pull in rpl_memcmp.
33128
33129 2007-12-19  Eric Blake  <ebb9@byu.net>
33130
33131         Fix memmem to avoid O(n^2) worst-case complexity.
33132         * lib/memmem.c (knuth_morris_pratt): New function.
33133         (memmem): Use it if first few naive iterations fail.
33134         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33135         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33136         * modules/memchr (License): Likewise.
33137         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33138         malloca.
33139         * tests/test-memmem.c: Rewrite, borrowing ideas from
33140         test-mbsstr1.c; the old version wouldn't even compile!
33141         * modules/memmem-tests: New file.
33142         * lib/string.in.h (rpl_memmem): Add declaration.
33143         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33145         REPLACE_MEMMEM.
33146
33147 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33148
33149         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33150         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33151         before any system include files, and undef after them all.  This
33152         should fix a problem on VMS reported by John E. Malmberg in
33153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33154
33155 2007-12-17  Eric Blake  <ebb9@byu.net>
33156
33157         Revert addition of verify, for BSD/OS.
33158         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33159         can't handle large files, for the sake of obsolete platforms.
33160         * modules/fseeko (Depends-on): Remove verify.
33161         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33162         * doc/functions/ftello.texi (ftello): Likewise.
33163         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33164         Reported by Larry Jones.
33165
33166 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33167
33168         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33169         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33170
33171 2007-12-17  Jim Meyering  <meyering@redhat.com>
33172
33173         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33174         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33175         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33176         * modules/getcwd (Depends-on): Add openat.
33177         Reported by Petr Salinger.
33178
33179 2007-12-17  Bruno Haible  <bruno@clisp.org>
33180
33181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33182         avoid a segmentation fault of the configure test on x86_64 systems.
33183
33184 2007-12-15  Jim Meyering  <meyering@redhat.com>
33185
33186         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33187
33188 2007-12-13  Eric Blake  <ebb9@byu.net>
33189
33190         Another fseek test.
33191         * tests/test-fseek.c (main): Also test ungetc handling.
33192         * tests/test-fseeko.c (main): Likewise.
33193         * modules/fseeko (Depends-on): Add verify.
33194         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33195         large.
33196         Reported by Larry Jones.
33197
33198         Fix fseeko on mingw.
33199         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33200         seek.
33201
33202         Beef up fseek tests.
33203         * tests/test-fseek.c (main): Also test eof handling.
33204         * tests/test-fseeko.c (main): Likewise.
33205         Reported by Larry Jones.
33206
33207 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33208
33209         Fix fseeko on BSD-based platforms.
33210         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33211         successful seek.
33212
33213 2007-12-12  Eric Blake  <ebb9@byu.net>
33214
33215         Allow circular dependency of separate libtests.a
33216         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33217         when use_libtests.
33218
33219 2007-12-11  Eric Blake  <ebb9@byu.net>
33220
33221         Fix bug with -0.0L in previous patch.
33222         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33223         * tests/test-isnan.c (main): Also test on zeroes.
33224         * tests/test-isnanf.c (main): Likewise.
33225         * tests/test-isnanl.h (main): Likewise.
33226
33227         Detect pseudo-denormals on x86 even when cross-compiling.
33228         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33229         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33230         invalid bit patterns that happen to satisfy ==.
33231
33232         Avoid link failures with separate libtests.a.
33233         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33234         last, to satisfy circular dependencies.
33235
33236 2007-12-11  Eric Blake  <ebb9@byu.net>
33237         and Bruno Haible  <bruno@clisp.org>
33238
33239         Fix OpenBSD 4.0 <float.h> handling of long double.
33240         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33241         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33242         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33243
33244 2007-12-11  Jim Meyering  <meyering@redhat.com>
33245
33246         * users.txt: Add libvirt.
33247
33248         Support versions of autoconf prior to 2.59c.
33249         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33250         if it is not already defined.
33251
33252 2007-12-09  Bruno Haible  <bruno@clisp.org>
33253
33254         Let 'gnulib-tool --import' collect sources needed for the tests in
33255         tests/ rather than in lib/.
33256         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33257         argument. If true, add rules to generate libtests.a, and put libtests.a
33258         into $(LDADD). Consider source files in subdirectories and set
33259         uses_subdirs.
33260         (func_emit_initmacro_start, func_emit_initmacro_end,
33261         func_emit_initmacro_done): Pass all arguments explicitly.
33262         (func_import): Determine two module lists main_modules,
33263         testsrelated_modules. Determine use_libtests. Determine two variables
33264         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33265         instead of just sed_transform_lib_file. Determine two variables
33266         main_files and testsrelated_files. Compute 'files' as the union of
33267         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33268         func_add_or_update. In the generated gnulib-comp.m4, collect the
33269         object files for tests/ in different variables than those for lib/.
33270         Substitute LIBTESTS_LIBDEPS.
33271         (func_create_testdir): Combine the uses_subdirs results from
33272         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33273
33274 2007-12-09  Bruno Haible  <bruno@clisp.org>
33275
33276         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33277         the build-aux directory.
33278
33279 2007-12-09  Bruno Haible  <bruno@clisp.org>
33280
33281         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33282         introduced on 2006-09-09.
33283
33284 2007-12-07  Jim Meyering  <meyering@redhat.com>
33285
33286         Let these macros work also with autoconf-2.59.
33287         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33288         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33290
33291 2007-12-06  Jim Meyering  <meyering@redhat.com>
33292
33293         Avoid a configure-time syntax error in gl_FUNC_ACL.
33294         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33295         function in each branch, before testing the cache variable.
33296
33297 2007-12-04  Eric Blake  <ebb9@byu.net>
33298
33299         Make scripts executable.
33300         * build-aux/config.guess: Add execute permissions.
33301         * build-aux/config.sub: Likewise.
33302         * build-aux/gendocs.sh: Likewise.
33303
33304         Fix frexp on mingw.
33305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33306         cross-compiling.
33307         * doc/functions/frexp.texi (frexp): Document the bug.
33308
33309         Make cygwin fseeko check more reliable.
33310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33311         version numbers, rather than unrelated feature check.
33312         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33313         * doc/functions/ftello.texi (ftello): Likewise.
33314         Reported by Bruno Haible.
33315
33316         * m4/strerror.m4: Bump version number.
33317
33318 2007-12-03  Bruno Haible  <bruno@clisp.org>
33319
33320         * doc/functions/mprotect.texi: Mention the mingw problem.
33321
33322 2007-12-03  Eric Blake  <ebb9@byu.net>
33323
33324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33325         REPLACE_STRERROR is initialized before this macro.
33326
33327 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33330         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33331         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33332         put -lsec in even for programs other than 'ls'.  This fixes a problem
33333         for gettext reported by Bruno Haible in
33334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33335         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33336         Add support for Solaris 10.  This isn't efficient, but should get the
33337         job done for now.
33338
33339 2007-12-03  James Youngman  <jay@gnu.org>
33340
33341         * doc/regexprops-generic.texi: change "an close-group" to "a
33342         close-group" and "illegal" to "not allowed".
33343
33344 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33345
33346         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33347         pr_byname.h. Needed for the rare case when the maintainer has done
33348         "make maintainer-clean" in the source directory and then attempts a
33349         build outside the source directory.
33350         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33351         scripts_byname.h.
33352
33353 2007-12-02  Martin Lambers <marlam@marlam.de>
33354             Bruno Haible  <bruno@clisp.org>
33355
33356         * lib/getpagesize.h: Remove file.
33357         * lib/unistd.in.h: Include declaration of getpagesize here.
33358         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33359         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33360         HAVE_SYS_PARAM_H.
33361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33362         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33363         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33364         (Depends-on): Add unistd.
33365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33366         (Include): Use <unistd.h> instead of getpagesize.h.
33367         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33368         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33369         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33370         gl_GETPAGESIZE invocation, already handled by module dependency.
33371         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33372
33373 2007-12-02  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/strings-tests: New file.
33376         * tests/test-strings.c: New file.
33377
33378         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33379         * lib/strings.in.h: New file.
33380         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33381         * m4/strings_h.m4: New file.
33382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33383         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33384         * modules/strings: New file.
33385         * modules/string (Makefile.am): Update.
33386         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33387         Reported by Karl Berry.
33388
33389 2007-12-01  Eric Blake  <ebb9@byu.net>
33390
33391         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33392         accomodate fix in cygwin 1.5.25.
33393
33394 2007-12-01  Jim Meyering  <meyering@redhat.com>
33395
33396         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33397         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33398         that would inhibit utf8-optimization of a regexp containing line-
33399         or buffer-anchors, e.g., `^', `$'.
33400
33401 2007-11-30  Bruno Haible  <bruno@clisp.org>
33402
33403         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33404         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33405         glthread_recursive_lock_init.
33406         * lib/lock.c (glthread_recursive_lock_init)
33407         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33408         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33409
33410 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33411
33412         New function qset_acl, like set_acl but with syscall semantics.
33413         * lib/acl.h (qset_acl): New decl.
33414         * lib/acl.c (qset_acl): New function.
33415         (set_acl): Use new function.  Use more-consistent diagnostics.
33416
33417 2007-11-28  Jim Meyering  <meyering@redhat.com>
33418
33419         * modules/physmem (License): Change from GPL to LGPLv2+.
33420
33421 2007-11-26  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33424         'long double' type has excess precision.
33425         Reported by Jim Meyering in
33426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33427
33428 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33429
33430         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33431         Sync from <http://gnu.org/licenses>.
33432         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33433         with license text from same location.
33434         * doc/maintain.texi, doc/standards.texi:  Sync from
33435         <http://savannah.gnu.org/projects/gnustandards>.
33436
33437 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33438         and Jim Meyering  <meyering@redhat.com>
33439
33440         Adjust getdate' grammar to accept a slightly more regular language.
33441         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33442         Before, the former was rejected.
33443         * lib/getdate.y (digits_to_date_time): New function, factored
33444         out of ...
33445         (number): ...here.  Just call digits_to_date_time.
33446         (hybrid): New non-terminal to handle an <unsigned number,
33447         signed relative offset> sequence consistently.
33448
33449 2007-11-18  Jim Meyering  <meyering@redhat.com>
33450
33451         Pull my changes from coreutils:
33452         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33453         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33454         use of $gnulib_tool_option_extras, so that it's separated from the
33455         preceding argument.
33456
33457         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33458         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33459         parent destination directories before copying a file into place.
33460
33461 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33462
33463         bootstrap: work also with 4-argument variant of AC_INIT
33464         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33465
33466 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33467
33468         Port test-getaddrinfo to Solaris.
33469         Problem reported by Bruno Haible in
33470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33471         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33472         explanation of setting 'hints'.
33473         Don't reject an implementation merely because it returns EAI_SERVICE.
33474         (EAI_SERVICE): Define to 0 if not defined.
33475
33476 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33477
33478         The license of gnu-make and posix-shell is now "GPLed build tool".
33479         * modules/gnu-make (License): Likewise.
33480         * modules/posix-shell (License): Likewise.
33481
33482         New module posix-shell, for determining a POSIX shell
33483         or perhaps something that is close enough to a POSIX shell.
33484         * m4/posix-shell.m4: New file.
33485         * modules/posix-shell: New file.
33486
33487         * MODULES.html.sh: Mention new module.
33488
33489         New module gnu-make, for determining whether we're using GNU Make.
33490         * m4/gnu-make.m4: New file.
33491         * modules/gnu-make: New file.
33492         * MODULES.html.sh: Mention new module.
33493
33494 2007-11-14  Jim Meyering  <meyering@redhat.com>
33495
33496         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33497         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33498         use this macro to create a function _definition_.
33499         Remove useless "#undef ARGMATCH_DIE".
33500
33501 2007-11-14  Bruno Haible  <bruno@clisp.org>
33502
33503         * lib/config.charset: Update for OpenBSD 4.1.
33504         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33505
33506 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33507
33508         Document 64-bit #if problems in stdint.texi.
33509         * doc/headers/stdint.texi (stdint.h): Mention problems with
33510         64-bit-#if, and how to work around them.
33511
33512         Don't insist on 'long long int' support in the preprocessor.  It
33513         breaks too many things.  For example, PRIdMAX still uses a 'long
33514         long int' format with the latest Sun compiler, even though
33515         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33516         preprocessor problem.  This causes the latest coreutils to dump
33517         core on Solaris 10 sparc with the Sun C compiler.
33518         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33519         the troublesome expressions at configure-time, not at #if-time.
33520         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33521         preprocessor.
33522         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33523         compile-time C checks, done at 'configure'-time.
33524         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33525         * modules/inttypes (Makefile): Substitute the new symbols that
33526         gl_INTTYPES_H now generates.
33527         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33528
33529 2007-11-12  Bruno Haible  <bruno@clisp.org>
33530
33531         Tests for Unicode character classification functions.
33532
33533         * modules/unictype/bidicategory-byname-tests: New file.
33534         * modules/unictype/bidicategory-name-tests: New file.
33535         * modules/unictype/bidicategory-of-tests: New file.
33536         * modules/unictype/bidicategory-test-tests: New file.
33537         * modules/unictype/block-list-tests: New file.
33538         * modules/unictype/block-of-tests: New file.
33539         * modules/unictype/block-test-tests: New file.
33540         * modules/unictype/category-C-tests: New file.
33541         * modules/unictype/category-Cc-tests: New file.
33542         * modules/unictype/category-Cf-tests: New file.
33543         * modules/unictype/category-Cn-tests: New file.
33544         * modules/unictype/category-Co-tests: New file.
33545         * modules/unictype/category-Cs-tests: New file.
33546         * modules/unictype/category-L-tests: New file.
33547         * modules/unictype/category-Ll-tests: New file.
33548         * modules/unictype/category-Lm-tests: New file.
33549         * modules/unictype/category-Lo-tests: New file.
33550         * modules/unictype/category-Lt-tests: New file.
33551         * modules/unictype/category-Lu-tests: New file.
33552         * modules/unictype/category-M-tests: New file.
33553         * modules/unictype/category-Mc-tests: New file.
33554         * modules/unictype/category-Me-tests: New file.
33555         * modules/unictype/category-Mn-tests: New file.
33556         * modules/unictype/category-N-tests: New file.
33557         * modules/unictype/category-Nd-tests: New file.
33558         * modules/unictype/category-Nl-tests: New file.
33559         * modules/unictype/category-No-tests: New file.
33560         * modules/unictype/category-P-tests: New file.
33561         * modules/unictype/category-Pc-tests: New file.
33562         * modules/unictype/category-Pd-tests: New file.
33563         * modules/unictype/category-Pe-tests: New file.
33564         * modules/unictype/category-Pf-tests: New file.
33565         * modules/unictype/category-Pi-tests: New file.
33566         * modules/unictype/category-Po-tests: New file.
33567         * modules/unictype/category-Ps-tests: New file.
33568         * modules/unictype/category-S-tests: New file.
33569         * modules/unictype/category-Sc-tests: New file.
33570         * modules/unictype/category-Sk-tests: New file.
33571         * modules/unictype/category-Sm-tests: New file.
33572         * modules/unictype/category-So-tests: New file.
33573         * modules/unictype/category-Z-tests: New file.
33574         * modules/unictype/category-Zl-tests: New file.
33575         * modules/unictype/category-Zp-tests: New file.
33576         * modules/unictype/category-Zs-tests: New file.
33577         * modules/unictype/category-and-not-tests: New file.
33578         * modules/unictype/category-and-tests: New file.
33579         * modules/unictype/category-byname-tests: New file.
33580         * modules/unictype/category-name-tests: New file.
33581         * modules/unictype/category-none-tests: New file.
33582         * modules/unictype/category-of-tests: New file.
33583         * modules/unictype/category-or-tests: New file.
33584         * modules/unictype/category-test-withtable-tests: New file.
33585         * modules/unictype/combining-class-tests: New file.
33586         * modules/unictype/ctype-alnum-tests: New file.
33587         * modules/unictype/ctype-alpha-tests: New file.
33588         * modules/unictype/ctype-blank-tests: New file.
33589         * modules/unictype/ctype-cntrl-tests: New file.
33590         * modules/unictype/ctype-digit-tests: New file.
33591         * modules/unictype/ctype-graph-tests: New file.
33592         * modules/unictype/ctype-lower-tests: New file.
33593         * modules/unictype/ctype-print-tests: New file.
33594         * modules/unictype/ctype-punct-tests: New file.
33595         * modules/unictype/ctype-space-tests: New file.
33596         * modules/unictype/ctype-upper-tests: New file.
33597         * modules/unictype/ctype-xdigit-tests: New file.
33598         * modules/unictype/decimal-digit-tests: New file.
33599         * modules/unictype/digit-tests: New file.
33600         * modules/unictype/mirror-tests: New file.
33601         * modules/unictype/numeric-tests: New file.
33602         * modules/unictype/property-alphabetic-tests: New file.
33603         * modules/unictype/property-ascii-hex-digit-tests: New file.
33604         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33605         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33606         * modules/unictype/property-bidi-block-separator-tests: New file.
33607         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33608         * modules/unictype/property-bidi-common-separator-tests: New file.
33609         * modules/unictype/property-bidi-control-tests: New file.
33610         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33611         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33612         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33613         * modules/unictype/property-bidi-european-digit-tests: New file.
33614         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33615         * modules/unictype/property-bidi-left-to-right-tests: New file.
33616         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33617         * modules/unictype/property-bidi-other-neutral-tests: New file.
33618         * modules/unictype/property-bidi-pdf-tests: New file.
33619         * modules/unictype/property-bidi-segment-separator-tests: New file.
33620         * modules/unictype/property-bidi-whitespace-tests: New file.
33621         * modules/unictype/property-byname-tests: New file.
33622         * modules/unictype/property-combining-tests: New file.
33623         * modules/unictype/property-composite-tests: New file.
33624         * modules/unictype/property-currency-symbol-tests: New file.
33625         * modules/unictype/property-dash-tests: New file.
33626         * modules/unictype/property-decimal-digit-tests: New file.
33627         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33628         * modules/unictype/property-deprecated-tests: New file.
33629         * modules/unictype/property-diacritic-tests: New file.
33630         * modules/unictype/property-extender-tests: New file.
33631         * modules/unictype/property-format-control-tests: New file.
33632         * modules/unictype/property-grapheme-base-tests: New file.
33633         * modules/unictype/property-grapheme-extend-tests: New file.
33634         * modules/unictype/property-grapheme-link-tests: New file.
33635         * modules/unictype/property-hex-digit-tests: New file.
33636         * modules/unictype/property-hyphen-tests: New file.
33637         * modules/unictype/property-id-continue-tests: New file.
33638         * modules/unictype/property-id-start-tests: New file.
33639         * modules/unictype/property-ideographic-tests: New file.
33640         * modules/unictype/property-ids-binary-operator-tests: New file.
33641         * modules/unictype/property-ids-trinary-operator-tests: New file.
33642         * modules/unictype/property-ignorable-control-tests: New file.
33643         * modules/unictype/property-iso-control-tests: New file.
33644         * modules/unictype/property-join-control-tests: New file.
33645         * modules/unictype/property-left-of-pair-tests: New file.
33646         * modules/unictype/property-line-separator-tests: New file.
33647         * modules/unictype/property-logical-order-exception-tests: New file.
33648         * modules/unictype/property-lowercase-tests: New file.
33649         * modules/unictype/property-math-tests: New file.
33650         * modules/unictype/property-non-break-tests: New file.
33651         * modules/unictype/property-not-a-character-tests: New file.
33652         * modules/unictype/property-numeric-tests: New file.
33653         * modules/unictype/property-other-alphabetic-tests: New file.
33654         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33655         * modules/unictype/property-other-grapheme-extend-tests: New file.
33656         * modules/unictype/property-other-id-continue-tests: New file.
33657         * modules/unictype/property-other-id-start-tests: New file.
33658         * modules/unictype/property-other-lowercase-tests: New file.
33659         * modules/unictype/property-other-math-tests: New file.
33660         * modules/unictype/property-other-uppercase-tests: New file.
33661         * modules/unictype/property-paired-punctuation-tests: New file.
33662         * modules/unictype/property-paragraph-separator-tests: New file.
33663         * modules/unictype/property-pattern-syntax-tests: New file.
33664         * modules/unictype/property-pattern-white-space-tests: New file.
33665         * modules/unictype/property-private-use-tests: New file.
33666         * modules/unictype/property-punctuation-tests: New file.
33667         * modules/unictype/property-quotation-mark-tests: New file.
33668         * modules/unictype/property-radical-tests: New file.
33669         * modules/unictype/property-sentence-terminal-tests: New file.
33670         * modules/unictype/property-soft-dotted-tests: New file.
33671         * modules/unictype/property-space-tests: New file.
33672         * modules/unictype/property-terminal-punctuation-tests: New file.
33673         * modules/unictype/property-test-tests: New file.
33674         * modules/unictype/property-titlecase-tests: New file.
33675         * modules/unictype/property-unassigned-code-value-tests: New file.
33676         * modules/unictype/property-unified-ideograph-tests: New file.
33677         * modules/unictype/property-uppercase-tests: New file.
33678         * modules/unictype/property-variation-selector-tests: New file.
33679         * modules/unictype/property-white-space-tests: New file.
33680         * modules/unictype/property-xid-continue-tests: New file.
33681         * modules/unictype/property-xid-start-tests: New file.
33682         * modules/unictype/property-zero-width-tests: New file.
33683         * modules/unictype/scripts-tests: New file.
33684         * modules/unictype/syntax-c-ident-tests: New file.
33685         * modules/unictype/syntax-c-whitespace-tests: New file.
33686         * modules/unictype/syntax-java-ident-tests: New file.
33687         * modules/unictype/syntax-java-whitespace-tests: New file.
33688         * tests/unictype/test-bidi_byname.c: New file.
33689         * tests/unictype/test-bidi_name.c: New file.
33690         * tests/unictype/test-bidi_of.c: New file.
33691         * tests/unictype/test-bidi_test.c: New file.
33692         * tests/unictype/test-block_list.c: New file.
33693         * tests/unictype/test-block_of.c: New file.
33694         * tests/unictype/test-block_test.c: New file.
33695         * tests/unictype/test-categ_and.c: New file.
33696         * tests/unictype/test-categ_and_not.c: New file.
33697         * tests/unictype/test-categ_byname.c: New file.
33698         * tests/unictype/test-categ_name.c: New file.
33699         * tests/unictype/test-categ_none.c: New file.
33700         * tests/unictype/test-categ_of.c: New file.
33701         * tests/unictype/test-categ_or.c: New file.
33702         * tests/unictype/test-categ_test_withtable.c: New file.
33703         * tests/unictype/test-combining.c: New file.
33704         * tests/unictype/test-decdigit.c: New file.
33705         * tests/unictype/test-digit.c: New file.
33706         * tests/unictype/test-mirror.c: New file.
33707         * tests/unictype/test-numeric.c: New file.
33708         * tests/unictype/test-pr_byname.c: New file.
33709         * tests/unictype/test-pr_test.c: New file.
33710         * tests/unictype/test-predicate-part1.h: New file.
33711         * tests/unictype/test-predicate-part2.h: New file.
33712         * tests/unictype/test-scripts.c: New file.
33713         * tests/unictype/test-sy_c_ident.c: New file.
33714         * tests/unictype/test-sy_java_ident.c: New file.
33715
33716         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33717         for Unicode 5.0.0.
33718         * tests/unictype/test-categ_Cc.c: Likewise.
33719         * tests/unictype/test-categ_Cf.c: Likewise.
33720         * tests/unictype/test-categ_Cn.c: Likewise.
33721         * tests/unictype/test-categ_Co.c: Likewise.
33722         * tests/unictype/test-categ_Cs.c: Likewise.
33723         * tests/unictype/test-categ_L.c: Likewise.
33724         * tests/unictype/test-categ_Ll.c: Likewise.
33725         * tests/unictype/test-categ_Lm.c: Likewise.
33726         * tests/unictype/test-categ_Lo.c: Likewise.
33727         * tests/unictype/test-categ_Lt.c: Likewise.
33728         * tests/unictype/test-categ_Lu.c: Likewise.
33729         * tests/unictype/test-categ_M.c: Likewise.
33730         * tests/unictype/test-categ_Mc.c: Likewise.
33731         * tests/unictype/test-categ_Me.c: Likewise.
33732         * tests/unictype/test-categ_Mn.c: Likewise.
33733         * tests/unictype/test-categ_N.c: Likewise.
33734         * tests/unictype/test-categ_Nd.c: Likewise.
33735         * tests/unictype/test-categ_Nl.c: Likewise.
33736         * tests/unictype/test-categ_No.c: Likewise.
33737         * tests/unictype/test-categ_P.c: Likewise.
33738         * tests/unictype/test-categ_Pc.c: Likewise.
33739         * tests/unictype/test-categ_Pd.c: Likewise.
33740         * tests/unictype/test-categ_Pe.c: Likewise.
33741         * tests/unictype/test-categ_Pf.c: Likewise.
33742         * tests/unictype/test-categ_Pi.c: Likewise.
33743         * tests/unictype/test-categ_Po.c: Likewise.
33744         * tests/unictype/test-categ_Ps.c: Likewise.
33745         * tests/unictype/test-categ_S.c: Likewise.
33746         * tests/unictype/test-categ_Sc.c: Likewise.
33747         * tests/unictype/test-categ_Sk.c: Likewise.
33748         * tests/unictype/test-categ_Sm.c: Likewise.
33749         * tests/unictype/test-categ_So.c: Likewise.
33750         * tests/unictype/test-categ_Z.c: Likewise.
33751         * tests/unictype/test-categ_Zl.c: Likewise.
33752         * tests/unictype/test-categ_Zp.c: Likewise.
33753         * tests/unictype/test-categ_Zs.c: Likewise.
33754         * tests/unictype/test-ctype_alnum.c: Likewise.
33755         * tests/unictype/test-ctype_alpha.c: Likewise.
33756         * tests/unictype/test-ctype_blank.c: Likewise.
33757         * tests/unictype/test-ctype_cntrl.c: Likewise.
33758         * tests/unictype/test-ctype_digit.c: Likewise.
33759         * tests/unictype/test-ctype_graph.c: Likewise.
33760         * tests/unictype/test-ctype_lower.c: Likewise.
33761         * tests/unictype/test-ctype_print.c: Likewise.
33762         * tests/unictype/test-ctype_punct.c: Likewise.
33763         * tests/unictype/test-ctype_space.c: Likewise.
33764         * tests/unictype/test-ctype_upper.c: Likewise.
33765         * tests/unictype/test-ctype_xdigit.c: Likewise.
33766         * tests/unictype/test-decdigit.h: Likewise.
33767         * tests/unictype/test-digit.h: Likewise.
33768         * tests/unictype/test-numeric.h: Likewise.
33769         * tests/unictype/test-pr_alphabetic.c: Likewise.
33770         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33771         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33772         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33773         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33774         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33775         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33776         * tests/unictype/test-pr_bidi_control.c: Likewise.
33777         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33778         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33779         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33780         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33781         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33782         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33783         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33784         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33785         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33786         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33787         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33788         * tests/unictype/test-pr_combining.c: Likewise.
33789         * tests/unictype/test-pr_composite.c: Likewise.
33790         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33791         * tests/unictype/test-pr_dash.c: Likewise.
33792         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33793         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33794         * tests/unictype/test-pr_deprecated.c: Likewise.
33795         * tests/unictype/test-pr_diacritic.c: Likewise.
33796         * tests/unictype/test-pr_extender.c: Likewise.
33797         * tests/unictype/test-pr_format_control.c: Likewise.
33798         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33799         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33800         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33801         * tests/unictype/test-pr_hex_digit.c: Likewise.
33802         * tests/unictype/test-pr_hyphen.c: Likewise.
33803         * tests/unictype/test-pr_id_continue.c: Likewise.
33804         * tests/unictype/test-pr_id_start.c: Likewise.
33805         * tests/unictype/test-pr_ideographic.c: Likewise.
33806         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33807         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33808         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33809         * tests/unictype/test-pr_iso_control.c: Likewise.
33810         * tests/unictype/test-pr_join_control.c: Likewise.
33811         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33812         * tests/unictype/test-pr_line_separator.c: Likewise.
33813         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33814         * tests/unictype/test-pr_lowercase.c: Likewise.
33815         * tests/unictype/test-pr_math.c: Likewise.
33816         * tests/unictype/test-pr_non_break.c: Likewise.
33817         * tests/unictype/test-pr_not_a_character.c: Likewise.
33818         * tests/unictype/test-pr_numeric.c: Likewise.
33819         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33820         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33821         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33822         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33823         * tests/unictype/test-pr_other_id_start.c: Likewise.
33824         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33825         * tests/unictype/test-pr_other_math.c: Likewise.
33826         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33827         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33828         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33829         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33830         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33831         * tests/unictype/test-pr_private_use.c: Likewise.
33832         * tests/unictype/test-pr_punctuation.c: Likewise.
33833         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33834         * tests/unictype/test-pr_radical.c: Likewise.
33835         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33836         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33837         * tests/unictype/test-pr_space.c: Likewise.
33838         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33839         * tests/unictype/test-pr_titlecase.c: Likewise.
33840         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33841         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33842         * tests/unictype/test-pr_uppercase.c: Likewise.
33843         * tests/unictype/test-pr_variation_selector.c: Likewise.
33844         * tests/unictype/test-pr_white_space.c: Likewise.
33845         * tests/unictype/test-pr_xid_continue.c: Likewise.
33846         * tests/unictype/test-pr_xid_start.c: Likewise.
33847         * tests/unictype/test-pr_zero_width.c: Likewise.
33848         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33849         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33850
33851 2007-11-12  Bruno Haible  <bruno@clisp.org>
33852
33853         Unicode character classification functions.
33854         * lib/unictype.h: New file.
33855         * modules/unictype/base: New file.
33856         * modules/unictype/category-L: New file.
33857         * modules/unictype/category-Lu: New file.
33858         * modules/unictype/category-Ll: New file.
33859         * modules/unictype/category-Lt: New file.
33860         * modules/unictype/category-Lm: New file.
33861         * modules/unictype/category-Lo: New file.
33862         * modules/unictype/category-M: New file.
33863         * modules/unictype/category-Mn: New file.
33864         * modules/unictype/category-Mc: New file.
33865         * modules/unictype/category-Me: New file.
33866         * modules/unictype/category-N: New file.
33867         * modules/unictype/category-Nd: New file.
33868         * modules/unictype/category-Nl: New file.
33869         * modules/unictype/category-No: New file.
33870         * modules/unictype/category-P: New file.
33871         * modules/unictype/category-Pc: New file.
33872         * modules/unictype/category-Pd: New file.
33873         * modules/unictype/category-Ps: New file.
33874         * modules/unictype/category-Pe: New file.
33875         * modules/unictype/category-Pi: New file.
33876         * modules/unictype/category-Pf: New file.
33877         * modules/unictype/category-Po: New file.
33878         * modules/unictype/category-S: New file.
33879         * modules/unictype/category-Sm: New file.
33880         * modules/unictype/category-Sc: New file.
33881         * modules/unictype/category-Sk: New file.
33882         * modules/unictype/category-So: New file.
33883         * modules/unictype/category-Z: New file.
33884         * modules/unictype/category-Zs: New file.
33885         * modules/unictype/category-Zl: New file.
33886         * modules/unictype/category-Zp: New file.
33887         * modules/unictype/category-C: New file.
33888         * modules/unictype/category-Cc: New file.
33889         * modules/unictype/category-Cf: New file.
33890         * modules/unictype/category-Cs: New file.
33891         * modules/unictype/category-Co: New file.
33892         * modules/unictype/category-Cn: New file.
33893         * modules/unictype/category-or: New file.
33894         * modules/unictype/category-of: New file.
33895         * modules/unictype/category-test: New file.
33896         * modules/unictype/category-test-withtable: New file.
33897         * modules/unictype/category-byname: New file.
33898         * modules/unictype/category-none: New file.
33899         * modules/unictype/category-and: New file.
33900         * modules/unictype/category-and-not: New file.
33901         * modules/unictype/category-name: New file.
33902         * modules/unictype/combining-class: New file.
33903         * modules/unictype/category-all: New file.
33904         * modules/unictype/bidicategory-all: New file.
33905         * modules/unictype/bidicategory-byname: New file.
33906         * modules/unictype/bidicategory-name: New file.
33907         * modules/unictype/bidicategory-of: New file.
33908         * modules/unictype/bidicategory-test: New file.
33909         * modules/unictype/decimal-digit: New file.
33910         * modules/unictype/digit: New file.
33911         * modules/unictype/numeric: New file.
33912         * modules/unictype/mirror: New file.
33913         * modules/unictype/property-white-space: New file.
33914         * modules/unictype/property-alphabetic: New file.
33915         * modules/unictype/property-other-alphabetic: New file.
33916         * modules/unictype/property-not-a-character: New file.
33917         * modules/unictype/property-default-ignorable-code-point: New file.
33918         * modules/unictype/property-other-default-ignorable-code-point: New
33919         file.
33920         * modules/unictype/property-deprecated: New file.
33921         * modules/unictype/property-logical-order-exception: New file.
33922         * modules/unictype/property-variation-selector: New file.
33923         * modules/unictype/property-private-use: New file.
33924         * modules/unictype/property-unassigned-code-value: New file.
33925         * modules/unictype/property-uppercase: New file.
33926         * modules/unictype/property-other-uppercase: New file.
33927         * modules/unictype/property-lowercase: New file.
33928         * modules/unictype/property-other-lowercase: New file.
33929         * modules/unictype/property-titlecase: New file.
33930         * modules/unictype/property-soft-dotted: New file.
33931         * modules/unictype/property-id-start: New file.
33932         * modules/unictype/property-other-id-start: New file.
33933         * modules/unictype/property-id-continue: New file.
33934         * modules/unictype/property-other-id-continue: New file.
33935         * modules/unictype/property-xid-start: New file.
33936         * modules/unictype/property-xid-continue: New file.
33937         * modules/unictype/property-pattern-white-space: New file.
33938         * modules/unictype/property-pattern-syntax: New file.
33939         * modules/unictype/property-join-control: New file.
33940         * modules/unictype/property-grapheme-base: New file.
33941         * modules/unictype/property-grapheme-extend: New file.
33942         * modules/unictype/property-other-grapheme-extend: New file.
33943         * modules/unictype/property-grapheme-link: New file.
33944         * modules/unictype/property-bidi-control: New file.
33945         * modules/unictype/property-bidi-left-to-right: New file.
33946         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33947         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33948         * modules/unictype/property-bidi-european-digit: New file.
33949         * modules/unictype/property-bidi-eur-num-separator: New file.
33950         * modules/unictype/property-bidi-eur-num-terminator: New file.
33951         * modules/unictype/property-bidi-arabic-digit: New file.
33952         * modules/unictype/property-bidi-common-separator: New file.
33953         * modules/unictype/property-bidi-block-separator: New file.
33954         * modules/unictype/property-bidi-segment-separator: New file.
33955         * modules/unictype/property-bidi-whitespace: New file.
33956         * modules/unictype/property-bidi-non-spacing-mark: New file.
33957         * modules/unictype/property-bidi-boundary-neutral: New file.
33958         * modules/unictype/property-bidi-pdf: New file.
33959         * modules/unictype/property-bidi-embedding-or-override: New file.
33960         * modules/unictype/property-bidi-other-neutral: New file.
33961         * modules/unictype/property-hex-digit: New file.
33962         * modules/unictype/property-ascii-hex-digit: New file.
33963         * modules/unictype/property-ideographic: New file.
33964         * modules/unictype/property-unified-ideograph: New file.
33965         * modules/unictype/property-radical: New file.
33966         * modules/unictype/property-ids-binary-operator: New file.
33967         * modules/unictype/property-ids-trinary-operator: New file.
33968         * modules/unictype/property-zero-width: New file.
33969         * modules/unictype/property-space: New file.
33970         * modules/unictype/property-non-break: New file.
33971         * modules/unictype/property-iso-control: New file.
33972         * modules/unictype/property-format-control: New file.
33973         * modules/unictype/property-dash: New file.
33974         * modules/unictype/property-hyphen: New file.
33975         * modules/unictype/property-punctuation: New file.
33976         * modules/unictype/property-line-separator: New file.
33977         * modules/unictype/property-paragraph-separator: New file.
33978         * modules/unictype/property-quotation-mark: New file.
33979         * modules/unictype/property-sentence-terminal: New file.
33980         * modules/unictype/property-terminal-punctuation: New file.
33981         * modules/unictype/property-currency-symbol: New file.
33982         * modules/unictype/property-math: New file.
33983         * modules/unictype/property-other-math: New file.
33984         * modules/unictype/property-paired-punctuation: New file.
33985         * modules/unictype/property-left-of-pair: New file.
33986         * modules/unictype/property-combining: New file.
33987         * modules/unictype/property-composite: New file.
33988         * modules/unictype/property-decimal-digit: New file.
33989         * modules/unictype/property-numeric: New file.
33990         * modules/unictype/property-diacritic: New file.
33991         * modules/unictype/property-extender: New file.
33992         * modules/unictype/property-ignorable-control: New file.
33993         * modules/unictype/property-test: New file.
33994         * modules/unictype/property-byname: New file.
33995         * modules/unictype/property-all: New file.
33996         * modules/unictype/scripts: New file.
33997         * modules/unictype/scripts-all: New file.
33998         * modules/unictype/block-of: New file.
33999         * modules/unictype/block-test: New file.
34000         * modules/unictype/block-list: New file.
34001         * modules/unictype/block-all: New file.
34002         * modules/unictype/syntax-c-whitespace: New file.
34003         * modules/unictype/syntax-java-whitespace: New file.
34004         * modules/unictype/syntax-c-ident: New file.
34005         * modules/unictype/syntax-java-ident: New file.
34006         * modules/unictype/ctype-alnum: New file.
34007         * modules/unictype/ctype-alpha: New file.
34008         * modules/unictype/ctype-cntrl: New file.
34009         * modules/unictype/ctype-digit: New file.
34010         * modules/unictype/ctype-graph: New file.
34011         * modules/unictype/ctype-lower: New file.
34012         * modules/unictype/ctype-print: New file.
34013         * modules/unictype/ctype-punct: New file.
34014         * modules/unictype/ctype-space: New file.
34015         * modules/unictype/ctype-upper: New file.
34016         * modules/unictype/ctype-xdigit: New file.
34017         * modules/unictype/ctype-blank: New file.
34018         * lib/unictype/bidi_byname.c: New file.
34019         * lib/unictype/bidi_name.c: New file.
34020         * lib/unictype/bidi_of.c: New file.
34021         * lib/unictype/bidi_test.c: New file.
34022         * lib/unictype/bitmap.h: New file.
34023         * lib/unictype/block_test.c: New file.
34024         * lib/unictype/blocks.c: New file.
34025         * lib/unictype/categ_C.c: New file.
34026         * lib/unictype/categ_Cc.c: New file.
34027         * lib/unictype/categ_Cf.c: New file.
34028         * lib/unictype/categ_Cn.c: New file.
34029         * lib/unictype/categ_Co.c: New file.
34030         * lib/unictype/categ_Cs.c: New file.
34031         * lib/unictype/categ_L.c: New file.
34032         * lib/unictype/categ_Ll.c: New file.
34033         * lib/unictype/categ_Lm.c: New file.
34034         * lib/unictype/categ_Lo.c: New file.
34035         * lib/unictype/categ_Lt.c: New file.
34036         * lib/unictype/categ_Lu.c: New file.
34037         * lib/unictype/categ_M.c: New file.
34038         * lib/unictype/categ_Mc.c: New file.
34039         * lib/unictype/categ_Me.c: New file.
34040         * lib/unictype/categ_Mn.c: New file.
34041         * lib/unictype/categ_N.c: New file.
34042         * lib/unictype/categ_Nd.c: New file.
34043         * lib/unictype/categ_Nl.c: New file.
34044         * lib/unictype/categ_No.c: New file.
34045         * lib/unictype/categ_P.c: New file.
34046         * lib/unictype/categ_Pc.c: New file.
34047         * lib/unictype/categ_Pd.c: New file.
34048         * lib/unictype/categ_Pe.c: New file.
34049         * lib/unictype/categ_Pf.c: New file.
34050         * lib/unictype/categ_Pi.c: New file.
34051         * lib/unictype/categ_Po.c: New file.
34052         * lib/unictype/categ_Ps.c: New file.
34053         * lib/unictype/categ_S.c: New file.
34054         * lib/unictype/categ_Sc.c: New file.
34055         * lib/unictype/categ_Sk.c: New file.
34056         * lib/unictype/categ_Sm.c: New file.
34057         * lib/unictype/categ_So.c: New file.
34058         * lib/unictype/categ_Z.c: New file.
34059         * lib/unictype/categ_Zl.c: New file.
34060         * lib/unictype/categ_Zp.c: New file.
34061         * lib/unictype/categ_Zs.c: New file.
34062         * lib/unictype/categ_and.c: New file.
34063         * lib/unictype/categ_and_not.c: New file.
34064         * lib/unictype/categ_byname.c: New file.
34065         * lib/unictype/categ_name.c: New file.
34066         * lib/unictype/categ_none.c: New file.
34067         * lib/unictype/categ_of.c: New file.
34068         * lib/unictype/categ_or.c: New file.
34069         * lib/unictype/categ_test.c: New file.
34070         * lib/unictype/combining.c: New file.
34071         * lib/unictype/ctype_alnum.c: New file.
34072         * lib/unictype/ctype_alpha.c: New file.
34073         * lib/unictype/ctype_blank.c: New file.
34074         * lib/unictype/ctype_cntrl.c: New file.
34075         * lib/unictype/ctype_digit.c: New file.
34076         * lib/unictype/ctype_graph.c: New file.
34077         * lib/unictype/ctype_lower.c: New file.
34078         * lib/unictype/ctype_print.c: New file.
34079         * lib/unictype/ctype_punct.c: New file.
34080         * lib/unictype/ctype_space.c: New file.
34081         * lib/unictype/ctype_upper.c: New file.
34082         * lib/unictype/ctype_xdigit.c: New file.
34083         * lib/unictype/decdigit.c: New file.
34084         * lib/unictype/digit.c: New file.
34085         * lib/unictype/identsyntaxmap.h: New file.
34086         * lib/unictype/mirror.c: New file.
34087         * lib/unictype/numeric.c: New file.
34088         * lib/unictype/pr_alphabetic.c: New file.
34089         * lib/unictype/pr_ascii_hex_digit.c: New file.
34090         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34091         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34092         * lib/unictype/pr_bidi_block_separator.c: New file.
34093         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34094         * lib/unictype/pr_bidi_common_separator.c: New file.
34095         * lib/unictype/pr_bidi_control.c: New file.
34096         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34097         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34098         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34099         * lib/unictype/pr_bidi_european_digit.c: New file.
34100         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34101         * lib/unictype/pr_bidi_left_to_right.c: New file.
34102         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34103         * lib/unictype/pr_bidi_other_neutral.c: New file.
34104         * lib/unictype/pr_bidi_pdf.c: New file.
34105         * lib/unictype/pr_bidi_segment_separator.c: New file.
34106         * lib/unictype/pr_bidi_whitespace.c: New file.
34107         * lib/unictype/pr_byname.c: New file.
34108         * lib/unictype/pr_byname.gperf: New file.
34109         * lib/unictype/pr_combining.c: New file.
34110         * lib/unictype/pr_composite.c: New file.
34111         * lib/unictype/pr_currency_symbol.c: New file.
34112         * lib/unictype/pr_dash.c: New file.
34113         * lib/unictype/pr_decimal_digit.c: New file.
34114         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34115         * lib/unictype/pr_deprecated.c: New file.
34116         * lib/unictype/pr_diacritic.c: New file.
34117         * lib/unictype/pr_extender.c: New file.
34118         * lib/unictype/pr_format_control.c: New file.
34119         * lib/unictype/pr_grapheme_base.c: New file.
34120         * lib/unictype/pr_grapheme_extend.c: New file.
34121         * lib/unictype/pr_grapheme_link.c: New file.
34122         * lib/unictype/pr_hex_digit.c: New file.
34123         * lib/unictype/pr_hyphen.c: New file.
34124         * lib/unictype/pr_id_continue.c: New file.
34125         * lib/unictype/pr_id_start.c: New file.
34126         * lib/unictype/pr_ideographic.c: New file.
34127         * lib/unictype/pr_ids_binary_operator.c: New file.
34128         * lib/unictype/pr_ids_trinary_operator.c: New file.
34129         * lib/unictype/pr_ignorable_control.c: New file.
34130         * lib/unictype/pr_iso_control.c: New file.
34131         * lib/unictype/pr_join_control.c: New file.
34132         * lib/unictype/pr_left_of_pair.c: New file.
34133         * lib/unictype/pr_line_separator.c: New file.
34134         * lib/unictype/pr_logical_order_exception.c: New file.
34135         * lib/unictype/pr_lowercase.c: New file.
34136         * lib/unictype/pr_math.c: New file.
34137         * lib/unictype/pr_non_break.c: New file.
34138         * lib/unictype/pr_not_a_character.c: New file.
34139         * lib/unictype/pr_numeric.c: New file.
34140         * lib/unictype/pr_other_alphabetic.c: New file.
34141         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34142         * lib/unictype/pr_other_grapheme_extend.c: New file.
34143         * lib/unictype/pr_other_id_continue.c: New file.
34144         * lib/unictype/pr_other_id_start.c: New file.
34145         * lib/unictype/pr_other_lowercase.c: New file.
34146         * lib/unictype/pr_other_math.c: New file.
34147         * lib/unictype/pr_other_uppercase.c: New file.
34148         * lib/unictype/pr_paired_punctuation.c: New file.
34149         * lib/unictype/pr_paragraph_separator.c: New file.
34150         * lib/unictype/pr_pattern_syntax.c: New file.
34151         * lib/unictype/pr_pattern_white_space.c: New file.
34152         * lib/unictype/pr_private_use.c: New file.
34153         * lib/unictype/pr_punctuation.c: New file.
34154         * lib/unictype/pr_quotation_mark.c: New file.
34155         * lib/unictype/pr_radical.c: New file.
34156         * lib/unictype/pr_sentence_terminal.c: New file.
34157         * lib/unictype/pr_soft_dotted.c: New file.
34158         * lib/unictype/pr_space.c: New file.
34159         * lib/unictype/pr_terminal_punctuation.c: New file.
34160         * lib/unictype/pr_test.c: New file.
34161         * lib/unictype/pr_titlecase.c: New file.
34162         * lib/unictype/pr_unassigned_code_value.c: New file.
34163         * lib/unictype/pr_unified_ideograph.c: New file.
34164         * lib/unictype/pr_uppercase.c: New file.
34165         * lib/unictype/pr_variation_selector.c: New file.
34166         * lib/unictype/pr_white_space.c: New file.
34167         * lib/unictype/pr_xid_continue.c: New file.
34168         * lib/unictype/pr_xid_start.c: New file.
34169         * lib/unictype/pr_zero_width.c: New file.
34170         * lib/unictype/scripts.c: New file.
34171         * lib/unictype/sy_c_ident.c: New file.
34172         * lib/unictype/sy_c_whitespace.c: New file.
34173         * lib/unictype/sy_java_ident.c: New file.
34174         * lib/unictype/sy_java_whitespace.c: New file.
34175
34176         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34177         Unicode 5.0.0.
34178         * lib/unictype/blocks.h: Likewise.
34179         * lib/unictype/categ_C.h: Likewise.
34180         * lib/unictype/categ_Cc.h: Likewise.
34181         * lib/unictype/categ_Cf.h: Likewise.
34182         * lib/unictype/categ_Cn.h: Likewise.
34183         * lib/unictype/categ_Co.h: Likewise.
34184         * lib/unictype/categ_Cs.h: Likewise.
34185         * lib/unictype/categ_L.h: Likewise.
34186         * lib/unictype/categ_Ll.h: Likewise.
34187         * lib/unictype/categ_Lm.h: Likewise.
34188         * lib/unictype/categ_Lo.h: Likewise.
34189         * lib/unictype/categ_Lt.h: Likewise.
34190         * lib/unictype/categ_Lu.h: Likewise.
34191         * lib/unictype/categ_M.h: Likewise.
34192         * lib/unictype/categ_Mc.h: Likewise.
34193         * lib/unictype/categ_Me.h: Likewise.
34194         * lib/unictype/categ_Mn.h: Likewise.
34195         * lib/unictype/categ_N.h: Likewise.
34196         * lib/unictype/categ_Nd.h: Likewise.
34197         * lib/unictype/categ_Nl.h: Likewise.
34198         * lib/unictype/categ_No.h: Likewise.
34199         * lib/unictype/categ_P.h: Likewise.
34200         * lib/unictype/categ_Pc.h: Likewise.
34201         * lib/unictype/categ_Pd.h: Likewise.
34202         * lib/unictype/categ_Pe.h: Likewise.
34203         * lib/unictype/categ_Pf.h: Likewise.
34204         * lib/unictype/categ_Pi.h: Likewise.
34205         * lib/unictype/categ_Po.h: Likewise.
34206         * lib/unictype/categ_Ps.h: Likewise.
34207         * lib/unictype/categ_S.h: Likewise.
34208         * lib/unictype/categ_Sc.h: Likewise.
34209         * lib/unictype/categ_Sk.h: Likewise.
34210         * lib/unictype/categ_Sm.h: Likewise.
34211         * lib/unictype/categ_So.h: Likewise.
34212         * lib/unictype/categ_Z.h: Likewise.
34213         * lib/unictype/categ_Zl.h: Likewise.
34214         * lib/unictype/categ_Zp.h: Likewise.
34215         * lib/unictype/categ_Zs.h: Likewise.
34216         * lib/unictype/categ_of.h: Likewise.
34217         * lib/unictype/combining.h: Likewise.
34218         * lib/unictype/ctype_alnum.h: Likewise.
34219         * lib/unictype/ctype_alpha.h: Likewise.
34220         * lib/unictype/ctype_blank.h: Likewise.
34221         * lib/unictype/ctype_cntrl.h: Likewise.
34222         * lib/unictype/ctype_digit.h: Likewise.
34223         * lib/unictype/ctype_graph.h: Likewise.
34224         * lib/unictype/ctype_lower.h: Likewise.
34225         * lib/unictype/ctype_print.h: Likewise.
34226         * lib/unictype/ctype_punct.h: Likewise.
34227         * lib/unictype/ctype_space.h: Likewise.
34228         * lib/unictype/ctype_upper.h: Likewise.
34229         * lib/unictype/ctype_xdigit.h: Likewise.
34230         * lib/unictype/decdigit.h: Likewise.
34231         * lib/unictype/digit.h: Likewise.
34232         * lib/unictype/mirror.h: Likewise.
34233         * lib/unictype/numeric.h: Likewise.
34234         * lib/unictype/pr_alphabetic.h: Likewise.
34235         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34236         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34237         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34238         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34239         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34240         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34241         * lib/unictype/pr_bidi_control.h: Likewise.
34242         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34243         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34244         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34245         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34246         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34247         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34248         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34249         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34250         * lib/unictype/pr_bidi_pdf.h: Likewise.
34251         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34252         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34253         * lib/unictype/pr_combining.h: Likewise.
34254         * lib/unictype/pr_composite.h: Likewise.
34255         * lib/unictype/pr_currency_symbol.h: Likewise.
34256         * lib/unictype/pr_dash.h: Likewise.
34257         * lib/unictype/pr_decimal_digit.h: Likewise.
34258         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34259         * lib/unictype/pr_deprecated.h: Likewise.
34260         * lib/unictype/pr_diacritic.h: Likewise.
34261         * lib/unictype/pr_extender.h: Likewise.
34262         * lib/unictype/pr_format_control.h: Likewise.
34263         * lib/unictype/pr_grapheme_base.h: Likewise.
34264         * lib/unictype/pr_grapheme_extend.h: Likewise.
34265         * lib/unictype/pr_grapheme_link.h: Likewise.
34266         * lib/unictype/pr_hex_digit.h: Likewise.
34267         * lib/unictype/pr_hyphen.h: Likewise.
34268         * lib/unictype/pr_id_continue.h: Likewise.
34269         * lib/unictype/pr_id_start.h: Likewise.
34270         * lib/unictype/pr_ideographic.h: Likewise.
34271         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34272         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34273         * lib/unictype/pr_ignorable_control.h: Likewise.
34274         * lib/unictype/pr_iso_control.h: Likewise.
34275         * lib/unictype/pr_join_control.h: Likewise.
34276         * lib/unictype/pr_left_of_pair.h: Likewise.
34277         * lib/unictype/pr_line_separator.h: Likewise.
34278         * lib/unictype/pr_logical_order_exception.h: Likewise.
34279         * lib/unictype/pr_lowercase.h: Likewise.
34280         * lib/unictype/pr_math.h: Likewise.
34281         * lib/unictype/pr_non_break.h: Likewise.
34282         * lib/unictype/pr_not_a_character.h: Likewise.
34283         * lib/unictype/pr_numeric.h: Likewise.
34284         * lib/unictype/pr_other_alphabetic.h: Likewise.
34285         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34286         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34287         * lib/unictype/pr_other_id_continue.h: Likewise.
34288         * lib/unictype/pr_other_id_start.h: Likewise.
34289         * lib/unictype/pr_other_lowercase.h: Likewise.
34290         * lib/unictype/pr_other_math.h: Likewise.
34291         * lib/unictype/pr_other_uppercase.h: Likewise.
34292         * lib/unictype/pr_paired_punctuation.h: Likewise.
34293         * lib/unictype/pr_paragraph_separator.h: Likewise.
34294         * lib/unictype/pr_pattern_syntax.h: Likewise.
34295         * lib/unictype/pr_pattern_white_space.h: Likewise.
34296         * lib/unictype/pr_private_use.h: Likewise.
34297         * lib/unictype/pr_punctuation.h: Likewise.
34298         * lib/unictype/pr_quotation_mark.h: Likewise.
34299         * lib/unictype/pr_radical.h: Likewise.
34300         * lib/unictype/pr_sentence_terminal.h: Likewise.
34301         * lib/unictype/pr_soft_dotted.h: Likewise.
34302         * lib/unictype/pr_space.h: Likewise.
34303         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34304         * lib/unictype/pr_titlecase.h: Likewise.
34305         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34306         * lib/unictype/pr_unified_ideograph.h: Likewise.
34307         * lib/unictype/pr_uppercase.h: Likewise.
34308         * lib/unictype/pr_variation_selector.h: Likewise.
34309         * lib/unictype/pr_white_space.h: Likewise.
34310         * lib/unictype/pr_xid_continue.h: Likewise.
34311         * lib/unictype/pr_xid_start.h: Likewise.
34312         * lib/unictype/pr_zero_width.h: Likewise.
34313         * lib/unictype/scripts.h: Likewise.
34314         * lib/unictype/scripts_byname.gperf: Likewise.
34315         * lib/unictype/sy_c_ident.h: Likewise.
34316         * lib/unictype/sy_c_whitespace.h: Likewise.
34317         * lib/unictype/sy_java_ident.h: Likewise.
34318         * lib/unictype/sy_java_whitespace.h: Likewise.
34319
34320         * lib/unictype/Makefile: New file.
34321         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34322         glibc.
34323         * lib/unictype/3level.h: New file, copied from glibc.
34324         * lib/unictype/3levelbit.h: New file.
34325
34326 2007-11-11  Bruno Haible  <bruno@clisp.org>
34327
34328         * modules/gperf: New file.
34329         * modules/iconv_open (Depends-on): Add it.
34330         (Makefile.am): Remove the GPERF definition.
34331
34332 2007-11-11  Bruno Haible  <bruno@clisp.org>
34333
34334         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34335         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34336
34337 2007-11-11  Bruno Haible  <bruno@clisp.org>
34338
34339         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34340         (usage): Remove function.
34341
34342 2007-11-11  Bruno Haible  <bruno@clisp.org>
34343
34344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34345         gl_FUNC_CEILF_LIBS.
34346         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34347         gl_FUNC_CEIL_LIBS.
34348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34349         gl_FUNC_CEILL_LIBS.
34350         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34351         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34352         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34353
34354 2007-11-11  Bruno Haible  <bruno@clisp.org>
34355
34356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34357         roundf were declared but do not exist on functions.
34358         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34359         roundl were declared but do not exist on functions.
34360         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34361         HAVE_FLOORL_AND_CEILL, respectively.
34362         Needed for Sun C on Solaris 10.
34363
34364 2007-11-11  Bruno Haible  <bruno@clisp.org>
34365
34366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34367         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34368         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34369         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34371         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34372         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34373         HAVE_DECL_ROUNDF.
34374         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34375         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34377         of HAVE_DECL_ROUND*.
34378         * modules/math (Makefile.am): Update.
34379
34380 2007-11-10  Bruno Haible  <bruno@clisp.org>
34381
34382         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34383         ptrdiff_t as m4/intl.m4.
34384
34385 2007-11-10  Jim Meyering  <meyering@redhat.com>
34386
34387         Avoid link failure for the argmatch test.
34388         * tests/test-argmatch.c (usage): Define function to avoid a link
34389         failure: argmatch_die requires a usage function.
34390
34391 2007-11-09  Bruno Haible  <bruno@clisp.org>
34392
34393         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34394         * doc/functions/vsnprintf.texi: Likewise.
34395         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34396         with a size argument < 2.
34397
34398 2007-11-09  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34401         buffer. Fixes an inefficiency introduced on 2007-11-03.
34402
34403 2007-11-09  Bruno Haible  <bruno@clisp.org>
34404
34405         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34406         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34407
34408 2007-11-08  Jim Meyering  <meyering@redhat.com>
34409
34410         Change cache variable name prefix "jm_" to "gl_" everywhere.
34411         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34412         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34413         * m4/uptime.m4: s/gl_/jm_/
34414
34415 2007-11-07  Bruno Haible  <bruno@clisp.org>
34416
34417         Update to GNU gettext 0.17.
34418         * m4/intl.m4: Update to GNU gettext 0.17.
34419         * m4/po.m4: Likewise.
34420         * modules/gettext (Files): Remove m4/ulonglong.m4.
34421         (configure.ac): Require gettext infrastructure from version 0.17.
34422
34423 2007-11-06  Bruno Haible  <bruno@clisp.org>
34424
34425         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34426         symbolic values are not defined in a public header.
34427         * lib/freadable.c (freadable) [QNX]: Likewise.
34428         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34429         * lib/freading.c (freading) [QNX]: Likewise.
34430         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34431         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34432         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34433         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34434         Reported by Alain Magloire.
34435
34436         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34437
34438 2007-11-05  Bruno Haible  <bruno@clisp.org>
34439
34440         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34441         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34442         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34443         Reported by Eric Blake.
34444
34445 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34446             Bruno Haible  <bruno@clisp.org>
34447
34448         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34449         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34450         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34451         (malloc): Undefine also before including <stdlib.h>.
34452         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34453         Needed on OSF/1 4.0.
34454
34455 2007-11-05  Jim Meyering  <meyering@redhat.com>
34456
34457         git-version-gen: sync from coreutils.
34458         * build-aux/git-version-gen: Add comments.
34459         Change the first '-' to '.' in the snapshot version string,
34460         e.g., 6.9-377-08144 -> 6.9.377-08144
34461         Remove first parameter.
34462         Don't declare a version "-dirty" merely because a time
34463         stamp has changed.
34464
34465 2007-11-04  Bruno Haible  <bruno@clisp.org>
34466
34467         * lib/lock.h: Protect all macro definitions containing an 'if'
34468         statement through a "do { ... } while (0)".
34469         * lib/tls.h: Likewise.
34470
34471 2007-11-04  Bruno Haible  <bruno@clisp.org>
34472
34473         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34474
34475 2007-11-04  Bruno Haible  <bruno@clisp.org>
34476
34477         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34478         * modules/fprintf-posix (Depends-on): Add nocrash.
34479         * modules/snprintf-posix (Depends-on): Likewise.
34480         * modules/sprintf-posix (Depends-on): Likewise.
34481         * modules/vasnprintf-posix (Depends-on): Likewise.
34482         * modules/vasprintf-posix (Depends-on): Likewise.
34483         * modules/vfprintf-posix (Depends-on): Likewise.
34484         * modules/vsnprintf-posix (Depends-on): Likewise.
34485         * modules/vsprintf-posix (Depends-on): Likewise.
34486         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34487         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34488         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34489         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34491         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34492         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34493
34494 2007-11-04  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/nocrash: New file.
34497         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34498         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34499
34500 2007-11-04  Bruno Haible  <bruno@clisp.org>
34501
34502         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34503         precision handling.
34504         * tests/test-vasprintf-posix.c (test_function): Likewise.
34505         * tests/test-snprintf-posix.h (test_function): Likewise.
34506         * tests/test-sprintf-posix.h (test_function): Likewise.
34507
34508         Fix *printf behaviour for large precisions on mingw and BeOS.
34509         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34510         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34514         gl_PRINTF_PRECISION and test its result. Invoke
34515         gl_PREREQ_VASNPRINTF_PRECISION.
34516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34523         * doc/functions/fprintf.texi: Update.
34524         * doc/functions/printf.texi: Update.
34525         * doc/functions/snprintf.texi: Update.
34526         * doc/functions/sprintf.texi: Update.
34527         * doc/functions/vfprintf.texi: Update.
34528         * doc/functions/vprintf.texi: Update.
34529         * doc/functions/vsnprintf.texi: Update.
34530         * doc/functions/vsprintf.texi: Update.
34531
34532 2007-11-04  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34535
34536 2007-11-04  Bruno Haible  <bruno@clisp.org>
34537
34538         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34539         Reported by Sylvain Beucler <beuc@gnu.org>.
34540
34541 2007-11-03  Bruno Haible  <bruno@clisp.org>
34542
34543         * tests/test-fprintf-posix2.sh: New file.
34544         * tests/test-fprintf-posix2.c: New file.
34545         * modules/fprintf-posix-tests (Files): Add them.
34546         (TESTS): Add test-fprintf-posix2.sh.
34547         (configure.ac): Check for getrlimit and setrlimit.
34548         (check_PROGRAMS): Add test-fprintf-posix2.
34549
34550         * tests/test-printf-posix2.sh: New file.
34551         * tests/test-printf-posix2.c: New file.
34552         * modules/printf-posix-tests (Files): Add them.
34553         (TESTS): Add test-printf-posix2.sh.
34554         (configure.ac): Check for getrlimit and setrlimit.
34555         (check_PROGRAMS): Add test-printf-posix2.
34556
34557         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34558         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34559         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34560         (decode_double): New function, copied from decode_long_double.
34561         (scale10_round_decimal_decoded): New function, extracted from
34562         scale10_round_decimal_long_double.
34563         (scale10_round_decimal_long_double): Use it.
34564         (scale10_round_decimal_double): New function.
34565         (floorlog10): New function.
34566         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34568         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34570         gl_PRINTF_ENOMEM and test its result. Invoke
34571         gl_PREREQ_VASNPRINTF_ENOMEM.
34572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34579         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34580         * modules/snprintf-posix (Depends-on): Likewise.
34581         * modules/sprintf-posix (Depends-on): Likewise.
34582         * modules/vasnprintf-posix (Depends-on): Likewise.
34583         * modules/vasprintf-posix (Depends-on): Likewise.
34584         * modules/vfprintf-posix (Depends-on): Likewise.
34585         * modules/vsnprintf-posix (Depends-on): Likewise.
34586         * modules/vsprintf-posix (Depends-on): Likewise.
34587         * doc/functions/fprintf.texi: Update.
34588         * doc/functions/printf.texi: Update.
34589         * doc/functions/snprintf.texi: Update.
34590         * doc/functions/sprintf.texi: Update.
34591         * doc/functions/vfprintf.texi: Update.
34592         * doc/functions/vprintf.texi: Update.
34593         * doc/functions/vsnprintf.texi: Update.
34594         * doc/functions/vsprintf.texi: Update.
34595
34596 2007-11-03  Bruno Haible  <bruno@clisp.org>
34597
34598         * modules/frexp-nolibm-tests: New file.
34599
34600         * modules/frexp-nolibm: New file.
34601         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34602
34603 2007-11-03  Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34606         value is C99 compliant.
34607         Needed for OSF/1 5.1.
34608
34609 2007-11-03  Bruno Haible  <bruno@clisp.org>
34610
34611         Fix out-of-memory handling of vasnprintf.
34612         * lib/printf-parse.c: Include <errno.h>.
34613         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34614         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34615         is already set.
34616
34617 2007-11-02  Eric Blake  <ebb9@byu.net>
34618
34619         Fix tests on cygwin.
34620         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34621
34622 2007-11-01  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34625         warning.
34626         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34627         needed for POSIX compatibility.
34628
34629 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34630
34631         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34632         for compatibility with GNU.
34633
34634 2007-11-01  Bruno Haible  <bruno@clisp.org>
34635
34636         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34637         (putenv): Renamed from rpl_putenv. Change argument type from
34638         'const char *' to 'char *'.
34639         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34640         of defining putenv in config.h, just set REPLACE_PUTENV.
34641         * modules/putenv (Depends-on): Add stdlib.
34642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34643         (Include): Use <stdlib.h>.
34644         * lib/stdlib.in.h (putenv): New declaration.
34645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34646         REPLACE_PUTENV.
34647         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34648         REPLACE_PUTENV.
34649         Needed for MacOS X 10.5.0.
34650         Reported by Peter O'Gorman <peter@pogma.com>.
34651
34652 2007-11-01  Jim Meyering  <meyering@redhat.com>
34653
34654         Treat an empty date string exactly like "0".
34655         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34656         if the remaining date string (to be parsed) is empty, use "0".
34657         Reported by Mischa Molhoek and discussed in this thread:
34658         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34659
34660 2007-10-31  Bruno Haible  <bruno@clisp.org>
34661
34662         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34663         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34664         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34665         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34666         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34667         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34668
34669 2007-10-31  Bruno Haible  <bruno@clisp.org>
34670
34671         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34672         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34673         (AC_TYPE_LONG_LONG_INT): Use it.
34674         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34675         it as well.
34676         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34677         to m4/longlong.m4.
34678         * modules/stdint (Files): Remove m4/ulonglong.m4.
34679         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34680         m4/ulonglong.m4.
34681         * modules/strtoumax (Files): Likewise.
34682
34683 2007-10-30  Bruno Haible  <bruno@clisp.org>
34684
34685         * modules/xvasprintf-posix: New file.
34686         Suggested by Eric Blake.
34687
34688 2007-10-30  Bruno Haible  <bruno@clisp.org>
34689
34690         * modules/xprintf-posix-tests: New file.
34691         * tests/test-xprintf-posix.sh: New file.
34692         * tests/test-xprintf-posix.c: New file.
34693         * tests/test-xfprintf-posix.c: New file.
34694
34695         * modules/xprintf-posix: New file.
34696
34697 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34698
34699         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34700         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34701         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34702
34703 2007-10-29  Bruno Haible  <bruno@clisp.org>
34704
34705         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34706         contain the special marker '_cv_'.
34707         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34708         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34709         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34710         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34711         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34712         Reported by Ralf Wildenhues.
34713
34714 2007-10-29  Bruno Haible  <bruno@clisp.org>
34715
34716         * gnulib-tool (func_import): When --lgpl is not specified, set
34717         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34718         GPLv3.
34719         Reported by Simon Josefsson.
34720
34721 2007-10-28  Bruno Haible  <bruno@clisp.org>
34722
34723         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34724         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34725         HAVE_DECL_ISFINITE.
34726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34727         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34728         HAVE_DECL_ISFINITE.
34729
34730 2007-10-28  Bruno Haible  <bruno@clisp.org>
34731
34732         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34733         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34734
34735 2007-10-28  Bruno Haible  <bruno@clisp.org>
34736
34737         Fix link errors with Sun C 5.0 on Solaris 10.
34738         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34739         function is declared but not present in the compiler's libm.
34740         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34741         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34742         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34743         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34744         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34745         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34746         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34748         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34749         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34750         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34751         HAVE_DECL_FLOORL.
34752
34753 2007-10-28  Bruno Haible  <bruno@clisp.org>
34754
34755         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34756         gl_FUNC_FLOORL. Cache the result.
34757         (gl_FUNC_FLOORL): Use it.
34758         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34759         gl_FUNC_CEILL. Cache the result.
34760         (gl_FUNC_CEILL): Use it.
34761
34762         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34763         gl_FUNC_FLOOR. Cache the result.
34764         (gl_FUNC_FLOOR): Use it.
34765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34766         gl_FUNC_CEIL. Cache the result.
34767         (gl_FUNC_CEIL): Use it.
34768
34769         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34770         gl_FUNC_FLOORF. Cache the result.
34771         (gl_FUNC_FLOORF): Use it.
34772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34773         gl_FUNC_CEILF. Cache the result.
34774         (gl_FUNC_CEILF): Use it.
34775
34776 2007-10-28  Bruno Haible  <bruno@clisp.org>
34777
34778         * gnulib-tool: Allow specifying the LGPL version number through
34779         --lgpl=2 or --lgpl=3.
34780         (func_usage): Document --lgpl with argument.
34781         Handle --lgpl=... arguments.
34782         (func_import): Recognize also gl_LGPL calls with an argument. When
34783         --lgpl=2 is used and the module's license is just LGPL, report an
34784         error. Set sed_transform_lib_file according to the lgpl variable. In
34785         the generated files, use --lgpl or gl_LGPL invocations with argument,
34786         if necessary.
34787         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34788         an LGPv2+ license.
34789         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34790         gl_LGPL macro.
34791
34792 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34793             Bruno Haible  <bruno@clisp.org>
34794
34795         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34796         (u16_uctomb_aux): Likewise.
34797         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34798         !HAVE_INLINE.
34799         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34800
34801 2007-10-28  Bruno Haible  <bruno@clisp.org>
34802
34803         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34804         Invoke AM_GETTEXT_OPTION if it exists.
34805         * modules/vasprintf: Likewise.
34806         * modules/verror: Likewise.
34807         * modules/xprintf: Likewise.
34808         * modules/xvasprintf: Likewise.
34809
34810 2007-10-27  Ben Pfaff  <blp@gnu.org>
34811
34812         * lib/math.in.h: Define isfinite macro and prototypes for
34813         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34814         implementations.
34815         * m4/math_h.m4: New substitutions for isfinite module.
34816         * lib/isfinite.c: New file.
34817         * m4/isfinite.m4: New file.
34818         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34819         * modules/isfinite: New file.
34820         * modules/isfinite-tests: New file.
34821         * tests/tests-isfinite.c: New file.
34822         * doc/functions/isfinite.texi: Mention isfinite module.
34823         * MODULES.html.sh: Mention new module.
34824
34825 2007-10-27  Ben Pfaff  <blp@gnu.org>
34826
34827         Ralf Wildenhues reported that Tru64 4.0D declares the round
34828         functions but does not have definitions.
34829         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34830         cannot be found in any library, set the output variable to
34831         "missing" instead of "".
34832         * m4/round.m4: Also use our substitute if we cannot find round in
34833         any library, even if it is declared.
34834         * m4/roundf.m4: Likewise for roundf.
34835         * m4/roundl.m4: Likewise for roundl.
34836         * lib/math.in.h: Undefine roundf, round, roundl before defining
34837         their replacements, to allow for hypothetical systems where these
34838         may be defined as macros but not available in libraries.
34839
34840 2007-10-27  Bruno Haible  <bruno@clisp.org>
34841
34842         * doc/gnulib.texi: Invoke @firstparagraphindent.
34843         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34844         changes in gnulib.
34845         (Source changes): New section.
34846
34847 2007-10-26  Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34850         borrowed from autoconf.
34851
34852 2007-10-26  Bruno Haible  <bruno@clisp.org>
34853
34854         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34855         strerror returned the empty string. Needed on HP-UX 11.00.
34856
34857 2007-10-24  Micah Cowan  <micah@cowan.name>
34858
34859         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34860         * build-aux/bootstrap: Remove support for now-unnecessary option,
34861         --cvs-user, and envvars CVS_USER, CVS_RSH.
34862
34863 2007-10-24  Jim Meyering  <meyering@redhat.com>
34864
34865         Avoid diagnostics from sha1sum when there is no cached checksum.
34866         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34867         if the po.s1 file hasn't been created yet.
34868
34869         * build-aux/bootstrap: Sync from coreutils:
34870         2007-10-24  Jim Meyering  <meyering@redhat.com>
34871         Get gnulib from the git repository, not from an obsolete cvs one.
34872         * build-aux/bootstrap: Suggestion from Micah Cowan.
34873         2007-10-04  Jim Meyering  <jim@meyering.net>
34874         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34875         (update_po_files): Work also when there are no .po files in po/.
34876
34877 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34878
34879         * README: Append ".git" to git and cg examples.
34880         Problem reported by Benoit Sigoure.
34881
34882 2007-10-23  Micah Cowan  <micah@cowan.name>
34883
34884         * users.txt: Add wget.
34885
34886 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34887
34888         Fix linking of some unistdio tests on FreeBSD.
34889         * modules/unistdio/u16-vsnprintf-tests
34890         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34891         * modules/unistdio/u16-vsprintf-tests
34892         (test_u16_vsnprintf1_LDADD): Likewise.
34893         * modules/unistdio/u32-vsnprintf-tests
34894         (test_u32_vsnprintf1_LDADD): Likewise.
34895         * modules/unistdio/u32-vsprintf-tests
34896         (test_u32_vsprintf1_LDADD): Likewise.
34897         * modules/unistdio/u8-vsnprintf-tests
34898         (test_u8_vsnprintf1_LDADD): Likewise.
34899         * modules/unistdio/u8-vsprintf-tests
34900         (test_u8_vsprintf1_LDADD): Likewise.
34901         * modules/unistdio/ulc-vsnprintf-tests
34902         (test_ulc_vsnprintf1_LDADD): Likewise.
34903         * modules/unistdio/ulc-vsprintf-tests
34904         (test_ulc_vsprintf1_LDADD): Likewise.
34905
34906         Fix linking of some uniconv tests on FreeBSD.
34907         * modules/uniconv/u16-conv-from-enc-tests
34908         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34909         * modules/uniconv/u16-conv-to-enc-tests
34910         (test_u16_conv_to_enc_LDADD): Likewise.
34911         * modules/uniconv/u16-strconv-from-enc-tests
34912         (test_u16_strconv_from_enc_LDADD): Likewise.
34913         * modules/uniconv/u16-strconv-to-enc-tests
34914         (test_u16_strconv_to_enc_LDADD): Likewise.
34915         * modules/uniconv/u32-conv-from-enc-tests
34916         (test_u32_conv_from_enc_LDADD): Likewise.
34917         * modules/uniconv/u32-conv-to-enc-tests
34918         (test_u32_conv_to_enc_LDADD): Likewise.
34919         * modules/uniconv/u32-strconv-from-enc-tests
34920         (test_u32_strconv_from_enc_LDADD): Likewise.
34921         * modules/uniconv/u32-strconv-to-enc-tests
34922         (test_u32_strconv_to_enc_LDADD): Likewise.
34923         * modules/uniconv/u8-conv-from-enc-tests
34924         (test_u8_conv_from_enc_LDADD): Likewise.
34925         * modules/uniconv/u8-conv-to-enc-tests
34926         (test_u8_conv_to_enc_LDADD): Likewise.
34927         * modules/uniconv/u8-strconv-from-enc-tests
34928         (test_u8_strconv_from_enc_LDADD): Likewise.
34929         * modules/uniconv/u8-strconv-to-enc-tests
34930         (test_u8_strconv_to_enc_LDADD): Likewise.
34931
34932 2007-10-22  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34935         size.
34936
34937 2007-10-22  Eric Blake  <ebb9@byu.net>
34938
34939         Tweak x*printf documentation.
34940         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34941         variable name and comments.
34942         Suggested by Bruno Haible.
34943
34944 2007-10-22  Bruno Haible  <bruno@clisp.org>
34945
34946         * lib/acl.c (copy_acl): Fix file name in comment.
34947
34948 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34949
34950         Fix Tru64 problem with stdbool.h.
34951         * lib/stdbool.in.h (false, true):
34952         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34953         Don't declare as an enum in this situation; it runs afoul of Tru64.
34954         Problem reported by Steven M. Schweda in
34955         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34956
34957 2007-10-22  Eric Blake  <ebb9@byu.net>
34958
34959         Also wrap vf?printf.
34960         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34961         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34962         (xvprintf, xvfprintf): New functions.
34963
34964 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34965
34966         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34967         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34968
34969         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34970         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34971
34972 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34973
34974         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34975         by Bruno Haible.
34976
34977 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34978
34979         * lib/getloadavg.c
34980         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34981         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34982
34983         * tests/test-i-ring.c: Work for C89.
34984
34985 2007-10-22  Bruno Haible  <bruno@clisp.org>
34986
34987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34988         -1u, in preprocessor expression, so that we don't test for the bug
34989         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34991
34992 2007-10-22  Eric Blake  <ebb9@byu.net>
34993
34994         * tests/test-yesno.sh: Silence stderr during test.
34995
34996 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34997
34998         * modules/crypto/gc-camellia: New file.
34999
35000         * m4/gc-camellia.m4: New file.
35001
35002         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35003
35004         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35005
35006 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35007
35008         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35009         --help to stdout.  Reported by sms@antinode.org (Steven
35010         M. Schweda).
35011
35012 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35013
35014         * users.txt: Fix link to libksba.
35015
35016 2007-10-21  Ben Pfaff  <blp@gnu.org>
35017
35018         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35019         round.c roundf implementation that depends on floorf and ceilf to
35020         be tested unconditionally.
35021
35022 2007-10-21  Ben Pfaff  <blp@gnu.org>
35023
35024         * m4/check-libm-func.m4: Removed.
35025         * m4/check-math-lib.m4: New file.
35026         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35027         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35028         definition and lack of AC_LIBOBJ([roundf]).
35029         * m4/roundl.m4: Ditto, and similarly for roundl.
35030         * modules/round: Reference new m4 file.
35031         * modules/roundf: Ditto.
35032         * modules/roundl: Ditto.
35033         * tests/test-round2.c (main): Use ROUND instead of round.
35034         Bug report from Bruno Haible.
35035
35036 2007-10-21  Bruno Haible  <bruno@clisp.org>
35037
35038         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35039         context.
35040
35041 2007-10-21  Bruno Haible  <bruno@clisp.org>
35042
35043         * tests/test-wcwidth.c (main): Allow negative result for some control
35044         characters.
35045
35046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35047         Needed on OSF/1 5.1.
35048
35049 2007-10-21  Bruno Haible  <bruno@clisp.org>
35050
35051         * tests/test-floorf1.c: Include isnanf.h.
35052         (main): Use isnanf() instead of isnan().
35053         * tests/test-ceilf1.c: Include isnanf.h.
35054         (main): Use isnanf() instead of isnan().
35055         * tests/test-truncf1.c: Include isnanf.h.
35056         (main): Use isnanf() instead of isnan().
35057         * tests/test-roundf1.c: Include isnanf.h.
35058         (main): Use isnanf() instead of isnan().
35059
35060 2007-10-21  Eric Blake  <ebb9@byu.net>
35061
35062         * users.txt: Update URL for m4.
35063
35064 2007-10-21  Bruno Haible  <bruno@clisp.org>
35065
35066         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35067
35068 2007-10-21  Bruno Haible  <bruno@clisp.org>
35069
35070         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35071         Git's management files if the CVS files are not present.
35072
35073 2007-10-20  Bruno Haible  <bruno@clisp.org>
35074
35075         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35076         gcc-3.4.x.
35077
35078 2007-10-20  Ben Pfaff  <blp@gnu.org>
35079
35080         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35081         implementations.
35082         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35083         * lib/round.c: New file.
35084         * lib/roundf.c: New file.
35085         * lib/roundl.c: New file.
35086         * m4/round.m4: New file.
35087         * m4/roundf.m4: New file.
35088         * m4/roundl.m4: New file.
35089         * m4/check-libm-func-m4: New file.
35090         * modules/math: Replace round, roundf, roundl related @VARS@ in
35091         math.in.h.
35092         * modules/round: New file.
35093         * modules/round-tests: New file.
35094         * modules/roundf: New file.
35095         * modules/roundf-tests: New file.
35096         * modules/roundl: New file.
35097         * modules/roundl-tests: New file.
35098         * tests/test-round1.c: New file.
35099         * tests/test-round2.c: New file.
35100         * tests/test-roundf1.c: New file.
35101         * tests/test-roundf2.c: New file.
35102         * tests/test-roundl.c: New file.
35103         * doc/functions/round.texi: Mention round module.
35104         * doc/functions/roundf.texi: Mention roundf module.
35105         * doc/functions/roundl.texi: Mention roundl module.
35106         * MODULES.html.sh: Mention new modules.
35107         Thanks to Bruno Haible for suggestions.
35108
35109 2007-10-20  Jim Meyering  <meyering@redhat.com>
35110
35111         * lib/xprintf.c: Include <config.h> unconditionally.
35112
35113         Change xprintf's license to GPL.
35114         * modules/xprintf (License): s/LGPL/GPL/, since this module
35115         depends on modules (exit and exitfail) which are GPL.
35116         Suggestion from Bruno Haible.
35117
35118         xprintf fixes.
35119         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35120         Use a clearer diagnostic.
35121         Patch from Bruno Haible.
35122
35123 2007-10-20  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35126         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35128
35129 2007-10-20  Bruno Haible  <bruno@clisp.org>
35130
35131         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35132         precision in the comparison result > x - 1 or similar.
35133         * tests/test-ceilf2.c (correct_result_p): Likewise.
35134         * tests/test-truncf2.c (correct_result_p): Likewise.
35135         * tests/test-trunc2.c (correct_result_p): Likewise.
35136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35137
35138 2007-10-20  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/ceil: New file.
35141         * m4/ceil.m4: New file.
35142         * doc/functions/ceil.texi: Mention the 'ceil' module.
35143
35144 2007-10-20  Bruno Haible  <bruno@clisp.org>
35145
35146         * modules/floor: New file.
35147         * m4/floor.m4: New file.
35148         * doc/functions/floor.texi: Mention the 'floor' module.
35149
35150 2007-10-20  Bruno Haible  <bruno@clisp.org>
35151
35152         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35153         of %a.
35154         * modules/floorf-tests (Depends-on): Likewise.
35155         * modules/truncf-tests (Depends-on): Likewise.
35156         * modules/trunc-tests (Depends-on): Likewise.
35157         Reported by Ben Pfaff.
35158
35159 2007-10-19  Jim Meyering  <meyering@redhat.com>
35160
35161         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35162         Don't bother testing specific errno values.  Just test ferror.
35163
35164         New module: xprintf
35165         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35166
35167 2007-10-19  Bruno Haible  <bruno@clisp.org>
35168
35169         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35170         syntax.
35171         * modules/javaexec (Makefile.am): Likewise.
35172         * modules/relocatable-prog (Makefile.am): Likewise.
35173         Suggested by Jim Meyering.
35174
35175 2007-10-18  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35178         Reported by Jim Meyering.
35179
35180 2007-10-18  Eric Blake  <ebb9@byu.net>
35181
35182         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35183
35184 2007-10-18  Bruno Haible  <bruno@clisp.org>
35185
35186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35187         the format string into writable memory. Needed in Fortify conditions.
35188
35189 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35190             Bruno Haible  <bruno@clisp.org>
35191
35192         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35193         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35194         * modules/trim (Depends-on): Add mbchar.
35195         (configure.ac): Add gl_FUNC_MBRTOWC.
35196         (Makefile.am): Augment lib_SOURCES.
35197
35198 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35199
35200         Modify glob.c to use fstatat and dirfd, to simplify it.
35201         Suggested by Eric Blake.
35202         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35203         Don't include <stdbool.h>; not used.
35204         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35205         (link_exists_p): Simplify implementation, since we can now assume
35206         dirfd and fstatat.
35207         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35208
35209 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35210
35211         * gnulib-tool (func_get_dependencies): Fix sed script to
35212         match only tests.
35213
35214 2007-10-17  Bruno Haible  <bruno@clisp.org>
35215
35216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35217         allow locale names without encoding suffix.
35218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35220
35221 2007-10-16  Bruno Haible  <bruno@clisp.org>
35222
35223         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35224         * lib/getgroups.c (getgroups): Likewise.
35225         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35226
35227 2007-10-16  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35230         * modules/malloc-posix (License): Likewise.
35231         * modules/realloc-posix (License): Likewise.
35232         * modules/calloc-posix (License): Likewise.
35233         * modules/intprops (License): Change from GPL to LGPL, with
35234         Paul Eggert's approval.
35235
35236 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35237
35238         Merge glibc changes into lib/glob.c.
35239
35240         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35241         2007-10-15 04:59:03 UTC.  Here are the changes:
35242
35243         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35244
35245         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35246
35247         * lib/glob.c: Add some branch prediction throughout.
35248
35249         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35250
35251         [BZ #5103]
35252         * lib/glob.c (glob): Recognize patterns starting \/.
35253
35254         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35255
35256         [BZ #3996]
35257         * lib/glob.c (attribute_hidden): Define if not defined.
35258         (glob): Unescape dirname, filename or username when needed and not
35259         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35260         is NULL.  Handle unescaped [ in pattern without closing ].
35261         Don't pass GLOB_CHECK down to recursive glob for directories.
35262         (__glob_pattern_type): New function.
35263         (__glob_pattern_p): Implement using __glob_pattern_type.
35264         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35265         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35266         Remove unreachable code.
35267
35268         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35269
35270         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35271         explain why there are no leaks.
35272
35273         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35274
35275         [BZ #3253]
35276         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35277         time, rather allocate increasingly bigger arrays of pointers, if
35278         possible with alloca, if too large with malloc.
35279
35280 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35281
35282         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35283         Problem reported by H.Merijn Brand in
35284         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35285         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35287
35288 2007-10-15  Bruno Haible  <bruno@clisp.org>
35289
35290         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35291         with explicit rpl_ prefix.
35292         * lib/fopen.c (fopen): Likewise.
35293         * lib/freopen.c (freopen): Likewise.
35294         * lib/iconv.c (iconv): Likewise.
35295         * lib/iconv_close.c (iconv_close): Likewise.
35296
35297 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35298
35299         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35300
35301 2007-10-15  Bruno Haible  <bruno@clisp.org>
35302
35303         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35304         <stddef.h> instead of <stdlib.h> since we only need NULL.
35305         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35306
35307 2007-10-15  Bruno Haible  <bruno@clisp.org>
35308
35309         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35310         Replace paragraph talking about LIBOBJS.
35311         Reported by Colin Watson <cjwatson@debian.org>.
35312
35313 2007-10-15  Bruno Haible  <bruno@clisp.org>
35314
35315         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35316         <stdlib.h> before using NULL.
35317
35318 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35319
35320         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35321         Reported by Albert Chin <china@thewrittenword.com>.
35322
35323 2007-10-14  Bruno Haible  <bruno@clisp.org>
35324
35325         * modules/iconv_open-utf-tests: New file.
35326         * tests/test-iconv-utf.c: New file.
35327
35328         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35329         * modules/iconv_open-utf: New file.
35330         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35331         (iconv, iconv_close): New declarations.
35332         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35333         be defined.
35334         (iconv_open): Add special handling of conversion between UTF-8 and
35335         UTF-{16,32}{BE,LE}.
35336         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35337         * lib/iconv_close.c: New file.
35338         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35339         gl_FUNC_ICONV_OPEN.
35340         (gl_FUNC_ICONV_OPEN): Use it.
35341         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35342         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35343         and REPLACE_ICONV_UTF.
35344         * modules/iconv_open (Depends-on): Add c-strcase.
35345         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35346         ICONV_CONST.
35347         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35348
35349 2007-10-13  Albert Chin  <china@thewrittenword.com>
35350             Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35353         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35354
35355 2007-10-13  Bruno Haible  <bruno@clisp.org>
35356
35357         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35358         defined, use the ISO C99 inline semantics.
35359         * lib/argp.h (ARGP_EI): Likewise.
35360
35361 2007-10-13  Bruno Haible  <bruno@clisp.org>
35362
35363         Handle 'inline' change in gcc 4.3.0.
35364         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35365         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35366         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35367         argp_fmtstream_point): Disable 'extern' declaration if the function
35368         definition is going to be provided inline.
35369         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35370         semantics, not the ISO C99 inline semantics.
35371         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35372         'extern' declaration if the function definition is going to be provided
35373         inline.
35374         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35375         the GNU C inline semantics, not the ISO C99 inline semantics. With
35376         GCC 4.2, avoid a warning.
35377
35378 2007-10-13  Bruno Haible  <bruno@clisp.org>
35379
35380         * lib/freading.h (freading): Enable the use of __freading for
35381         glibc >= 2.7.
35382         * lib/freading.c (freading): Likewise.
35383
35384 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35385
35386         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35387         "warning: C99 inline functions are not supported; using GNU89".
35388
35389 2007-10-12  Bruno Haible  <bruno@clisp.org>
35390
35391         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35392         of 2.
35393         * tests/test-ceilf2.c: New file.
35394         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35395
35396         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35397         * modules/ceilf-tests: Update.
35398
35399 2007-10-12  Bruno Haible  <bruno@clisp.org>
35400
35401         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35402         of 2.
35403         * tests/test-floorf2.c: New file.
35404         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35405
35406         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35407         * modules/floorf-tests: Update.
35408
35409 2007-10-12  Bruno Haible  <bruno@clisp.org>
35410
35411         * tests/test-trunc2.c: New file.
35412         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35413
35414         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35415         * modules/trunc-tests: Update.
35416
35417 2007-10-12  Bruno Haible  <bruno@clisp.org>
35418
35419         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35420         of 2.
35421         * tests/test-truncf2.c: New file.
35422         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35423
35424         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35425         * modules/truncf-tests: Update.
35426
35427 2007-10-11  Eric Blake  <ebb9@byu.net>
35428
35429         Don't claim strerror is broken on Interix.
35430         * doc/functions/strerror.texi (strerror): Known broken systems are
35431         now Solaris 8, and not Interix.
35432         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35433         Interix on cross-compile.
35434         Reported by Martin Koeppe in
35435         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35436
35437 2007-10-11  Bruno Haible  <bruno@clisp.org>
35438
35439         * modules/i-ring-tests: New file.
35440         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35441         instead of assert.
35442
35443 2007-10-11  Bruno Haible  <bruno@clisp.org>
35444
35445         * modules/filenamecat-tests: New file.
35446         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35447         * lib/filenamecat.c: Remove test code.
35448
35449 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35450
35451         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35452
35453         * lib/strerror.c: Include <string.h> always, to test interface,
35454         and to remove the need for the dummy.
35455         Include intprops.h to compute width instead of doing it ourselves
35456         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35457         (strerror): Define it to return NULL if there's no system strerror.
35458         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35459         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35460         ancient pre-strerror Unix systems well any more.  Saying "unknown
35461         system error" is enough.
35462         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35463         simpler strerror.c implementation.
35464         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35465         Simplify the tests to reflect the simpler strerror implementation.
35466         * modules/strerror (Depends-on): Add intprops.
35467
35468 2007-10-09  Eric Blake  <ebb9@byu.net>
35469
35470         Silence test-fpending.
35471         * modules/fpending-tests (Files): Add wrapper script.
35472         * tests/test-fpending.sh: New file.
35473
35474 2007-10-09  Bruno Haible  <bruno@clisp.org>
35475
35476         * MODULES.html.sh (func_module): Don't create a hyperlink for
35477         function names like 'printf_frexp'.
35478         (Misc): Add crc, memxor.
35479         (Characteristics of floating types): New section.
35480         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35481         isnanf-nolibm, signbit, trunc, truncf, truncl.
35482         (Enhancements for ISO C 99 functions): New subsection Input/output.
35483         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35484         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35485         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35486         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35487         (Enhancements for POSIX:2001 functions): Add chdir-long.
35488         (File system functions): Add areadlink, chdir-safer, read-file.
35489         Remove cycle-check.
35490         (File system as inode set): New section.
35491         (Date and time): Add gethrxtime.
35492         (Multithreading): Add openmp.
35493         (Internationalization functions): Add localename.
35494         (Unicode string functions): Add unistr/u*-mbsnlen.
35495         (Support for maintaining and releasing projects): Add git-version-gen.
35496         (Lone files): Remove directories.
35497
35498 2007-10-08  Ben Pfaff  <blp@gnu.org>
35499
35500         * lib/xmalloca.h: Fix typo in comment.
35501
35502 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35503
35504         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35505         when avoiding problems with integer overflow.  Use a portable test
35506         instead.
35507
35508 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35509
35510         * modules/dummy (License): Change to LGPLv2+.
35511         * modules/float (License): Likewise
35512         * modules/realloc (License): Likewise
35513         * modules/stdlib (License): Likewise
35514
35515 2007-10-07  Bruno Haible  <bruno@clisp.org>
35516
35517         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35518         * floor.c (TWO_MANT_DIG): Likewise.
35519         * ceil.c (TWO_MANT_DIG): Likewise.
35520         Reported by Ben Pfaff.
35521
35522 2007-10-07  Bruno Haible  <bruno@clisp.org>
35523
35524         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35525         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35526         * lib/frexp.c (FUNC): Likewise.
35527         * lib/printf-frexp.h (printf_frexp): Likewise.
35528         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35529         * lib/printf-frexp.c (FUNC): Likewise.
35530         Suggested by Jim Meyering.
35531
35532 2007-10-07  Jim Meyering  <meyering@redhat.com>
35533
35534         Make xnanosleep's integer overflow test more robust.
35535         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35536         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35537
35538 2007-10-07  Bruno Haible  <bruno@clisp.org>
35539
35540         * NEWS: Mention the license change.
35541
35542         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35543         abbreviations in the modules files.
35544
35545         Change copyright notice from GPLv2+ to GPLv3+.
35546         * README: Change copyright notice.
35547         * MODULES.html.sh: Likewise.
35548         * build-aux/bootstrap.conf: Likewise.
35549         * build-aux/config.libpath: Likewise.
35550         * build-aux/csharpcomp.sh.in: Likewise.
35551         * build-aux/csharpexec.sh.in: Likewise.
35552         * build-aux/install-reloc: Likewise.
35553         * build-aux/javacomp.sh.in: Likewise.
35554         * build-aux/javaexec.sh.in: Likewise.
35555         * build-aux/ldd.sh.in: Likewise.
35556         * build-aux/reloc-ldflags: Likewise.
35557         * build-aux/relocatable.sh.in: Likewise.
35558         * build-aux/x-to-1.in: Likewise.
35559         * check-module: Likewise.
35560         * config/srclistvars.sh: Likewise.
35561         * gnulib-tool: Likewise.
35562         * lib/acl-internal.h: Likewise.
35563         * lib/acl.c: Likewise.
35564         * lib/acl.h: Likewise.
35565         * lib/acl_entries.c: Likewise.
35566         * lib/areadlink-with-size.c: Likewise.
35567         * lib/areadlink.c: Likewise.
35568         * lib/areadlink.h: Likewise.
35569         * lib/argmatch.c: Likewise.
35570         * lib/argmatch.h: Likewise.
35571         * lib/argp-ba.c: Likewise.
35572         * lib/argp-eexst.c: Likewise.
35573         * lib/argp-fmtstream.c: Likewise.
35574         * lib/argp-fmtstream.h: Likewise.
35575         * lib/argp-fs-xinl.c: Likewise.
35576         * lib/argp-help.c: Likewise.
35577         * lib/argp-namefrob.h: Likewise.
35578         * lib/argp-parse.c: Likewise.
35579         * lib/argp-pin.c: Likewise.
35580         * lib/argp-pv.c: Likewise.
35581         * lib/argp-pvh.c: Likewise.
35582         * lib/argp-xinl.c: Likewise.
35583         * lib/argp.h: Likewise.
35584         * lib/at-func.c: Likewise.
35585         * lib/atanl.c: Likewise.
35586         * lib/backupfile.c: Likewise.
35587         * lib/backupfile.h: Likewise.
35588         * lib/basename.c: Likewise.
35589         * lib/binary-io.h: Likewise.
35590         * lib/byteswap.in.h: Likewise.
35591         * lib/c-stack.c: Likewise.
35592         * lib/c-stack.h: Likewise.
35593         * lib/c-strcasestr.c: Likewise.
35594         * lib/c-strcasestr.h: Likewise.
35595         * lib/c-strstr.c: Likewise.
35596         * lib/c-strstr.h: Likewise.
35597         * lib/c-strtod.c: Likewise.
35598         * lib/calloc.c: Likewise.
35599         * lib/canon-host.c: Likewise.
35600         * lib/canon-host.h: Likewise.
35601         * lib/canonicalize-lgpl.c: Likewise.
35602         * lib/canonicalize.c: Likewise.
35603         * lib/canonicalize.h: Likewise.
35604         * lib/ceil.c: Likewise.
35605         * lib/ceilf.c: Likewise.
35606         * lib/ceill.c: Likewise.
35607         * lib/chdir-long.c: Likewise.
35608         * lib/chdir-long.h: Likewise.
35609         * lib/chdir-safer.c: Likewise.
35610         * lib/chdir-safer.h: Likewise.
35611         * lib/chown.c: Likewise.
35612         * lib/classpath.c: Likewise.
35613         * lib/classpath.h: Likewise.
35614         * lib/clean-temp.c: Likewise.
35615         * lib/clean-temp.h: Likewise.
35616         * lib/cloexec.c: Likewise.
35617         * lib/close-stream.c: Likewise.
35618         * lib/closein.c: Likewise.
35619         * lib/closein.h: Likewise.
35620         * lib/closeout.c: Likewise.
35621         * lib/closeout.h: Likewise.
35622         * lib/concat-filename.c: Likewise.
35623         * lib/copy-file.c: Likewise.
35624         * lib/copy-file.h: Likewise.
35625         * lib/count-one-bits.h: Likewise.
35626         * lib/crc.c: Likewise.
35627         * lib/crc.h: Likewise.
35628         * lib/creat-safer.c: Likewise.
35629         * lib/csharpcomp.c: Likewise.
35630         * lib/csharpcomp.h: Likewise.
35631         * lib/csharpexec.c: Likewise.
35632         * lib/csharpexec.h: Likewise.
35633         * lib/cycle-check.c: Likewise.
35634         * lib/cycle-check.h: Likewise.
35635         * lib/diacrit.c: Likewise.
35636         * lib/diacrit.h: Likewise.
35637         * lib/diffseq.h: Likewise.
35638         * lib/dirchownmod.c: Likewise.
35639         * lib/dirent.in.h: Likewise.
35640         * lib/dirfd.c: Likewise.
35641         * lib/dirfd.h: Likewise.
35642         * lib/dirname.c: Likewise.
35643         * lib/dirname.h: Likewise.
35644         * lib/dummy.c: Likewise.
35645         * lib/dup-safer.c: Likewise.
35646         * lib/dup2.c: Likewise.
35647         * lib/eealloc.h: Likewise.
35648         * lib/error.c: Likewise.
35649         * lib/error.h: Likewise.
35650         * lib/euidaccess.c: Likewise.
35651         * lib/exclude.c: Likewise.
35652         * lib/exclude.h: Likewise.
35653         * lib/execute.c: Likewise.
35654         * lib/execute.h: Likewise.
35655         * lib/exitfail.c: Likewise.
35656         * lib/exitfail.h: Likewise.
35657         * lib/expl.c: Likewise.
35658         * lib/fatal-signal.c: Likewise.
35659         * lib/fatal-signal.h: Likewise.
35660         * lib/fbufmode.c: Likewise.
35661         * lib/fbufmode.h: Likewise.
35662         * lib/fchdir.c: Likewise.
35663         * lib/fchmodat.c: Likewise.
35664         * lib/fchownat.c: Likewise.
35665         * lib/fcntl--.h: Likewise.
35666         * lib/fcntl-safer.h: Likewise.
35667         * lib/fcntl.in.h: Likewise.
35668         * lib/fd-safer.c: Likewise.
35669         * lib/fflush.c: Likewise.
35670         * lib/file-has-acl.c: Likewise.
35671         * lib/file-set.c: Likewise.
35672         * lib/file-type.c: Likewise.
35673         * lib/file-type.h: Likewise.
35674         * lib/fileblocks.c: Likewise.
35675         * lib/filemode.c: Likewise.
35676         * lib/filemode.h: Likewise.
35677         * lib/filename.h: Likewise.
35678         * lib/filenamecat.c: Likewise.
35679         * lib/filenamecat.h: Likewise.
35680         * lib/findprog.c: Likewise.
35681         * lib/findprog.h: Likewise.
35682         * lib/float.in.h: Likewise.
35683         * lib/floor.c: Likewise.
35684         * lib/floorf.c: Likewise.
35685         * lib/floorl.c: Likewise.
35686         * lib/fopen-safer.c: Likewise.
35687         * lib/fopen.c: Likewise.
35688         * lib/fpending.c: Likewise.
35689         * lib/fpending.h: Likewise.
35690         * lib/fprintf.c: Likewise.
35691         * lib/fprintftime.h: Likewise.
35692         * lib/fpucw.h: Likewise.
35693         * lib/fpurge.c: Likewise.
35694         * lib/fpurge.h: Likewise.
35695         * lib/freadable.c: Likewise.
35696         * lib/freadable.h: Likewise.
35697         * lib/freadahead.c: Likewise.
35698         * lib/freadahead.h: Likewise.
35699         * lib/freading.c: Likewise.
35700         * lib/freading.h: Likewise.
35701         * lib/free.c: Likewise.
35702         * lib/freopen.c: Likewise.
35703         * lib/frexp.c: Likewise.
35704         * lib/frexpl.c: Likewise.
35705         * lib/fseek.c: Likewise.
35706         * lib/fseterr.c: Likewise.
35707         * lib/fseterr.h: Likewise.
35708         * lib/fstatat.c: Likewise.
35709         * lib/fstrcmp.c: Likewise.
35710         * lib/fstrcmp.h: Likewise.
35711         * lib/fsusage.c: Likewise.
35712         * lib/fsusage.h: Likewise.
35713         * lib/ftell.c: Likewise.
35714         * lib/ftello.c: Likewise.
35715         * lib/fts-cycle.c: Likewise.
35716         * lib/fts.c: Likewise.
35717         * lib/fts_.h: Likewise.
35718         * lib/full-read.c: Likewise.
35719         * lib/full-read.h: Likewise.
35720         * lib/full-write.c: Likewise.
35721         * lib/full-write.h: Likewise.
35722         * lib/fwritable.c: Likewise.
35723         * lib/fwritable.h: Likewise.
35724         * lib/fwriteerror.c: Likewise.
35725         * lib/fwriteerror.h: Likewise.
35726         * lib/fwriting.c: Likewise.
35727         * lib/fwriting.h: Likewise.
35728         * lib/gcd.c: Likewise.
35729         * lib/gcd.h: Likewise.
35730         * lib/getcwd.c: Likewise.
35731         * lib/getdate.h: Likewise.
35732         * lib/getdate.y: Likewise.
35733         * lib/getdomainname.c: Likewise.
35734         * lib/getdomainname.h: Likewise.
35735         * lib/getgroups.c: Likewise.
35736         * lib/gethostname.c: Likewise.
35737         * lib/gethrxtime.c: Likewise.
35738         * lib/gethrxtime.h: Likewise.
35739         * lib/getloadavg.c: Likewise.
35740         * lib/getndelim2.c: Likewise.
35741         * lib/getndelim2.h: Likewise.
35742         * lib/getnline.c: Likewise.
35743         * lib/getnline.h: Likewise.
35744         * lib/getopt.c: Likewise.
35745         * lib/getopt.in.h: Likewise.
35746         * lib/getopt1.c: Likewise.
35747         * lib/getopt_int.h: Likewise.
35748         * lib/getpagesize.h: Likewise.
35749         * lib/getsubopt.c: Likewise.
35750         * lib/gettime.c: Likewise.
35751         * lib/getugroups.c: Likewise.
35752         * lib/getugroups.h: Likewise.
35753         * lib/getusershell.c: Likewise.
35754         * lib/gl_anyavltree_list1.h: Likewise.
35755         * lib/gl_anyavltree_list2.h: Likewise.
35756         * lib/gl_anyhash_list1.h: Likewise.
35757         * lib/gl_anyhash_list2.h: Likewise.
35758         * lib/gl_anylinked_list1.h: Likewise.
35759         * lib/gl_anylinked_list2.h: Likewise.
35760         * lib/gl_anyrbtree_list1.h: Likewise.
35761         * lib/gl_anyrbtree_list2.h: Likewise.
35762         * lib/gl_anytree_list1.h: Likewise.
35763         * lib/gl_anytree_list2.h: Likewise.
35764         * lib/gl_anytree_oset.h: Likewise.
35765         * lib/gl_anytreehash_list1.h: Likewise.
35766         * lib/gl_anytreehash_list2.h: Likewise.
35767         * lib/gl_array_list.c: Likewise.
35768         * lib/gl_array_list.h: Likewise.
35769         * lib/gl_array_oset.c: Likewise.
35770         * lib/gl_array_oset.h: Likewise.
35771         * lib/gl_avltree_list.c: Likewise.
35772         * lib/gl_avltree_list.h: Likewise.
35773         * lib/gl_avltree_oset.c: Likewise.
35774         * lib/gl_avltree_oset.h: Likewise.
35775         * lib/gl_avltreehash_list.c: Likewise.
35776         * lib/gl_avltreehash_list.h: Likewise.
35777         * lib/gl_carray_list.c: Likewise.
35778         * lib/gl_carray_list.h: Likewise.
35779         * lib/gl_linked_list.c: Likewise.
35780         * lib/gl_linked_list.h: Likewise.
35781         * lib/gl_linkedhash_list.c: Likewise.
35782         * lib/gl_linkedhash_list.h: Likewise.
35783         * lib/gl_list.c: Likewise.
35784         * lib/gl_list.h: Likewise.
35785         * lib/gl_oset.c: Likewise.
35786         * lib/gl_oset.h: Likewise.
35787         * lib/gl_rbtree_list.c: Likewise.
35788         * lib/gl_rbtree_list.h: Likewise.
35789         * lib/gl_rbtree_oset.c: Likewise.
35790         * lib/gl_rbtree_oset.h: Likewise.
35791         * lib/gl_rbtreehash_list.c: Likewise.
35792         * lib/gl_rbtreehash_list.h: Likewise.
35793         * lib/gl_sublist.c: Likewise.
35794         * lib/gl_sublist.h: Likewise.
35795         * lib/group-member.c: Likewise.
35796         * lib/group-member.h: Likewise.
35797         * lib/hard-locale.c: Likewise.
35798         * lib/hard-locale.h: Likewise.
35799         * lib/hash-pjw.c: Likewise.
35800         * lib/hash-pjw.h: Likewise.
35801         * lib/hash-triple.c: Likewise.
35802         * lib/hash.c: Likewise.
35803         * lib/hash.h: Likewise.
35804         * lib/human.c: Likewise.
35805         * lib/human.h: Likewise.
35806         * lib/i-ring.c: Likewise.
35807         * lib/i-ring.h: Likewise.
35808         * lib/idcache.c: Likewise.
35809         * lib/imaxabs.c: Likewise.
35810         * lib/imaxdiv.c: Likewise.
35811         * lib/inet_pton.c: Likewise.
35812         * lib/inet_pton.h: Likewise.
35813         * lib/intprops.h: Likewise.
35814         * lib/inttostr.c: Likewise.
35815         * lib/inttostr.h: Likewise.
35816         * lib/inttypes.in.h: Likewise.
35817         * lib/isapipe.c: Likewise.
35818         * lib/isdir.c: Likewise.
35819         * lib/isnan.c: Likewise.
35820         * lib/isnan.h: Likewise.
35821         * lib/isnanf.c: Likewise.
35822         * lib/isnanf.h: Likewise.
35823         * lib/isnanl-nolibm.h: Likewise.
35824         * lib/isnanl.c: Likewise.
35825         * lib/isnanl.h: Likewise.
35826         * lib/javacomp.c: Likewise.
35827         * lib/javacomp.h: Likewise.
35828         * lib/javaexec.c: Likewise.
35829         * lib/javaexec.h: Likewise.
35830         * lib/javaversion.c: Likewise.
35831         * lib/javaversion.h: Likewise.
35832         * lib/javaversion.java: Likewise.
35833         * lib/lbrkprop.h: Likewise.
35834         * lib/lchmod.h: Likewise.
35835         * lib/lchown.c: Likewise.
35836         * lib/ldexpl.c: Likewise.
35837         * lib/linebreak.c: Likewise.
35838         * lib/linebreak.h: Likewise.
35839         * lib/linebuffer.c: Likewise.
35840         * lib/linebuffer.h: Likewise.
35841         * lib/locale.in.h: Likewise.
35842         * lib/logl.c: Likewise.
35843         * lib/long-options.c: Likewise.
35844         * lib/long-options.h: Likewise.
35845         * lib/lstat.c: Likewise.
35846         * lib/lstat.h: Likewise.
35847         * lib/math.in.h: Likewise.
35848         * lib/mbchar.c: Likewise.
35849         * lib/mbchar.h: Likewise.
35850         * lib/mbfile.h: Likewise.
35851         * lib/mbiter.h: Likewise.
35852         * lib/mbscasecmp.c: Likewise.
35853         * lib/mbscasestr.c: Likewise.
35854         * lib/mbschr.c: Likewise.
35855         * lib/mbscspn.c: Likewise.
35856         * lib/mbslen.c: Likewise.
35857         * lib/mbsncasecmp.c: Likewise.
35858         * lib/mbsnlen.c: Likewise.
35859         * lib/mbspbrk.c: Likewise.
35860         * lib/mbspcasecmp.c: Likewise.
35861         * lib/mbsrchr.c: Likewise.
35862         * lib/mbssep.c: Likewise.
35863         * lib/mbsspn.c: Likewise.
35864         * lib/mbsstr.c: Likewise.
35865         * lib/mbstok_r.c: Likewise.
35866         * lib/mbswidth.c: Likewise.
35867         * lib/mbswidth.h: Likewise.
35868         * lib/mbuiter.h: Likewise.
35869         * lib/memcasecmp.c: Likewise.
35870         * lib/memcasecmp.h: Likewise.
35871         * lib/memchr.c: Likewise.
35872         * lib/memcmp.c: Likewise.
35873         * lib/memcoll.c: Likewise.
35874         * lib/memcoll.h: Likewise.
35875         * lib/memcpy.c: Likewise.
35876         * lib/memrchr.c: Likewise.
35877         * lib/mkancesdirs.c: Likewise.
35878         * lib/mkdir-p.c: Likewise.
35879         * lib/mkdir-p.h: Likewise.
35880         * lib/mkdir.c: Likewise.
35881         * lib/mkdirat.c: Likewise.
35882         * lib/mkdtemp.c: Likewise.
35883         * lib/mkstemp-safer.c: Likewise.
35884         * lib/mkstemp.c: Likewise.
35885         * lib/modechange.c: Likewise.
35886         * lib/modechange.h: Likewise.
35887         * lib/mountlist.c: Likewise.
35888         * lib/mountlist.h: Likewise.
35889         * lib/mpsort.c: Likewise.
35890         * lib/nanosleep.c: Likewise.
35891         * lib/obstack.c: Likewise.
35892         * lib/obstack.h: Likewise.
35893         * lib/open-safer.c: Likewise.
35894         * lib/open.c: Likewise.
35895         * lib/openat-die.c: Likewise.
35896         * lib/openat-priv.h: Likewise.
35897         * lib/openat-proc.c: Likewise.
35898         * lib/openat.c: Likewise.
35899         * lib/openat.h: Likewise.
35900         * lib/pagealign_alloc.c: Likewise.
35901         * lib/pagealign_alloc.h: Likewise.
35902         * lib/physmem.c: Likewise.
35903         * lib/physmem.h: Likewise.
35904         * lib/pipe-safer.c: Likewise.
35905         * lib/pipe.c: Likewise.
35906         * lib/pipe.h: Likewise.
35907         * lib/posixtm.c: Likewise.
35908         * lib/posixtm.h: Likewise.
35909         * lib/posixver.c: Likewise.
35910         * lib/printf-frexp.c: Likewise.
35911         * lib/printf-frexp.h: Likewise.
35912         * lib/printf-frexpl.c: Likewise.
35913         * lib/printf-frexpl.h: Likewise.
35914         * lib/printf.c: Likewise.
35915         * lib/progname.c: Likewise.
35916         * lib/progname.h: Likewise.
35917         * lib/progreloc.c: Likewise.
35918         * lib/putenv.c: Likewise.
35919         * lib/quote.c: Likewise.
35920         * lib/quote.h: Likewise.
35921         * lib/quotearg.c: Likewise.
35922         * lib/quotearg.h: Likewise.
35923         * lib/raise.c: Likewise.
35924         * lib/readline.c: Likewise.
35925         * lib/readline.h: Likewise.
35926         * lib/readlink.c: Likewise.
35927         * lib/readtokens.c: Likewise.
35928         * lib/readtokens.h: Likewise.
35929         * lib/readtokens0.c: Likewise.
35930         * lib/readtokens0.h: Likewise.
35931         * lib/readutmp.c: Likewise.
35932         * lib/readutmp.h: Likewise.
35933         * lib/realloc.c: Likewise.
35934         * lib/relocwrapper.c: Likewise.
35935         * lib/rename-dest-slash.c: Likewise.
35936         * lib/rename.c: Likewise.
35937         * lib/rmdir.c: Likewise.
35938         * lib/rpmatch.c: Likewise.
35939         * lib/safe-read.c: Likewise.
35940         * lib/safe-read.h: Likewise.
35941         * lib/safe-write.c: Likewise.
35942         * lib/safe-write.h: Likewise.
35943         * lib/same-inode.h: Likewise.
35944         * lib/same.c: Likewise.
35945         * lib/same.h: Likewise.
35946         * lib/save-cwd.c: Likewise.
35947         * lib/save-cwd.h: Likewise.
35948         * lib/savedir.c: Likewise.
35949         * lib/savedir.h: Likewise.
35950         * lib/savewd.c: Likewise.
35951         * lib/savewd.h: Likewise.
35952         * lib/search.in.h: Likewise.
35953         * lib/setenv.c: Likewise.
35954         * lib/setenv.h: Likewise.
35955         * lib/settime.c: Likewise.
35956         * lib/sh-quote.c: Likewise.
35957         * lib/sh-quote.h: Likewise.
35958         * lib/sig2str.c: Likewise.
35959         * lib/sig2str.h: Likewise.
35960         * lib/signal.in.h: Likewise.
35961         * lib/signbitd.c: Likewise.
35962         * lib/signbitf.c: Likewise.
35963         * lib/signbitl.c: Likewise.
35964         * lib/sigprocmask.c: Likewise.
35965         * lib/sincosl.c: Likewise.
35966         * lib/sleep.c: Likewise.
35967         * lib/sprintf.c: Likewise.
35968         * lib/sqrtl.c: Likewise.
35969         * lib/stat-time.h: Likewise.
35970         * lib/stdio--.h: Likewise.
35971         * lib/stdio-safer.h: Likewise.
35972         * lib/stdlib--.h: Likewise.
35973         * lib/stdlib-safer.h: Likewise.
35974         * lib/stdlib.in.h: Likewise.
35975         * lib/stpcpy.c: Likewise.
35976         * lib/stpncpy.c: Likewise.
35977         * lib/strchrnul.c: Likewise.
35978         * lib/strcspn.c: Likewise.
35979         * lib/strerror.c: Likewise.
35980         * lib/strftime.c: Likewise.
35981         * lib/strftime.h: Likewise.
35982         * lib/striconveh.c: Likewise.
35983         * lib/striconveh.h: Likewise.
35984         * lib/striconveha.c: Likewise.
35985         * lib/striconveha.h: Likewise.
35986         * lib/stripslash.c: Likewise.
35987         * lib/strnlen1.c: Likewise.
35988         * lib/strnlen1.h: Likewise.
35989         * lib/strtod.c: Likewise.
35990         * lib/strtoimax.c: Likewise.
35991         * lib/strtok_r.c: Likewise.
35992         * lib/strtol.c: Likewise.
35993         * lib/strtoll.c: Likewise.
35994         * lib/strtoul.c: Likewise.
35995         * lib/strtoull.c: Likewise.
35996         * lib/sysexits.in.h: Likewise.
35997         * lib/tempname.c: Likewise.
35998         * lib/tempname.h: Likewise.
35999         * lib/timespec.h: Likewise.
36000         * lib/tls.c: Likewise.
36001         * lib/tls.h: Likewise.
36002         * lib/tmpdir.c: Likewise.
36003         * lib/tmpdir.h: Likewise.
36004         * lib/tmpfile-safer.c: Likewise.
36005         * lib/tmpfile.c: Likewise.
36006         * lib/trigl.c: Likewise.
36007         * lib/trigl.h: Likewise.
36008         * lib/trim.c: Likewise.
36009         * lib/trim.h: Likewise.
36010         * lib/trunc.c: Likewise.
36011         * lib/truncf.c: Likewise.
36012         * lib/truncl.c: Likewise.
36013         * lib/tsearch.c: Likewise.
36014         * lib/unicodeio.c: Likewise.
36015         * lib/unicodeio.h: Likewise.
36016         * lib/unistd--.h: Likewise.
36017         * lib/unistd-safer.h: Likewise.
36018         * lib/unistdio/ulc-fprintf.c: Likewise.
36019         * lib/unistdio/ulc-vfprintf.c: Likewise.
36020         * lib/unlinkdir.c: Likewise.
36021         * lib/unlinkdir.h: Likewise.
36022         * lib/unlocked-io.h: Likewise.
36023         * lib/unsetenv.c: Likewise.
36024         * lib/userspec.c: Likewise.
36025         * lib/utime.c: Likewise.
36026         * lib/utimecmp.c: Likewise.
36027         * lib/utimecmp.h: Likewise.
36028         * lib/utimens.c: Likewise.
36029         * lib/verify.h: Likewise.
36030         * lib/verror.c: Likewise.
36031         * lib/verror.h: Likewise.
36032         * lib/version-etc-fsf.c: Likewise.
36033         * lib/version-etc.c: Likewise.
36034         * lib/version-etc.h: Likewise.
36035         * lib/vfprintf.c: Likewise.
36036         * lib/vprintf.c: Likewise.
36037         * lib/vsprintf.c: Likewise.
36038         * lib/w32spawn.h: Likewise.
36039         * lib/wait-process.c: Likewise.
36040         * lib/wait-process.h: Likewise.
36041         * lib/wcwidth.c: Likewise.
36042         * lib/write-any-file.c: Likewise.
36043         * lib/xalloc-die.c: Likewise.
36044         * lib/xalloc.h: Likewise.
36045         * lib/xasprintf.c: Likewise.
36046         * lib/xgetcwd.c: Likewise.
36047         * lib/xgetcwd.h: Likewise.
36048         * lib/xgetdomainname.c: Likewise.
36049         * lib/xgetdomainname.h: Likewise.
36050         * lib/xgethostname.c: Likewise.
36051         * lib/xmalloc.c: Likewise.
36052         * lib/xmalloca.c: Likewise.
36053         * lib/xmalloca.h: Likewise.
36054         * lib/xmemcoll.c: Likewise.
36055         * lib/xnanosleep.c: Likewise.
36056         * lib/xreadlink.c: Likewise.
36057         * lib/xreadlink.h: Likewise.
36058         * lib/xsetenv.c: Likewise.
36059         * lib/xsetenv.h: Likewise.
36060         * lib/xstriconv.c: Likewise.
36061         * lib/xstriconv.h: Likewise.
36062         * lib/xstrndup.c: Likewise.
36063         * lib/xstrndup.h: Likewise.
36064         * lib/xstrtod.c: Likewise.
36065         * lib/xstrtod.h: Likewise.
36066         * lib/xstrtol-error.c: Likewise.
36067         * lib/xstrtol.c: Likewise.
36068         * lib/xstrtol.h: Likewise.
36069         * lib/xtime.h: Likewise.
36070         * lib/xvasprintf.c: Likewise.
36071         * lib/xvasprintf.h: Likewise.
36072         * lib/yesno.c: Likewise.
36073         * lib/yesno.h: Likewise.
36074         * posix-modules: Likewise.
36075         * tests/test-alloca-opt.c: Likewise.
36076         * tests/test-arcfour.c: Likewise.
36077         * tests/test-arctwo.c: Likewise.
36078         * tests/test-argmatch.c: Likewise.
36079         * tests/test-argp-2.sh: Likewise.
36080         * tests/test-argp.c: Likewise.
36081         * tests/test-arpa_inet.c: Likewise.
36082         * tests/test-array_list.c: Likewise.
36083         * tests/test-array_oset.c: Likewise.
36084         * tests/test-atexit.c: Likewise.
36085         * tests/test-avltree_list.c: Likewise.
36086         * tests/test-avltree_oset.c: Likewise.
36087         * tests/test-avltreehash_list.c: Likewise.
36088         * tests/test-base64.c: Likewise.
36089         * tests/test-binary-io.c: Likewise.
36090         * tests/test-byteswap.c: Likewise.
36091         * tests/test-c-ctype.c: Likewise.
36092         * tests/test-c-strcasecmp.c: Likewise.
36093         * tests/test-c-strcasestr.c: Likewise.
36094         * tests/test-c-strncasecmp.c: Likewise.
36095         * tests/test-c-strstr.c: Likewise.
36096         * tests/test-canonicalize-lgpl.c: Likewise.
36097         * tests/test-canonicalize.c: Likewise.
36098         * tests/test-carray_list.c: Likewise.
36099         * tests/test-ceilf.c: Likewise.
36100         * tests/test-ceill.c: Likewise.
36101         * tests/test-count-one-bits.c: Likewise.
36102         * tests/test-crc.c: Likewise.
36103         * tests/test-dirname.c: Likewise.
36104         * tests/test-fbufmode.c: Likewise.
36105         * tests/test-fcntl.c: Likewise.
36106         * tests/test-fflush.c: Likewise.
36107         * tests/test-floorf.c: Likewise.
36108         * tests/test-floorl.c: Likewise.
36109         * tests/test-fopen.c: Likewise.
36110         * tests/test-fprintf-posix.c: Likewise.
36111         * tests/test-fprintf-posix.h: Likewise.
36112         * tests/test-fpurge.c: Likewise.
36113         * tests/test-freadable.c: Likewise.
36114         * tests/test-freadahead.c: Likewise.
36115         * tests/test-freading.c: Likewise.
36116         * tests/test-freopen.c: Likewise.
36117         * tests/test-frexp.c: Likewise.
36118         * tests/test-frexpl.c: Likewise.
36119         * tests/test-fseek.c: Likewise.
36120         * tests/test-fseeko.c: Likewise.
36121         * tests/test-fseterr.c: Likewise.
36122         * tests/test-fstrcmp.c: Likewise.
36123         * tests/test-ftell.c: Likewise.
36124         * tests/test-ftello.c: Likewise.
36125         * tests/test-fwritable.c: Likewise.
36126         * tests/test-fwriting.c: Likewise.
36127         * tests/test-getaddrinfo.c: Likewise.
36128         * tests/test-getpass.c: Likewise.
36129         * tests/test-gettimeofday.c: Likewise.
36130         * tests/test-hmac-md5.c: Likewise.
36131         * tests/test-hmac-sha1.c: Likewise.
36132         * tests/test-iconv.c: Likewise.
36133         * tests/test-iconvme.c: Likewise.
36134         * tests/test-inttypes.c: Likewise.
36135         * tests/test-isnan.c: Likewise.
36136         * tests/test-isnanf.c: Likewise.
36137         * tests/test-isnanl-nolibm.c: Likewise.
36138         * tests/test-isnanl.c: Likewise.
36139         * tests/test-isnanl.h: Likewise.
36140         * tests/test-ldexpl.c: Likewise.
36141         * tests/test-linked_list.c: Likewise.
36142         * tests/test-linkedhash_list.c: Likewise.
36143         * tests/test-locale.c: Likewise.
36144         * tests/test-localename.c: Likewise.
36145         * tests/test-lock.c: Likewise.
36146         * tests/test-lseek.c: Likewise.
36147         * tests/test-malloca.c: Likewise.
36148         * tests/test-math.c: Likewise.
36149         * tests/test-mbscasecmp.c: Likewise.
36150         * tests/test-mbscasestr1.c: Likewise.
36151         * tests/test-mbscasestr2.c: Likewise.
36152         * tests/test-mbscasestr3.c: Likewise.
36153         * tests/test-mbscasestr4.c: Likewise.
36154         * tests/test-mbschr.c: Likewise.
36155         * tests/test-mbscspn.c: Likewise.
36156         * tests/test-mbsncasecmp.c: Likewise.
36157         * tests/test-mbspbrk.c: Likewise.
36158         * tests/test-mbspcasecmp.c: Likewise.
36159         * tests/test-mbsrchr.c: Likewise.
36160         * tests/test-mbsspn.c: Likewise.
36161         * tests/test-mbsstr1.c: Likewise.
36162         * tests/test-mbsstr2.c: Likewise.
36163         * tests/test-mbsstr3.c: Likewise.
36164         * tests/test-md5.c: Likewise.
36165         * tests/test-memmem.c: Likewise.
36166         * tests/test-netinet_in.c: Likewise.
36167         * tests/test-open.c: Likewise.
36168         * tests/test-printf-frexp.c: Likewise.
36169         * tests/test-printf-frexpl.c: Likewise.
36170         * tests/test-printf-posix.c: Likewise.
36171         * tests/test-printf-posix.h: Likewise.
36172         * tests/test-rbtree_list.c: Likewise.
36173         * tests/test-rbtree_oset.c: Likewise.
36174         * tests/test-rbtreehash_list.c: Likewise.
36175         * tests/test-read-file.c: Likewise.
36176         * tests/test-rijndael.c: Likewise.
36177         * tests/test-search.c: Likewise.
36178         * tests/test-signbit.c: Likewise.
36179         * tests/test-sleep.c: Likewise.
36180         * tests/test-snprintf-posix.c: Likewise.
36181         * tests/test-snprintf-posix.h: Likewise.
36182         * tests/test-snprintf.c: Likewise.
36183         * tests/test-sprintf-posix.c: Likewise.
36184         * tests/test-sprintf-posix.h: Likewise.
36185         * tests/test-stat-time.c: Likewise.
36186         * tests/test-stdbool.c: Likewise.
36187         * tests/test-stdint.c: Likewise.
36188         * tests/test-stdio.c: Likewise.
36189         * tests/test-stdlib.c: Likewise.
36190         * tests/test-stpncpy.c: Likewise.
36191         * tests/test-strcasestr.c: Likewise.
36192         * tests/test-striconv.c: Likewise.
36193         * tests/test-striconveh.c: Likewise.
36194         * tests/test-striconveha.c: Likewise.
36195         * tests/test-string.c: Likewise.
36196         * tests/test-sys_select.c: Likewise.
36197         * tests/test-sys_socket.c: Likewise.
36198         * tests/test-sys_stat.c: Likewise.
36199         * tests/test-sys_time.c: Likewise.
36200         * tests/test-sysexits.c: Likewise.
36201         * tests/test-time.c: Likewise.
36202         * tests/test-tls.c: Likewise.
36203         * tests/test-trunc.c: Likewise.
36204         * tests/test-truncf.c: Likewise.
36205         * tests/test-truncl.c: Likewise.
36206         * tests/test-unistd.c: Likewise.
36207         * tests/test-vasnprintf-posix.c: Likewise.
36208         * tests/test-vasnprintf-posix2.c: Likewise.
36209         * tests/test-vasnprintf.c: Likewise.
36210         * tests/test-vasprintf-posix.c: Likewise.
36211         * tests/test-vasprintf.c: Likewise.
36212         * tests/test-verify.c: Likewise.
36213         * tests/test-vfprintf-posix.c: Likewise.
36214         * tests/test-vprintf-posix.c: Likewise.
36215         * tests/test-vsnprintf-posix.c: Likewise.
36216         * tests/test-vsnprintf.c: Likewise.
36217         * tests/test-vsprintf-posix.c: Likewise.
36218         * tests/test-wchar.c: Likewise.
36219         * tests/test-wctype.c: Likewise.
36220         * tests/test-wcwidth.c: Likewise.
36221         * tests/test-xstrtol.c: Likewise.
36222         * tests/test-xvasprintf.c: Likewise.
36223         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36224         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36225         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36226         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36227         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36228         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36231         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36232         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36233         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36234         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36235         * tests/uniname/test-uninames.c: Likewise.
36236         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36237         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36238         * tests/unistdio/test-u16-printf1.h: Likewise.
36239         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36240         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36241         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36242         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36243         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36244         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36245         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36246         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36247         * tests/unistdio/test-u32-printf1.h: Likewise.
36248         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36249         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36250         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36251         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36252         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36253         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36254         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36255         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36256         * tests/unistdio/test-u8-printf1.h: Likewise.
36257         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36258         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36259         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36260         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36261         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36262         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36263         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36264         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36265         * tests/unistdio/test-ulc-printf1.h: Likewise.
36266         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36267         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36268         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36269         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36270         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36271         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36272         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36273         * tests/uniwidth/test-u16-width.c: Likewise.
36274         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36275         * tests/uniwidth/test-u32-width.c: Likewise.
36276         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36277         * tests/uniwidth/test-u8-width.c: Likewise.
36278         * tests/uniwidth/test-uc_width.c: Likewise.
36279         * config/srclist-update: Likewise.
36280         (fixlicense): Update to GPLv3+.
36281
36282         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36283         * tests/test-tsearch.c: Change copyright notice.
36284
36285         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36286         * lib/c-strcaseeq.h: Change copyright notice.
36287         * lib/streq.h: Likewise.
36288         * lib/uniconv.h: Likewise.
36289         * lib/uniconv/u-conv-from-enc.h: Likewise.
36290         * lib/uniconv/u-conv-to-enc.h: Likewise.
36291         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36292         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36293         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36294         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36295         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36296         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36297         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36298         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36299         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36300         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36301         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36302         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36303         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36304         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36305         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36306         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36307         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36308         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36309         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36310         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36311         * lib/uniname.h: Likewise.
36312         * lib/uniname/uniname.c: Likewise.
36313         * lib/unistdio.h: Likewise.
36314         * lib/unistdio/u-asnprintf.h: Likewise.
36315         * lib/unistdio/u-asprintf.h: Likewise.
36316         * lib/unistdio/u-printf-args.c: Likewise.
36317         * lib/unistdio/u-printf-args.h: Likewise.
36318         * lib/unistdio/u-printf-parse.h: Likewise.
36319         * lib/unistdio/u-snprintf.h: Likewise.
36320         * lib/unistdio/u-sprintf.h: Likewise.
36321         * lib/unistdio/u-vasprintf.h: Likewise.
36322         * lib/unistdio/u-vsnprintf.h: Likewise.
36323         * lib/unistdio/u-vsprintf.h: Likewise.
36324         * lib/unistdio/u16-asnprintf.c: Likewise.
36325         * lib/unistdio/u16-asprintf.c: Likewise.
36326         * lib/unistdio/u16-printf-parse.c: Likewise.
36327         * lib/unistdio/u16-snprintf.c: Likewise.
36328         * lib/unistdio/u16-sprintf.c: Likewise.
36329         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36330         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36331         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36332         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36333         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36334         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36335         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36336         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36337         * lib/unistdio/u16-vasnprintf.c: Likewise.
36338         * lib/unistdio/u16-vasprintf.c: Likewise.
36339         * lib/unistdio/u16-vsnprintf.c: Likewise.
36340         * lib/unistdio/u16-vsprintf.c: Likewise.
36341         * lib/unistdio/u32-asnprintf.c: Likewise.
36342         * lib/unistdio/u32-asprintf.c: Likewise.
36343         * lib/unistdio/u32-printf-parse.c: Likewise.
36344         * lib/unistdio/u32-snprintf.c: Likewise.
36345         * lib/unistdio/u32-sprintf.c: Likewise.
36346         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36347         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36348         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36349         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36350         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36351         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36352         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36353         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36354         * lib/unistdio/u32-vasnprintf.c: Likewise.
36355         * lib/unistdio/u32-vasprintf.c: Likewise.
36356         * lib/unistdio/u32-vsnprintf.c: Likewise.
36357         * lib/unistdio/u32-vsprintf.c: Likewise.
36358         * lib/unistdio/u8-asnprintf.c: Likewise.
36359         * lib/unistdio/u8-asprintf.c: Likewise.
36360         * lib/unistdio/u8-printf-parse.c: Likewise.
36361         * lib/unistdio/u8-snprintf.c: Likewise.
36362         * lib/unistdio/u8-sprintf.c: Likewise.
36363         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36364         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36365         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36366         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36367         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36368         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36369         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36370         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36371         * lib/unistdio/u8-vasnprintf.c: Likewise.
36372         * lib/unistdio/u8-vasprintf.c: Likewise.
36373         * lib/unistdio/u8-vsnprintf.c: Likewise.
36374         * lib/unistdio/u8-vsprintf.c: Likewise.
36375         * lib/unistdio/ulc-asnprintf.c: Likewise.
36376         * lib/unistdio/ulc-asprintf.c: Likewise.
36377         * lib/unistdio/ulc-printf-parse.c: Likewise.
36378         * lib/unistdio/ulc-snprintf.c: Likewise.
36379         * lib/unistdio/ulc-sprintf.c: Likewise.
36380         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36381         * lib/unistdio/ulc-vasprintf.c: Likewise.
36382         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36383         * lib/unistdio/ulc-vsprintf.c: Likewise.
36384         * lib/unistr.h: Likewise.
36385         * lib/unistr/u-cpy-alloc.h: Likewise.
36386         * lib/unistr/u-cpy.h: Likewise.
36387         * lib/unistr/u-endswith.h: Likewise.
36388         * lib/unistr/u-move.h: Likewise.
36389         * lib/unistr/u-set.h: Likewise.
36390         * lib/unistr/u-startswith.h: Likewise.
36391         * lib/unistr/u-stpcpy.h: Likewise.
36392         * lib/unistr/u-stpncpy.h: Likewise.
36393         * lib/unistr/u-strcat.h: Likewise.
36394         * lib/unistr/u-strcpy.h: Likewise.
36395         * lib/unistr/u-strcspn.h: Likewise.
36396         * lib/unistr/u-strdup.h: Likewise.
36397         * lib/unistr/u-strlen.h: Likewise.
36398         * lib/unistr/u-strncat.h: Likewise.
36399         * lib/unistr/u-strncpy.h: Likewise.
36400         * lib/unistr/u-strnlen.h: Likewise.
36401         * lib/unistr/u-strpbrk.h: Likewise.
36402         * lib/unistr/u-strspn.h: Likewise.
36403         * lib/unistr/u-strstr.h: Likewise.
36404         * lib/unistr/u-strtok.h: Likewise.
36405         * lib/unistr/u16-check.c: Likewise.
36406         * lib/unistr/u16-chr.c: Likewise.
36407         * lib/unistr/u16-cmp.c: Likewise.
36408         * lib/unistr/u16-cpy-alloc.c: Likewise.
36409         * lib/unistr/u16-cpy.c: Likewise.
36410         * lib/unistr/u16-endswith.c: Likewise.
36411         * lib/unistr/u16-mblen.c: Likewise.
36412         * lib/unistr/u16-mbsnlen.c: Likewise.
36413         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36414         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36415         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36416         * lib/unistr/u16-mbtouc.c: Likewise.
36417         * lib/unistr/u16-mbtoucr.c: Likewise.
36418         * lib/unistr/u16-move.c: Likewise.
36419         * lib/unistr/u16-next.c: Likewise.
36420         * lib/unistr/u16-prev.c: Likewise.
36421         * lib/unistr/u16-set.c: Likewise.
36422         * lib/unistr/u16-startswith.c: Likewise.
36423         * lib/unistr/u16-stpcpy.c: Likewise.
36424         * lib/unistr/u16-stpncpy.c: Likewise.
36425         * lib/unistr/u16-strcat.c: Likewise.
36426         * lib/unistr/u16-strchr.c: Likewise.
36427         * lib/unistr/u16-strcmp.c: Likewise.
36428         * lib/unistr/u16-strcpy.c: Likewise.
36429         * lib/unistr/u16-strcspn.c: Likewise.
36430         * lib/unistr/u16-strdup.c: Likewise.
36431         * lib/unistr/u16-strlen.c: Likewise.
36432         * lib/unistr/u16-strmblen.c: Likewise.
36433         * lib/unistr/u16-strmbtouc.c: Likewise.
36434         * lib/unistr/u16-strncat.c: Likewise.
36435         * lib/unistr/u16-strncmp.c: Likewise.
36436         * lib/unistr/u16-strncpy.c: Likewise.
36437         * lib/unistr/u16-strnlen.c: Likewise.
36438         * lib/unistr/u16-strpbrk.c: Likewise.
36439         * lib/unistr/u16-strrchr.c: Likewise.
36440         * lib/unistr/u16-strspn.c: Likewise.
36441         * lib/unistr/u16-strstr.c: Likewise.
36442         * lib/unistr/u16-strtok.c: Likewise.
36443         * lib/unistr/u16-to-u32.c: Likewise.
36444         * lib/unistr/u16-to-u8.c: Likewise.
36445         * lib/unistr/u16-uctomb-aux.c: Likewise.
36446         * lib/unistr/u16-uctomb.c: Likewise.
36447         * lib/unistr/u32-check.c: Likewise.
36448         * lib/unistr/u32-chr.c: Likewise.
36449         * lib/unistr/u32-cmp.c: Likewise.
36450         * lib/unistr/u32-cpy-alloc.c: Likewise.
36451         * lib/unistr/u32-cpy.c: Likewise.
36452         * lib/unistr/u32-endswith.c: Likewise.
36453         * lib/unistr/u32-mblen.c: Likewise.
36454         * lib/unistr/u32-mbsnlen.c: Likewise.
36455         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36456         * lib/unistr/u32-mbtouc.c: Likewise.
36457         * lib/unistr/u32-mbtoucr.c: Likewise.
36458         * lib/unistr/u32-move.c: Likewise.
36459         * lib/unistr/u32-next.c: Likewise.
36460         * lib/unistr/u32-prev.c: Likewise.
36461         * lib/unistr/u32-set.c: Likewise.
36462         * lib/unistr/u32-startswith.c: Likewise.
36463         * lib/unistr/u32-stpcpy.c: Likewise.
36464         * lib/unistr/u32-stpncpy.c: Likewise.
36465         * lib/unistr/u32-strcat.c: Likewise.
36466         * lib/unistr/u32-strchr.c: Likewise.
36467         * lib/unistr/u32-strcmp.c: Likewise.
36468         * lib/unistr/u32-strcpy.c: Likewise.
36469         * lib/unistr/u32-strcspn.c: Likewise.
36470         * lib/unistr/u32-strdup.c: Likewise.
36471         * lib/unistr/u32-strlen.c: Likewise.
36472         * lib/unistr/u32-strmblen.c: Likewise.
36473         * lib/unistr/u32-strmbtouc.c: Likewise.
36474         * lib/unistr/u32-strncat.c: Likewise.
36475         * lib/unistr/u32-strncmp.c: Likewise.
36476         * lib/unistr/u32-strncpy.c: Likewise.
36477         * lib/unistr/u32-strnlen.c: Likewise.
36478         * lib/unistr/u32-strpbrk.c: Likewise.
36479         * lib/unistr/u32-strrchr.c: Likewise.
36480         * lib/unistr/u32-strspn.c: Likewise.
36481         * lib/unistr/u32-strstr.c: Likewise.
36482         * lib/unistr/u32-strtok.c: Likewise.
36483         * lib/unistr/u32-to-u16.c: Likewise.
36484         * lib/unistr/u32-to-u8.c: Likewise.
36485         * lib/unistr/u32-uctomb.c: Likewise.
36486         * lib/unistr/u8-check.c: Likewise.
36487         * lib/unistr/u8-chr.c: Likewise.
36488         * lib/unistr/u8-cmp.c: Likewise.
36489         * lib/unistr/u8-cpy-alloc.c: Likewise.
36490         * lib/unistr/u8-cpy.c: Likewise.
36491         * lib/unistr/u8-endswith.c: Likewise.
36492         * lib/unistr/u8-mblen.c: Likewise.
36493         * lib/unistr/u8-mbsnlen.c: Likewise.
36494         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36495         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36496         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36497         * lib/unistr/u8-mbtouc.c: Likewise.
36498         * lib/unistr/u8-mbtoucr.c: Likewise.
36499         * lib/unistr/u8-move.c: Likewise.
36500         * lib/unistr/u8-next.c: Likewise.
36501         * lib/unistr/u8-prev.c: Likewise.
36502         * lib/unistr/u8-set.c: Likewise.
36503         * lib/unistr/u8-startswith.c: Likewise.
36504         * lib/unistr/u8-stpcpy.c: Likewise.
36505         * lib/unistr/u8-stpncpy.c: Likewise.
36506         * lib/unistr/u8-strcat.c: Likewise.
36507         * lib/unistr/u8-strchr.c: Likewise.
36508         * lib/unistr/u8-strcmp.c: Likewise.
36509         * lib/unistr/u8-strcpy.c: Likewise.
36510         * lib/unistr/u8-strcspn.c: Likewise.
36511         * lib/unistr/u8-strdup.c: Likewise.
36512         * lib/unistr/u8-strlen.c: Likewise.
36513         * lib/unistr/u8-strmblen.c: Likewise.
36514         * lib/unistr/u8-strmbtouc.c: Likewise.
36515         * lib/unistr/u8-strncat.c: Likewise.
36516         * lib/unistr/u8-strncmp.c: Likewise.
36517         * lib/unistr/u8-strncpy.c: Likewise.
36518         * lib/unistr/u8-strnlen.c: Likewise.
36519         * lib/unistr/u8-strpbrk.c: Likewise.
36520         * lib/unistr/u8-strrchr.c: Likewise.
36521         * lib/unistr/u8-strspn.c: Likewise.
36522         * lib/unistr/u8-strstr.c: Likewise.
36523         * lib/unistr/u8-strtok.c: Likewise.
36524         * lib/unistr/u8-to-u16.c: Likewise.
36525         * lib/unistr/u8-to-u32.c: Likewise.
36526         * lib/unistr/u8-uctomb-aux.c: Likewise.
36527         * lib/unistr/u8-uctomb.c: Likewise.
36528         * lib/unitypes.h: Likewise.
36529         * lib/uniwidth.h: Likewise.
36530         * lib/uniwidth/cjk.h: Likewise.
36531         * lib/uniwidth/u16-strwidth.c: Likewise.
36532         * lib/uniwidth/u16-width.c: Likewise.
36533         * lib/uniwidth/u32-strwidth.c: Likewise.
36534         * lib/uniwidth/u32-width.c: Likewise.
36535         * lib/uniwidth/u8-strwidth.c: Likewise.
36536         * lib/uniwidth/u8-width.c: Likewise.
36537         * lib/uniwidth/width.c: Likewise.
36538
36539 2007-10-07  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36542         The file is still under LGPL (see modules/inttypes).
36543
36544 2007-10-06  Bruno Haible  <bruno@clisp.org>
36545
36546         * modules/trunc (Dependencies): Add 'extensions'.
36547         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36548         Reported by Ben Pfaff <blp@gnu.org>.
36549
36550 2007-10-06  Bruno Haible  <bruno@clisp.org>
36551
36552         * modules/freopen-tests: New file.
36553         * tests/test-freopen.c: New file.
36554
36555         * modules/fopen-tests: New file.
36556         * tests/test-fopen.c: New file.
36557
36558         * modules/fopen: New file.
36559         * lib/fopen.c: New file.
36560         * m4/fopen.m4: New file.
36561         * modules/freopen: New file.
36562         * lib/freopen.c: New file.
36563         * m4/freopen.m4: New file.
36564         * lib/stdio.in.h (fopen, freopen): New declarations.
36565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36566         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36567         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36568         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36569         * doc/functions/fopen.texi: Mention the 'fopen' module.
36570         * doc/functions/freopen.texi: Mention the 'freopen' module.
36571
36572 2007-10-06  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/open-tests: New file.
36575         * tests/test-open.c: New file.
36576
36577         * modules/open: New file.
36578         * lib/open.c: New file.
36579         * m4/open.m4: New file.
36580         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36581         lib/open.c does.
36582         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36583         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36584         macros.
36585         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36586         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36587         REPLACE_OPEN.
36588         * doc/functions/open.texi: Mention the 'open' module.
36589
36590 2007-10-04  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/ceill-tests: New file.
36593         * tests/test-ceill.c: New file.
36594
36595         * modules/ceill: New file.
36596         * lib/ceill.c: Replace entire file.
36597         * m4/ceill.m4: New file.
36598         * lib/math.in.h (ceill): Replace declaration.
36599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36600         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36601         * doc/functions/ceill.texi: Mention the 'ceill' module.
36602         * modules/mathl (Files): Remove lib/ceill.c.
36603         (Depends-on): Add ceill.
36604
36605 2007-10-04  Bruno Haible  <bruno@clisp.org>
36606
36607         * modules/ceilf-tests: New file.
36608         * tests/test-ceilf.c: New file.
36609
36610         * modules/ceilf: New file.
36611         * lib/ceil.c: New file.
36612         * lib/ceilf.c: New file.
36613         * m4/ceilf.m4: New file.
36614         * lib/math.in.h (ceilf): New declaration.
36615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36616         HAVE_DECL_CEILF.
36617         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36618         HAVE_DECL_CEILF.
36619         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36620
36621 2007-10-04  Bruno Haible  <bruno@clisp.org>
36622
36623         * modules/floorl-tests: New file.
36624         * tests/test-floorl.c: New file.
36625
36626         * modules/floorl: New file.
36627         * lib/floorl.c: Replace entire file.
36628         * m4/floorl.m4: New file.
36629         * lib/math.in.h (floorl): Replace declaration.
36630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36631         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36632         * doc/functions/floorl.texi: Mention the 'floorl' module.
36633         * modules/mathl (Files): Remove lib/floorl.c.
36634         (Depends-on): Add floorl.
36635
36636 2007-10-04  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/floorf-tests: New file.
36639         * tests/test-floorf.c: New file.
36640
36641         * modules/floorf: New file.
36642         * lib/floor.c: New file.
36643         * lib/floorf.c: New file.
36644         * m4/floorf.m4: New file.
36645         * lib/math.in.h (floorf): New declaration.
36646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36647         HAVE_DECL_FLOORF.
36648         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36649         HAVE_DECL_FLOORF.
36650         * doc/functions/floorf.texi: Mention the 'floorf' module.
36651
36652 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36653             Bruno Haible  <bruno@clisp.org>
36654
36655         Advertise for the Git server instead of the CVS server.
36656         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36657         repository instead of the CVS one.
36658         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36659         about all VCS systems generically.
36660         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36661
36662 2007-10-04  Bruno Haible  <bruno@clisp.org>
36663
36664         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36665         means.
36666         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36667
36668 2007-10-04  Bruno Haible  <bruno@clisp.org>
36669
36670         * modules/truncl-tests: New file.
36671         * tests/test-truncl.c: New file.
36672
36673         * modules/truncl: New file.
36674         * lib/truncl.c: New file.
36675         * m4/truncl.m4: New file.
36676         * lib/math.in.h (truncl): New declaration.
36677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36678         HAVE_DECL_TRUNCL.
36679         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36680         HAVE_DECL_TRUNCL.
36681         * doc/functions/truncl.texi: Mention the 'truncl' module.
36682
36683 2007-10-04  Bruno Haible  <bruno@clisp.org>
36684
36685         * modules/truncf-tests: New file.
36686         * tests/test-truncf.c: New file.
36687
36688         * modules/truncf: New file.
36689         * lib/trunc.c: Make paramerizable through USE_* macros.
36690         * lib/truncf.c: New file.
36691         * m4/truncf.m4: New file.
36692         * lib/math.in.h (truncf): New declaration.
36693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36694         HAVE_DECL_TRUNCF.
36695         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36696         HAVE_DECL_TRUNCF.
36697         * doc/functions/truncf.texi: Mention the 'truncf' module.
36698
36699 2007-10-03  Bruno Haible  <bruno@clisp.org>
36700
36701         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36702         augmentation also for tests modules.
36703         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36704         * modules/atexit-tests (Makefile.am): Likewise.
36705         * modules/binary-io-tests (Makefile.am): Likewise.
36706         * modules/c-strcase-tests (Makefile.am): Likewise.
36707         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36708         * modules/canonicalize-tests (Makefile.am): Likewise.
36709         * modules/closein-tests (Makefile.am): Likewise.
36710         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36711         * modules/freadahead-tests (Makefile.am): Likewise.
36712         * modules/fseek-tests (Makefile.am): Likewise.
36713         * modules/fseeko-tests (Makefile.am): Likewise.
36714         * modules/ftell-tests (Makefile.am): Likewise.
36715         * modules/ftello-tests (Makefile.am): Likewise.
36716         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36717         * modules/isnanl-tests (Makefile.am): Likewise.
36718         * modules/lseek-tests (Makefile.am): Likewise.
36719         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36720         * modules/mbscasestr-tests (Makefile.am): Likewise.
36721         * modules/mbschr-tests (Makefile.am): Likewise.
36722         * modules/mbscspn-tests (Makefile.am): Likewise.
36723         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36724         * modules/mbspbrk-tests (Makefile.am): Likewise.
36725         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36726         * modules/mbsrchr-tests (Makefile.am): Likewise.
36727         * modules/mbsspn-tests (Makefile.am): Likewise.
36728         * modules/mbsstr-tests (Makefile.am): Likewise.
36729         * modules/printf-posix-tests (Makefile.am): Likewise.
36730         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36731         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36732         * modules/tsearch-tests (Makefile.am): Likewise.
36733         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36734         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36735         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36736         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36737         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36738         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36739         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36740         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36741         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36742         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36743         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36744         * modules/xstrtol-tests (Makefile.am): Likewise.
36745         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36746         * modules/yesno-tests (Makefile.am): Likewise.
36747
36748 2007-10-03  Bruno Haible  <bruno@clisp.org>
36749
36750         * modules/trunc-tests: New file.
36751         * tests/test-trunc.c: New file.
36752
36753         * modules/trunc: New file.
36754         * lib/trunc.c: New file.
36755         * m4/trunc.m4: New file.
36756         * lib/math.in.h (trunc): New declaration.
36757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36758         HAVE_DECL_TRUNC.
36759         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36760         HAVE_DECL_TRUNC.
36761         * doc/functions/trunc.texi: Mention the 'trunc' module.
36762
36763 2007-10-03  Bruno Haible  <bruno@clisp.org>
36764
36765         * tests/test-fpending.c: New file, mostly copied
36766         from coreutils/lib/t-fpending.c.
36767         * modules/fpending-tests: New file.
36768
36769 2007-10-03  Bruno Haible  <bruno@clisp.org>
36770
36771         Port the stdio extensions to QNX (untested).
36772         * lib/fseterr.c (fseterr): Add support for QNX.
36773         * lib/fbufmode.c (fbufmode): Likewise.
36774         * lib/freadable.c (freadable): Likewise.
36775         * lib/fwritable.c (fwritable): Likewise.
36776         * lib/freading.c (freading): Likewise.
36777         * lib/fwriting.c (fwriting): Likewise.
36778         * lib/freadahead.c (freadahed): Likewise.
36779         * lib/fpurge.c (fpurge): Likewise.
36780         * lib/fseeko.c (rpl_fseeko): Likewise.
36781
36782 2007-10-03  Bruno Haible  <bruno@clisp.org>
36783             Jim Meyering  <jim@meyering.net>
36784             Eric Blake  <ebb9@byu.net>
36785
36786         * doc/relocatable.texi: Use @command instead of @program.
36787
36788 2007-10-02  Jim Meyering  <jim@meyering.net>
36789
36790         Perform one more "_.h" -> ".in.h" substitution.
36791         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36792         instead of unistd_.h here, too.
36793
36794 2007-10-01  Bruno Haible  <bruno@clisp.org>
36795
36796         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36797         Needed for the alloca-opt module.
36798
36799 2007-09-30  Bruno Haible  <bruno@clisp.org>
36800
36801         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36802         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36803         alloca_.h.
36804         * lib/argz.in.h: Renamed from lib/argz_.h.
36805         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36806         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36807         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36808         byteswap_.h.
36809         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36810         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36811         dirent_.h.
36812         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36813         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36814         fcntl_.h.
36815         * lib/float.in.h: Renamed from lib/float_.h.
36816         * modules/float (Files, Makefile.am): Use float.in.h instead of
36817         float_.h.
36818         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36819         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36820         fnmatch_.h.
36821         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36822         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36823         getopt_.h.
36824         * lib/glob.in.h: Renamed from lib/glob_.h.
36825         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36826         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36827         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36828         iconv_.h.
36829         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36830         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36831         inttypes_.h.
36832         * lib/locale.in.h: Renamed from lib/locale_.h.
36833         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36834         locale_.h.
36835         * lib/math.in.h: Renamed from lib/math_.h.
36836         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36837         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36838         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36839         of netinet_in_.h. Add dependency.
36840         * lib/poll.in.h: Renamed from lib/poll_.h.
36841         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36842         * lib/search.in.h: Renamed from lib/search_.h.
36843         * modules/search (Files, Makefile.am): Use search.in.h instead of
36844         search_.h.
36845         * lib/signal.in.h: Renamed from lib/signal_.h.
36846         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36847         _signal.h.
36848         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36849         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36850         stdbool_.h.
36851         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36852         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36853         stdint_.h.
36854         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36855         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36856         stdio_.h.
36857         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36858         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36859         stdlib_.h.
36860         * lib/string.in.h: Renamed from lib/string_.h.
36861         * modules/string (Files, Makefile.am): Use string.in.h instead of
36862         string_.h.
36863         * doc/gnulib-tool.texi (Initial import): Update.
36864         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36865         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36866         of sys_select_.h. Add dependency.
36867         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36868         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36869         of sys_socket_.h.
36870         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36871         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36872         sys_stat_.h.
36873         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36874         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36875         sys_time_.h.
36876         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36877         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36878         sysexits_.h.
36879         * lib/time.in.h: Renamed from lib/time_.h.
36880         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36881         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36882         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36883         unistd_.h.
36884         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36885         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36886         wchar_.h.
36887         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36888         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36889         wctype_.h.
36890         * build-aux/bootstrap (slurp): Update.
36891         * lib/.cppi-disable: Update.
36892
36893 2007-09-30  Bruno Haible  <bruno@clisp.org>
36894
36895         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36896         Needed on BeOS.
36897
36898 2007-09-30  Bruno Haible  <bruno@clisp.org>
36899
36900         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36901
36902 2007-09-29  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36905
36906 2007-09-29  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36909         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36910         * build-aux/install-reloc: Compile also areadlink.c.
36911         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36912
36913 2007-09-29  Bruno Haible  <bruno@clisp.org>
36914
36915         * gnulib-tool (func_emit_initmacro_done): Indentation.
36916
36917 2007-09-29  Bruno Haible  <bruno@clisp.org>
36918
36919         * README: Add CVS checkout update instructions.
36920         Info from Bob Proulx <bob@proulx.com>.
36921
36922 2007-09-28  Eric Blake  <ebb9@byu.net>
36923
36924         Provide move-if-change.
36925         * build-aux/move-if-change: New file, based on best practice
36926         rather than any canonical upstream location.
36927
36928 2007-09-28  Jim Meyering  <jim@meyering.net>
36929
36930         Fix canonicalize loop-detection corner case.
36931         Do not attempt to stat the symlink values stored via seen_triple.
36932         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36933         on linux-2.6.18, (but not 2.6.22).
36934         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36935         triple_compare.  The former compares dev,ino,filename, while the latter
36936         would actually stat dirname(filename) when dev and ino were equal.
36937         * lib/hash-triple.c: Install <string.h>.
36938         (STREQ): Define.
36939         (triple_compare_ino_str): New function.
36940         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36941
36942 2007-09-28  Eric Blake  <ebb9@byu.net>
36943
36944         Enforce that AC_REPLACE_FUNCS files exist.
36945         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36946         override check for typos.
36947
36948         Fix test-closein on Solaris 10.
36949         * tests/test-closein.c (main): Don't assume stdin can be inherited
36950         closed on all systems.
36951         * tests/test-closein.sh: Likewise.
36952         Reported by Piotr Tarnowski.
36953
36954 2007-09-28  Jim Meyering  <jim@meyering.net>
36955
36956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36957
36958 2007-09-27  Jim Meyering  <jim@meyering.net>
36959
36960         canonicalize: Avoid a false-positive cycle failure.
36961         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36962         Sort.  Remove cycle-check.
36963         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36964         not cycle-check.h.
36965         (seen_triple): New function.
36966         (canonicalize_filename_mode): Use it instead of cycle-check.
36967         * tests/test-canonicalize.c: Add a test for this bug.
36968         * tests/test-canonicalize.sh: Set up and run the test.
36969
36970         New module, file-set, from coreutils.
36971         * modules/file-set: Define it.
36972         * lib/file-set.c, lib/file-set.h: Implement.
36973
36974         New module, hash-triple, from coreutils.
36975         * modules/hash-triple: Define it.
36976         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36977
36978 2007-09-25  Eric Blake  <ebb9@byu.net>
36979
36980         Fix strerror on Interix.
36981         * lib/string_.h (strerror): Declare replacement.
36982         * doc/functions/strerror.texi (strerror): Document the Interix
36983         shortcoming.
36984         * modules/string (Makefile.am): Support new hooks.
36985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36986         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36987         gl_FUNC_STRERROR_SEPARATE.
36988         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36989         * lib/strerror.c (rpl_strerror): Provide replacement.
36990         * modules/strerror (Depends-on): Add string.
36991         (configure.ac): Detect use of module.
36992         * tests/test-strerror.c: New file.
36993         * modules/strerror-tests: New test module.
36994         * modules/argp (Depends-on): Add strerror.
36995         * modules/error (Depends-on): Likewise.
36996         Reported by Martin Koeppe.
36997
36998 2007-09-24  Bruno Haible  <bruno@clisp.org>
36999
37000         * README: Update git instructions.
37001
37002 2007-09-24  Eric Blake  <ebb9@byu.net>
37003
37004         Revert fpending breakage from 2007-09-08.
37005         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37006         __fpending.c.
37007
37008 2007-09-24  Jim Meyering  <jim@meyering.net>
37009
37010         filenamecat.c: Add a test.
37011         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37012         showing how the function works when DIR is the empty string.
37013
37014 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37015
37016         * tests/test-canonicalize.sh: Turn on executable bit.
37017
37018 2007-09-19  Eric Blake  <ebb9@byu.net>
37019
37020         * README: Update CVS instructions.
37021
37022 2007-09-18  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/areadlink: New file.
37025         * lib/areadlink.h (areadlink): New declaration.
37026         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37027
37028 2007-09-17  Jim Meyering  <jim@meyering.net>
37029
37030         * lib/savewd.c (ESTALE) [!defined]: Define.
37031         Reported to be required on Interix by Martin Koeppe.
37032
37033 2007-09-17  Bruno Haible  <bruno@clisp.org>
37034
37035         * gnulib-tool (func_version): Use $version.
37036
37037 2007-09-16  Bruno Haible  <bruno@clisp.org>
37038
37039         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37040         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37041         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37042         Reported by Greg Schafer <gschafer@zip.com.au>.
37043
37044 2007-09-15  Bruno Haible  <bruno@clisp.org>
37045
37046         * gnulib-tool (sed): Try a little harder to make bash understand the
37047         alias.
37048         Reported by Bruce Korb <bruce.korb@gmail.com>.
37049
37050 2007-09-13  Eric Blake  <ebb9@byu.net>
37051
37052         * ChangeLog: Remove conflict markers.
37053
37054 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37055
37056         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37057         Reported by Bruno Haible <bruno@clisp.org>.
37058
37059 2007-09-12  Bruno Haible  <bruno@clisp.org>
37060
37061         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37062         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37063         is not defined.
37064
37065 2007-09-12  Eric Blake  <ebb9@byu.net>
37066
37067         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37068         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37069         Autoconf definition.
37070         * modules/euidaccess (Depends-on): Add extensions, for
37071         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37072         * modules/fnmatch (Depends-on): Likewise.
37073         * modules/getaddrinfo (Depends-on): Likewise.
37074         * modules/getdelim (Depends-on): Likewise.
37075         * modules/getline (Depends-on): Likewise.
37076         * modules/getsubopt (Depends-on): Likewise.
37077         * modules/gettext (Depends-on): Likewise.
37078         * modules/group-member (Depends-on): Likewise.
37079         * modules/mbchar (Depends-on): Likewise.
37080         * modules/memmem (Depends-on): Likewise.
37081         * modules/mempcpy (Depends-on): Likewise.
37082         * modules/memrchr (Depends-on): Likewise.
37083         * modules/pagealign_alloc (Depends-on): Likewise.
37084         * modules/readutmp (Depends-on): Likewise.
37085         * modules/stpcpy (Depends-on): Likewise.
37086         * modules/stpncpy (Depends-on): Likewise.
37087         * modules/strchrnul (Depends-on): Likewise.
37088         * modules/strndup (Depends-on): Likewise.
37089         * modules/strsep (Depends-on): Likewise.
37090         * modules/strverscmp (Depends-on): Likewise.
37091         * modules/vasprintf (Depends-on): Likewise.
37092         * modules/wcwidth (Depends-on): Likewise.
37093         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37094         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37095         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37097         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37098         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37099         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37101         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37102         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37103         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37105         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37107         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37108         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37109         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37110         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37112         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37115         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37116         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37117         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37119         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37120         so that lock.m4 can be used in gettext without extensions module.
37121
37122 2007-09-11  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/isc-posix.m4: Remove file.
37125         Suggested by Eric Blake.
37126
37127 2007-09-11  Eric Blake  <ebb9@byu.net>
37128
37129         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37130
37131 2007-09-10  Bruno Haible  <bruno@clisp.org>
37132
37133         * posix-modules: Fix typo in error message.
37134         Reported by Matt <mkraai@beckman.com>.
37135
37136 2007-09-09  Bruno Haible  <bruno@clisp.org>
37137
37138         * doc/functions/getdelim.texi: Update list of platforms lacking the
37139         function.
37140         * doc/functions/getline.texi: Likewise.
37141
37142 2007-09-09  Jim Meyering  <jim@meyering.net>
37143
37144         * lib/hash.c (hash_initialize): Detect calloc failure.
37145         Reported by Bruno Haible.
37146
37147 2007-09-09  Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37150         malloc or realloc fails.
37151
37152 2007-09-09  Bruno Haible  <bruno@clisp.org>
37153
37154         * modules/getcwd (Depends-on): Add malloc-posix.
37155         * modules/glob (Depends-on): Likewise.
37156         * modules/putenv (Depends-on): Likewise.
37157         * modules/strdup (Depends-on): Likewise.
37158         * modules/getdelim (Depends-on): Add realloc-posix.
37159         * modules/read-file (Depends-on): Likewise.
37160
37161 2007-09-09  Bruno Haible  <bruno@clisp.org>
37162
37163         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37164         (gl_FUNC_MALLOC_POSIX): Require it.
37165         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37166         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37167         * modules/realloc (Files): Add m4/malloc.m4.
37168         * modules/calloc (Files): Likewise.
37169
37170 2007-09-09  Bruno Haible  <bruno@clisp.org>
37171
37172         * modules/malloc-posix: New file.
37173         * modules/malloc (Depends-on): Add malloc-posix.
37174         * lib/malloc.c: Include errno.h.
37175         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37176         and a POSIX-compatible malloc into a single function. Set ENOMEM
37177         when returning NULL.
37178         * m4/malloc.m4: New file.
37179         * doc/functions/malloc.texi: Mention the malloc-posix module.
37180         * lib/stdlib_.h (malloc): New declaration.
37181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37182         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37183         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37184         and HAVE_MALLOC_POSIX.
37185
37186 2007-09-09  Bruno Haible  <bruno@clisp.org>
37187
37188         * modules/realloc-posix: New file.
37189         * modules/realloc (Depends-on): Add realloc-posix.
37190         * lib/realloc.c: Include errno.h.
37191         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37192         and a POSIX-compatible realloc into a single function. Set ENOMEM
37193         when returning NULL.
37194         * m4/realloc.m4: New file.
37195         * doc/functions/realloc.texi: Mention the realloc-posix module.
37196         * lib/stdlib_.h (realloc): New declaration.
37197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37198         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37199         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37200         and HAVE_REALLOC_POSIX.
37201
37202 2007-09-09  Bruno Haible  <bruno@clisp.org>
37203
37204         * modules/calloc-posix: New file.
37205         * modules/calloc (Depends-on): Add calloc-posix.
37206         * lib/calloc.c: Include errno.h.
37207         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37208         and a POSIX-compatible calloc into a single function. Set ENOMEM
37209         when returning NULL.
37210         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37211         * doc/functions/calloc.texi: Mention the calloc-posix module.
37212         * lib/stdlib_.h (calloc): New declaration.
37213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37214         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37215         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37216         and HAVE_CALLOC_POSIX.
37217
37218 2007-09-09  Bruno Haible  <bruno@clisp.org>
37219
37220         Allow for modules to show an arbitrary notice.
37221         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37222         * gnulib-tool: New option --extract-notice.
37223         (func_usage): Document it.
37224         (sed_extract_prog): Update.
37225         (func_get_notice): New function.
37226         (func_modules_notice): New function.
37227         (func_import, func_create_testdir): Invoke it.
37228         Suggested by Jim Meyering.
37229
37230 2007-09-09  Bruno Haible  <bruno@clisp.org>
37231
37232         * gnulib-tool: New options --verbose, --quiet.
37233         (func_usage): Document them.
37234         (verbose): New variable.
37235         (func_execute_command): New function.
37236         (func_import): Don't show the module list and the file list if
37237         $verbose < 0.
37238         (func_create_testdir): Likewise. Use func_execute_command.
37239         (func_create_megatestdir): Use func_execute_command.
37240
37241 2007-09-08  Bruno Haible  <bruno@clisp.org>
37242
37243         * gnulib-tool (func_import): Prefer rsync over wget when available,
37244         for fetching the PO files.
37245
37246 2007-09-08  Bruno Haible  <bruno@clisp.org>
37247
37248         * posix-modules: New file. Portions copied from gnulib-tool.
37249         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37250
37251 2007-09-08  Jim Meyering  <jim@meyering.net>
37252
37253         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37254         * lib/fpending.h: Rename from __fpending.h.
37255         * lib/fpending.c: Rename from __fpending.c.
37256         Include "fpending.h", not "__fpending.h".
37257         * lib/__fpending.h, lib/__fpending.c: Remove files.
37258         * modules/fpending (Files): Reflect new file names.
37259         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37260
37261 2007-09-08  Bruno Haible  <bruno@clisp.org>
37262
37263         * m4/inttypes-h.m4: Remove stub file.
37264
37265 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37266
37267         * doc/headers/stdint.texi: Discuss #include_next issue.
37268
37269 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37270
37271         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37272
37273 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37274
37275         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37276         in variable name.
37277
37278 2007-09-03  Jim Meyering  <jim@meyering.net>
37279
37280         New module: git-version-gen.
37281         * modules/git-version-gen: New file.
37282
37283         Import changes from coreutils for bootstrap script.
37284
37285         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37286
37287         bootstrap: uses rsync to download the .po files
37288         * build-aux/bootstrap (po_download_command_format): New global.
37289         (download_po_files): Use rsync.
37290         (update_po_files): Don't remove .po files after download,
37291         so future rsync runs can take advantage of the copies.
37292
37293         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37294
37295         Solve the unnecessary-.po-file-regeneration problem once and for all.
37296         * build-aux/bootstrap (download_po_files): New function, renamed from
37297         get_translations.  Now, downloads, but doesn't update LINGUAS.
37298         (update_po_files): New function.
37299
37300         bootstrap: Ignore more.
37301         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37302         uniwidth to e.g., lib/.gitignore.
37303         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37304
37305         * build-aux/bootstrap: New setting: vc_ignore.
37306         (insert_sorted_if_absent): Create $file if absent.
37307         Adapt to new, possibly empty, list: $vc_ignore.
37308
37309         bootstrap: generate more ignorable names
37310         * build-aux/bootstrap (slurp): When generating ignorable names,
37311         also map .sin to .sed, .gperf to .c, and .y to .c.
37312
37313 2007-09-03  Jim Meyering  <jim@meyering.net>
37314
37315         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37316         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37317
37318 2007-09-02  Bruno Haible  <bruno@clisp.org>
37319
37320         Fix mis-recognition of 'mcs' on QNX 6.
37321         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37322         output contains the string "Mono".
37323         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37324         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37325
37326 2007-09-01  Bruno Haible  <bruno@clisp.org>
37327
37328         Fix collision between uniwidth/* and linebreak modules.
37329         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37330         u32_width): Remove declarations.
37331         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37332         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37333         streq3, streq2, streq1, streq0): Remove functions.
37334         (STREQ): Remove macro.
37335         (is_cjk_encoding): Remove function.
37336         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37337         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37338         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37339         * NEWS: Document the change.
37340
37341 2007-09-01  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/streq.h: Add double-inclusion guard.
37344
37345 2007-09-01  Karl Berry  <karl@gnu.org>
37346
37347         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37348
37349 2007-08-28  Jim Meyering  <jim@meyering.net>
37350
37351         Rename mreadlink_with_size to areadlink_with_size.
37352         * NEWS: Document the change.
37353         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37354         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37355         * lib/mreadlink.h: Rename this to...
37356         * lib/areadlink.h: ...this.
37357         * modules/mreadlink-with-size: Rename this to...
37358         * modules/areadlink-with-size: ...this.
37359         * lib/canonicalize.c: Reflect the renaming.
37360         * modules/canonicalize: Likewise.
37361
37362 2007-08-26  Bruno Haible  <bruno@clisp.org>
37363
37364         * gnulib-tool (func_import): When deciding which files to remove,
37365         consider also dangling symbolic links.
37366         Reported by Eric Blake.
37367
37368 2007-08-26  Bruno Haible  <bruno@clisp.org>
37369
37370         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37371
37372 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37373
37374         * lib/readline.c: Don't include getline.h, the prototype is now
37375         found in stdio.h.
37376
37377 2007-08-23  Jim Meyering  <jim@meyering.net>
37378
37379         Getdelim touchup.
37380         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37381         around the funlockfile call, since funlockfile never sets errno.
37382         Don't set errno upon failed realloc.
37383
37384 2007-08-22  Eric Blake  <ebb9@byu.net>
37385
37386         Getline touchups.
37387         * lib/getdelim.c (getdelim): Revert regression that required *n to
37388         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37390         getdelim, rather than whether implementation is missing.
37391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37392         * lib/stdio_.h (getline): Also declare if replacement is
37393         required.
37394         * doc/functions/getdelim.texi: New file.
37395         * doc/functions/getline.texi: Likewise.
37396         * doc/gnulib.texi (Function Substitutes): Add new files.
37397         Reported by Bruno Haible.
37398
37399 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37400
37401         * users.txt: Add Guile.
37402
37403 2007-08-22  Eric Blake  <ebb9@byu.net>
37404
37405         * tests/test-getdelim.c (main): Use remove, not unlink.
37406         * tests/test-getline.c (main): Likewise.
37407
37408         Move getline and getdelim into stdio.h, per POSIX 200x.
37409         * modules/getline (Files): Remove getline.h.
37410         (Depends-on): Add stdio.
37411         (configure.ac): Add module indicator.
37412         * modules/getdelim (Files): Remove getdelim.h.
37413         (Depends-on): Add stdio.
37414         (configure.ac): Add module indicator.
37415         * modules/stdio (Makefile.am): Work with new indicators.
37416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37418         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37419         * lib/getdelim.h: Delete.
37420         * lib/getline.h: Delete.
37421         * lib/stdio_.h (getdelim, getline): Declare.
37422         * modules/getdelim-tests: New module.
37423         * modules/getline-tests: Likewise.
37424         * tests/test-getdelim.c: New file.
37425         * tests/test-getline.c: Likewise.
37426         * NEWS: Document the change.
37427         * lib/getline.c: Update choice of header.
37428         * lib/csharpcomp.c: Likewise.
37429         * lib/getpass.c: Likewise.
37430         * lib/javacomp.c: Likewise.
37431         * lib/javaversion.c: Likewise.
37432         * lib/yesno.c: Likewise.
37433         * lib/getdelim.c: Likewise.
37434         (getdelim): Set errno on failure, and avoid memory leak.
37435
37436 2007-08-19  Bruno Haible  <bruno@clisp.org>
37437
37438         * modules/closein (Depends-on): Add freadahead.
37439         * lib/closein.c: Include freadahead.h.
37440         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37441         is zero.
37442
37443 2007-08-19  Bruno Haible  <bruno@clisp.org>
37444
37445         * modules/freadahead-tests: New file.
37446         * tests/test-freadahead.sh: New file.
37447         * tests/test-freadahead.c: New file.
37448
37449         * modules/freadahead: New file.
37450         * lib/freadahead.h: New file.
37451         * lib/freadahead.c: New file.
37452         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37453         fbufmode, fpurge, freadable, fwritable.
37454
37455 2007-08-19  Eric Blake  <ebb9@byu.net>
37456
37457         Test yesno in combination with closein.
37458         * lib/yesno.c (yesno): Document use of stdin.
37459         * modules/yesno-tests (Files): New module.
37460         * tests/test-yesno.c (main): New file.
37461         * tests/test-yesno.sh: Likewise.
37462
37463 2007-08-19  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37466         * lib/fseeko.c (rpl_fseeko): Likewise.
37467         * lib/fseterr.c (fseterr): Likewise.
37468
37469 2007-08-19  Bruno Haible  <bruno@clisp.org>
37470
37471         * tests/test-lseek.c (main): Disable a test for BeOS.
37472         * doc/functions/lseek.texi: Document the BeOS bug.
37473
37474 2007-08-19  Bruno Haible  <bruno@clisp.org>
37475             Eric Blake  <ebb9@byu.net>
37476
37477         * lib/lseek.c: Include <sys/stat.h>.
37478         (rpl_lseek): Add workaround code also for Unix platforms.
37479         Needed for BeOS.
37480         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37481         * doc/functions/lseek.texi: Document BeOS definiency.
37482
37483 2007-08-18  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/fstrcmp-tests: New file.
37486         * tests/test-fstrcmp.c: New file.
37487
37488 2007-08-18  Bruno Haible  <bruno@clisp.org>
37489
37490         * modules/fstrcmp: New file, from GNU gettext with modifications.
37491         * lib/fstrcmp.h: New file, from GNU gettext.
37492         * lib/fstrcmp.c: New file, from GNU gettext.
37493         * MODULES.html.sh (String handling): Add fstrcmp.
37494
37495 2007-08-18  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37498         'bool'.
37499         (diag, compareseq): Remove const from the ctxt argument.
37500         (USE_HEURISTIC): Undefine at the end.
37501
37502 2007-08-18  Jim Meyering  <jim@meyering.net>
37503
37504         New file: lib/idcache.h
37505         * NEWS: Mention the addition.
37506         * modules/idcache (Files): Add lib/idcache.h
37507         * lib/idcache.c: Include "idcache.h".
37508         Don't include <sys/types.h>.
37509         Add a FIXME comment.
37510         Move file-scoped "static" declarations to the top.
37511         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37512
37513 2007-08-17  Bruno Haible  <bruno@clisp.org>
37514         and Paul Eggert  <eggert@cs.ucla.edu>
37515
37516         * MODULES.html.sh: Add diffseq.
37517         * modules/diffseq: New file.
37518         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37519         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37520
37521 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37522
37523         Import changes from coreutils for bootstrap script.
37524
37525         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37526
37527         * build-aux/bootstrap (slurp): Work even in environments where
37528         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37529         current code does not slurp files whose names start with ".", and
37530         this looks like it might be a troublesome area.
37531
37532         2007-07-11  Jim Meyering  <jim@meyering.net>
37533
37534         If there's a GPL vN copyright comment, require that N == 3.
37535
37536         2007-07-08  Jim Meyering  <jim@meyering.net>
37537
37538         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37539         * build-aux/bootstrap (mam_template): Move definition out of loop.
37540
37541         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37542
37543         * build-aux/bootstrap (symlink_to_dir): Rename function from
37544         symlink_to_gnulib.  Add a directory parameter.  Update all
37545         callers.
37546         (cp_mark_as_generated): Also check for -- and link to -- files in
37547         gl/.
37548
37549         2007-07-08  Jim Meyering  <jim@meyering.net>
37550
37551         Adapt to deeper hierarchy in gnulib.
37552         * build-aux/bootstrap (symlink_to_dir): If the destination
37553         directory doesn't exist, create it. This is required at least for
37554         "lib/uniwidth/cjk.h".
37555
37556         2007-05-15  Jim Meyering  <jim@meyering.net>
37557
37558         * build-aux/bootstrap: Now that generated Makefile.am files
37559         are no longer under version control, they must be created at
37560         bootstrap time.
37561
37562 2007-08-14  Ben Pfaff  <blp@gnu.org>
37563
37564         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37565
37566 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37567
37568         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37569         given the changes below.
37570         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37571         even on hosts that have padding bits beyond the supported 64.
37572
37573 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37574
37575         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37576         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37577         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37578         depends on it.
37579         (xstrtol_error): Remove.
37580         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37581         but with a different signature.
37582         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37583         * lib/xstrtol-error.c: Include exitfail.h.
37584         (xstrtol_fatal): New function, with a different signature from the
37585         old xstrtol_error, so that the caller need not worry about passing
37586         in an exit status, or about storage management of the option argument.
37587         (xstrtol_error): Now a static function.  Redo signature to
37588         implement xstrtol_fatal.  Output the correct number of hyphens in
37589         front of the option so that the caller need not worry about
37590         storage management.
37591         (N_): New macro.
37592         (_): Remove; not used now.
37593         * modules/xstrtol: Depend on getopt.
37594         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37595         of old STRTOL_FATAL_ERROR macro.
37596         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37597         of test program.
37598         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37599         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37600
37601 2007-08-08  Eric Blake  <ebb9@byu.net>
37602
37603         * lib/xstrtol-error.c: Add missing include.
37604
37605         Move xstrtol messages into gnulib domain, when --pobase is used.
37606         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37607         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37608         * modules/xstrtol (Files): Distribute new file.
37609         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37610         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37611         * tests/test-xstrtol.c: ...into new file.
37612         * tests/test-xstrtoul.c: Also test xstrtoul.
37613         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37614         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37615         * tests/test-xstrtol.sh: Drive the tests.
37616         * tests/test-xstrtoimax.sh: Likewise.
37617         * tests/test-xstrtoumax.sh: Likewise.
37618         * modules/xstrtol-tests: New module.
37619         * modules/xstrtoimax-tests: Likewise.
37620         * modules/xstrtoumax-tests: Likewise.
37621
37622 2007-08-08  Jim Meyering  <jim@meyering.net>
37623
37624         New function: mfile_name_concat.
37625         * lib/filenamecat.c (mfile_name_concat): New function, just like
37626         file_name_concat, but return NULL upon failure rather than exiting
37627         with a diagnostic.
37628         * lib/filenamecat.h: Declare it.
37629
37630 2007-08-07  Bruno Haible  <bruno@clisp.org>
37631
37632         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37633         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37634         warning from gcc.
37635         Reported by Eric Blake.
37636
37637 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37638
37639         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37640         * modules/crypto/arcfour (License): Likewise.
37641         * modules/crypto/des-tests (License): Likewise.
37642         * modules/crypto/gc-arctwo-tests (License): Likewise.
37643         * modules/crypto/gc-des-tests (License): Likewise.
37644         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37645         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37646         * modules/crypto/gc-md2-tests (License): Likewise.
37647         * modules/crypto/gc-md4-tests (License): Likewise.
37648         * modules/crypto/gc-md5-tests (License): Likewise.
37649         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37650         * modules/crypto/gc-rijndael-tests (License): Likewise.
37651         * modules/crypto/gc-sha1-tests (License): Likewise.
37652         * modules/crypto/gc-tests (License): Likewise.
37653         * modules/crypto/hmac-md5 (License): Likewise.
37654         * modules/crypto/hmac-sha1 (License): Likewise.
37655         * modules/crypto/md2-tests (License): Likewise.
37656         * modules/crypto/md4-tests (License): Likewise.
37657         * modules/crypto/md5 (License): Likewise.
37658         * modules/crypto/rijndael (License): Likewise.
37659         * modules/crypto/sha1 (License): Likewise.
37660         * modules/memxor (License): Likewise.
37661
37662 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37663         and Bruno Haible  <bruno@clisp.org>
37664
37665         * NEWS: Describe interface changes to human, xstrtol.
37666         * lib/human.h: Include <xstrtol.h>.
37667         (human_options): Return enum strtol_error, not int.  Remove
37668         bool arg; take int * instead.
37669         * lib/human.c: Don't include "gettext.h".
37670         (_): Remove; no longer used.
37671         Don't include <xstrtol.h>, since human.h does it.
37672         (human_options): Adjust to abovementioned interface changes.
37673         Do not report error to stderr; that's now the caller's
37674         responsibility.
37675         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37676         interface change.
37677         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37678         Str, Argument_type_string.  All uses changed.  Put " argument"
37679         in diagnostics to make them clearer.  Change wording of suffix
37680         message for clarity.
37681         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37682         Argument_type_string.
37683         (STRTOL_FATAL_WARN): Remove; no longer used.
37684         * modules/human (Depends-on): Remove gettext-h.
37685
37686 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37687
37688         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37689
37690 2007-07-31  Bruno Haible  <bruno@clisp.org>
37691
37692         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37693         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37694         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37695
37696 2007-07-31  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37699         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37700
37701 2007-07-30  Bruno Haible  <bruno@clisp.org>
37702
37703         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37704         * modules/c-ctype (License): Likewise.
37705         * modules/c-strcase (License): Likewise.
37706         * modules/check-version (License): Likewise.
37707         * modules/iconv (License): Likewise.
37708         * modules/iconv_open (License): Likewise.
37709         * modules/read-file (License): Likewise.
37710         * modules/striconv (License): Likewise.
37711         * modules/strverscmp (License): Likewise.
37712         * modules/vasprintf (License): Likewise.
37713         * modules/crypto/des (License): Likewise.
37714         * modules/crypto/gc (License): Likewise.
37715         * modules/crypto/gc-arcfour (License): Likewise.
37716         * modules/crypto/gc-arctwo (License): Likewise.
37717         * modules/crypto/gc-des (License): Likewise.
37718         * modules/crypto/gc-hmac-md5 (License): Likewise.
37719         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37720         * modules/crypto/gc-md2 (License): Likewise.
37721         * modules/crypto/gc-md4 (License): Likewise.
37722         * modules/crypto/gc-md5 (License): Likewise.
37723         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37724         * modules/crypto/gc-random (License): Likewise.
37725         * modules/crypto/gc-rijndael (License): Likewise.
37726         * modules/crypto/gc-sha1 (License): Likewise.
37727         * modules/crypto/md2 (License): Likewise.
37728         * modules/crypto/md4 (License): Likewise.
37729
37730 2007-07-30  Jim Meyering  <jim@meyering.net>
37731
37732         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37733         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37734         it has valid stat data.  This bug would cause du not to count the
37735         sizes of inaccessible directories.
37736         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37737         in <http://bugzilla.redhat.com/250077>.
37738
37739 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37740             Bruno Haible  <bruno@clisp.org>
37741
37742         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37743         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37744         #include_next, gives a diagnostic about it, but reports no error in
37745         the exit code.
37746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37747
37748 2007-07-24  Ben Pfaff  <blp@gnu.org>
37749
37750         Improve name: "count-one-bits" is better than "popcount".
37751         * MODULES.html.sh: Update name.
37752         * lib/popcount.h: Renamed lib/count-one-bits.h.
37753         (popcount): Renamed count_one_bits.
37754         (popcountl): Renamed count_one_bits_l.
37755         (popcountll): Renamed count_one_bits_ll.
37756         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37757         * modules/popcount: Renamed module/count-one-bits.
37758         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37759         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37760
37761 2007-07-23  Ben Pfaff  <blp@gnu.org>
37762
37763         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37764         better code generation, and add U to large constants to avoid
37765         warnings, in non-GCC case.
37766         Suggested by Bruno Haible.
37767
37768 2007-07-23  Ben Pfaff  <blp@gnu.org>
37769
37770         * lib/popcount.h: Use verify_true instead of if...abort.
37771         * modules/popcount: Depend on verify module.
37772         Suggested by Jim Meyering.
37773
37774 2007-07-23  Bruno Haible  <bruno@clisp.org>
37775
37776         * gnulib-tool (func_import): Create a .cvsignore file also when the
37777         directory is not yet in CVS but the toplevel directory is. When
37778         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37779         Reported by Karl Berry.
37780
37781 2007-07-22  Ben Pfaff  <blp@gnu.org>
37782
37783         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37784         case.
37785         Suggested by Eric Blake.
37786
37787 2007-07-22  Ben Pfaff  <blp@gnu.org>
37788
37789         New module: popcount.
37790         * MODULES.html.sh: Add popcount.
37791         * modules/popcount: New file.
37792         * modules/popcount-tests: New file.
37793         * tests/test-popcount.c: New file.
37794         * lib/popcount.h: New file.
37795         * m4/popcount.m4: New file.
37796
37797 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37798
37799         * build-aux/announce-gen: Update to GPLv3.
37800
37801         * build-aux/config.guess: Update from config.
37802
37803 2007-07-21  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37806         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37807
37808 2007-07-20  Jim Meyering  <jim@meyering.net>
37809
37810         * check-module: Diagnose a self-dependency.
37811
37812 2007-07-19  Bruno Haible  <bruno@clisp.org>
37813
37814         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37815         empty.
37816         Reported by Eric Blake.
37817
37818 2007-07-18  Bruno Haible  <bruno@clisp.org>
37819
37820         * gnulib-tool: New options --po-base, --po-domain.
37821         (func_usage): Document them.
37822         (pobase, po_domain): New variables.
37823         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37824         DEFAULT_TEXT_DOMAIN.
37825         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37826         (func_import): Consider pobase and po_domain. Create a po/ directory.
37827         (func_create_testdir): Set pobase and po_domain to empty.
37828         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37829         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37830
37831 2007-07-18  Bruno Haible  <bruno@clisp.org>
37832
37833         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37834         EXTRA_DIST augmentation for files in build-aux/.
37835
37836 2007-07-16  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37839         * modules/getdelim (License): Likewise.
37840
37841 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37842
37843         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37844         * modules/d-type (License): Likewise.
37845         * modules/extensions (License): Likewise.
37846         * modules/fnmatch (License): Likewise.
37847         * modules/fseeko (License): Likewise.
37848         * modules/getaddrinfo (License): Likewise.
37849         * modules/getline (License): Likewise.
37850         * modules/getlogin_r (License): Likewise.
37851         * modules/getpass (License): Likewise.
37852         * modules/gettimeofday (License): Likewise.
37853         * modules/glob (License): Likewise.
37854         * modules/inet_ntop (License): Likewise.
37855         * modules/malloc (License): Likewise.
37856         * modules/malloca (License): Likewise.
37857         * modules/memmem (License): Likewise.
37858         * modules/mempcpy (License): Likewise.
37859         * modules/memset (License): Likewise.
37860         * modules/minmax (License): Likewise.
37861         * modules/mktime (License): Likewise.
37862         * modules/netinet_in (License): Likewise.
37863         * modules/pathmax (License): Likewise.
37864         * modules/poll (License): Likewise.
37865         * modules/regex (License): Likewise.
37866         * modules/snprintf (License): Likewise.
37867         * modules/stdbool (License): Likewise.
37868         * modules/stdint (License): Likewise.
37869         * modules/stdio (License): Likewise.
37870         * modules/strcase (License): Likewise.
37871         * modules/strcasestr (License): Likewise.
37872         * modules/strdup (License): Likewise.
37873         * modules/string (License): Likewise.
37874         * modules/strndup (License): Likewise.
37875         * modules/strnlen (License): Likewise.
37876         * modules/strpbrk (License): Likewise.
37877         * modules/strptime (License): Likewise.
37878         * modules/strsep (License): Likewise.
37879         * modules/sys_select (License): Likewise.
37880         * modules/sys_socket (License): Likewise.
37881         * modules/sys_stat (License): Likewise.
37882         * modules/sys_time (License): Likewise.
37883         * modules/time (License): Likewise.
37884         * modules/time_r (License): Likewise.
37885         * modules/timegm (License): Likewise.
37886         * modules/unistd (License): Likewise.
37887         * modules/vsnprintf (License): Likewise.
37888         * modules/wctype (License): Likewise.
37889
37890 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37891
37892         * modules/argz (License): LGPLv2+.
37893
37894 2007-07-15  Karl Berry  <karl@gnu.org>
37895
37896         * doc/gnulib.texi: revise node structure per new fdl.texi.
37897
37898 2007-07-14  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37901         the output file.
37902         * lib/uniname/uninames.h: Regenerated.
37903
37904 2007-07-14  Karl Berry  <karl@gnu.org>
37905
37906         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37907         omitting sectioning and index commands.
37908
37909 2007-07-13  Bruno Haible  <bruno@clisp.org>
37910
37911         New gnulib-tool option --more-symlinks.
37912         * gnulib-tool (func_usage): Document --more-symlinks.
37913         (do_copyrights): New variable.
37914         Recognize option --more-symlinks.
37915         (func_import): Don't add a copyright notice transform to
37916         sed_transform_lib_file if do_copyrights is empty.
37917
37918 2007-07-13  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/vasnprintf.c (decimal_point_char): Define also if
37921         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37922         && !NEED_PRINTF_DIRECTIVE_A.
37923         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37924         Gary V. Vaughan <gary@gnu.org>.
37925
37926 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37927
37928         * lib/inttypes_.h: Undo previous change, since it was fixed
37929         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37930
37931 2007-07-13  Bruno Haible  <bruno@clisp.org>
37932
37933         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37934         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37935
37936 2007-07-13  Jim Meyering  <jim@meyering.net>
37937
37938         df: Don't fail for Tru64's "file-on-file mount".
37939         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37940         so we fall through and use statfs instead.  Details here:
37941         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37942         Reported by Albert Chin.
37943
37944 2007-07-13  Bruno Haible  <bruno@clisp.org>
37945
37946         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37947         * modules/configmake (License): Likewise.
37948         * modules/gettext (License): Likewise.
37949         * modules/gettext-h (License): Likewise.
37950         * modules/include_next (License): Likewise.
37951         * modules/link-warning (License): Likewise.
37952         * modules/localcharset (License): Likewise.
37953         * modules/localename (License): Likewise.
37954         * modules/lock (License): Likewise.
37955         * modules/relocatable-lib-lgpl (License): Likewise.
37956         * modules/size_max (License): Likewise.
37957         * modules/vasnprintf (License): Likewise.
37958         * modules/wchar (License): Likewise.
37959         * modules/xsize (License): Likewise.
37960
37961 2007-07-13  Bruno Haible  <bruno@clisp.org>
37962
37963         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37964         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37965
37966 2007-07-12  Bruno Haible  <bruno@clisp.org>
37967
37968         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37969         in the modules files.
37970
37971 2007-07-11  Karl Berry  <karl@gnu.org>
37972
37973         * MODULES.html.sh (func_module): use
37974          sed -e '\|^'"${includefile}"'$|d'
37975          instead of /.../d, to avoid errors on $includefile's containing /.
37976
37977 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37978
37979         * gnulib-tool (func_import): Avoid duplication of --avoid
37980         statements
37981         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37982         names to `_' in variable names.
37983
37984 2007-07-10  Eric Blake  <ebb9@byu.net>
37985
37986         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37987         * NEWS: Document this change.
37988
37989 2007-07-08  Bruno Haible  <bruno@clisp.org>
37990
37991         Update to Unicode 5.0.
37992         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37993         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37994         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37995         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37996         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37997         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37998         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37999         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38000         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38001         U+10A3F, U+1D242..U+1D244.
38002         (nonspacing_table_ind): Update.
38003         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38004         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38005
38006 2007-07-08  Bruno Haible  <bruno@clisp.org>
38007
38008         Update to Unicode 5.0.
38009         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38010         code transform. Extend the name index field of unicode_name_to_code and
38011         unicode_code_to_name from 16 to 24 bits.
38012         * lib/uniname/uniname.c (unicode_character_name,
38013         unicode_name_character): Add the range 0x12xxx to the code transform.
38014         * lib/uniname/uninames.h: Regenerated.
38015         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38016
38017 2007-07-07  Bruno Haible  <bruno@clisp.org>
38018
38019         * modules/wcwidth-tests: New file.
38020         * tests/test-wcwidth.c: New file.
38021
38022         Work around MacOS X wcwidth() bug.
38023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38024         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38025         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38026         original wcwidth in non-UTF-8 locales.
38027         * modules/wcwidth (Depends-on): Add localcharset, streq,
38028         uniwidth/width.
38029         * doc/functions/wcwidth.texi: Update.
38030
38031 2007-07-07  Bruno Haible  <bruno@clisp.org>
38032
38033         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38034         (wcwidth): New declaration.
38035         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38036         macros.
38037         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38038         here. Prepare for creating <wchar.h> unconditionally.
38039         * modules/wchar (Depends-on): Add link-warning.
38040         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38041         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38042         * lib/wcwidth.h: Remove file.
38043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38044         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38045         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38046         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38047         (Include): Replace wcwidth.h with <wchar.h>.
38048         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38049         * lib/mbchar.h: Don't include wcwidth.h.
38050         * lib/mbswidth.c: Likewise.
38051         * NEWS: Mention the change.
38052
38053 2007-07-07  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38056         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38057         definition with an external declaration.
38058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38059         defined as a function. Remove AC_C_INLINE requirement.
38060         * modules/wcwidth (Files): Add lib/wcwidth.c.
38061         (Makefile.am): Remove redundant statement.
38062
38063 2007-07-07  Bruno Haible  <bruno@clisp.org>
38064
38065         * MODULES.html.sh (Unicode string functions): Add the new modules.
38066
38067         * tests/uniwidth/test-u32-strwidth.c: New file.
38068         * modules/uniwidth/u32-strwidth-tests: New file.
38069
38070         * lib/uniwidth/u32-strwidth.c: New file.
38071         * modules/uniwidth/u32-strwidth: New file.
38072
38073         * tests/uniwidth/test-u16-strwidth.c: New file.
38074         * modules/uniwidth/u16-strwidth-tests: New file.
38075
38076         * lib/uniwidth/u16-strwidth.c: New file.
38077         * modules/uniwidth/u16-strwidth: New file.
38078
38079         * tests/uniwidth/test-u8-strwidth.c: New file.
38080         * modules/uniwidth/u8-strwidth-tests: New file.
38081
38082         * lib/uniwidth/u8-strwidth.c: New file.
38083         * modules/uniwidth/u8-strwidth: New file.
38084
38085         * tests/uniwidth/test-u32-width.c: New file.
38086         * modules/uniwidth/u32-width-tests: New file.
38087
38088         * lib/uniwidth/u32-width.c: New file.
38089         * modules/uniwidth/u32-width: New file.
38090
38091         * tests/uniwidth/test-u16-width.c: New file.
38092         * modules/uniwidth/u16-width-tests: New file.
38093
38094         * lib/uniwidth/u16-width.c: New file.
38095         * modules/uniwidth/u16-width: New file.
38096
38097         * tests/uniwidth/test-u8-width.c: New file.
38098         * modules/uniwidth/u8-width-tests: New file.
38099
38100         * lib/uniwidth/u8-width.c: New file.
38101         * modules/uniwidth/u8-width: New file.
38102
38103         * tests/uniwidth/test-uc_width.c: New file.
38104         * modules/uniwidth/width-tests: New file.
38105
38106         * lib/uniwidth/width.c: New file, from GNU libiconv.
38107         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38108         * modules/uniwidth/width: New file.
38109
38110         * lib/uniwidth.h: New file, from GNU libiconv.
38111         * modules/uniwidth/base: New file.
38112
38113 2007-07-07  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/uniname.h: New file, from GNU gettext.
38116         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38117         * lib/uniname/uninames.h: New file, from GNU gettext.
38118         * lib/uniname/uniname.c: New file, from GNU gettext.
38119         * tests/uniname/test-uninames.sh: New file.
38120         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38121         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38122         * modules/uniname/base: New file.
38123         * modules/uniname/uniname: New file.
38124         * modules/uniname/uniname-tests: New file.
38125         * MODULES.html.sh (Unicode string functions): Add the new modules.
38126
38127 2007-07-06  Bruno Haible  <bruno@clisp.org>
38128
38129         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38130
38131 2007-07-06  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38134         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38135         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38136         include <sys/time.h>.
38137         Reported by Eric Blake.
38138
38139 2007-07-06  Eric Blake  <ebb9@byu.net>
38140
38141         Fix testing canonicalize on cygwin.
38142         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38143         Revert patch from 2007-06-19.
38144         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38145         canonicalize module is also in use.
38146         * tests/test-canonicalize.c: New file.
38147         * tests/test-canonicalize.sh: Likewise.
38148         * modules/canonicalize-tests: Likewise.
38149
38150 2007-07-06  Jim Meyering  <jim@meyering.net>
38151
38152         * lib/getugroups.c (getugroups): Detect getgrent failure.
38153         Adjust comment to reflect reality: this function may return -1.
38154
38155 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38156
38157         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38158         the new TP address.
38159         (usage): Fix typo
38160         (gnulib_mk): New variable.
38161
38162 2007-07-05  Jim Meyering  <jim@meyering.net>
38163
38164         Don't let endgrent clobber errno, no matter how improbable.
38165         * lib/getugroups.c (getugroups): Save and restore errno around
38166         endgrent call.
38167
38168         Close the group DB even when failing with 2^31 or more members.
38169         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38170
38171 2007-07-04  Jim Meyering  <jim@meyering.net>
38172
38173         * lib/getugroups.h: New file.
38174         * lib/getugroups.c: Include "getugroups.h".
38175         Remove uses of "register" keyword.
38176         Move local variable, "cp", down into scope where used.
38177         Give "username" parameter the "const" attribute.
38178         * modules/getugroups (Files): Add lib/getugroups.h
38179
38180 2007-07-04  Karl Berry  <karl@gnu.org>
38181
38182         * MODULES.html.sh (func_all_modules): Complete rename of
38183         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38184
38185 2007-07-02  Bruno Haible  <bruno@clisp.org>
38186
38187         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38188         mode, when inttypes.h comes from gnulib.
38189         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38190
38191 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38192
38193         * NEWS: Mention lgpl module name change.
38194
38195         * modules/lgpl-2.1: Renamed from lgpl.
38196
38197         * NEWS: Mention gpl module name change.
38198
38199         * modules/gpl-3.0: New file, based on gpl-2.0.
38200
38201         * modules/gpl-2.0: Renamed from gpl.
38202
38203         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38204         doc/gpl-2.0.texi.
38205
38206 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38207
38208         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38209         #define __STDC_LIMIT_MACROS temporarily while including
38210         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38211         Problem reported by Joel E. Denny in
38212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38213
38214 2007-07-01  Bruno Haible  <bruno@clisp.org>
38215
38216         * lib/unistdio.h: New file.
38217         * lib/unistdio/u-asnprintf.h: New file.
38218         * lib/unistdio/u-asprintf.h: New file.
38219         * lib/unistdio/u-printf-args.c: New file.
38220         * lib/unistdio/u-printf-args.h: New file.
38221         * lib/unistdio/u-printf-parse.h: New file.
38222         * lib/unistdio/u-snprintf.h: New file.
38223         * lib/unistdio/u-sprintf.h: New file.
38224         * lib/unistdio/u-vasprintf.h: New file.
38225         * lib/unistdio/u-vsnprintf.h: New file.
38226         * lib/unistdio/u-vsprintf.h: New file.
38227         * lib/unistdio/ulc-asnprintf.c: New file.
38228         * lib/unistdio/ulc-asprintf.c: New file.
38229         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38230         * lib/unistdio/ulc-printf-parse.c: New file.
38231         * lib/unistdio/ulc-snprintf.c: New file.
38232         * lib/unistdio/ulc-sprintf.c: New file.
38233         * lib/unistdio/ulc-vasnprintf.c: New file.
38234         * lib/unistdio/ulc-vasprintf.c: New file.
38235         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38236         * lib/unistdio/ulc-vsnprintf.c: New file.
38237         * lib/unistdio/ulc-vsprintf.c: New file.
38238         * lib/unistdio/u8-asnprintf.c: New file.
38239         * lib/unistdio/u8-asprintf.c: New file.
38240         * lib/unistdio/u8-printf-parse.c: New file.
38241         * lib/unistdio/u8-snprintf.c: New file.
38242         * lib/unistdio/u8-sprintf.c: New file.
38243         * lib/unistdio/u8-vasnprintf.c: New file.
38244         * lib/unistdio/u8-vasprintf.c: New file.
38245         * lib/unistdio/u8-vsnprintf.c: New file.
38246         * lib/unistdio/u8-vsprintf.c: New file.
38247         * lib/unistdio/u8-u8-asnprintf.c: New file.
38248         * lib/unistdio/u8-u8-asprintf.c: New file.
38249         * lib/unistdio/u8-u8-snprintf.c: New file.
38250         * lib/unistdio/u8-u8-sprintf.c: New file.
38251         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38252         * lib/unistdio/u8-u8-vasprintf.c: New file.
38253         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38254         * lib/unistdio/u8-u8-vsprintf.c: New file.
38255         * lib/unistdio/u16-asnprintf.c: New file.
38256         * lib/unistdio/u16-asprintf.c: New file.
38257         * lib/unistdio/u16-printf-parse.c: New file.
38258         * lib/unistdio/u16-snprintf.c: New file.
38259         * lib/unistdio/u16-sprintf.c: New file.
38260         * lib/unistdio/u16-vasnprintf.c: New file.
38261         * lib/unistdio/u16-vasprintf.c: New file.
38262         * lib/unistdio/u16-vsnprintf.c: New file.
38263         * lib/unistdio/u16-vsprintf.c: New file.
38264         * lib/unistdio/u16-u16-asnprintf.c: New file.
38265         * lib/unistdio/u16-u16-asprintf.c: New file.
38266         * lib/unistdio/u16-u16-snprintf.c: New file.
38267         * lib/unistdio/u16-u16-sprintf.c: New file.
38268         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38269         * lib/unistdio/u16-u16-vasprintf.c: New file.
38270         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38271         * lib/unistdio/u16-u16-vsprintf.c: New file.
38272         * lib/unistdio/u32-asnprintf.c: New file.
38273         * lib/unistdio/u32-asprintf.c: New file.
38274         * lib/unistdio/u32-printf-parse.c: New file.
38275         * lib/unistdio/u32-snprintf.c: New file.
38276         * lib/unistdio/u32-sprintf.c: New file.
38277         * lib/unistdio/u32-vasnprintf.c: New file.
38278         * lib/unistdio/u32-vasprintf.c: New file.
38279         * lib/unistdio/u32-vsnprintf.c: New file.
38280         * lib/unistdio/u32-vsprintf.c: New file.
38281         * lib/unistdio/u32-u32-asnprintf.c: New file.
38282         * lib/unistdio/u32-u32-asprintf.c: New file.
38283         * lib/unistdio/u32-u32-snprintf.c: New file.
38284         * lib/unistdio/u32-u32-sprintf.c: New file.
38285         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38286         * lib/unistdio/u32-u32-vasprintf.c: New file.
38287         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38288         * lib/unistdio/u32-u32-vsprintf.c: New file.
38289         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38290         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38291         * tests/unistdio/test-ulc-printf1.h: New file.
38292         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38293         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38294         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38295         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38296         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38297         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38298         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38299         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38300         * tests/unistdio/test-u8-asnprintf1.c: New file.
38301         * tests/unistdio/test-u8-asnprintf1.h: New file.
38302         * tests/unistdio/test-u8-printf1.h: New file.
38303         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38304         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38305         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38306         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38307         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38308         * tests/unistdio/test-u8-vasprintf1.c: New file.
38309         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38310         * tests/unistdio/test-u8-vsprintf1.c: New file.
38311         * tests/unistdio/test-u16-asnprintf1.c: New file.
38312         * tests/unistdio/test-u16-asnprintf1.h: New file.
38313         * tests/unistdio/test-u16-printf1.h: New file.
38314         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38315         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38316         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38317         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38318         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38319         * tests/unistdio/test-u16-vasprintf1.c: New file.
38320         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38321         * tests/unistdio/test-u16-vsprintf1.c: New file.
38322         * tests/unistdio/test-u32-asnprintf1.c: New file.
38323         * tests/unistdio/test-u32-asnprintf1.h: New file.
38324         * tests/unistdio/test-u32-printf1.h: New file.
38325         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38326         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38327         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38328         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38329         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38330         * tests/unistdio/test-u32-vasprintf1.c: New file.
38331         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38332         * tests/unistdio/test-u32-vsprintf1.c: New file.
38333         * modules/unistdio/base: New file.
38334         * modules/unistdio/u-printf-args: New file.
38335         * modules/unistdio/ulc-asnprintf: New file.
38336         * modules/unistdio/ulc-asprintf: New file.
38337         * modules/unistdio/ulc-fprintf: New file.
38338         * modules/unistdio/ulc-printf-parse: New file.
38339         * modules/unistdio/ulc-snprintf: New file.
38340         * modules/unistdio/ulc-sprintf: New file.
38341         * modules/unistdio/ulc-vasnprintf: New file.
38342         * modules/unistdio/ulc-vasprintf: New file.
38343         * modules/unistdio/ulc-vfprintf: New file.
38344         * modules/unistdio/ulc-vsnprintf: New file.
38345         * modules/unistdio/ulc-vsprintf: New file.
38346         * modules/unistdio/u8-asnprintf: New file.
38347         * modules/unistdio/u8-asprintf: New file.
38348         * modules/unistdio/u8-printf-parse: New file.
38349         * modules/unistdio/u8-snprintf: New file.
38350         * modules/unistdio/u8-sprintf: New file.
38351         * modules/unistdio/u8-vasnprintf: New file.
38352         * modules/unistdio/u8-vasprintf: New file.
38353         * modules/unistdio/u8-vsnprintf: New file.
38354         * modules/unistdio/u8-vsprintf: New file.
38355         * modules/unistdio/u8-u8-asnprintf: New file.
38356         * modules/unistdio/u8-u8-asprintf: New file.
38357         * modules/unistdio/u8-u8-snprintf: New file.
38358         * modules/unistdio/u8-u8-sprintf: New file.
38359         * modules/unistdio/u8-u8-vasnprintf: New file.
38360         * modules/unistdio/u8-u8-vasprintf: New file.
38361         * modules/unistdio/u8-u8-vsnprintf: New file.
38362         * modules/unistdio/u8-u8-vsprintf: New file.
38363         * modules/unistdio/u16-asnprintf: New file.
38364         * modules/unistdio/u16-asprintf: New file.
38365         * modules/unistdio/u16-printf-parse: New file.
38366         * modules/unistdio/u16-snprintf: New file.
38367         * modules/unistdio/u16-sprintf: New file.
38368         * modules/unistdio/u16-vasnprintf: New file.
38369         * modules/unistdio/u16-vasprintf: New file.
38370         * modules/unistdio/u16-vsnprintf: New file.
38371         * modules/unistdio/u16-vsprintf: New file.
38372         * modules/unistdio/u16-u16-asnprintf: New file.
38373         * modules/unistdio/u16-u16-asprintf: New file.
38374         * modules/unistdio/u16-u16-snprintf: New file.
38375         * modules/unistdio/u16-u16-sprintf: New file.
38376         * modules/unistdio/u16-u16-vasnprintf: New file.
38377         * modules/unistdio/u16-u16-vasprintf: New file.
38378         * modules/unistdio/u16-u16-vsnprintf: New file.
38379         * modules/unistdio/u16-u16-vsprintf: New file.
38380         * modules/unistdio/u32-asnprintf: New file.
38381         * modules/unistdio/u32-asprintf: New file.
38382         * modules/unistdio/u32-printf-parse: New file.
38383         * modules/unistdio/u32-snprintf: New file.
38384         * modules/unistdio/u32-sprintf: New file.
38385         * modules/unistdio/u32-vasnprintf: New file.
38386         * modules/unistdio/u32-vasprintf: New file.
38387         * modules/unistdio/u32-vsnprintf: New file.
38388         * modules/unistdio/u32-vsprintf: New file.
38389         * modules/unistdio/u32-u32-asnprintf: New file.
38390         * modules/unistdio/u32-u32-asprintf: New file.
38391         * modules/unistdio/u32-u32-snprintf: New file.
38392         * modules/unistdio/u32-u32-sprintf: New file.
38393         * modules/unistdio/u32-u32-vasnprintf: New file.
38394         * modules/unistdio/u32-u32-vasprintf: New file.
38395         * modules/unistdio/u32-u32-vsnprintf: New file.
38396         * modules/unistdio/u32-u32-vsprintf: New file.
38397         * modules/unistdio/ulc-asnprintf-tests: New file.
38398         * modules/unistdio/ulc-vasnprintf-tests: New file.
38399         * modules/unistdio/ulc-vasprintf-tests: New file.
38400         * modules/unistdio/ulc-vsnprintf-tests: New file.
38401         * modules/unistdio/ulc-vsprintf-tests: New file.
38402         * modules/unistdio/u8-asnprintf-tests: New file.
38403         * modules/unistdio/u8-vasnprintf-tests: New file.
38404         * modules/unistdio/u8-vasprintf-tests: New file.
38405         * modules/unistdio/u8-vsnprintf-tests: New file.
38406         * modules/unistdio/u8-vsprintf-tests: New file.
38407         * modules/unistdio/u16-asnprintf-tests: New file.
38408         * modules/unistdio/u16-vasnprintf-tests: New file.
38409         * modules/unistdio/u16-vasprintf-tests: New file.
38410         * modules/unistdio/u16-vsnprintf-tests: New file.
38411         * modules/unistdio/u16-vsprintf-tests: New file.
38412         * modules/unistdio/u32-asnprintf-tests: New file.
38413         * modules/unistdio/u32-vasnprintf-tests: New file.
38414         * modules/unistdio/u32-vasprintf-tests: New file.
38415         * modules/unistdio/u32-vsnprintf-tests: New file.
38416         * modules/unistdio/u32-vsprintf-tests: New file.
38417         * MODULES.html.sh (Unicode string functions): Add the new modules.
38418
38419 2007-07-01  Bruno Haible  <bruno@clisp.org>
38420
38421         * lib/sprintf.c (sprintf): Limit the available length estimation,
38422         to avoid address wraparound.
38423         * lib/vsprintf.c (vsprintf): Likewise.
38424         * modules/sprintf-posix (Dependencies): Add stdint.
38425         * modules/vsprintf-posix (Dependencies): Likewise.
38426
38427 2007-07-01  Bruno Haible  <bruno@clisp.org>
38428
38429         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38430         Windows PATH as well. Conservative double-quoting. Comments.
38431
38432 2007-07-01  Bruno Haible  <bruno@clisp.org>
38433             Eric Blake  <ebb9@byu.net>
38434             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38435
38436         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38437         empty components in $PATH, denoting '.'.
38438
38439 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38440
38441         * gnulib-tool: Fix indentation.
38442         (func_create_megatestdir): Likewise.
38443         Report by Bruno Haible.
38444
38445 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38446
38447         Sync from Automake.
38448         * build-aux/gnupload: Fix shell portability issues with for loops.
38449         Report by Karl Berry.
38450
38451 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38452
38453         * build-aux/maint.mk (POURL): Use translationproject.org.
38454
38455 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38456             Bruno Haible  <bruno@clisp.org>
38457
38458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38459         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38460         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38461         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38462         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38463
38464 2007-06-27  Bruno Haible  <bruno@clisp.org>
38465
38466         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38467         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38468
38469 2007-06-26  Karl Berry  <karl@gnu.org>
38470
38471         * MODULES.html.sh: remove xreadlink-with-size.
38472
38473 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38474
38475         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38476         method that I hope also handles the double-include problem noted
38477         by Bruno Haible in
38478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38479
38480 2007-06-23  Bruno Haible  <bruno@clisp.org>
38481
38482         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38483         Don't let the 'mostlyclean' target fail if the last subdirectory could
38484         not be removed.
38485         Reported by Karl Berry.
38486
38487 2007-06-23  Bruno Haible  <bruno@clisp.org>
38488
38489         * gnulib-tool (echo): Add a speedier workaround for ksh.
38490         * tests/test-echo.sh: Likewise.
38491
38492 2007-06-23  Bruno Haible  <bruno@clisp.org>
38493
38494         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38495         * tests/test-echo.sh: Likewise.
38496
38497 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38498
38499         * gnulib-tool (IFS): Initialize early, so we don't set it to
38500         empty later.
38501         (self_abspathname): Rewrite algorithm to set it, reindent.
38502         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38503         (func_create_megatestdir): Merge some sed scripts.
38504
38505 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38506
38507         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38508         exposed by Sun Studio 11 cc on Solaris 8.
38509
38510 2007-06-22  Bruno Haible  <bruno@clisp.org>
38511
38512         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38513         backslashes.
38514         * tests/test-echo.sh: New file.
38515
38516 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38517
38518         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38519         simplify `sed_replace_build_aux' scripts, they are portable but
38520         echoing them with `echo' is not.
38521         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38522
38523 2007-06-21  Karl Berry  <karl@gnu.org>
38524
38525         * config/srclist.txt: guess we can't handle the licenses via
38526         srclist at the moment.
38527
38528 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38529
38530         * MODULES.html.sh: Add include_next.
38531         * modules/include_next: New file.
38532
38533 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38534
38535         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38536         INCLUDE_NEXT.
38537         (gl_CHECK_NEXT_HEADERS): New macro.
38538         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38539         the obsolescent gl_ABSOLUTE_HEADER.
38540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38541         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38542         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38544         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38545         * m4/math_h.m4 (gl_MATH_H): Likewise.
38546         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38547         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38548         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38549         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38550         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38551         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38552         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38557         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38558         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38559         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38560         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38561         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38562         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38563         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38564         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38565         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38566         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38567         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38568         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38569         * lib/float_.h: Likewise.
38570         * lib/inttypes_.h: Likewise.
38571         * lib/math_.h: Likewise.
38572         * lib/search_.h: Likewise.
38573         * lib/signal_.h: Likewise.
38574         * lib/stdint_.h: Likewise.
38575         * lib/stdio_.h: Likewise.
38576         * lib/stdlib_.h: Likewise.
38577         * lib/string_.h: Likewise.
38578         * lib/sys_stat_.h: Likewise.
38579         * lib/sys_time_.h: Likewise.
38580         * lib/time_.h: Likewise.
38581         * lib/unistd_.h: Likewise.
38582         * lib/wchar_.h: Likewise.
38583         * lib/wctype_.h: Likewise.
38584         * lib/dirent_.h: Likewise.
38585         * lib/iconv_.h: Likewise.
38586         * lib/locale_.h: Likewise.
38587         * lib/netinet_in_.h: Likewise.
38588         * lib/sys_select_.h: Likewise.
38589         * lib/sys_socket_.h: Likewise.
38590         * lib/sysexits_.h: Likewise.
38591         * modules/fcntl (Depends-on): Depend on include_next, not
38592         absolute_header.
38593         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38594         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38595         * modules/fchdir: Likewise.
38596         * modules/float: Likewise.
38597         * modules/iconv_open: Likewise.
38598         * modules/inttypes: Likewise.
38599         * modules/locale: Likewise.
38600         * modules/math: Likewise.
38601         * modules/netinet_in: Likewise.
38602         * modules/search: Likewise.
38603         * modules/signal: Likewise.
38604         * modules/stdint: Likewise.
38605         * modules/stdio: Likewise.
38606         * modules/stdlib: Likewise.
38607         * modules/string: Likewise.
38608         * modules/sys_select: Likewise.
38609         * modules/sys_socket: Likewise.
38610         * modules/sys_stat: Likewise.
38611         * modules/sys_time: Likewise.
38612         * modules/sysexits: Likewise.
38613         * modules/time: Likewise.
38614         * modules/unistd: Likewise.
38615         * modules/wchar: Likewise.
38616         * modules/wctype: Likewise.
38617         * modules/sys_stat: Change maintainer to "all".
38618         * modules/unistd: Likewise.
38619
38620 2007-06-20  Karl Berry  <karl@gnu.org>
38621
38622         * config/srclist.txt: track www changes in license files.
38623
38624 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38625
38626         * build-aux/bootstrap: Remove stray dot.
38627         Make sure build_aux settings are honored when linking
38628         gnulib_extra_files.
38629
38630 2007-06-19  Eric Blake  <ebb9@byu.net>
38631
38632         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38633         Allow compilation on cygwin.
38634
38635 2007-06-19  Jim Meyering  <jim@meyering.net>
38636
38637         xreadlink-with-size: Remove module.  No longer used.
38638         Ex-callers now use xreadlink or mreadlink-with-size.
38639         * modules/xreadlink-with-size: Remove module.
38640         * lib/xreadlink-with-size.c: Remove file.
38641         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38642         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38643         just before the function definition *is* accurate.
38644
38645         Eliminate one way canonicalize_filename_mode could exit.
38646         * lib/canonicalize.c (canonicalize_filename_mode):
38647         Use mreadlink_with_size, not xreadlink_with_size.
38648
38649 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38650
38651         Detect porting problems to FreeBSD/arm, which has time_t wider than
38652         long int.  Original problem reported for GNU diff by Xin Li in
38653         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38654         * modules/getdate (Depends-on): Add intprops, verify.
38655         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38656         is an integer type no wider than long int.
38657
38658 2007-06-18  Jim Meyering  <jim@meyering.net>
38659
38660         New module: mreadlink-with-size.
38661         * MODULES.html.sh: Add mreadlink-with-size.
38662         * modules/mreadlink-with-size: New module
38663         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38664         not xreadlink-with-size.
38665         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38666
38667 2007-06-16  Bruno Haible  <bruno@clisp.org>
38668
38669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38670         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38671         Reported by Gary V. Vaughan <gary@gnu.org>.
38672
38673 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38674
38675         Revamp lchown so that it lives in unistd.h where it belongs.
38676         * lib/lchown.h: Remove.
38677         * lib/dirchownmod.c: Don't include lib/lchown.h.
38678         * lib/fchownat.c: Likewise.
38679         * lib/openat.c: Likewise.
38680         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38681         does not follow symlinks.
38682         (EOPNOTSUPP): Define if not defined.
38683         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38684         is defined to 0.
38685         (lchown): New decl.
38686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38687         Do not check for lchown decl.
38688         Set REPLACE_LCHOWN.
38689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38690         REPLACE_LCHOWN.
38691         * modules/chown: Make it clear it follows symlinks.
38692         * modules/lchown: Make it clear it doesn't follow symlinks.
38693         (Files): Remove lib/lchown.h
38694         (Depends-on): Add unistd.
38695         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38696         (Include): Include <unistd.h>, not "lchown.h".
38697         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38698         REPLACE_LCHOWN.
38699
38700 2007-06-15  Jim Meyering  <jim@meyering.net>
38701
38702         Change license (GPL to LGPL) of fsusage and dependents.
38703         * modules/fsusage (License): Change to LGPL.
38704         * modules/full-read (License): Likewise.
38705         * modules/full-write (License): Likewise.
38706         * modules/safe-read (License): Likewise.
38707         * modules/safe-write (License): Likewise.
38708
38709 2007-06-14  Ben Pfaff  <blp@gnu.org>
38710
38711         Missing part of allocsa -> malloca transition.
38712         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38713         gl_MALLOCA.
38714
38715 2007-06-12  Bruno Haible  <bruno@clisp.org>
38716
38717         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38718         to ia64, x86_64, i386.
38719         Reported by Eric Blake.
38720
38721 2007-06-12  Bruno Haible  <bruno@clisp.org>
38722
38723         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38724         cross-compiling to x86_64.
38725
38726 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38727
38728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38729         glitch reported by Ralf Wildenhues in
38730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38731
38732         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38733         Vin Shelton.
38734
38735 2007-06-11  Bruno Haible  <bruno@clisp.org>
38736
38737         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38738         replacement string.
38739         Reported by Eric Blake.
38740
38741 2007-06-10  Bruno Haible  <bruno@clisp.org>
38742
38743         Prepare vasnprintf code for use with Unicode strings.
38744         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38745         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38746         TYPE_U32_STRING.
38747         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38748         a_u32_string variants.
38749         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38750         * lib/printf-args.c: Don't include config.h and the specification
38751         header if PRINTF_FETCHARGS is already defined.
38752         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38753         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38754         TYPE_U16_STRING, TYPE_U32_STRING.
38755         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38756         u16_directive, u16_directives, u32_directive, u32_directives): New
38757         types.
38758         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38759         New declarations.
38760         * lib/printf-parse.c: Don't include config.h and the specification
38761         header if PRINTF_PARSE is already defined. Eliminate the set of
38762         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38763         them now. Include c-ctype.h.
38764         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38765         directive and CHAR_T_ONLY_ASCII.
38766         * lib/vasnprintf.c: Don't include config.h and the specification header
38767         if VASNPRINTF is already defined.
38768         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38769         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38770         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38771         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38772         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38773         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38774         code accordingly.
38775         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38776         pad_ourselves also in this case, with the 'c' and 's' directives, and
38777         with a different notion of "width".
38778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38779
38780 2007-06-10  Bruno Haible  <bruno@clisp.org>
38781
38782         * modules/unistr/u32-mbsnlen: New file.
38783         * lib/unistr/u32-mbsnlen.c: New file.
38784
38785         * modules/unistr/u16-mbsnlen: New file.
38786         * lib/unistr/u16-mbsnlen.c: New file.
38787
38788         * modules/unistr/u8-mbsnlen: New file.
38789         * lib/unistr/u8-mbsnlen.c: New file.
38790
38791         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38792         declarations.
38793
38794 2007-06-10  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/string_.h (mbsnlen): New declaration.
38797         * lib/mbsnlen.c: New file.
38798         * m4/mbsnlen.m4: New file.
38799         * modules/mbsnlen: New file.
38800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38801         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38802         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38803
38804 2007-06-10  Bruno Haible  <bruno@clisp.org>
38805
38806         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38807
38808 2007-06-10  Bruno Haible  <bruno@clisp.org>
38809
38810         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38811         * lib/mbuiter.h: Likewise.
38812
38813 2007-06-10  Bruno Haible  <bruno@clisp.org>
38814
38815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38816         declaration.
38817
38818 2007-06-10  Karl Berry  <karl@gnu.org>
38819
38820         * config/srclist.txt: remove gettext entries, Bruno prefers
38821         to update individually.
38822
38823 2007-06-10  Bruno Haible  <bruno@clisp.org>
38824
38825         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38826         'maxlen'. Ensure only length + width bytes are allocated, not
38827         length + 1 + width.
38828
38829 2007-06-09  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38832         (CHAR_T): Remove macro.
38833         (VASNPRINTF): Update.
38834
38835 2007-06-09  Bruno Haible  <bruno@clisp.org>
38836
38837         * MODULES.html.sh (Unicode string functions): Add the new modules.
38838
38839         * modules/uniconv/u32-conv-to-enc: New file.
38840         * lib/uniconv/u32-conv-to-enc.c: New file.
38841         * modules/uniconv/u32-conv-to-enc-tests: New file.
38842         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38843
38844         * modules/uniconv/u16-conv-to-enc: New file.
38845         * lib/uniconv/u16-conv-to-enc.c: New file.
38846         * lib/uniconv/u-conv-to-enc.h: New file.
38847         * modules/uniconv/u16-conv-to-enc-tests: New file.
38848         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38849
38850         * modules/uniconv/u8-conv-to-enc: New file.
38851         * lib/uniconv/u8-conv-to-enc.c: New file.
38852         * modules/uniconv/u8-conv-to-enc-tests: New file.
38853         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38854
38855         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38856         u32_conv_to_encoding): New declarations.
38857
38858 2007-06-09  Bruno Haible  <bruno@clisp.org>
38859
38860         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38861
38862 2007-06-09  Bruno Haible  <bruno@clisp.org>
38863
38864         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38865         * modules/malloca: Renamed from modules/allocsa, updated.
38866         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38867         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38868         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38869         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38870         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38871         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38872         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38873         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38874         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38875         * modules/c-strcasestr (Depends-on): Update.
38876         * lib/c-strcasestr.c: Update.
38877         * modules/c-strstr (Depends-on): Update.
38878         * lib/c-strstr.c: Update.
38879         * modules/canonicalize-lgpl (Depends-on): Update.
38880         * lib/canonicalize-lgpl.c: Update.
38881         * modules/clean-temp (Depends-on): Update.
38882         * lib/clean-temp.c: Update.
38883         * modules/csharpcomp (Depends-on): Update.
38884         * lib/csharpcomp.c: Update.
38885         * modules/csharpexec (Depends-on): Update.
38886         * lib/csharpexec.c: Update.
38887         * modules/javacomp (Depends-on): Update.
38888         * lib/javacomp.c: Update.
38889         * modules/javaexec (Depends-on): Update.
38890         * lib/javaexec.c: Update.
38891         * modules/mbscasestr (Depends-on): Update.
38892         * lib/mbscasestr.c: Update.
38893         * modules/mbsstr (Depends-on): Update.
38894         * lib/mbsstr.c: Update.
38895         * modules/setenv (Depends-on): Update.
38896         * lib/setenv.c: Update.
38897         * modules/strcasestr (Depends-on): Update.
38898         * lib/strcasestr.c: Update.
38899         * modules/striconveha (Depends-on): Update.
38900         * lib/striconveha.c: Update.
38901         * modules/relocatable-prog-wrapper (Files): Update.
38902         * lib/relocwrapper.c: Update.
38903         * build-aux/install-reloc: Update.
38904         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38905
38906 2007-06-08  Bruno Haible  <bruno@clisp.org>
38907
38908         Port to uClibc.
38909         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38910         * lib/fpurge.c (fpurge): Likewise.
38911         * lib/freading.c (freading): Likewise.
38912         * lib/fseeko.c (rpl_fseeko): Likewise.
38913         * lib/fseterr.c (fseterr): Likewise.
38914         * lib/fwriting.c (fwriting): Likewise.
38915         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38916
38917 2007-06-08  Bruno Haible  <bruno@clisp.org>
38918
38919         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38920         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38921         * modules/gettext (Files): Add m4/intlmacosx.m4.
38922
38923 2007-06-07  Bruno Haible  <bruno@clisp.org>
38924
38925         * modules/localename-tests: New file.
38926         * tests/test-localename.c: New file.
38927
38928         New module 'localename'.
38929         * lib/localename.h: New file.
38930         * lib/localename.c: New file, from GNU gettext.
38931         * m4/localename.m4: New file.
38932         * modules/localename: New file.
38933
38934 2007-06-07  Bruno Haible  <bruno@clisp.org>
38935
38936         Work around the lack of <wchar.h> on some builds of uClibc.
38937         * doc/headers/wchar.texi: Update.
38938         * lib/wchar_.h: Include <wchar.h> only if it exists.
38939         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38940         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38941         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38942         doesn't exist.
38943         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38944         * modules/mbfile (Depends-on): Add wchar.
38945         * modules/mbiter (Depends-on): Likewise.
38946         * modules/mbuiter (Depends-on): Likewise.
38947         Reported by Simon Josefsson.
38948
38949 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38950
38951         Work around problem reported by Steven M. Schweda in
38952         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38953         Tru64 5.1B with the Compaq compiler environment installed declares
38954         an 'isblank' function but does not define it in the C library.
38955         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38956         * lib/regex_internal.h (isblank): Likewise.
38957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38958         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38959
38960 2007-06-05  Bruno Haible  <bruno@clisp.org>
38961
38962         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38963         ia64.
38964         * modules/printf-safe: New file.
38965         * modules/fprintf-posix (Depends-on): Add printf-safe.
38966         * modules/printf-posix (Depends-on): Likewise.
38967         * modules/snprintf-posix (Depends-on): Likewise.
38968         * modules/sprintf-posix (Depends-on): Likewise.
38969         * modules/vasnprintf-posix (Depends-on): Likewise.
38970         * modules/vasprintf-posix (Depends-on): Likewise.
38971         * modules/vfprintf-posix (Depends-on): Likewise.
38972         * modules/vprintf-posix (Depends-on): Likewise.
38973         * modules/vsnprintf-posix (Depends-on): Likewise.
38974         * modules/vsprintf-posix (Depends-on): Likewise.
38975         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38976         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38977         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38978         "no" on i386, x86_64, ia64.
38979         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38980         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38981         on i386, x86_64, ia64.
38982         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38983         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38984         on i386, x86_64, ia64.
38985         * tests/test-vasnprintf-posix.c: Include float.h.
38986         (LDBL80_WORDS): New macro.
38987         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38988         on i386, x86_64, ia64.
38989         * tests/test-vasprintf-posix.c: Include float.h.
38990         (LDBL80_WORDS): New macro.
38991         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38992         on i386, x86_64, ia64.
38993         * tests/test-snprintf-posix.c: Include float.h.
38994         * tests/test-sprintf-posix.c: Likewise.
38995         * tests/test-vsnprintf-posix.c: Likewise.
38996         * tests/test-vsprintf-posix.c: Likewise.
38997
38998 2007-06-05  Bruno Haible  <bruno@clisp.org>
38999
39000         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39001         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39002         non-IEEE numbers on i386, x86_64, ia64.
39003         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39004         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39005         * tests/test-isnanl.h: Include float.h.
39006         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39007
39008 2007-06-05  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39011         also the %a / %A. Handle the %a / %A code before this extra handling.
39012
39013 2007-06-05  Bruno Haible  <bruno@clisp.org>
39014
39015         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39016         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39017
39018 2007-06-05  Bruno Haible  <bruno@clisp.org>
39019
39020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39021         typo in variable name.
39022
39023 2007-06-05  Eric Blake  <ebb9@byu.net>
39024
39025         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39026         Reported by Simon Josefsson.
39027
39028 2007-06-04  Bruno Haible  <bruno@clisp.org>
39029
39030         Avoid test failures on some PowerPC platforms.
39031         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39032         Define differently for PowerPC.
39033         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39034         Reported by Gary V. Vaughan <gary@gnu.org>.
39035
39036 2007-06-02  Bruno Haible  <bruno@clisp.org>
39037
39038         Fix test-stdint failure on FreeBSD/ia64.
39039         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39040         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39041         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39042         * doc/headers/stdint.texi: Update.
39043
39044 2007-06-01  Bruno Haible  <bruno@clisp.org>
39045
39046         * tests/test-binary-io.c (main): Pass a third argument to open().
39047         Reported by Gary V. Vaughan <gary@gnu.org>.
39048
39049 2007-06-01  Bruno Haible  <bruno@clisp.org>
39050
39051         * doc/functions/frexpl.texi: Update for mingw.
39052
39053 2007-06-01  Bruno Haible  <bruno@clisp.org>
39054
39055         * tests/test-lseek.c (main): Disable test of errno for invalid third
39056         argument.
39057         * doc/functions/lseek.texi: Update.
39058         Reported by Gary V. Vaughan <gary@gnu.org>.
39059
39060 2007-05-28  Bruno Haible  <bruno@clisp.org>
39061
39062         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39063
39064 2007-05-31  Eric Blake  <ebb9@byu.net>
39065
39066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39067         cross compiling.
39068
39069 2007-05-30  Eric Blake  <ebb9@byu.net>
39070         and Bruno Haible  <bruno@clisp.org>
39071
39072         Work around mingw test failures exposed by m4-1.4.9b.
39073         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39074         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39075         moment.
39076
39077 2007-05-30  Bruno Haible  <bruno@clisp.org>
39078
39079         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39080         assuming that they are closed. Needed on HP-UX 11.
39081
39082 2007-05-29  Bruno Haible  <bruno@clisp.org>
39083
39084         Fix a problem with #include_next.
39085         * lib/dirent_.h: Split the double-inclusion guard.
39086         * lib/fcntl_.h: Likewise.
39087         * lib/float_.h: Likewise.
39088         * lib/iconv_.h: Likewise.
39089         * lib/inttypes_.h: Likewise.
39090         * lib/locale_.h: Likewise.
39091         * lib/math_.h: Likewise.
39092         * lib/netinet_in_.h: Likewise.
39093         * lib/search_.h: Likewise.
39094         * lib/signal_.h: Likewise.
39095         * lib/stdint_.h: Likewise.
39096         * lib/stdio_.h: Likewise.
39097         * lib/stdlib_.h: Likewise.
39098         * lib/string_.h: Likewise.
39099         * lib/sys_select_.h: Likewise.
39100         * lib/sys_socket_.h: Likewise.
39101         * lib/sys_stat_.h: Likewise.
39102         * lib/sys_time_.h: Likewise.
39103         * lib/sysexits_.h: Likewise.
39104         * lib/time_.h: Likewise.
39105         * lib/unistd_.h: Likewise.
39106         * lib/wchar_.h: Likewise.
39107         * lib/wctype_.h: Likewise.
39108
39109 2007-05-29  Bruno Haible  <bruno@clisp.org>
39110
39111         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39112         for the moment.
39113
39114 2007-05-29  Bruno Haible  <bruno@clisp.org>
39115
39116         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39117         invocation.
39118         Reported by Eric Blake.
39119
39120 2007-05-29  Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39123         compiling case.
39124
39125 2007-05-29  Eric Blake  <ebb9@byu.net>
39126             Bruno Haible  <bruno@clisp.org>
39127
39128         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39129         cross compiles.
39130
39131 2007-05-28  Eric Blake  <ebb9@byu.net>
39132
39133         * modules/closein-tests (test_closein_LDADD): Support test on
39134         cygwin with libtool.
39135
39136 2007-05-28  Bruno Haible  <bruno@clisp.org>
39137
39138         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39139         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39140         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39141         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39142         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39143         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39144         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39145         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39146         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39147
39148 2007-05-28  Eric Blake  <ebb9@byu.net>
39149
39150         Unconditionally include <config.h> in unit tests.
39151         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39152         * tests/test-allocsa.c, tests/test-arcfour.c,
39153         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39154         tests/test-array_list.c, tests/test-array_oset.c,
39155         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39156         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39157         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39158         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39159         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39160         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39161         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39162         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39163         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39164         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39165         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39166         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39167         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39168         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39169         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39170         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39171         test-md5.c, test-memmem.c, test-printf-posix.c,
39172         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39173         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39174         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39175         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39176         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39177         test-vasnprintf-posix2.c, test-vasnprintf.c,
39178         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39179         test-vfprintf-posix.c, test-vprintf-posix.c,
39180         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39181         test-xvasprintf.c: Likewise.
39182
39183 2007-05-28  Bruno Haible  <bruno@clisp.org>
39184
39185         * gnulib-tool (func_import): Remember the --with-tests command-line
39186         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39187         Reported by Eric Blake.
39188
39189 2007-05-28  Bruno Haible  <bruno@clisp.org>
39190
39191         * modules/ftell-tests: New file.
39192         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39193         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39194
39195         * lib/ftell.c: New file.
39196         * modules/ftell: New file.
39197         * m4/ftell.m4: New file.
39198         * doc/functions/ftell.texi: Update.
39199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39200         REPLACE_FTELL.
39201         * lib/stdio_.h (rpl_ftell): New declaration.
39202         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39203         REPLACE_FTELL.
39204
39205 2007-05-28  Eric Blake  <ebb9@byu.net>
39206
39207         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39208
39209 2007-05-28  Bruno Haible  <bruno@clisp.org>
39210
39211         * modules/fseek-tests: New file.
39212         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39213         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39214
39215         * lib/fseek.c: New file.
39216         * modules/fseek: New file.
39217         * m4/fseek.m4: New file.
39218         * doc/functions/fseek.texi: Update.
39219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39220         REPLACE_FSEEK.
39221         * lib/stdio_.h (rpl_fseek): New declaration.
39222         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39223         REPLACE_FSEEK.
39224
39225 2007-05-28  Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/stdio_.h (fflush): More comments.
39228
39229 2007-05-28  Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39232         runtime test.
39233
39234 2007-05-28  Eric Blake  <ebb9@byu.net>
39235
39236         Improve lseek module.
39237         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39238         * lib/unistd_.h (lseek): Scale back link warning message.
39239         * tests/test-lseek.c: Beef up test.
39240         * tests/test-lseek.sh: Exercise more facets of lseek.
39241         Reported by Bruno Haible.
39242
39243 2007-05-28  Bruno Haible  <bruno@clisp.org>
39244
39245         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39246         to define.
39247
39248 2007-05-27  Bruno Haible  <bruno@clisp.org>
39249
39250         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39251
39252 2007-05-27  Bruno Haible  <bruno@clisp.org>
39253
39254         * modules/openmp: New file.
39255         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39256         Noah Misch.
39257
39258 2007-05-26  Bruno Haible  <bruno@clisp.org>
39259
39260         * modules/chdir-long (Depends-on): Add fchdir.
39261         * modules/chdir-safer (Depends-on): Likewise.
39262         * modules/fts (Depends-on): Likewise.
39263         * modules/fts-lgpl (Depends-on): Likewise.
39264         * modules/openat (Depends-on): Likewise.
39265         * modules/savewd (Depends-on): Likewise.
39266
39267 2007-05-24  Eric Blake  <ebb9@byu.net>
39268
39269         Fix lseek on mingw.
39270         * modules/lseek: New module.
39271         * m4/lseek.m4: New file.
39272         * lib/lseek.c: New file.
39273         * modules/lseek-tests: New file.
39274         * tests/test-lseek.c: New file.
39275         * tests/test-lseek.sh: New file.
39276         * MODULES.html.sh: Document lseek module.
39277         * modules/fflush (Depends-on): Add lseek, fseeko.
39278         * modules/fseeko (Depends-on): Likewise.
39279         * modules/ftello (Depends-on): Likewise.
39280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39281         broken.
39282         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39283         broken.
39284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39285         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39286         * lib/ftello.c (rpl_ftello): Likewise.
39287         * tests/test-fseeko.c (main): Test this.
39288         * tests/test-fseeko.sh: Likewise.
39289         * tests/test-ftello.c (main): Likewise.
39290         * tests/test-ftello.sh: Likewise.
39291         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39292         implies replacing fseek.
39293         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39294         HAVE_FTELLO.
39295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39296         * modules/unistd (Makefile.am): Likewise.
39297         * lib/unistd_.h (lseek): Declare a replacement.
39298         * doc/functions/lseek.texi (lseek): Document this fix.
39299         * doc/functions/fseek.texi (fseek): Likewise.
39300         * doc/functions/ftell.texi (ftell): Likewise.
39301
39302 2007-05-24  Bruno Haible  <bruno@clisp.org>
39303
39304         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39305         in the printed representation of a NaN.
39306         * tests/test-vasprintf-posix.c (test_function): Likewise.
39307         * tests/test-snprintf-posix.h (test_function): Likewise.
39308         * tests/test-sprintf-posix.h (test_function): Likewise.
39309         Reported by Eric Blake.
39310
39311 2007-05-23  Eric Blake  <ebb9@byu.net>
39312
39313         Fix fseeko/ftello on cygwin 1.5.24.
39314         * doc/functions/fseeko.texi (fseeko): Document the fix.
39315         * doc/functions/ftello.texi (ftello): Document the fix.
39316         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39317         * doc/functions/stdout.text (stdout): New file.
39318         * doc/functions/stderr.text (stderr): New file.
39319         * doc/gnulib.texi (Function Substitutes): Use new files.
39320         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39321         prior to 1.7.0.
39322         * tests/test-ftello.c (main): Likewise for ftello.
39323         * tests/test-fseeko.sh: New file.
39324         * tests/test-ftello.sh: New file.
39325         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39326         with seekable stdin.
39327         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39329         (gl_REPLACE_FSEEKO): New macro.
39330         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39331         * modules/fseeko (Files): Distribute fseeko.c.
39332         * modules/ftello (Files): Distribute ftello.c.
39333         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39334         mode.
39335         * lib/ftello.c (rpl_ftello): New file.
39336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39337         fseeko, ftello.
39338         (gl_STDIN_LARGE_OFFSET): New macro.
39339         * modules/stdio (Makefile.am): Perform the replacement.
39340         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39341
39342 2007-05-23  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39345         GNULIB_POSIXCHECK is defined.
39346
39347 2007-05-21  Bruno Haible  <bruno@clisp.org>
39348
39349         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39350         Check also the output for NaN arguments. When cross-compiling, guess
39351         no on IRIX.
39352         * lib/vasnprintf.c: Update comments.
39353         * tests/test-vasnprintf-posix.c (strisnan): New function.
39354         (test_function): Use it.
39355         * tests/test-vasprintf-posix.c (strisnan): New function.
39356         (test_function): Use it.
39357         * tests/test-snprintf-posix.h (strisnan): New function.
39358         (test_function): Use it.
39359         * tests/test-sprintf-posix.h (strisnan): New function.
39360         (test_function): Use it.
39361         Reported by Eric Blake.
39362
39363 2007-05-20  Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39366         numbers that fails on BeOS.
39367         * doc/functions/frexpl.texi: Update.
39368
39369 2007-05-20  Jim Meyering  <jim@meyering.net>
39370
39371         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39372         forced upon us by glibc-2.6.
39373
39374 2007-05-20  Bruno Haible  <bruno@clisp.org>
39375
39376         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39377         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39378         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39379         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39380         NEED_PRINTF_INFINITE.
39381         (is_infinitel): New function.
39382         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39384         gl_PREREQ_VASNPRINTF_INFINITE.
39385         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39387         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39388         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39389         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39390         gl_PREREQ_VASNPRINTF_INFINITE.
39391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39398         * doc/functions/fprintf.texi: Update.
39399         * doc/functions/printf.texi: Update.
39400         * doc/functions/snprintf.texi: Update.
39401         * doc/functions/sprintf.texi: Update.
39402         * doc/functions/vfprintf.texi: Update.
39403         * doc/functions/vprintf.texi: Update.
39404         * doc/functions/vsnprintf.texi: Update.
39405         * doc/functions/vsprintf.texi: Update.
39406
39407 2007-05-20  Bruno Haible  <bruno@clisp.org>
39408
39409         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39410         was not found in libc.
39411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39412
39413 2007-05-20  Bruno Haible  <bruno@clisp.org>
39414
39415         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39416         printed as "-nan" instead of "nan".
39417         * tests/test-vasprintf-posix.c (test_function): Likewise.
39418         * tests/test-snprintf-posix.h (test_function): Likewise.
39419         * tests/test-sprintf-posix.h (test_function): Likewise.
39420         Needed for HP-UX 11.
39421
39422 2007-05-20  Jim Meyering  <jim@meyering.net>
39423
39424         Fix buggy test for the fchownat-deref bug.
39425         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39426         symlink required for the run-test.  Without it, this test would
39427         always declare that fchownat doesn't work, and client code would
39428         unnecessarily use the replacement function with fixed libc.
39429         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39430         Reported by Greg Schafer.
39431
39432 2007-05-19  Bruno Haible  <bruno@clisp.org>
39433
39434         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39435         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39436         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39437         Needed for IRIX 6.5 and Solaris 2.5.1.
39438
39439 2007-05-19  Bruno Haible  <bruno@clisp.org>
39440
39441         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39442         (test_function): Skip tests involving -0.0 on platforms where
39443         -0.0 = 0.0.
39444         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39445         (test_function): Skip tests involving -0.0 on platforms where
39446         -0.0 = 0.0.
39447         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39448         (test_function): Skip tests involving -0.0 on platforms where
39449         -0.0 = 0.0.
39450         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39451         (test_function): Skip tests involving -0.0 on platforms where
39452         -0.0 = 0.0.
39453         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39454         tests.
39455         * tests/test-printf-posix.h (test_function): Likewise.
39456         * tests/test-printf-posix.output: Remove all -0.0 related results.
39457         Needed for IRIX 6.5.
39458
39459 2007-05-19  Bruno Haible  <bruno@clisp.org>
39460
39461         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39462         printed as "nan0x7fffffff" instead of "nan".
39463         * tests/test-vasprintf-posix.c (test_function): Likewise.
39464         * tests/test-snprintf-posix.h (test_function): Likewise.
39465         * tests/test-sprintf-posix.h (test_function): Likewise.
39466         * tests/test-fprintf-posix.h (NaN): Remove macro.
39467         (test_function): Remove all NaN related tests.
39468         * tests/test-printf-posix.h (NaN): Remove macro.
39469         (test_function): Remove all NaN related tests.
39470         * tests/test-printf-posix.output: Remove all NaN related results.
39471         Needed for IRIX 6.5.
39472
39473 2007-05-19  Bruno Haible  <bruno@clisp.org>
39474
39475         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39477
39478 2007-05-19  Bruno Haible  <bruno@clisp.org>
39479
39480         * lib/float_.h: New file.
39481         * m4/float_h.m4: New file.
39482         * modules/float: New file.
39483         * modules/isnanl (Dependencies): Add float.
39484         * modules/isnanl-nolibm (Dependencies): Likewise.
39485         * modules/mathl (Dependencies): Likewise.
39486         * modules/printf-frexpl (Dependencies): Likewise.
39487         * modules/signbit (Dependencies): Likewise.
39488         * modules/vasnprintf (Dependencies): Likewise.
39489         * doc/headers/float.texi: Update.
39490
39491 2007-05-19  Jim Meyering  <jim@meyering.net>
39492
39493         * lib/utimens.c (gl_futimens): Rename from futimens,
39494         now that glibc-2.6 declares futimens.
39495         * lib/utimens.h: Likewise.
39496
39497 2007-05-19  Bruno Haible  <bruno@clisp.org>
39498
39499         Avoid test failures on mingw.
39500         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39501         * tests/test-printf-posix.sh: Likewise.
39502         * tests/test-vfprintf-posix.sh: Likewise.
39503         * tests/test-vprintf-posix.sh: Likewise.
39504
39505 2007-05-19  Bruno Haible  <bruno@clisp.org>
39506
39507         Fix *printf result for NaN, Inf, -0.0 on mingw.
39508         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39509         * lib/vasnprintf.c: Include math.h and isnan.h.
39510         (is_infinite_or_zero): New function.
39511         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39512         values in the %f, %F, %e, %E, %g, %G directives.
39513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39515         gl_PRINTF_INFINITE and test its result. Invoke
39516         gl_PREREQ_VASNPRINTF_INFINITE.
39517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39524         * doc/functions/fprintf.texi: Update.
39525         * doc/functions/printf.texi: Update.
39526         * doc/functions/snprintf.texi: Update.
39527         * doc/functions/sprintf.texi: Update.
39528         * doc/functions/vfprintf.texi: Update.
39529         * doc/functions/vprintf.texi: Update.
39530         * doc/functions/vsnprintf.texi: Update.
39531         * doc/functions/vsprintf.texi: Update.
39532
39533 2007-05-19  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39536         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39537         Instead of multiplying with 10^k, set extra_zeroes to k.
39538         (scale10_round_long_double): Remove function.
39539
39540 2007-05-18  Bruno Haible  <bruno@clisp.org>
39541
39542         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39543         introduced on 2007-05-06.
39544
39545 2007-05-18  Bruno Haible  <bruno@clisp.org>
39546
39547         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39548         %g directives.
39549         * tests/test-vasprintf-posix.c (test_function): Likewise.
39550         * tests/test-snprintf-posix.h (test_function): Likewise.
39551         * tests/test-sprintf-posix.h (test_function): Likewise.
39552
39553 2007-05-18  Bruno Haible  <bruno@clisp.org>
39554
39555         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39556         (strmatch): New function.
39557         (test_function): Test the %f directive on numbers of various exponents.
39558         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39559         (strmatch): New function.
39560         (test_function): Test the %f directive on numbers of various exponents.
39561         * tests/test-snprintf-posix.h (strmatch): New function.
39562         (test_function): Test the %f directive on numbers of various exponents.
39563         * tests/test-sprintf-posix.h (strmatch): New function.
39564         (test_function): Test the %f directive on numbers of various exponents.
39565         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39566         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39567         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39568         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39569
39570 2007-05-18  Bruno Haible  <bruno@clisp.org>
39571
39572         Add support for 'long double' number output.
39573         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39574         * lib/vasnprintf.c: Include math.h and float+.h.
39575         (mp_limb_t): New type.
39576         (GMP_LIMB_BITS): New macro.
39577         (mp_twolimb_t): New type.
39578         (GMP_TWOLIMB_BITS): New macro.
39579         (mpn_t): New type.
39580         (multiply, divide, convert_to_decimal, decode_long_double,
39581         scale10_round_long_double, scale10_round_decimal_long_double,
39582         floorlog10l): New functions.
39583         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39584         for the %f, %F, %e, %E, %g, %G directives.
39585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39587         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39588         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39596         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39597         * modules/snprintf-posix (Depends-on): Likewise.
39598         * modules/sprintf-posix (Depends-on): Likewise.
39599         * modules/vasnprintf-posix (Depends-on): Likewise.
39600         * modules/vasprintf-posix (Depends-on): Likewise.
39601         * modules/vfprintf-posix (Depends-on): Likewise.
39602         * modules/vsnprintf-posix (Depends-on): Likewise.
39603         * modules/vsprintf-posix (Depends-on): Likewise.
39604         * modules/vasnprintf (Files): Add lib/float+.h.
39605         * doc/functions/fprintf.texi: Update.
39606         * doc/functions/printf.texi: Update.
39607         * doc/functions/snprintf.texi: Update.
39608         * doc/functions/sprintf.texi: Update.
39609         * doc/functions/vfprintf.texi: Update.
39610         * doc/functions/vprintf.texi: Update.
39611         * doc/functions/vsnprintf.texi: Update.
39612         * doc/functions/vsprintf.texi: Update.
39613
39614 2007-05-18  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39617
39618 2007-05-18  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39621         for printing 64-bit integers. Needed for mingw.
39622
39623 2007-05-18  Bruno Haible  <bruno@clisp.org>
39624
39625         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39626         gl_FUNC_FREXPL_WORKS.
39627         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39628
39629 2007-05-18  Bruno Haible  <bruno@clisp.org>
39630
39631         * modules/frexpl-nolibm-tests: New file.
39632
39633         * modules/frexpl-nolibm: New file.
39634         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39635
39636 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39637
39638         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39639         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39640         GCC 4.2, which otherwise issues a lot of warnings.
39641         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39642         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39643         Likewise.
39644         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39645         * modules/iconv_open (iconv.h): Likewise.
39646         * modules/locale (locale.h): Likewise.
39647         * modules/netinet_in (netinet/in.h): Likewise.
39648         * modules/sys_select (sys_select.h): Likewise.
39649         * modules/sys_socket (sys/socket.h): Likewise.
39650         * modules/sys_stat (sys/stat.h): Likewise.
39651         * modules/sysexits (sysexits.h): Likewise.
39652         * modules/unistd (unistd.h): Likewise.
39653
39654 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39655
39656         * modules/closein-tests (Makefile.am): Distribute
39657         `test-closein.sh'.
39658
39659 2007-05-17  Bruno Haible  <bruno@clisp.org>
39660
39661         * tests/test-printf-posix.output: Renamed from
39662         tests/test-fprintf-posix.out.
39663         * modules/fprintf-posix-tests: Update.
39664         * modules/printf-posix-tests: Update.
39665         * modules/vfprintf-posix-tests: Update.
39666         * modules/vprintf-posix-tests: Update.
39667         * tests/test-fprintf-posix.sh: Update.
39668         * tests/test-printf-posix.sh: Update.
39669         * tests/test-vfprintf-posix.sh: Update.
39670         * tests/test-vprintf-posix.sh: Update.
39671         Reported by Ralf Wildenhues.
39672
39673 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39674
39675         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39677         GCC 4.2, which otherwise issues a lot of warnings.
39678         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39679         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39680         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39681         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39682         it should no longer be needed.
39683         * lib/string_.h: Likewise.
39684         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39685         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39686         * modules/inttypes (inttypes.h): Likewise.
39687         * modules/math (math.h): Likewise.
39688         * modules/search (search.h): Likewise.
39689         * modules/signal (signal.h): Likewise.
39690         * modules/stdint (stdint.h): Likewise.
39691         * modules/stdio (stdio.h): Likewise.
39692         * modules/stdlib (stdlib.h): Likewise.
39693         * modules/string (string.h): Likewise.
39694         * modules/sys_time (sys/time.h): Likewise.
39695         * modules/time (time.h): Likewise.
39696         * modules/wchar (wchar.h): Likewise.
39697         * modules/wctype (wtype.h): Likewise.
39698
39699 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39700
39701         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39702
39703 2007-05-13  Bruno Haible  <bruno@clisp.org>
39704
39705         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39706         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39707         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39708         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39709         (gl_PREREQ_STRTOK_R): Don't require it here.
39710
39711 2007-05-13  Bruno Haible  <bruno@clisp.org>
39712
39713         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39714         when used in C++ mode.
39715
39716 2007-05-12  Bruno Haible  <bruno@clisp.org>
39717
39718         * lib/linebuffer.h: Tweak doc.
39719         * lib/linebuffer.c: Likewise.
39720
39721 2007-05-12  James Youngman  <jay@gnu.org>
39722
39723         * lib/linebuffer.c (readlinebuffer_delim): New function,
39724         like readlinebuffer, but use a caller-specified delimiter.
39725         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39726         as the delimiter.
39727         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39728
39729 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39730
39731         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39732         * modules/openat (Files): Remove openat-die.c.
39733         (Depends-on): Add openat-die.
39734         * modules/openat-die: New module.
39735
39736 2007-05-06  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39739         Update with info about Cygwin.
39740         * doc/functions/fprintf.texi: Update.
39741         * doc/functions/printf.texi: Update.
39742         * doc/functions/snprintf.texi: Update.
39743         * doc/functions/sprintf.texi: Update.
39744         * doc/functions/vfprintf.texi: Update.
39745         * doc/functions/vprintf.texi: Update.
39746         * doc/functions/vsnprintf.texi: Update.
39747         * doc/functions/vsprintf.texi: Update.
39748         Reported by Eric Blake.
39749
39750 2007-05-06  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39753         padding ourselves for the floating-point directives.
39754         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39757         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39758         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39766         * tests/test-snprintf-posix.h (test_function): Also check the width
39767         and some flags in the %f directive.
39768         * tests/test-sprintf-posix.h (test_function): Likewise.
39769         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39770         * tests/test-vasprintf-posix.c (test_function): Likewise.
39771         * doc/functions/fprintf.texi: Update.
39772         * doc/functions/printf.texi: Update.
39773         * doc/functions/snprintf.texi: Update.
39774         * doc/functions/sprintf.texi: Update.
39775         * doc/functions/vfprintf.texi: Update.
39776         * doc/functions/vprintf.texi: Update.
39777         * doc/functions/vsnprintf.texi: Update.
39778         * doc/functions/vsprintf.texi: Update.
39779
39780 2007-05-06  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39783         pass the ' flag character to sprintf or snprintf.
39784         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39787         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39788         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39792         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39796         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39797         flag.
39798         * tests/test-sprintf-posix.h (test_function): Likewise.
39799         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39800         * tests/test-vasprintf-posix.c (test_function): Likewise.
39801         * doc/functions/fprintf.texi: Update.
39802         * doc/functions/printf.texi: Update.
39803         * doc/functions/snprintf.texi: Update.
39804         * doc/functions/sprintf.texi: Update.
39805         * doc/functions/vfprintf.texi: Update.
39806         * doc/functions/vprintf.texi: Update.
39807         * doc/functions/vsnprintf.texi: Update.
39808         * doc/functions/vsprintf.texi: Update.
39809
39810 2007-05-01  Bruno Haible  <bruno@clisp.org>
39811
39812         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39813
39814 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39815
39816         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39817         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39818
39819 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39820
39821         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39822         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39824
39825 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39826
39827         * lib/argp-help.c (struct hol_entry): New member `ord'.
39828         (HOL_ENTRY_PTRCMP): Use ord for comparison
39829         (hol_sort): Initialize ord.
39830
39831 2007-05-01  Bruno Haible  <bruno@clisp.org>
39832
39833         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39834         Reported by Eric Blake.
39835         * doc/gnulib.texi (Function Substitutes): Update.
39836
39837 2007-05-01  Bruno Haible  <bruno@clisp.org>
39838
39839         * doc/functions.texi: Remove file, now redundant through
39840         doc/functions/*.texi.
39841
39842 2007-05-01  Bruno Haible  <bruno@clisp.org>
39843
39844         * modules/argp (Depends-on): Add sleep.
39845
39846 2007-05-01  Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/sleep-tests: New file.
39849         * tests/test-sleep.c: New file.
39850
39851         * modules/sleep: New file.
39852         * lib/sleep.c: New file.
39853         * m4/sleep.m4: New file.
39854         * lib/unistd_.h (sleep): New declaration.
39855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39856         HAVE_SLEEP.
39857         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39858         * doc/functions/sleep.texi: Document the sleep module.
39859
39860 2007-05-01  Bruno Haible  <bruno@clisp.org>
39861
39862         * lib/sigprocmask.h: Remove file.
39863         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39864         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39866         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39867         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39868         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39869         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39870         HAVE_SIGSET_T as a shell variable.
39871         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39872         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39873         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39874         (Depends-on): Add signal. Remove verify.
39875         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39876         (Include): Mention <signal.h> instead of sigprocmask.h.
39877         * NEWS: Mention the change.
39878         * lib/fatal-signal.c: Don't include sigprocmask.h.
39879
39880 2007-05-01  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/signal: New file.
39883         * lib/signal_.h: New file.
39884         * m4/signal_h.m4: New file.
39885
39886 2007-05-01  Bruno Haible  <bruno@clisp.org>
39887
39888         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39889         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39890         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39891         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39892
39893 2007-05-01  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39896         configure time.
39897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39898         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39899         * modules/sys_stat (Makefile.am): Substitute their values into
39900         sys/stat.h.
39901
39902 2007-05-01  Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39905         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39906         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39907
39908 2007-05-01  Bruno Haible  <bruno@clisp.org>
39909
39910         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39911         'assert' module here.
39912
39913 2007-05-01  Bruno Haible  <bruno@clisp.org>
39914
39915         * doc/functions/*.texi: New files.
39916         * doc/functions/google-ranking.txt: New file.
39917         * doc/gnulib.texi (Function Substitutes): New chapter.
39918         (ctime, inet_ntoa): Remove sections.
39919         * doc/ctime.texi: Remove file.
39920         * doc/inet_ntoa.texi: Remove file.
39921         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39922         dependencies.
39923         (%.info): New rule, specifying a --reference-limit.
39924
39925 2007-05-01  Bruno Haible  <bruno@clisp.org>
39926
39927         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39928
39929 2007-05-01  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39932         the portability of 'mkdir' to mingw systems.
39933
39934 2007-05-01  Bruno Haible  <bruno@clisp.org>
39935
39936         * doc/headers/google-ranking.txt: New file.
39937
39938 2007-04-30  Eric Blake  <ebb9@byu.net>
39939
39940         Prefer fseeko to fseek.
39941         * modules/getpass (Depends-on): Add fseeko.
39942         * lib/getpass.c (getpass): Use fseeko, not fseek.
39943
39944 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39945
39946         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39947         assumes the sorting is stable, while most qsort implementations
39948         are not.  Use argument addresses to ensure they never compare as
39949         equal.
39950
39951         * tests/test-argp-2.sh (usage-indent test): Fix output
39952         (func_compare): Restore diff options
39953         * tests/test-argp.c: Restore #include "progname.h"
39954
39955 2007-04-29  Bruno Haible  <bruno@clisp.org>
39956
39957         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39959         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39961         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39962         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39963         (TESTS, check_PROGRAMS): Add test-snprintf.
39964         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39965         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39966         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39967         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39968         assertions that fail on HP-UX, OSF/1, or IRIX.
39969         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39970
39971 2007-04-29  Bruno Haible  <bruno@clisp.org>
39972
39973         * MODULES.html.sh (posix_functions): Remove 'contents'.
39974
39975 2007-04-29  Karl Berry  <karl@gnu.org>
39976
39977         * config/srclist.txt (gendocs_template_min): new entry.
39978
39979 2007-04-29  Bruno Haible  <bruno@clisp.org>
39980
39981         Work around fpurge bug on BSD systems.
39982         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39983         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39984         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39985         fpurge to rpl_fpurge if the system already has this function.
39986         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39987         the case where the system already has this function. Correct invariants
39988         on BSD systems.
39989         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39990         BSD systems.
39991
39992 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39993
39994         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39995         proposed by Sven Verdoolaege.
39996
39997         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39998         options.
39999         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40000         (usage and help tests): Update
40001
40002 2007-04-29  Bruno Haible  <bruno@clisp.org>
40003
40004         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40005         Print more information in case of failure. Disable a test on BeOS.
40006
40007 2007-04-29  Bruno Haible  <bruno@clisp.org>
40008
40009         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40010         This helps debugging on systems on which no gdb is available.
40011
40012 2007-04-29  Bruno Haible  <bruno@clisp.org>
40013
40014         * lib/freading.h: Improve comments.
40015         * lib/fwriting.h: Likewise.
40016         * tests/test-freading.c (main): Don't check freading immediately after
40017         repositioning. Needed for glibc.
40018
40019 2007-04-29  Bruno Haible  <bruno@clisp.org>
40020
40021         * lib/freading.c (freading): Trivial simplification.
40022
40023 2007-04-28  Bruno Haible  <bruno@clisp.org>
40024
40025         * tests/test-fwriting.c (main): Also test the interaction between
40026         fflush and fwriting.
40027         * modules/fwriting-tests (Depends-on): Add fflush.
40028
40029         * tests/test-freading.c (main): Also test the interaction between
40030         fflush and freading.
40031         * modules/freading-tests (Depends-on): Add fflush.
40032
40033 2007-04-28  Bruno Haible  <bruno@clisp.org>
40034
40035         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40036         fseeko and ftello.
40037         Suggested by Eric Blake.
40038
40039 2007-04-28  Jim Meyering  <jim@meyering.net>
40040
40041         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40042         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40043         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40044
40045 2007-04-27  Eric Blake  <ebb9@byu.net>
40046
40047         * doc/headers/assert.texi (assert.h): Document assert module use.
40048
40049 2007-04-27  Bruno Haible  <bruno@clisp.org>
40050
40051         * doc/headers/*.texi: New files.
40052         * doc/gnulib.texi (Header File Substitutes): New chapter.
40053         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40054         dependencies.
40055         (standards.info ,standards.html, standards.dvi): Update dependencies.
40056         (mostlyclean, clean): New targets.
40057
40058 2007-04-27  Bruno Haible  <bruno@clisp.org>
40059
40060         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40061         * modules/sysexits (Files, Makefile.am): Update.
40062
40063         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40064         * modules/sys_socket (Files, Makefile.am): Update.
40065
40066         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40067         * modules/sys_stat (Files, Makefile.am): Update.
40068
40069 2007-04-27  Eric Blake  <ebb9@byu.net>
40070
40071         * lib/freading.h: Improve comments.
40072         * lib/fwriting.h: Likewise.
40073         * lib/fflush.c: Likewise.
40074
40075         Fix closein for mingw.
40076         * modules/closein-tests: Add tests for closein.
40077         * tests/test-closein.c: New file.
40078         * tests/test-closein.sh: Likewise.
40079         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40080         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40081
40082 2007-04-27  Bruno Haible  <bruno@clisp.org>
40083
40084         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40085         version is < 6.
40086         * lib/math_.h [__DECC]: Likewise.
40087         * lib/stdio_.h [__DECC]: Likewise.
40088         * lib/stdlib_.h [__DECC]: Likewise.
40089         * lib/string_.h [__DECC]: Likewise.
40090         * lib/time_.h [__DECC]: Likewise.
40091         * lib/wchar_.h [__DECC]: Likewise.
40092         * lib/wctype_.h [__DECC]: Likewise.
40093
40094 2007-04-27  Bruno Haible  <bruno@clisp.org>
40095
40096         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40097
40098 2007-04-27  Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/fflush.c: Add comments.
40101         * modules/fpurge-tests (Depends-on): Add fflush.
40102         * modules/freadable-tests (Depends-on): Likewise.
40103         * modules/fwritable-tests (Depends-on): Likewise.
40104
40105 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40106
40107         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40108         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40109         Report by Bruno Haible <bruno@clisp.org>.
40110
40111 2007-04-26  Eric Blake  <ebb9@byu.net>
40112
40113         Fix fflush on mingw.
40114         * modules/fflush (Depends-on): Add freading.
40115         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40116         but unread data.
40117
40118 2007-04-26  Eric Blake  <ebb9@byu.net>
40119         and Bruno Haible  <bruno@clisp.org>
40120
40121         Implement freading and fwriting.
40122         * lib/freading.c: New file.
40123         * lib/freading.h: Likewise.
40124         * m4/freading.m4: Likewise.
40125         * modules/freading: Likewise.
40126         * modules/freading-tests: Likewise.
40127         * tests/test-freading.c: Likewise.
40128         * lib/fwriting.c: New file.
40129         * lib/fwriting.h: Likewise.
40130         * m4/fwriting.m4: Likewise.
40131         * modules/fwriting: Likewise.
40132         * modules/fwriting-tests: Likewise.
40133         * tests/test-fwriting.c: Likewise.
40134         * MODULES.html.sh (File stream based Input/Output): Mention them.
40135
40136 2007-04-26  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40139         'long' when we assume it.
40140         Suggested by Eric Blake.
40141
40142 2007-04-26  Bruno Haible  <bruno@clisp.org>
40143
40144         Ensure fseeko, ftello are declared on glibc systems.
40145         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40146         * modules/fseeko (configure.ac-early): Likewise.
40147         * modules/ftello (configure.ac-early): Likewise.
40148         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40149         AC_FUNC_FSEEKO for this.
40150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40151         (gl_CHECK_FSEEKO): Remove macro.
40152
40153 2007-04-26  Bruno Haible  <bruno@clisp.org>
40154
40155         * tests/test-fflush.c (main): Also check the ftell result after
40156         fflush and fseek/fseeko.
40157         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40158         file descriptor position cache in the stream.
40159         * lib/fseeko.c (rpl_fseeko): Likewise.
40160
40161 2007-04-26  Bruno Haible  <bruno@clisp.org>
40162
40163         * modules/fflush-tests (Depends-on): Add fseeko.
40164
40165 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40166             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40167
40168         * lib/argz_.h: ensure error_t definition is obtained in same
40169         mechanism system argz.h would have.
40170         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40171         argz facilities are known bad.  Err on the side of caution if
40172         cross-compiling.
40173
40174 2007-04-25  Eric Blake  <ebb9@byu.net>
40175
40176         * lib/fpurge.c (includes): Use stdlib.h for free.
40177         * tests/test-fflush.c (main): Also test fflush-fseeko.
40178
40179 2007-04-25  Bruno Haible  <bruno@clisp.org>
40180
40181         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40182         * lib/fseeko.c: New file.
40183         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40184         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40185         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40186         gl_FUNC_FSEEKO.
40187         (gl_FUNC_FSEEKO): Invoke it.
40188         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40189         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40190         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40191
40192 2007-04-25  Bruno Haible  <bruno@clisp.org>
40193
40194         * modules/fflush (Depends-on): Add ftello.
40195
40196 2007-04-25  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/ftello-tests: New file.
40199         * tests/test-ftello.c: New file.
40200
40201         * modules/ftello: New file.
40202         * m4/ftello.m4: New file.
40203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40204         HAVE_FTELLO.
40205         * lib/stdio_.h (ftello): New declaration.
40206         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40207         HAVE_FTELLO.
40208
40209 2007-04-25  Bruno Haible  <bruno@clisp.org>
40210
40211         * modules/fseeko-tests: New file.
40212         * tests/test-fseeko.c: New file.
40213
40214         * modules/fseeko: New file.
40215         * m4/fseeko.m4: New file.
40216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40217         HAVE_FSEEKO.
40218         * lib/stdio_.h (fseeko): New declaration.
40219         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40220         HAVE_FSEEKO.
40221
40222 2007-04-25  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40225
40226 2007-04-25  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40229         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40230         * tests/test-unistd.c: Likewise.
40231         * tests/test-fcntl.c: Likewise.
40232
40233 2007-04-23  Eric Blake  <ebb9@byu.net>
40234
40235         * lib/fflush.c: Fix missing include.
40236         Reported by Bruno Haible.
40237
40238 2007-04-23  Bruno Haible  <bruno@clisp.org>
40239
40240         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40241         Reported by Eric Blake.
40242
40243 2007-04-23  Bruno Haible  <bruno@clisp.org>
40244
40245         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40246
40247 2007-04-23  Bruno Haible  <bruno@clisp.org>
40248
40249         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40250
40251 2007-04-23  Bruno Haible  <bruno@clisp.org>
40252
40253         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40254         Needed on HP-UX 11.
40255
40256 2007-04-16  Eric Blake  <ebb9@byu.net>
40257
40258         Make fflush rely on fpurge.
40259         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40260         open coding all variants.
40261         * modules/fflush (Depends-on): Add fpurge and unistd.
40262         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40264
40265         Fix --with-tests compilation on cygwin.
40266         * modules/argmatch-tests (Makefile.am): List gnulib library first
40267         in LDADD.
40268         * modules/argp-tests (Makefile.am): Likewise.
40269         * modules/array-list-tests (Makefile.am): Likewise.
40270         * modules/array-oset-tests (Makefile.am): Likewise.
40271         * modules/avltree-list-tests (Makefile.am): Likewise.
40272         * modules/avltree-oset-tests (Makefile.am): Likewise.
40273         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40274         * modules/carray-list-tests (Makefile.am): Likewise.
40275         * modules/dirname-tests (Makefile.am): Likewise.
40276         * modules/frexp-tests (Makefile.am): Likewise.
40277         * modules/isnanl-tests (Makefile.am): Likewise.
40278         * modules/linked-list-tests (Makefile.am): Likewise.
40279         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40280         * modules/lock-tests (Makefile.am): Likewise.
40281         * modules/rbtree-list-tests (Makefile.am): Likewise.
40282         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40283         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40284         * modules/tls-tests (Makefile.am): Likewise.
40285         * modules/tsearch-tests (Makefile.am): Likewise.
40286         * modules/xvasprintf-tests (Makefile.am): Likewise.
40287
40288         Fix fpurge for cygwin.
40289         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40290         value.
40291         * modules/fpurge-tests (Depends-on): Clean up trash.
40292
40293 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40294
40295         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40296
40297         * m4/autobuild.m4: Re-indent.
40298
40299 2007-04-13  Bruno Haible  <bruno@clisp.org>
40300
40301         * modules/fpurge-tests: New file.
40302         * tests/test-fpurge.c: New file.
40303
40304         * modules/fpurge: New file.
40305         * lib/fpurge.h: New file.
40306         * lib/fpurge.c: New file.
40307         * m4/fpurge.m4: New file.
40308
40309 2007-04-13  Bruno Haible  <bruno@clisp.org>
40310
40311         * modules/fbufmode-tests: New file.
40312         * tests/test-fbufmode.c: New file.
40313
40314         * modules/fbufmode: New file.
40315         * lib/fbufmode.h: New file.
40316         * lib/fbufmode.c: New file.
40317         * m4/fbufmode.m4: New file.
40318
40319 2007-04-13  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/fwritable-tests: New file.
40322         * tests/test-fwritable.c: New file.
40323
40324         * modules/fwritable: New file.
40325         * lib/fwritable.h: New file.
40326         * lib/fwritable.c: New file.
40327         * m4/fwritable.m4: New file.
40328
40329 2007-04-13  Bruno Haible  <bruno@clisp.org>
40330
40331         * modules/freadable-tests: New file.
40332         * tests/test-freadable.c: New file.
40333
40334         * modules/freadable: New file.
40335         * lib/freadable.h: New file.
40336         * lib/freadable.c: New file.
40337         * m4/freadable.m4: New file.
40338
40339 2007-04-13  Bruno Haible  <bruno@clisp.org>
40340
40341         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40342         MOSTLYCLEANFILES.
40343
40344 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40345
40346         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40347         gzip bootstrap.conf to avoid dragging in i18n machinery.
40348         (gnulib_tool_option): Use it.
40349
40350 2007-04-13  Bruno Haible  <bruno@clisp.org>
40351
40352         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40353         %F directives.
40354         * tests/test-vasprintf-posix.c (test_function): Likewise.
40355         * tests/test-snprintf-posix.h (test_function): Likewise.
40356         * tests/test-sprintf-posix.h (test_function): Likewise.
40357         * tests/test-fprintf-posix.h (test_function): Likewise.
40358         * tests/test-printf-posix.h (test_function): Likewise.
40359         * tests/test-fprintf-posix.out: Likewise.
40360
40361 2007-04-13  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40364         * modules/tls-tests (configure.ac): Likewise.
40365         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40366
40367 2007-04-13  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/tls.c (glthread_tls_get): Fix return type.
40370         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40371
40372 2007-04-12  Eric Blake  <ebb9@byu.net>
40373
40374         * modules/gettime (Depends-on): Remove gettime.
40375         Reported by Dmitry V. Levin.
40376
40377 2007-04-12  Bruno Haible  <bruno@clisp.org>
40378
40379         * modules/fflush (Include): Mention <stdio.h>.
40380         * modules/strtoimax (Include): Mention <inttypes.h>.
40381         * modules/strtoumax (Include): Likewise.
40382
40383 2007-04-12  Eric Blake  <ebb9@byu.net>
40384
40385         * .cvsignore: New file.
40386         * .gitignore: Likewise.
40387
40388 2007-04-12  Bruno Haible  <bruno@clisp.org>
40389
40390         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40391         not before, since $(LDADD) often contains libgnu.a.
40392         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40393         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40394         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40395         Needed on Cygwin.
40396
40397 2007-04-12  Eric Blake  <ebb9@byu.net>
40398
40399         Work around glibc's failure to flush stdin on fclose.
40400         * lib/closein.c (close_stdin): Flush stdin before closing.
40401
40402         Work around glibc's failure to reset seekable stdin on exit.
40403         * modules/closein: New module.
40404         * lib/closein.c: New file.
40405         * lib/closein.h: Likewise.
40406         * m4/closein.m4: Likewise.
40407         * MODULES.html.sh (File stream based Input/Output): Document it.
40408
40409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40410
40411         * gnulib-tool: Rename generated 'autobuild' script to
40412         'do-autobuild' in --create-megatestdir output.
40413
40414         * doc/gnulib.texi (Build robot for gnulib): Fix.
40415
40416 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40417
40418         * modules/sysexits (Depends-on): Add absolute-header.
40419
40420 2007-04-12  Eric Blake  <ebb9@byu.net>
40421
40422         No need to preserve errno on success.
40423         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40424         Reported by Bruno Haible.
40425
40426 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40427
40428         * MODULES.html.sh (Support for maintaining and releasing
40429         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40430
40431 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40432
40433         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40434
40435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40436
40437         * modules/autobuild: New module.
40438
40439         * m4/autobuild.m4: New file.
40440
40441 2007-04-11  Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40444         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40454         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40455         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40457         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40458         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40471         Reported by Eric Blake.
40472
40473 2007-04-11  Bruno Haible  <bruno@clisp.org>
40474
40475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40476
40477 2007-04-10  Bruno Haible  <bruno@clisp.org>
40478
40479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40480         for NaN and Infinity. Needed on FreeBSD 6.1.
40481         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40482         regarding results for "%010a" of Infinity and NaN.
40483         * tests/test-vasprintf-posix.c (test_function): Likewise.
40484         * tests/test-snprintf-posix.h (test_function): Likewise.
40485         * tests/test-sprintf-posix.h (test_function): Likewise.
40486         * tests/test-fprintf-posix.h (test_function): Likewise.
40487         * tests/test-printf-posix.h (test_function): Likewise.
40488         * tests/test-fprintf-posix.out: Likewise.
40489
40490 2007-04-10  Bruno Haible  <bruno@clisp.org>
40491
40492         * modules/locale-tests: New file.
40493         * tests/test-locale.c: New file.
40494
40495         * modules/locale: New file.
40496         * lib/locale_.h: New file.
40497         * m4/locale_h.m4: New file.
40498
40499 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40500             Bruno Haible  <bruno@clisp.org>
40501
40502         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40503         be determined, test for availability of the copysignf, copysign,
40504         copysignl functions.
40505         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40506         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40507         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40508
40509 2007-04-09  Eric Blake  <ebb9@byu.net>
40510
40511         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40512         * modules/stdio (Makefile.am): Support fflush.
40513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40514         * modules/fflush: New file.
40515         * lib/fflush.c: Likewise.
40516         * m4/fflush.m4: Likewise.
40517         * modules/fflush-tests: New test.
40518         * tests/test-fflush.c: Likewise.
40519         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40520
40521 2007-04-06  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40524         (VASNPRINTF): Use signbit for faster determination whether to print a
40525         minus sign.
40526         * modules/vasnprintf (Files): Remove lib/float+.h.
40527         * modules/fprintf-posix (Depends-on): Add signbit.
40528         * modules/snprintf-posix (Depends-on): Likewise.
40529         * modules/sprintf-posix (Depends-on): Likewise.
40530         * modules/vasnprintf-posix (Depends-on): Likewise.
40531         * modules/vasprintf-posix (Depends-on): Likewise.
40532         * modules/vfprintf-posix (Depends-on): Likewise.
40533         * modules/vsnprintf-posix (Depends-on): Likewise.
40534         * modules/vsprintf-posix (Depends-on): Likewise.
40535
40536 2007-04-06  Bruno Haible  <bruno@clisp.org>
40537
40538         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40539         * tests/test-frexpl.c (main): Likewise.
40540         * tests/test-ldexpl.c (main): Likewise.
40541         * modules/frexp-tests (Depends-on): Add signbit.
40542         * modules/frexpl-tests (Depdends-on): Likewise.
40543         * modules/ldexpl-tests (Depdends-on): Likewise.
40544
40545 2007-04-06  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/signbit-tests: New file.
40548         * tests/test-signbit.c: New file.
40549
40550         * modules/signbit: New file.
40551         * lib/signbitf.c: New file.
40552         * lib/signbitd.c: New file.
40553         * lib/signbitl.c: New file.
40554         * m4/signbit.m4: New file.
40555         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40556         (signbit): New macro.
40557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40558         REPLACE_SIGNBIT.
40559         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40560         REPLACE_FREXPL into math.h.
40561
40562 2007-04-06  Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/isnanf-nolibm-tests: New file.
40565         * tests/test-isnanf.c: New file.
40566
40567         * modules/isnanf-nolibm: New file.
40568         * lib/isnanf.h: New file.
40569         * lib/isnanf.c: New file.
40570         * lib/isnan.c: Consider the USE_FLOAT macro.
40571         * m4/isnanf.m4: New file.
40572
40573 2007-04-06  Bruno Haible  <bruno@clisp.org>
40574
40575         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40576         (Link): New section.
40577
40578         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40579
40580 2007-04-06  Bruno Haible  <bruno@clisp.org>
40581
40582         Assume the 'long double' type.
40583         * m4/longdouble.m4: Remove file.
40584         * config/srclist.txt: Don't mention longdouble.m4.
40585         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40586         * lib/float+.h: Likewise.
40587         * lib/frexp.c: Likewise.
40588         * lib/printf-args.h: Likewise.
40589         * lib/printf-args.c: Likewise.
40590         * lib/printf-frexp.c: Likewise.
40591         * lib/printf-parse.c: Likewise.
40592         * lib/vasnprintf.c: Likewise.
40593         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40594         * m4/intl.m4: Likewise.
40595         * m4/isnanl.m4: Likewise.
40596         * m4/printf.m4: Likewise.
40597         * m4/printf-frexpl.m4: Likewise.
40598         * m4/vasnprintf.m4: Likewise.
40599         * modules/allocsa (Files): Remove m4/longdouble.m4.
40600         * modules/gettext (Files): Likewise.
40601         * modules/relocatable-prog-wrapper (Files): Likewise.
40602         * modules/vasnprintf (Files): Likewise.
40603         * modules/isnanl (Files): Likewise.
40604         (Include): Simplify.
40605         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40606         (Include): Simplify.
40607         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40608         (Include): Simplify.
40609         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40611         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40613         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40615         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40617         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40619         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40621         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40622         * tests/test-isnanl.c: Likewise.
40623         * tests/test-snprintf-posix.h: Likewise.
40624         * tests/test-sprintf-posix.h: Likewise.
40625         * tests/test-vasnprintf-posix.c: Likewise.
40626         * tests/test-vasnprintf-posix2.c: Likewise.
40627         * tests/test-vasprintf-posix.c: Likewise.
40628
40629 2007-04-06  Bruno Haible  <bruno@clisp.org>
40630
40631         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40632         * lib/math_.h [__DECC]: Include the overridden include file through
40633         #include_next, outside the double-inclusion guard.
40634         * lib/stdio_.h [__DECC]: Likewise.
40635         * lib/stdlib_.h [__DECC]: Likewise.
40636         * lib/string_.h [__DECC]: Likewise.
40637         * lib/time_.h [__DECC]: Likewise.
40638         * lib/wchar_.h [__DECC]: Likewise.
40639         * lib/wctype_.h [__DECC]: Likewise.
40640         * lib/inttypes_.h [__DECC]: Likewise.
40641         Reported by Albert Chin <china@thewrittenword.com> in
40642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40643
40644 2007-04-04  Eric Blake  <ebb9@byu.net>
40645
40646         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40647         1.5.x.
40648
40649 2007-04-04  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40652         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40653
40654 2007-04-04  Bruno Haible  <bruno@clisp.org>
40655
40656         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40657         results for "%010a" of Infinity and NaN.
40658         * tests/test-vasprintf-posix.c (test_function): Likewise.
40659         * tests/test-snprintf-posix.h (test_function): Likewise.
40660         * tests/test-sprintf-posix.h (test_function): Likewise.
40661         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40662         * tests/test-printf-posix.h (test_function): Likewise.
40663         * tests/test-fprintf-posix.out: Update.
40664         Needed for FreeBSD 6.1.
40665
40666 2007-04-04  Bruno Haible  <bruno@clisp.org>
40667
40668         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40669         directly used by the gnulib modules nor by gnulib-tool.
40670
40671 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40672
40673         * DEPENDENCIES: Give overall description of version dependency
40674         desirability.  Use more-typical names for apps.
40675         Add shell, coreutils, diffutils, grep, tar, gzip.
40676
40677 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40678
40679         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40680
40681 2007-04-04  Karl Berry  <karl@gnu.org>
40682
40683         * MODULES.html.sh (func_module): missing '.
40684
40685 2007-04-03  Bruno Haible  <bruno@clisp.org>
40686
40687         * modules/argmatch-tests (Makefile.am): New variable
40688         test_argmatch_LDADD.
40689         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40690         * modules/array-list-tests (Makefile.am): New variable
40691         test_array_list_LDADD.
40692         * modules/array-oset-tests (Makefile.am): New variable
40693         test_array_oset_LDADD.
40694         * modules/avltree-list-tests (Makefile.am): New variable
40695         test_avltree_list_LDADD.
40696         * modules/avltree-oset-tests (Makefile.am): New variable
40697         test_avltree_oset_LDADD.
40698         * modules/avltreehash-list-tests (Makefile.am): New variable
40699         test_avltreehash_list_LDADD.
40700         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40701         test_canonicalize_lgpl_LDADD.
40702         * modules/carray-list-tests (Makefile.am): New variable
40703         test_carray_list_LDADD.
40704         * modules/dirname-tests (Makefile.am): New variable
40705         test_dirname_LDADD.
40706         * modules/linked-list-tests (Makefile.am): New variable
40707         test_linked_list_LDADD.
40708         * modules/linkedhash-list-tests (Makefile.am): New variable
40709         test_linkedhash_list_LDADD.
40710         * modules/rbtree-list-tests (Makefile.am): New variable
40711         test_rbtree_list_LDADD.
40712         * modules/rbtree-oset-tests (Makefile.am): New variable
40713         test_rbtree_oset_LDADD.
40714         * modules/rbtreehash-list-tests (Makefile.am): New variable
40715         test_rbtreehash_list_LDADD.
40716         * modules/xvasprintf-tests (Makefile.am): New variable
40717         test_xvasprintf_LDADD.
40718         Reported by Eric Blake.
40719
40720 2007-04-03  Eric Blake  <ebb9@byu.net>
40721
40722         * DEPENDENCIES: Weaken m4 requirements.
40723
40724 2007-04-03  Bruno Haible  <bruno@clisp.org>
40725
40726         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40727         * modules/isnanl-tests (configure.ac): Likewise.
40728
40729 2007-04-03  Ben Pfaff  <blp@gnu.org>
40730
40731         * modules/iconv_open: Add $(srcdir)/ to source directory
40732         references in Makefile fragments that call gperf, to fix VPATH
40733         builds.
40734
40735 2007-04-03  Bruno Haible  <bruno@clisp.org>
40736
40737         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40738         * lib/ldexpl.c: Undo last change.
40739
40740 2007-04-03  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/printf-frexpl (Depends-on): Undo last change.
40743         (Files): Add m4/ldexpl.m4.
40744
40745 2007-04-03  Bruno Haible  <bruno@clisp.org>
40746
40747         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40748         * modules/isnanl (Link): New section.
40749
40750         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40751         * modules/frexp (Link): New section.
40752
40753         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40754         * modules/frexpl (Link): New section.
40755
40756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40757         * modules/ldexpl (Link): New section.
40758
40759 2007-04-03  Bruno Haible  <bruno@clisp.org>
40760
40761         * modules/TEMPLATE-EXTENDED: New file.
40762         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40763
40764 2007-04-03  Bruno Haible  <bruno@clisp.org>
40765
40766         * DEPENDENCIES: New file.
40767         Suggested by Simon Josefsson.
40768
40769 2007-04-03  Bruno Haible  <bruno@clisp.org>
40770
40771         * doc/gnulib.texi: Escape @.
40772
40773 2007-04-03  James Youngman  <jay@gnu.org>
40774         and Paul Eggert  <eggert@cs.ucla.edu>
40775
40776         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40777         birthtime on all systems that have birthtime, not just those which
40778         use st_birthtimensec rather than st_birthtim.  Putting zero in
40779         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40780         that the birth time is not available for files on an NFS mount.
40781
40782 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40783
40784         * modules/memxor: Move back from crypto/, suggested by Bruno.
40785         * modules/crypto/hmac-sha1: Fix memxor dependency.
40786
40787         * modules/crypto/gc: Moved from ../.
40788
40789 2007-04-02  Eric Blake  <ebb9@byu.net>
40790
40791         * lib/ldexpl.c (includes): Avoid libm.
40792
40793         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40794
40795 2007-04-02  Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40798         on IRIX.
40799
40800 2007-04-02  Bruno Haible  <bruno@clisp.org>
40801
40802         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40803         x86 or x86_64 platforms running MacOS X.
40804         Reported by Ryan Schmidt <@ryandesign.com>.
40805
40806 2007-04-02  Bruno Haible  <bruno@clisp.org>
40807
40808         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40809         i386.
40810
40811 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40812
40813         * modules/crypto/arcfour: Moved from ../.
40814         * modules/crypto/arcfour-tests: Moved from ../.
40815         * modules/crypto/arctwo: Moved from ../.
40816         * modules/crypto/arctwo-tests: Moved from ../.
40817         * modules/crypto/des: Moved from ../.
40818         * modules/crypto/des-tests: Moved from ../.
40819         * modules/crypto/gc-arcfour: Moved from ../.
40820         * modules/crypto/gc-arcfour-tests: Moved from ../.
40821         * modules/crypto/gc-arctwo: Moved from ../.
40822         * modules/crypto/gc-arctwo-tests: Moved from ../.
40823         * modules/crypto/gc-des: Moved from ../.
40824         * modules/crypto/gc-des-tests: Moved from ../.
40825         * modules/crypto/gc-hmac-md5: Moved from ../.
40826         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40827         * modules/crypto/gc-hmac-sha1: Moved from ../.
40828         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40829         * modules/crypto/gc-md2: Moved from ../.
40830         * modules/crypto/gc-md2-tests: Moved from ../.
40831         * modules/crypto/gc-md4: Moved from ../.
40832         * modules/crypto/gc-md4-tests: Moved from ../.
40833         * modules/crypto/gc-md5: Moved from ../.
40834         * modules/crypto/gc-md5-tests: Moved from ../.
40835         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40836         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40837         * modules/crypto/gc-random: Moved from ../.
40838         * modules/crypto/gc-rijndael: Moved from ../.
40839         * modules/crypto/gc-rijndael-tests: Moved from ../.
40840         * modules/crypto/gc-sha1: Moved from ../.
40841         * modules/crypto/gc-sha1-tests: Moved from ../.
40842         * modules/crypto/gc-tests: Moved from ../.
40843         * modules/crypto/hmac-md5: Moved from ../.
40844         * modules/crypto/hmac-md5-tests: Moved from ../.
40845         * modules/crypto/hmac-sha1: Moved from ../.
40846         * modules/crypto/hmac-sha1-tests: Moved from ../.
40847         * modules/crypto/md2: Moved from ../.
40848         * modules/crypto/md2-tests: Moved from ../.
40849         * modules/crypto/md4: Moved from ../.
40850         * modules/crypto/md4-tests: Moved from ../.
40851         * modules/crypto/md5: Moved from ../.
40852         * modules/crypto/md5-tests: Moved from ../.
40853         * modules/crypto/memxor: Moved from ../.
40854         * modules/crypto/rijndael: Moved from ../.
40855         * modules/crypto/rijndael-tests: Moved from ../.
40856         * modules/crypto/sha1: Moved from ../.
40857
40858 2007-03-30  James Youngman  <jay@gnu.org>
40859
40860         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40861         rename() to change the ctime of a file (because ctime is unaffected
40862         by rename on jfs2 on AIX 5.1).
40863         (main): Start by doing cleanup, in case a previous run failed leaving
40864         test files behind.
40865
40866 2007-03-31  Bruno Haible  <bruno@clisp.org>
40867
40868         Support old proprietary implementations of iconv.
40869         * modules/iconv_open: New file.
40870         * lib/iconv_.h: New file.
40871         * m4/iconv_h.m4: New file.
40872         * lib/iconv_open.c: New file.
40873         * lib/iconv_open-aix.gperf: New file.
40874         * lib/iconv_open-hpux.gperf: New file.
40875         * lib/iconv_open-irix.gperf: New file.
40876         * lib/iconv_open-osf.gperf: New file.
40877         * m4/iconv_open.m4: New file.
40878         * modules/linebreak (Depends-on): Add iconv_open.
40879         * modules/striconv (Depends-on): Likewise.
40880         * modules/striconveh (Depends-on): Likewise.
40881         * modules/unicodeio (Depends-on): Likewise.
40882         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40883         (iconv_t)(-1).
40884         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40885         conversion if cd is (iconv_t)(-1).
40886         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40887         is not possible.
40888
40889 2007-03-31  Bruno Haible  <bruno@clisp.org>
40890
40891         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40892         work on Solaris either. Protect also second use of "autodetect_jp".
40893
40894 2007-03-31  Bruno Haible  <bruno@clisp.org>
40895
40896         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40897         the function is not present.
40898
40899 2007-03-31  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40902         the function is not present.
40903
40904 2007-03-31  Bruno Haible  <bruno@clisp.org>
40905
40906         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40907         a bug in HP-UX iconv_open().
40908
40909 2007-03-31  Bruno Haible  <bruno@clisp.org>
40910
40911         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40912         (Mathematics <math.h>): New section, add fpieee.
40913         (Input/output <stdio.h>): Add fseterr.
40914         (Mathematics <math.h>): New section, add printf-frexp.
40915         (Container data structures): Add sublist.
40916         (Core language properties): Add fpucw, inline.
40917         (Functions for greatest-width integer types <inttypes.h>): Add
40918         imaxabs, imaxdiv, inttypes.
40919         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40920         isnanl-nolibm, ldexp.
40921         (Mathematics <math.h>): New section, add printf-frexpl.
40922         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40923         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40924         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40925         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40926         (Unicode string functions): Add unistr/u*-mbtoucr.
40927         (Java): Add javacomp-script, javaexec-script.
40928         (C#): Add csharpcomp-script, csharpexec-script.
40929         (Support for building libraries and executables): Add havelib,
40930         relocatable-*.
40931         (Support for maintaining and releasing projects): Renamed from
40932         'Support for maintaining and release projects'. Add announce-gen.
40933
40934 2007-03-31  Bruno Haible  <bruno@clisp.org>
40935
40936         * README: Talk primarily about git.
40937         (git and CVS): Renamed from CVS.
40938         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40939         gnulib is available through git.
40940         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40941
40942 2007-03-30  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40945         * lib/poll_.h: Likewise.
40946         * lib/stat_.h: Likewise.
40947         * lib/sys_time_.h: Likewise.
40948         * lib/sysexit_.h: Likewise.
40949         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40950         * lib/stdbool_.h: Likewise.
40951         * lib/byteswap_.h: Add double-inclusion guard.
40952
40953 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40954
40955         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40956
40957 2007-03-30  Karl Berry  <karl@gnu.org>
40958
40959         * config/srclist-update: double space after USA in the license
40960         substitution, since that's how it's usually (?) written.
40961
40962 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40963
40964         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40965         reported by Bruno Haible.
40966
40967 2007-03-29  Bruno Haible  <bruno@clisp.org>
40968
40969         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40970         a bug in AIX iconv().
40971
40972 2007-03-29  Bruno Haible  <bruno@clisp.org>
40973
40974         * modules/ldexpl-tests: New file.
40975         * tests/test-ldexpl.c: New file.
40976
40977 2007-03-29  Bruno Haible  <bruno@clisp.org>
40978
40979         * lib/ldexpl.c: Include fpucw.h.
40980         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40981         multiplication.
40982         * modules/ldexpl (Depends-on): Add fpucw.
40983
40984 2007-03-29  Bruno Haible  <bruno@clisp.org>
40985
40986         * modules/ldexpl: New file.
40987         * m4/ldexpl.m4: New file.
40988         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40989         set.
40990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40991         REPLACE_LDEXPL.
40992         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40993         REPLACE_LDEXPL.
40994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40995         gl_FUNC_LDEXPL_WORKS.
40996         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40997         * modules/mathl (Files): Remove lib/ldexpl.c.
40998         (Depends-on): Add ldexpl.
40999
41000 2007-03-29  Bruno Haible  <bruno@clisp.org>
41001
41002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41003
41004 2007-03-29  Bruno Haible  <bruno@clisp.org>
41005
41006         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41007         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41008         and possibly also HP-UX.
41009         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41010         work on AIX, IRIX, HP-UX, OSF/1.
41011         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41012         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41013         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41014         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41015         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41016         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41017
41018 2007-03-29  Bruno Haible  <bruno@clisp.org>
41019
41020         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41021
41022 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41023
41024         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41025         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41026
41027 2007-03-29  Eric Blake  <ebb9@byu.net>
41028
41029         * lib/acl-internal.h: Remove redundant include.
41030         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41031         Cygwin when a file is locked.
41032
41033 2007-03-29  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41036         file.
41037         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41038
41039 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41040
41041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41042         try to remove a parent directory if the child couldn't be removed
41043         (except for the first rmdir, which could fail because the child
41044         doesn't exist).  Problem reported by Jeff Blaine in
41045         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41046
41047 2007-03-28  Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/striconveh.c (utf8conv_carefully): New function.
41050         (mem_cd_iconveh_internal): Invoke it.
41051
41052 2007-03-28  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41055         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41056         input.
41057         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41058         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41059         unistr/u8-uctomb.
41060
41061 2007-03-28  Bruno Haible  <bruno@clisp.org>
41062
41063         * modules/unistr/u8-mbtoucr: New file.
41064         * lib/unistr/u8-mbtoucr.c: New file.
41065         * modules/unistr/u16-mbtoucr: New file.
41066         * lib/unistr/u16-mbtoucr.c: New file.
41067         * modules/unistr/u16-mbtoucr: New file.
41068         * lib/unistr/u16-mbtoucr.c: New file.
41069         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41070
41071 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41072             Bruno Haible  <bruno@clisp.org>
41073
41074         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41075         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41076         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41077
41078         * m4/stdio_h.m4: Add stubs for vasprintf too.
41079
41080         * modules/stdio: Support vasprintf in sed command.
41081
41082         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41083         vasprintf.h.  Add stdio module indicator.
41084
41085         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41086         vasprintf.h.
41087
41088         * lib/vasprintf.h: File removed.
41089
41090         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41091         * lib/vasprintf.c: Ditto.
41092         * lib/xvasprintf.c: Ditto.
41093         * tests/test-vasprintf-posix.c: Ditto.
41094         * tests/test-vasprintf.c: Ditto.
41095
41096 2007-03-27  Bruno Haible  <bruno@clisp.org>
41097
41098         Make vasnprintf multithread-safe.
41099         * lib/vasnprintf.c (decimal_point_char): New function.
41100         (VASNPRINTF): Use it.
41101         Suggested by Simon Josefsson.
41102
41103 2007-03-27  Eric Blake  <ebb9@byu.net>
41104
41105         Support sub-second birthtime on cygwin.
41106         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41107         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41108         (get_stat_birthtime): Also work with st_birthtim.
41109
41110 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41111
41112         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41113         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41114         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41115         (get_stat_birthtime_ns): Simplify compile-time tests.
41116         (get_stat_birthtime): Change the API to look like
41117         get_stat_mtime etc., except return a negative tv_nsec on error.
41118         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41119         Don't check for "spare" fields.
41120         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41121         or for struct stat.st_birthtime, as these tests aren't used.
41122         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41123
41124 2007-03-27  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/stat-time.h: Include <sys/stat.h>.
41127
41128 2007-03-27  James Youngman  <jay@gnu.org>
41129
41130         * lib/stat-time.h (get_stat_birthtime): New function for
41131           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41132         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41133           and its variants.
41134         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41135         * modules/stat-time-test: New file.
41136         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41137
41138 2007-03-26  Bruno Haible  <bruno@clisp.org>
41139
41140         Better support of signalling NaNs.
41141         * lib/atanl.c: Include isnanl.h.
41142         (atanl): Perform test for NaN at the beginning of the function and
41143         through a call to isnanl.
41144         * lib/cosl.c: Include isnanl.h.
41145         (cosl): Perform test for NaN at the beginning of the function and
41146         through a call to isnanl.
41147         * lib/ldexpl.c: Include isnanl.h.
41148         (ldexpl): Perform test for NaN through a call to isnanl.
41149         * lib/logl.c: Include isnanl.h.
41150         (logl): Perform test for NaN at the beginning of the function and
41151         through a call to isnanl.
41152         * lib/sinl.c: Include isnanl.h.
41153         (sinl): Perform test for NaN at the beginning of the function and
41154         through a call to isnanl.
41155         * lib/sqrtl.c: Include isnanl.h.
41156         (sqrtl): Perform test for NaN at the beginning of the function and
41157         through a call to isnanl.
41158         * lib/tanl.c: Include isnanl.h.
41159         (tanl): Perform test for NaN at the beginning of the function and
41160         through a call to isnanl.
41161         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41162         * modules/mathl (Depends-on): Add isnanl.
41163
41164 2007-03-26  Eric Blake  <ebb9@byu.net>
41165
41166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41167         regression in logic sense of previous patch.
41168
41169 2007-03-26  Bruno Haible  <bruno@clisp.org>
41170
41171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41172         unportable shell command "if ! ...".
41173         Reported by Ralf Wildenhues.
41174
41175 2007-03-25  Bruno Haible  <bruno@clisp.org>
41176
41177         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41178         <sysexits.h> file, and only add EX_CONFIG.
41179         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41180         absolute file name and whether it is sufficient. Substitute also
41181         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41182         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41183         ABSOLUTE_SYSEXITS_H into sysexits.h.
41184
41185 2007-03-25  Bruno Haible  <bruno@clisp.org>
41186
41187         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41188         hints is NULL.
41189
41190 2007-03-25  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41193         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41194
41195 2007-03-25  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/vasnprintf.c: Include langinfo.h.
41198         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41199         multithread-safe.
41200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41209         Reported by Simon Josefsson.
41210
41211 2007-03-25  Bruno Haible  <bruno@clisp.org>
41212
41213         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41214         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41215         * modules/vasnprintf (Depends-on): Add stdint.
41216
41217 2007-03-25  Bruno Haible  <bruno@clisp.org>
41218
41219         * modules/fpieee: New file.
41220         * m4/fpieee.m4: New file.
41221         * modules/isnan-nolibm (Depends-on): Add fpieee.
41222         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41223         * modules/isnanl (Depends-on): Add fpieee.
41224
41225 2007-03-25  Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41228
41229 2007-03-25  Bruno Haible  <bruno@clisp.org>
41230
41231         Avoid test failures on IRIX 6.5.
41232         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41233         (main): Use it.
41234         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41235         macros.
41236         (main): Use them.
41237
41238 2007-03-25  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41241         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41242         exists but doesn't work.
41243         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41244         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41246         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41247
41248 2007-03-25  Bruno Haible  <bruno@clisp.org>
41249
41250         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41251         returns inf. Needed on IRIX 6.5.
41252
41253 2007-03-25  Bruno Haible  <bruno@clisp.org>
41254
41255         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41256         (main): Use isnanl instead of x != x idiom.
41257         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41258
41259         * tests/test-frexp.c: Include isnan.h.
41260         (main): Use isnan instead of x != x idiom.
41261         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41262
41263 2007-03-25  Bruno Haible  <bruno@clisp.org>
41264
41265         * tests/test-frexp.c (NaN): New function/macro.
41266         (main): Use it instead of 0.0 / 0.0.
41267         * tests/test-isnan.c (NaN): New function/macro.
41268         (main): Use it instead of 0.0 / 0.0.
41269         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41270         (test_function): Use it instead of 0.0 / 0.0.
41271         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41272         (test_function): Use it instead of 0.0 / 0.0.
41273         * tests/test-snprintf-posix.h (NaN): New function/macro.
41274         (test_function): Use it instead of 0.0 / 0.0.
41275         * tests/test-sprintf-posix.h (NaN): New function/macro.
41276         (test_function): Use it instead of 0.0 / 0.0.
41277         * tests/test-fprintf-posix.h (NaN): New function/macro.
41278         (test_function): Use it instead of 0.0 / 0.0.
41279         * tests/test-printf-posix.h (NaN): New function/macro.
41280         (test_function): Use it instead of 0.0 / 0.0.
41281
41282         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41283
41284 2007-03-25  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41287
41288 2007-03-25  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/regexec.c (merge_state_with_log): Make static.
41291
41292 2007-03-25  Bruno Haible  <bruno@clisp.org>
41293
41294         * lib/trigl.c (kernel_rem_pio2): Make static.
41295
41296 2007-03-25  Bruno Haible  <bruno@clisp.org>
41297
41298         * lib/sincosl.c (sincosl_table): Make static.
41299
41300 2007-03-25  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41303         if the compiler does not support C99.
41304
41305 2007-03-25  Bruno Haible  <bruno@clisp.org>
41306
41307         * modules/time (Makefile.am): Ensure all rule action lines start with a
41308         tab.
41309
41310 2007-03-24  Bruno Haible  <bruno@clisp.org>
41311
41312         * modules/tsearch-tests: New file.
41313         * tests/test-tsearch.sh: New file.
41314         * tests/test-tsearch.c: New file, mostly copied from glibc.
41315
41316         * modules/search-tests: New file.
41317         * tests/test-search.c: New file.
41318
41319         * modules/search: New file.
41320         * lib/search_.h: New file, incorporating lib/tsearch.h.
41321         * m4/search_h.m4: New file.
41322         * lib/tsearch.h: Remove file.
41323         * lib/tsearch.c: Include search.h instead of tsearch.h.
41324         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41325         HAVE_TSEARCH.
41326         * modules/tsearch (Files): Remove lib/tsearch.h.
41327         (Depends-on): Add search.
41328         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41329         (Include): Change tsearch.h into search.h.
41330
41331 2007-03-24  Bruno Haible  <bruno@clisp.org>
41332
41333         * modules/fpucw: New file.
41334         * lib/fpucw.h: New file.
41335         * lib/frexp.c: Include fpucw.h.
41336         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41337         (FUNC): Use them.
41338         * lib/printf-frexp.c: Include fpucw.h.
41339         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41340         (FUNC): Use them.
41341         * lib/vasnprintf.c: Include fpucw.h.
41342         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41343         'long double' calculations.
41344         * tests/test-frexpl.c: Include fpucw.h.
41345         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41346         * tests/test-printf-frexpl.c: Include fpucw.h.
41347         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41348         * modules/frexpl (Depends-on): Add fpucw.
41349         * modules/printf-frexpl (Depends-on): Likewise.
41350         * modules/fprintf-posix (Depends-on): Likewise.
41351         * modules/snprintf-posix (Depends-on): Likewise.
41352         * modules/sprintf-posix (Depends-on): Likewise.
41353         * modules/vasnprintf-posix (Depends-on): Likewise.
41354         * modules/vasprintf-posix (Depends-on): Likewise.
41355         * modules/vfprintf-posix (Depends-on): Likewise.
41356         * modules/vsnprintf-posix (Depends-on): Likewise.
41357         * modules/vsprintf-posix (Depends-on): Likewise.
41358         * modules/frexpl-tests (Depends-on): Likewise.
41359         * modules/printf-frexpl-tests (Depends-on): Likewise.
41360
41361 2007-03-24  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/float+.h: New file.
41364         * lib/isnan.c: Include float+.h.
41365         (SIZE): New macro.
41366         (FUNC): Compare only SIZE bytes of the value.
41367         * lib/vasnprintf.c: Include float+.h.
41368         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41369         SIZEOF_LDBL or SIZEOF_DBL bytes.
41370         * modules/isnan-nolibm (Files): Add lib/float+.h.
41371         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41372         * modules/isnanl (Files): Add lib/float+.h.
41373         * modules/vasnprintf (Files): Add lib/float+.h.
41374
41375 2007-03-24  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41378         include isnanl-nolibm.h.
41379
41380 2007-03-24  Bruno Haible  <bruno@clisp.org>
41381
41382         * tests/test-read-file.c (main): Don't produce spurious output for
41383         expected situations. Make the test fail if it encountered unexpected
41384         results.
41385
41386 2007-03-24  Bruno Haible  <bruno@clisp.org>
41387
41388         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41389         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41390
41391 2007-03-24  Bruno Haible  <bruno@clisp.org>
41392
41393         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41394
41395 2007-03-24  Bruno Haible  <bruno@clisp.org>
41396
41397         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41398         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41399
41400         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41401         * modules/utf8-ucs4: Turn into a symbolic link to module
41402         unistr/u8-mbtouc.
41403
41404         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41405         utf8-ucs4-unsafe.
41406         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41407         unistr/u8-mbtouc-unsafe.
41408
41409         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41410         * modules/utf16-ucs4: Turn into a symbolic link to module
41411         unistr/u16-mbtouc.
41412
41413         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41414         utf16-ucs4-unsafe.
41415         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41416         unistr/u16-mbtouc-unsafe.
41417
41418         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41419         * modules/ucs4-utf8: Turn into a symbolic link to module
41420         unistr/u8-ubtomb.
41421
41422         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41423         * modules/ucs4-utf16: Turn into a symbolic link to module
41424         unistr/u16-ubtomb.
41425
41426 2007-03-24  Bruno Haible  <bruno@clisp.org>
41427
41428         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41429         Enable the function only if HAVE_INLINE.
41430         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41431         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41432         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41433         Enable the function only if HAVE_INLINE.
41434         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41435         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41436         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41437         Enable the function only if HAVE_INLINE.
41438         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41439         Enable the function only if HAVE_INLINE.
41440         * modules/utf8-ucs4: Update.
41441         * modules/utf8-ucs4-unsafe: Update.
41442         * modules/utf16-ucs4: Update.
41443         * modules/utf16-ucs4-unsafe: Update.
41444         * modules/ucs4-utf8: Update.
41445         * modules/ucs4-utf16: Update.
41446
41447 2007-03-24  Bruno Haible  <bruno@clisp.org>
41448
41449         * lib/utf8-ucs4.h: Remove file.
41450         * lib/utf8-ucs4-unsafe.h: Remove file.
41451         * lib/utf16-ucs4.h: Remove file.
41452         * lib/utf16-ucs4-unsafe.h: Remove file.
41453         * lib/ucs4-utf8.h: Remove file.
41454         * lib/ucs4-utf16.h: Remove file.
41455         * lib/unistr.h: Include their previous contents.
41456         * m4/utf-ucs4.m4: Remove file.
41457         * m4/ucs4-utf.m4: Remove file.
41458         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41459         (Depends-on): Add unistr/base.
41460         (configure.ac): Remove gl_UTF_UCS4.
41461         (Makefile.am): Update.
41462         (Include): Change to unistr.h.
41463         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41464         (Depends-on): Add unistr/base.
41465         (configure.ac): Remove gl_UTF_UCS4.
41466         (Makefile.am): Update.
41467         (Include): Change to unistr.h.
41468         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41469         (Depends-on): Add unistr/base.
41470         (configure.ac): Remove gl_UTF_UCS4.
41471         (Makefile.am): Update.
41472         (Include): Change to unistr.h.
41473         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41474         (Depends-on): Add unistr/base.
41475         (configure.ac): Remove gl_UTF_UCS4.
41476         (Makefile.am): Update.
41477         (Include): Change to unistr.h.
41478         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41479         (Depends-on): Add unistr/base.
41480         (configure.ac): Remove gl_UCS4_UTF.
41481         (Makefile.am): Update.
41482         (Include): Change to unistr.h.
41483         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41484         (Depends-on): Add unistr/base.
41485         (configure.ac): Remove gl_UCS4_UTF.
41486         (Makefile.am): Update.
41487         (Include): Change to unistr.h.
41488         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41489         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41490         utf8-ucs4-unsafe.h.
41491         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41492         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41493         utf16-ucs4-unsafe.h.
41494         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41495         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41496         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41497         * lib/unistr/u8-strchr.c: Likewise.
41498         * lib/unistr/u8-strrchr.c: Likewise.
41499         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41500         * lib/unistr/u16-strchr.c: Likewise.
41501         * lib/unistr/u16-strrchr.c: Likewise.
41502         * lib/striconveh.c: Update.
41503         * lib/linebreak.c: Update.
41504
41505 2007-03-24  Bruno Haible  <bruno@clisp.org>
41506
41507         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41508         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41509
41510 2007-03-22  Bruno Haible  <bruno@clisp.org>
41511
41512         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41513
41514 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41515
41516         * MODULES.html.sh (File system functions): New module write-any-file.
41517         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41518         * m4/write-any-file.m4: New files.
41519
41520 2007-03-23  Eric Blake  <ebb9@byu.net>
41521
41522         * gnulib-tool: Rearrange space-tab sequences, since some editors
41523         like to eat them.
41524
41525 2007-03-23  Eric Blake  <ebb9@byu.net>
41526
41527         * lib/version-etc.c (version_etc_va): Update license wording to
41528         be more concise.  Recommended by Richard Stallman.
41529
41530 2007-03-22  Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/poll.c (MSG_PEEK): New fallback definition.
41533
41534 2007-03-22  Bruno Haible  <bruno@clisp.org>
41535
41536         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41537         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41538         (main): Update.
41539         Fixes a compilation error on BeOS.
41540
41541 2007-03-22  Bruno Haible  <bruno@clisp.org>
41542
41543         * modules/frexpl-tests: New file.
41544         * tests/test-frexpl.c: New file.
41545
41546         * modules/frexpl: New file.
41547         * m4/frexpl.m4: New file.
41548         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41549         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41551         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41552         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41553         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41554
41555 2007-03-22  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/frexpl.c: Share code with lib/frexp.c.
41558         * modules/mathl (Files): Add lib/frexp.c.
41559         (Depends-on): Add isnanl-nolibm.
41560
41561 2007-03-22  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/printf-frexp (Files): Add m4/frexp.m4.
41564         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41565         only if the found frexp function actually works.
41566
41567 2007-03-22  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/frexp.c: Remove older implementation that uses divisions.
41570
41571 2007-03-21  Bruno Haible  <bruno@clisp.org>
41572
41573         * modules/frexp-tests: New file.
41574         * tests/test-frexp.c: New file.
41575
41576         * modules/frexp: New file.
41577         * lib/frexp.c: New file.
41578         * m4/frexp.m4: New file.
41579         * lib/math_.h (frexp): New declaration.
41580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41581         REPLACE_FREXP.
41582         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41583
41584 2007-03-21  Bruno Haible  <bruno@clisp.org>
41585
41586         * modules/isnanl-tests: New file.
41587         * tests/test-isnanl.c: New file.
41588
41589         * modules/isnanl: New file.
41590         * lib/isnanl.h: New file.
41591         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41592         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41593         gl_FUNC_ISNANL_WORKS.
41594         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41595         New macros.
41596
41597 2007-03-21  Bruno Haible  <bruno@clisp.org>
41598
41599         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41600         lib/isnanl.h.
41601         (Include): Update.
41602         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41603         * lib/vasnprintf.c: Update.
41604         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41605         tests/test-isnanl.h, remove tests/test-isnanl.c.
41606         (Makefile.am): Update.
41607         * tests/test-isnanl-nolibm.c: New file.
41608         * tests/test-isnanl.h: New file.
41609         * tests/test-isnanl.c: Remove file.
41610
41611 2007-03-21  Jim Meyering  <jim@meyering.net>
41612
41613         When trying to open ".", treat ESTALE like EACCES.
41614         * lib/savewd.c (savewd_save): Resort to forking not just upon
41615         failure with EACCES, but also when errno is ESTALE.
41616
41617 2007-03-20  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41620         Needed on AIX 5.1. Reported by Matthew Woehlke.
41621
41622 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41623
41624         Suggestions by Bruno Haible:
41625         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41626         our own.
41627         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41628         * modules/acl (Depends-on): Add gettext.
41629
41630 2007-03-19  Bruno Haible  <bruno@clisp.org>
41631
41632         * modules/iconvme: Remove file.
41633         * lib/iconvme.h: Remove file.
41634         * lib/iconvme.c: Remove file.
41635         * m4/iconvme.m4: Remove file.
41636
41637 2007-03-19  Bruno Haible  <bruno@clisp.org>
41638
41639         * doc/relocatable-maint.texi: Break long shell script line.
41640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41641
41642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41643
41644         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41645         handle file_has_acl.
41646         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41647         * lib/acl.c: Move header inclusions and related macro defns into
41648         lib/acl-internal.h.
41649         (S_ISLNK): Remove defn, since that's now done for us.
41650         (file_has_acl): Move to lib/file-has-acl.c.
41651         Call acl_trivial if available.  This is the crucial part of the fix.
41652         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41653         shared within the library.  Rewrite a bit, partly to make it compatible
41654         with the GNU coding style.
41655         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41656         Remove unnecessary double-quotes.
41657         Don't test for acl_to_text; the build will catch that.
41658         Replace acl_entries if it doesn't exist and it is needed.
41659         Check for -lsec and acl_trivial (as used on Solaris 10).
41660         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41661         lib/file-has-acl.c.
41662         (Depends-on): Add sys_stat, for S_ISLNK.
41663
41664 2007-03-19  Ben Pfaff  <blp@gnu.org>
41665
41666         * doc/gnulib.texi: Fix typos.
41667         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41668
41669 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41670
41671         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41672         If size is zero here, buf must be zero.
41673
41674 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41675
41676         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41677         <bruno@clisp.org>.
41678
41679 2007-03-18  Bruno Haible  <bruno@clisp.org>
41680
41681         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41682         Suggested by Eric Blake.
41683
41684 2007-03-18  Ben Pfaff  <blp@gnu.org>
41685
41686         * doc/relocatable.texi: Recommend using as prefix a directory
41687         that does not exist and will never be created.  Based on
41688         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41689         and others.
41690
41691 2007-03-17  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/fchownat.c: Include lchown.h.
41694
41695 2007-03-17  Bruno Haible  <bruno@clisp.org>
41696
41697         Fix endless loop when the given allocated size was > INT_MAX.
41698         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41699         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41700         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41701         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41702         * lib/sprintf.c (sprintf): Likewise.
41703
41704 2007-03-17  Bruno Haible  <bruno@clisp.org>
41705
41706         * tests/test-argp-2.sh (func_compare): Output a context diff.
41707
41708 2007-03-17  Bruno Haible  <bruno@clisp.org>
41709
41710         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41711         locale's decimal-point character.
41712
41713 2007-03-17  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41716         before comparing it. Needed because on some platforms (e.g. x86) a
41717         'long double' occupies less bytes than sizeof (long double).
41718
41719 2007-03-17  Bruno Haible  <bruno@clisp.org>
41720
41721         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41722         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41723         * tests/test-getaddrinfo.c (simple): Likewise.
41724         * tests/test-read-file.c (main): Likewise.
41725
41726 2007-03-17  Bruno Haible  <bruno@clisp.org>
41727
41728         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41729
41730 2007-03-17  Bruno Haible  <bruno@clisp.org>
41731
41732         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41733         unused variable.
41734
41735 2007-03-17  Bruno Haible  <bruno@clisp.org>
41736
41737         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41738         * tests/test-c-strncasecmp.c: Likewise.
41739
41740 2007-03-17  Bruno Haible  <bruno@clisp.org>
41741
41742         * modules/stdlib (Depends-on): Add unistd.
41743         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41744         Needed for MacOS X 10.3.
41745
41746 2007-03-17  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41749
41750 2007-03-17  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41753
41754 2007-03-17  Bruno Haible  <bruno@clisp.org>
41755
41756         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41757         to reflect files copied from gnulib (with or without modifications).
41758         Suggested by Jim Meyering.
41759
41760 2007-03-17  Eric Blake  <ebb9@byu.net>
41761
41762         * NEWS: Document stdlib change from 2007-02-18.
41763
41764 2007-03-17  Jim Meyering  <jim@meyering.net>
41765
41766         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41767         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41768         someone uses a name containing shell meta-characters.
41769         Reported by Alfred M. Szmidt.
41770
41771         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41772
41773 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41774
41775         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41776         and copy gettext configuration files only if configure.ac contains
41777         a use of AM_GNU_GETTEXT_VERSION.
41778
41779 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41780
41781         * build-aux/bootstrap (gnulib_name): New variable.
41782         (gnulib_tool_options): Use it.
41783
41784 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41785
41786         * tests/test-des.c: Use new namespace.
41787
41788 2007-03-15  Bruno Haible  <bruno@clisp.org>
41789
41790         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41791         Reported by James Youngman <jay@gnu.org>.
41792
41793 2007-03-15  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41796         declared prototype. Needed with cc on OSF/1 5.1.
41797
41798 2007-03-15  Bruno Haible  <bruno@clisp.org>
41799
41800         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41801         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41802         (struct gl_list_implementation): Add dispose_fn argument to the
41803         'create_empty', 'create' methods.
41804         (struct gl_list_impl_base): Add field 'dispose_fn'.
41805         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41806         argument.
41807         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41808         dispose_fn argument.
41809         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41810         dispose_fn on the dropped values.
41811         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41812         dispose_fn argument.
41813         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41814         dropped values.
41815         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41816         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41817         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41818         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41819         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41820         argument.
41821         (gl_tree_list_free): Call dispose_fn on the dropped values.
41822         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41823         the dropped values.
41824         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41825         Add dispose_fn argument.
41826         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41827         Call dispose_fn on the dropped values.
41828         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41829         Add dispose_fn argument.
41830         (gl_sublist_create): Initialize the 'dispose_fn' field.
41831         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41832         * tests/test-array_list.c (main): Update.
41833         * tests/test-carray_list.c (main): Update.
41834         * tests/test-avltree_list.c (main): Update.
41835         * tests/test-rbtree_list.c (main): Update.
41836         * tests/test-avltreehash_list.c (main): Update.
41837         * tests/test-rbtreehash_list.c (main): Update.
41838         * tests/test-linked_list.c (main): Update.
41839         * tests/test-linkedhash_list.c (main): Update.
41840         * tests/test-array_oset.c (main): Update.
41841
41842 2007-03-15  Bruno Haible  <bruno@clisp.org>
41843
41844         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41845         (gl_oset_create_empty): Add dispose_fn argument.
41846         (struct gl_oset_implementation): Add dispose_fn argument to
41847         'create_empty' method.
41848         (struct gl_oset_impl_base): Add dispose_fn field.
41849         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41850         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41851         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41852         values.
41853         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41854         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41855         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41856         dropped value.
41857         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41858         dropped value.
41859         * tests/test-array_oset.c (main): Update.
41860         * tests/test-avltree_oset.c (main): Update.
41861         * tests/test-rbtree_oset.c (main): Update.
41862         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41863
41864 2007-03-13  Bruno Haible  <bruno@clisp.org>
41865
41866         * tests/test-stdbool.c (i): Update after last patch.
41867
41868 2007-03-12  Bruno Haible  <bruno@clisp.org>
41869
41870         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41871         the iswprint macro. Needed on Solaris 2.5.1.
41872
41873 2007-03-12  Bruno Haible  <bruno@clisp.org>
41874
41875         * tests/test-printf-frexp.c (main): Declare x as volatile.
41876
41877 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41878
41879         * doc/gnulib.texi (Build robot for gnulib): New section.
41880
41881 2007-03-12  Jim Meyering  <jim@meyering.net>
41882
41883         * build-aux/bootstrap: New file.
41884         * build-aux/bootstrap.conf: New file, from coreutils.
41885
41886 2007-03-11  Bruno Haible  <bruno@clisp.org>
41887
41888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41889
41890 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41891
41892         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41893         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41894         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41895
41896 2007-03-11  Bruno Haible  <bruno@clisp.org>
41897
41898         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41899         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41900
41901 2007-03-11  Bruno Haible  <bruno@clisp.org>
41902
41903         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41904         formula. Needed for SunPRO C 5.0.
41905
41906 2007-03-11  Bruno Haible  <bruno@clisp.org>
41907
41908         * modules/long-options (Depends-on): Add getopt.
41909
41910 2007-03-11  Bruno Haible  <bruno@clisp.org>
41911
41912         * modules/modechange (Depends-on): Add stdbool.
41913
41914 2007-03-11  Bruno Haible  <bruno@clisp.org>
41915
41916         * modules/i-ring (Depends-on): Add stdbool.
41917
41918 2007-03-11  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/gc-des (Depends-on): Add stdbool.
41921
41922 2007-03-11  Bruno Haible  <bruno@clisp.org>
41923
41924         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41925
41926 2007-03-11  Bruno Haible  <bruno@clisp.org>
41927
41928         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41929
41930 2007-03-11  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41933
41934 2007-03-11  Bruno Haible  <bruno@clisp.org>
41935
41936         * lib/vasnprintf.c (sprintf): Undefine.
41937
41938 2007-03-11  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41941         initializers in SunPRO C and Compaq C compilers.
41942
41943 2007-03-11  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41946         decrementing code ANSI C compliant.
41947
41948 2007-03-11  Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41951         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41952
41953 2007-03-11  Bruno Haible  <bruno@clisp.org>
41954
41955         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41956         <stdbool.h> substitute doesn't pass.
41957
41958 2007-03-11  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41961
41962 2007-03-11  Bruno Haible  <bruno@clisp.org>
41963
41964         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41965         script, for submission to autobuild.josefsson.org.
41966
41967 2007-03-10  Bruno Haible  <bruno@clisp.org>
41968
41969         * modules/canonicalize-lgpl-tests: New file.
41970         * tests/test-canonicalize-lgpl.sh: New file.
41971         * tests/test-canonicalize-lgpl.c: New file.
41972
41973         * modules/c-strcase-tests: New file.
41974         * tests/test-c-strcase.sh: New file.
41975         * tests/test-c-strcasecmp.c: New file.
41976         * tests/test-c-strncasecmp.c: New file.
41977
41978         * modules/atexit-tests: New file.
41979         * tests/test-atexit.sh: New file.
41980         * tests/test-atexit.c: New file.
41981
41982 2007-03-10  Bruno Haible  <bruno@clisp.org>
41983
41984         * tests/test-binary-io.sh: Use temporary filenames that are not so
41985         likely to clash with those of other tests (in a parallel make).
41986         * tests/test-binary-io.c: Likewise.
41987
41988 2007-03-10  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41991         fallback; use #error instead.
41992         Suggested by Simon Josefsson.
41993
41994 2007-03-10  Bruno Haible  <bruno@clisp.org>
41995
41996         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41997         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41998         first and the last.
41999
42000 2007-03-10  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42003
42004 2007-03-10  Bruno Haible  <bruno@clisp.org>
42005
42006         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42007         "make distcheck".
42008         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42009         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42010         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42011
42012 2007-03-10  Bruno Haible  <bruno@clisp.org>
42013
42014         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42015         variable.
42016         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42017         variable.
42018
42019 2007-03-09  Eric Blake  <ebb9@byu.net>
42020         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42021
42022         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42023         types are not being provided by gnulib.
42024         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42025         types are supported.
42026
42027 2007-03-10  Bruno Haible  <bruno@clisp.org>
42028
42029         * lib/stdio_.h (__attribute__): New macro.
42030         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42031         vsprintf): Specify __attribute__ __format__ for GCC.
42032         Suggested by Eric Blake.
42033
42034 2007-03-09  Bruno Haible  <bruno@clisp.org>
42035
42036         * modules/printf-posix-tests: New file.
42037         * tests/test-printf-posix.sh: New file.
42038         * tests/test-printf-posix.c: New file.
42039
42040         * modules/printf-posix: New file.
42041         * lib/printf.c: New file.
42042         * m4/printf-posix-rpl.m4: New file.
42043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42044         REPLACE_PRINTF.
42045         * lib/stdio_.h (printf): New declaration.
42046         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42047         ____strfmon____): New macros.
42048         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42049         REPLACE_PRINTF.
42050
42051 2007-03-09  Bruno Haible  <bruno@clisp.org>
42052
42053         * tests/test-vasnprintf-posix2.sh: New file.
42054         * tests/test-vasnprintf-posix2.c: New file.
42055         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42056         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42057         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42058
42059         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42060         a locale dependent decimal point, rather than always '.'.
42061
42062 2007-03-09  Eric Blake  <ebb9@byu.net>
42063
42064         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42065         spite of platforms like Tandem/NSK that define it to -1.
42066
42067 2007-03-08  Bruno Haible  <bruno@clisp.org>
42068
42069         * modules/vprintf-posix-tests: New file.
42070         * tests/test-vprintf-posix.sh: New file.
42071         * tests/test-vprintf-posix.c: New file.
42072         * tests/test-printf-posix.h: New file.
42073
42074         * modules/vprintf-posix: New file.
42075         * lib/vprintf.c: New file.
42076         * m4/vprintf-posix.m4: New file.
42077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42078         REPLACE_VPRINTF.
42079         * lib/stdio_.h (vprintf): New declaration.
42080         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42081         REPLACE_VPRINTF.
42082
42083 2007-03-08  Bruno Haible  <bruno@clisp.org>
42084
42085         * modules/fprintf-posix-tests: New file.
42086         * tests/test-fprintf-posix.sh: New file.
42087         * tests/test-fprintf-posix.c: New file.
42088
42089         * modules/fprintf-posix: New file.
42090         * lib/fprintf.c: New file.
42091         * m4/fprintf-posix.m4: New file.
42092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42093         REPLACE_FPRINTF.
42094         * lib/stdio_.h (fprintf): New declaration.
42095         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42096         REPLACE_FPRINTF.
42097
42098 2007-03-08  Bruno Haible  <bruno@clisp.org>
42099
42100         * modules/vfprintf-posix-tests: New file.
42101         * tests/test-vfprintf-posix.sh: New file.
42102         * tests/test-vfprintf-posix.c: New file.
42103         * tests/test-fprintf-posix.h: New file.
42104         * tests/test-fprintf-posix.out: New file.
42105
42106         * modules/vfprintf-posix: New file.
42107         * lib/vfprintf.c: New file.
42108         * m4/vfprintf-posix.m4: New file.
42109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42110         REPLACE_VFPRINTF.
42111         * lib/stdio_.h (vfprintf): New declaration.
42112         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42113         REPLACE_VFPRINTF.
42114
42115 2007-03-08  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42118
42119 2007-03-08  Bruno Haible  <bruno@clisp.org>
42120
42121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42122         instead of 'expr' invocations.
42123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42128         Suggested by Paul Eggert.
42129
42130 2007-03-08  Bruno Haible  <bruno@clisp.org>
42131
42132         * modules/fseterr-tests: New file.
42133         * tests/test-fseterr.c: New file.
42134
42135         * modules/fseterr: New file.
42136         * lib/fseterr.h: New file.
42137         * lib/fseterr.c: New file.
42138
42139 2007-03-08  Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42142         * lib/getopt_.h: Likewise.
42143         * lib/mbswidth.h: Likewise.
42144         * lib/setenv.h: Likewise.
42145         * lib/vasnprintf.h: Likewise.
42146         * lib/vasprintf.h: Likewise.
42147         * lib/verror.h: Likewise.
42148         * lib/xsetenv.h: Likewise.
42149         * lib/xvasprintf.h: Likewise.
42150
42151 2007-03-08  Jim Meyering  <jim@meyering.net>
42152
42153         * users.txt: Add parted.
42154
42155         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42156
42157 2007-03-07  Bruno Haible  <bruno@clisp.org>
42158
42159         * m4/printf.m4: Make the shell script snippets copy&pastable.
42160
42161 2007-03-02  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/netinet_in_.h: New file.
42164         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42165         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42166         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42167         (Depends-on): Add absolute-header.
42168         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42169         into netinet/in.h.
42170
42171 2007-03-03  Bruno Haible  <bruno@clisp.org>
42172
42173         * lib/sys_select_.h: New file.
42174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42175         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42176         * modules/sys_select (Files): Add lib/sys_select_.h.
42177         (Depends-on): Add absolute-header.
42178         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42179         into sys/select.h.
42180
42181 2007-03-02  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42184         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42185         values.
42186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42187         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42188         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42189         * modules/sys_socket (Depends-on): Add absolute-header.
42190         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42191         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42192         (Include): Remove requirement of inclusion of <sys/types.h>.
42193
42194 2007-03-02  Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/byteswap_.h (bswap_32): Fix formula.
42197
42198 2007-03-06  Bruno Haible  <bruno@clisp.org>
42199
42200         * modules/sprintf-posix-tests: New file.
42201         * tests/test-sprintf-posix.c: New file.
42202
42203         * modules/sprintf-posix: New file.
42204         * lib/sprintf.c: New file.
42205         * m4/sprintf-posix.m4: New file.
42206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42207         REPLACE_SPRINTF.
42208         * lib/stdio_.h (sprintf): New declaration.
42209         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42210         REPLACE_SPRINTF.
42211
42212 2007-03-06  Bruno Haible  <bruno@clisp.org>
42213
42214         * modules/vsprintf-posix-tests: New file.
42215         * tests/test-vsprintf-posix.c: New file.
42216         * tests/test-sprintf-posix.h: New file.
42217
42218         * modules/vsprintf-posix: New file.
42219         * lib/vsprintf.c: New file.
42220         * m4/vsprintf-posix.m4: New file.
42221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42222         REPLACE_VSPRINTF.
42223         * lib/stdio_.h (vsprintf): New declaration.
42224         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42225         REPLACE_VSPRINTF.
42226
42227 2007-03-06  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/vsnprintf (Depend-on): Remove minmax.
42230
42231 2007-03-06  Bruno Haible  <bruno@clisp.org>
42232
42233         * modules/snprintf-posix-tests: New file.
42234         * tests/test-snprintf-posix.c: New file.
42235
42236         * modules/snprintf-posix: New file.
42237         * m4/snprintf-posix.m4: New file.
42238         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42239         gl_FUNC_SNPRINTF.
42240         (gl_FUNC_SNPRINTF): Invoke it.
42241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42242         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42243         is set.
42244         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42245
42246 2007-03-06  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/vsnprintf-posix-tests: New file.
42249         * tests/test-vsnprintf-posix.c: New file.
42250         * tests/test-snprintf-posix.h: New file.
42251
42252         * modules/vsnprintf-posix: New file.
42253         * m4/vsnprintf-posix.m4: New file.
42254         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42255         gl_FUNC_VSNPRINTF.
42256         (gl_FUNC_VSNPRINTF): Invoke it.
42257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42258         * lib/stdio_.h (vsnprintf): Define as a replacement if
42259         REPLACE_VSNPRINTF is set.
42260         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42261
42262 2007-03-06  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42266
42267 2007-03-06  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42270         (asinl): Declare also if HAVE_DECL_ASINL is set.
42271         (atanl): Declare also if HAVE_DECL_ATANL is set.
42272         (ceill): Declare also if HAVE_DECL_CEILL is set.
42273         (cosl): Declare also if HAVE_DECL_COSL is set.
42274         (expl): Declare also if HAVE_DECL_EXPL is set.
42275         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42276         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42277         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42278         (logl): Declare also if HAVE_DECL_LOGL is set.
42279         (sinl): Declare also if HAVE_DECL_SINL is set.
42280         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42281         (tanl): Declare also if HAVE_DECL_TANL is set.
42282         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42284         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42285         declaration of frexpl, ldexpl.
42286         * modules/printf-frexpl (Depends-on): Add math.
42287         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42288
42289 2007-03-05  Bruno Haible  <bruno@clisp.org>
42290
42291         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42292         frexpl and ldexpl are declared.
42293         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42294
42295 2007-03-05  Bruno Haible  <bruno@clisp.org>
42296
42297         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42298         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42299
42300 2007-03-05  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/stdio_.h: Include <stddef.h>.
42303
42304 2007-03-05  Bruno Haible  <bruno@clisp.org>
42305
42306         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42307
42308 2007-03-05  Bruno Haible  <bruno@clisp.org>
42309
42310         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42311         NetBSD 4, from Ralf Wildenhues.
42312
42313 2007-03-04  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/vasprintf.h: Update #if logic for the case when the functions
42316         exist but are overridden.
42317
42318 2007-03-04  Bruno Haible  <bruno@clisp.org>
42319
42320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42321         implementations: glibc-2.4 and MacOS X 10.3.
42322         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42323         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42324         * tests/test-vasprintf-posix.c (test_function): Likewise.
42325
42326 2007-03-04  Bruno Haible  <bruno@clisp.org>
42327
42328         * modules/vasprintf-posix-tests: New file.
42329         * tests/test-vasprintf-posix.c: New file.
42330
42331         * modules/vasprintf-posix: New file.
42332         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42333         defined.
42334         * m4/vasprintf-posix.m4: New file.
42335         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42336         gl_FUNC_VASPRINTF.
42337         (gl_FUNC_VASPRINTF): Invoke it.
42338         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42339         here.
42340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42341
42342 2007-03-04  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42345         REPLACE_GETTIMEOFDAY.
42346         * modules/sys_time (Makefile.am): Likewise.
42347         * m4/sys_time_h.m4: Likewise.
42348         * m4/gettimeofday.m4: Likewise.
42349
42350 2007-03-04  Bruno Haible  <bruno@clisp.org>
42351
42352         * modules/vasnprintf-posix-tests: New file.
42353         * tests/test-vasnprintf-posix.c: New file.
42354
42355         * modules/vasnprintf-posix: New file.
42356         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42357         printf-frexpl.h.
42358         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42359         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42360         REPLACE_VASNPRINTF is defined.
42361         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42362         gl_FUNC_VASNPRINTF.
42363         (gl_FUNC_VASNPRINTF): Invoke it.
42364         * m4/vasnprintf-posix.m4: New file.
42365         * m4/printf.m4: New file.
42366
42367 2007-03-04  Bruno Haible  <bruno@clisp.org>
42368
42369         Compile progreloc.c only if --enable-relocatable is specified.
42370         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42371         if --enable-relocatable was specified.
42372         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42373         lib_SOURCES.
42374
42375 2007-03-04  Jim Meyering  <jim@meyering.net>
42376
42377         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42378         Use it consistently, rather than enumerating errno constants.
42379
42380 2007-03-04  Bruno Haible  <bruno@clisp.org>
42381
42382         * modules/xvasprintf-tests: New file.
42383         * tests/test-xvasprintf.c: New file.
42384
42385         * modules/vasprintf-tests: New file.
42386         * tests/test-vasprintf.c: New file.
42387
42388         * modules/vasnprintf-tests: New file.
42389         * tests/test-vasnprintf.c: New file.
42390
42391         * modules/vsnprintf-tests: New file.
42392         * tests/test-vsnprintf.c: New file.
42393
42394         * modules/snprintf-tests: New file.
42395         * tests/test-snprintf.c: New file.
42396
42397 2007-03-04  Bruno Haible  <bruno@clisp.org>
42398
42399         Compile relocatable.c only if --enable-relocatable is specified.
42400         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42401         gl_RELOCATABLE_LIBRARY.
42402         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42403         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42404         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42405         gl_RELOCATABLE_LIBRARY.
42406         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42407         (Makefile.am): Remove lib_SOURCES.
42408         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42409         gl_RELOCATABLE_LIBRARY.
42410         (Makefile.am): Remove lib_SOURCES.
42411         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42412         always.
42413         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42414         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42415
42416 2007-03-04  Bruno Haible  <bruno@clisp.org>
42417
42418         * modules/argmatch-tests: New file.
42419         * tests/test-argmatch.c: New file.
42420
42421         * tests/test-allocsa.c (main): Halve the number of loop runs.
42422
42423         * modules/alloca-opt-tests: New file.
42424         * tests/test-alloca-opt.c: New file.
42425
42426 2007-03-04  Jim Meyering  <jim@meyering.net>
42427
42428         Work around difference between Linux ACLs and Solaris 10 ZFS.
42429         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42430         for EINVAL.
42431
42432 2007-03-03  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/relocatable-prog (Depends-on): Add back progreloc's
42435         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42436
42437 2007-03-03  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42440         * modules/relocatable-lib: New file.
42441
42442 2007-03-03  Bruno Haible  <bruno@clisp.org>
42443
42444         * modules/relocatable-prog: Renamed from modules/relocatable.
42445         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42446
42447 2007-03-03  Bruno Haible  <bruno@clisp.org>
42448
42449         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42450         m4/relocatable-lib.m4.
42451         (Depends-on): Remove 'relocatable'.
42452         (configure.ac): Add gl_RELOCATABLE_NOP.
42453
42454 2007-03-03  Bruno Haible  <bruno@clisp.org>
42455
42456         * modules/relocatable-prog-wrapper: New file.
42457         * modules/relocatable (Depends-on): Add it. Remove all other
42458         dependencies except progname.
42459         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42460
42461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42462         (gl_FUNC_STRERROR): Nop.
42463         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42464
42465         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42466         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42467
42468         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42469         (gl_FUNC_READLINK): Update.
42470
42471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42472
42473 2007-03-03  Bruno Haible  <bruno@clisp.org>
42474
42475         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42476         * modules/xreadlink (Depends-on): Add unistd.
42477         * modules/xreadlink-with-size (Depends-on): Likewise.
42478
42479 2007-03-03  Bruno Haible  <bruno@clisp.org>
42480
42481         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42482         extracted from gt_FUNC_SETENV.
42483         (gt_FUNC_SETENV): Remove macro.
42484         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42485         remove gt_FUNC_SETENV.
42486
42487 2007-03-03  Bruno Haible  <bruno@clisp.org>
42488
42489         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42490         ENABLE_RELOCATABLE here.
42491         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42492
42493 2007-03-03  Bruno Haible  <bruno@clisp.org>
42494
42495         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42496         * tests/test-rbtreehash_list.c: Include progname.h.
42497         (main): Call set_program_name.
42498
42499         * modules/rbtree-oset-tests (Depends-on): Add progname.
42500         * tests/test-rbtree_oset.c: Include progname.h.
42501         (main): Call set_program_name.
42502
42503         * modules/rbtree-list-tests (Depends-on): Add progname.
42504         * tests/test-rbtree_list.c: Include progname.h.
42505         (main): Call set_program_name.
42506
42507         * modules/linked-list-tests (Depends-on): Add progname.
42508         * tests/test-linked_list.c: Include progname.h.
42509         (main): Call set_program_name.
42510
42511 2007-03-03  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42514         All uses of __restrict changed to _Restrict_.
42515         * lib/glob_.h (__restrict): Remove macro.
42516
42517 2007-03-02  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/gettext (configure.ac): Require gettext infrastructure
42520         from version 0.16.1.
42521
42522 2007-03-02  Bruno Haible  <bruno@clisp.org>
42523
42524         * modules/linkedhash-list-tests (Depends-on): Add progname.
42525         * tests/test-linkedhash_list.c: Include progname.h.
42526         (main): Call set_program_name.
42527
42528         * modules/carray-list-tests (Depends-on): Add progname.
42529         * tests/test-carray_list.c: Include progname.h.
42530         (main): Call set_program_name.
42531
42532         * modules/avltreehash-list-tests (Depends-on): Add progname.
42533         * tests/test-avltreehash_list.c: Include progname.h.
42534         (main): Call set_program_name.
42535
42536         * modules/avltree-oset-tests (Depends-on): Add progname.
42537         * tests/test-avltree_oset.c: Include progname.h.
42538         (main): Call set_program_name.
42539
42540         * modules/avltree-list-tests (Depends-on): Add progname.
42541         * tests/test-avltree_list.c: Include progname.h.
42542         (main): Call set_program_name.
42543
42544         * modules/array-oset-tests (Depends-on): Add progname.
42545         * tests/test-array_oset.c: Include progname.h.
42546         (main): Call set_program_name.
42547
42548         * modules/array-list-tests (Depends-on): Add progname.
42549         * tests/test-array_list.c: Include progname.h.
42550         (main): Call set_program_name.
42551
42552         * modules/argp-tests (Depends-on): Add progname.
42553         * tests/test-argp.c: Include argp.h first. Include progname.h.
42554         (main): Call set_program_name.
42555
42556 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42557
42558         * doc/gnulib-tool.texi (Initial import): Reword description of
42559         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42560         limited effect even if defined after the first system include.
42561
42562 2007-03-01  Bruno Haible  <bruno@clisp.org>
42563
42564         * build-aux/config.libpath: Update to libtool-1.5.22.
42565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42566
42567 2007-03-01  Bruno Haible  <bruno@clisp.org>
42568
42569         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42570         foo_CFLAGS.
42571         Reported by Ralf Wildenhues.
42572
42573 2007-03-01  Bruno Haible  <bruno@clisp.org>
42574
42575         * build-aux/install-reloc: Remove object files left over by some
42576         compilers.
42577         Reported by Ralf Wildenhues.
42578
42579 2007-03-01  Bruno Haible  <bruno@clisp.org>
42580
42581         * build-aux/install-reloc: Break long lines.
42582
42583 2007-03-01  Bruno Haible  <bruno@clisp.org>
42584
42585         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42586         Reported by Ralf Wildenhues.
42587
42588 2007-03-01  Bruno Haible  <bruno@clisp.org>
42589
42590         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42591         include ordering constraints.
42592
42593 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42594
42595         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42597         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42598         as another example.
42599         * lib/time_.h: Fix misspelling.
42600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42601         Require gl_HEADER_TIME_H_DEFAULTS.
42602         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42603         * m4/time_r.m4 (gl_TIME_R): Likewise.
42604         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42605
42606 2007-03-01  Bruno Haible  <bruno@clisp.org>
42607
42608         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42609         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42610
42611 2007-03-01  Jim Meyering  <jim@meyering.net>
42612
42613         * modules/xreadlink (Maintainer): Add my name.
42614         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42615
42616 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42617             Bruno Haible  <bruno@clisp.org>
42618
42619         * build-aux/install-reloc: Compile also c-ctype.c.
42620         * build-aux/relocatable.sh.in: New file.
42621         * doc/relocatable.texi: New file.
42622         * doc/relocatable-maint.texi: New file.
42623         * doc/gnulib.texi: Include relocatable-maint.texi.
42624         * lib/progreloc.c: Include unistd.h unconditionally.
42625         * lib/relocwrapper.c: Include unistd.h unconditionally.
42626         Include c-ctype.h.
42627         (add_dotbin): Use c_tolower.
42628         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42629         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42630         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42631         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42632         to m4/relocatable-lib.m4.
42633         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42634         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42635         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42636         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42637         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42638         * modules/relocatable: New file.
42639         * modules/relocatable-lib: New file.
42640         * modules/relocatable-script: New file.
42641
42642 2007-02-28  Bruno Haible  <bruno@clisp.org>
42643
42644         Import --enable-relocatable infrastructure.
42645         * build-aux/config.libpath: New file, from GNU gettext.
42646         * build-aux/install-reloc: New file, from GNU gettext.
42647         * build-aux/reloc-ldflags: New file, from GNU gettext.
42648         * lib/relocatable.h: New file, from GNU gettext.
42649         * lib/relocatable.c: New file, from GNU gettext.
42650         * lib/relocwrapper.c: New file, from GNU gettext.
42651         * m4/relocatable.m4: New file, from GNU gettext.
42652
42653 2007-02-28  Bruno Haible  <bruno@clisp.org>
42654
42655         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42656
42657         * modules/xreadlink: New file, from GNU gettext with modifications.
42658         * lib/xreadlink.c: New file, from GNU gettext.
42659         * lib/xreadlink.h: Add comments.
42660         (xreadlink): New declaration.
42661
42662         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42663         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42664         lib/xreadlink-with-size.c.
42665         (configure.ac): Remove gl_XREADLINK invocation.
42666         (Makefile.am): Augment lib_SOURCES.
42667         * m4/xreadlink.m4: Remove file.
42668         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42669         (xreadlink_with_size): Renamed from xreadink.
42670         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42671         * modules/canonicalize (Depends-on): Replace xreadlink with
42672         xreadlink-with-size.
42673         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42674
42675 2007-02-25  Jim Meyering  <jim@meyering.net>
42676
42677         * build-aux/announce-gen: When complaining about excess arguments,
42678         list them.
42679
42680 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42681
42682         * README: Document signed integer overflow situation more
42683         accurately.
42684
42685 2007-02-25  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42688         'a' or 'A' conversion.
42689
42690 2007-02-25  Bruno Haible  <bruno@clisp.org>
42691
42692         * modules/filename: Renamed from modules/pathname.
42693         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42694         lib/concatpath.c with lib/concat-filename.c.
42695         (Makefile.am): Update.
42696         (Include): Replace pathname.h with filename.h.
42697         * lib/filename.h: Renamed from lib/pathname.h.
42698         (concatenated_filename): Renamed from concatenated_pathname.
42699         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42700         (concatenated_filename): Renamed from concatenated_pathname.
42701         * lib/findprog.c: Include filename.h instead of pathname.h.
42702         (find_in_path): Update.
42703         * lib/javacomp.c: Include filename.h instead of pathname.h.
42704         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42705         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42706         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42707         is_oldgcj_14_13_usable, is_javac_usable): Update.
42708         * lib/javaexec.c: Include filename.h instead of pathname.h.
42709         (execute_java_class): Update.
42710         * modules/findprog: Update.
42711         * modules/javacomp: Update.
42712         * modules/javaexec: Update.
42713         * MODULES.html.sh (File system functions): Add 'filename', remove
42714         'pathname'.
42715
42716 2007-02-25  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/printf-frexpl-tests: New file.
42719         * tests/test-printf-frexpl.c: New file.
42720
42721         * modules/printf-frexpl: New file.
42722         * lib/printf-frexpl.h: New file.
42723         * lib/printf-frexpl.c: New file.
42724         * m4/printf-frexpl.m4: New file.
42725
42726 2007-02-25  Bruno Haible  <bruno@clisp.org>
42727
42728         * modules/printf-frexp-tests: New file.
42729         * tests/test-printf-frexp.c: New file.
42730
42731         * modules/printf-frexp: New file.
42732         * lib/printf-frexp.h: New file.
42733         * lib/printf-frexp.c: New file.
42734         * m4/printf-frexp.m4: New file.
42735
42736 2007-02-25  Bruno Haible  <bruno@clisp.org>
42737
42738         Assume automake >= 1.10 for the tests.
42739         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42740         * modules/arctwo-tests: Likewise.
42741         * modules/argp-tests: Likewise.
42742         * modules/avltree-list-tests: Likewise.
42743         * modules/avltree-oset-tests: Likewise.
42744         * modules/avltreehash-list-tests: Likewise.
42745         * modules/carray-list-tests: Likewise.
42746         * modules/crc-tests: Likewise.
42747         * modules/des-tests: Likewise.
42748         * modules/gc-arcfour-tests: Likewise.
42749         * modules/gc-arctwo-tests: Likewise.
42750         * modules/gc-des-tests: Likewise.
42751         * modules/gc-hmac-md5-tests: Likewise.
42752         * modules/gc-hmac-sha1-tests: Likewise.
42753         * modules/gc-md2-tests: Likewise.
42754         * modules/gc-md4-tests: Likewise.
42755         * modules/gc-md5-tests: Likewise.
42756         * modules/gc-pbkdf2-sha1-tests: Likewise.
42757         * modules/gc-rijndael-tests: Likewise.
42758         * modules/gc-sha1-tests: Likewise.
42759         * modules/gc-tests: Likewise.
42760         * modules/getaddrinfo-tests: Likewise.
42761         * modules/hmac-md5-tests: Likewise.
42762         * modules/hmac-sha1-tests: Likewise.
42763         * modules/linked-list-tests: Likewise.
42764         * modules/linkedhash-list-tests: Likewise.
42765         * modules/lock-tests: Likewise.
42766         * modules/md2-tests: Likewise.
42767         * modules/md4-tests: Likewise.
42768         * modules/md5-tests: Likewise.
42769         * modules/rbtree-list-tests: Likewise.
42770         * modules/rbtree-oset-tests: Likewise.
42771         * modules/rbtreehash-list-tests: Likewise.
42772         * modules/read-file-tests: Likewise.
42773         * modules/rijndael-tests: Likewise.
42774         * modules/stdint-tests: Likewise.
42775         * modules/tls-tests: Likewise.
42776
42777 2007-02-24  Bruno Haible  <bruno@clisp.org>
42778
42779         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42780         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42781         function; instead check whether isnan with a double argument links.
42782         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42783         function; instead check whether isnan with a 'long double' argument
42784         links.
42785         Reported by Eric Blake <ebb9@byu.net>.
42786
42787 2007-02-24  Bruno Haible  <bruno@clisp.org>
42788
42789         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42790         defined.
42791         * lib/isnanl.c: Remove all code. Just include isnan.c.
42792         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42793
42794 2007-02-25  Jim Meyering  <jim@meyering.net>
42795
42796         Avoid conflicting types for 'unsetenv' on FreeBSD.
42797         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42798         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42799         in stdlib.h.
42800
42801 2007-02-24  Bruno Haible  <bruno@clisp.org>
42802
42803         * modules/isnanl-nolibm-tests: New file.
42804         * tests/test-isnanl.c: New file.
42805
42806         * modules/isnanl-nolibm: New file.
42807         * lib/isnanl.h: New file.
42808         * lib/isnanl.c: New file.
42809         * m4/isnanl.m4: New file.
42810
42811 2007-02-24  Bruno Haible  <bruno@clisp.org>
42812
42813         * modules/isnan-nolibm-tests: New file.
42814         * tests/test-isnan.c: New file.
42815
42816         * modules/isnan-nolibm: New file.
42817         * lib/isnan.h: New file.
42818         * lib/isnan.c: New file.
42819         * m4/isnan.m4: New file.
42820
42821 2007-02-24  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42824         assume that an exponent fits in 20 bits.
42825
42826 2007-02-24  Jim Meyering  <jim@meyering.net>
42827
42828         * m4/regex.m4: Update the description of the configure-time option,
42829         --without-included-regex, to state accurately what the defaults are,
42830         and perhaps to give people an idea why using this option is risky.
42831
42832 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42833
42834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42835         loops on small arguments.  This attempts to avoid the problem
42836         Bruno Haible reported for AIX 4.3.2 in
42837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42838
42839 2007-02-23  Bruno Haible  <bruno@clisp.org>
42840
42841         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42842         Needed for help2man.
42843
42844 2007-02-23  Karl Berry  <karl@gnu.org>
42845
42846         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42847         exists, foo.h should be cvs-ignored, not committed.
42848
42849 2007-02-23  Eric Blake  <ebb9@byu.net>
42850
42851         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42852         * lib/stat-time.h (includes): Likewise.
42853         * lib/utimecmp.c (includes): Likewise.
42854         * lib/utimens.h (includes): Likewise.
42855         * lib/getdate.y (includes): Also include "timespec.h" for use
42856         internal to the module.
42857         * modules/utimens (Depends-on): Revert yesterday's patch.
42858         * modules/nanosleep (Depends-on): Add missing dependency.
42859
42860 2007-02-22  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/glob.c: Don't include getlogin_r.h.
42863
42864 2007-02-22  Jim Meyering  <jim@meyering.net>
42865
42866         * modules/utimens (Depends-on): Add timespec, required for
42867         utimens.h's inclusion of timespec.h.
42868
42869 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42870
42871         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42872         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42873         Schwab in
42874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42875         I'll try to think of a better way to fix the Solaris problem.
42876
42877         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42878         like glibc; on Solaris 10, it fails with errno == EINVAL.
42879         POSIX says the behavior is unspecified if the first argument is NULL,
42880         so play it safe and never pass NULL to the system getcwd.
42881
42882 2007-02-21  Jim Meyering  <jim@meyering.net>
42883
42884         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42885         of gettimeofday.  It would conflict with the one now always
42886         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42887         an IRIX 6.5 build failure.
42888
42889 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42890
42891         Minor fixups to port to Solaris 10 with Sun C 5.8.
42892         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42893         * modules/getcwd (Depends-on): Add dirfd.
42894         * lib/putenv.c (putenv): #undef it.
42895         (rpl_putenv): New decl.
42896         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42897
42898 2007-02-20  Bruno Haible  <bruno@clisp.org>
42899
42900         * modules/stdio-tests: New file.
42901         * tests/test-stdio.c: New file.
42902
42903         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42904         (Depends-on): Add stdio.
42905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42906         (Include): Use <stdio.h> instead of vsnprintf.h.
42907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42908         HAVE_DECL_VSNPRINTF.
42909         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42910
42911         * modules/snprintf (Files): Remove lib/snprintf.h.
42912         (Depends-on): Add stdio.
42913         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42914         (Include): Use <stdio.h> instead of snprintf.h.
42915         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42916         HAVE_DECL_SNPRINTF.
42917         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42918         * lib/getaddrinfo.c: Likewise.
42919
42920         * modules/stdio: New file.
42921         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42922         * lib/snprintf.h: Remove file.
42923         * lib/vsnprintf.h: Remove file.
42924         * lib/.cppi-disable: Remove snprintf.h.
42925         * m4/stdio_h.m4: New file.
42926         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42927
42928 2007-02-20  Jim Meyering  <jim@meyering.net>
42929
42930         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42931         used by e.g., mingw.  From Bruno Haible.
42932
42933 2007-02-19  Bruno Haible  <bruno@clisp.org>
42934
42935         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42936         warnings.
42937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42938
42939 2007-02-19  Bruno Haible  <bruno@clisp.org>
42940
42941         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42942         from mingw users.
42943
42944 2007-02-19  Bruno Haible  <bruno@clisp.org>
42945
42946         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42947         warnings.
42948         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42949
42950 2007-02-19  Jim Meyering  <jim@meyering.net>
42951
42952         Don't use FD after a successful "fdopendir (fd)".
42953         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42954         Reset it by calling dirfd on the just-obtained DIR*.
42955
42956         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42957         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42958
42959 2007-02-18  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/readlink.c: Include <unistd.h>.
42962         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42963         HAVE_READLINK.
42964         * modules/readlink (Depends-on): Add unistd.
42965         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42966         (Include): Add <unistd.h>.
42967
42968         * lib/getlogin_r.h: Remove file.
42969         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42970         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42971         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42972         HAVE_DECL_GETLOGIN_R.
42973         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42975         (Include): Use <unistd.h> instead of getlogin_r.h.
42976
42977         * lib/getcwd.h: Remove file.
42978         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42979         * lib/xgetcwd.c: Likewise.
42980         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42981         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42982         * modules/getcwd (Files): Remove lib/getcwd.h.
42983         (Depends-on): Add unistd.
42984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42985         (Include): Use <unistd.h> instad of getcwd.h.
42986
42987         * lib/ftruncate.c: Include <unistd.h> first.
42988         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42989         Set HAVE_FTRUNCATE.
42990         * modules/ftruncate (Depends-on): Add unistd.
42991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42992
42993         * lib/fchdir.c: Include <unistd.h> first.
42994         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42996         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42997         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42998         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42999
43000         * lib/dup2.c: Include <unistd.h> first.
43001         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43002         HAVE_DUP2.
43003         * modules/dup2 (Depends-on): Add unistd.
43004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43005
43006         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43007         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43008         REPLACE_CHOWN. Don't define chown as a macro here.
43009         * modules/chown (Depends-on): Add unistd.
43010         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43011
43012         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43013         Add definition for GL_LINK_WARNING.
43014         (chown, dup2): New declarations.
43015         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43016         link warning.
43017         (ftruncate): New declaration.
43018         (getcwd): New declaration, taken from old getcwd.h.
43019         (getlogin_r): New declaration, taken from old getlogin_r.h.
43020         (readlink): New declaration.
43021         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43022         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43023         (gl_PREREQ_UNISTD): Remove macro.
43024         (gl_UNISTD_MODULE_INDICATOR): New macro.
43025         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43026         many new variables. Don't set UNISTD_H.
43027         * modules/unistd (Description): Change.
43028         (Depends-on): Add link-warning.
43029         (configure.ac): Update.
43030         (Makefile.am): Create unistd.h always. Substitute many new variables
43031         into it.
43032
43033 2007-02-18  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43036         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43037         HAVE_GETSUBOPT.
43038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43039         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43040         * lib/getsubopt.h: Remove file.
43041         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43042         (Depends-on): Add stdlib.
43043         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43044         (Includes): Use <stdlib.h> instead of getsubopt.h.
43045         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43046         Set HAVE_GETSUBOPT.
43047         * lib/getsubopt.c: Don't include getsubopt.h.
43048
43049 2007-02-18  Bruno Haible  <bruno@clisp.org>
43050
43051         * modules/fchdir (Depends-on): Add dup2.
43052
43053 2007-02-18  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/stdlib_.h: Handle glibc's special invocation convention
43056         specially.
43057
43058 2007-02-18  Bruno Haible  <bruno@clisp.org>
43059
43060         * modules/stdlib-tests: New file.
43061         * tests/test-stdlib.c: New file.
43062
43063         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43064         (Depends-on): Add stdlib.
43065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43066         (Includes): Use <stdlib.h> instead of mkstemp.h.
43067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43068         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43069         * lib/mkstemp.c: Don't include mkstemp.h.
43070         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43071         * lib/stdlib--.h: Don't include mkstemp.h.
43072
43073         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43074         (Depends-on): Add stdlib.
43075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43076         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43077         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43078         HAVE_MKDTEMP.
43079         * lib/mkdtemp.c: Don't include mkdtemp.h.
43080         * lib/clean-temp.c: Don't include mkdtemp.h.
43081
43082         * modules/exit (Files): Remove lib/exit.h.
43083         (Depends-on): Add stdlib.
43084         (Makefile.am): Remove lib_SOURCES.
43085         (Include): Use <stdlib.h> instead of exit.h.
43086         * lib/argmatch.c: Don't include exit.h.
43087         * lib/execute.c: Likewise.
43088         * lib/pagealign_alloc.c: Likewise.
43089         * lib/pipe.c: Likewise.
43090         * lib/wait-process.c: Likewise.
43091         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43092         * lib/exitfail.c: Likewise.
43093         * lib/savewd.c: Likewise.
43094         * lib/xsetenv.c: Likewise.
43095
43096         * modules/stdlib: New file.
43097         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43098         and extra comments about mkstemp().
43099         * lib/exit.h: Remove file.
43100         * lib/mkdtemp.h: Remove file.
43101         * lib/mkstemp.h: Remove file.
43102         * m4/stdlib_h.m4: New file.
43103         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43104
43105 2007-02-18  Bruno Haible  <bruno@clisp.org>
43106
43107         * modules/math-tests: New file.
43108         * tests/test-math.c: New file.
43109
43110         * modules/math: New file.
43111         * modules/mathl (Files): Remove lib/mathl.h.
43112         (Depends-on): Add math.
43113         (Makefile.am): Don't mention mathl.h.
43114         (Include): Use <math.h> instead of mathl.h.
43115         * lib/math_.h: New file.
43116         * lib/mathl.h: Remove file.
43117         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43118         mathl.h.
43119         * lib/asinl.c: Likewise.
43120         * lib/atanl.c: Likewise.
43121         * lib/ceill.c: Likewise.
43122         * lib/cosl.c: Likewise.
43123         * lib/expl.c: Likewise.
43124         * lib/floorl.c: Likewise.
43125         * lib/frexpl.c: Likewise.
43126         * lib/ldexpl.c: Likewise.
43127         * lib/logl.c: Likewise.
43128         * lib/sincosl.c: Likewise.
43129         * lib/sinl.c: Likewise.
43130         * lib/sqrtl.c: Likewise.
43131         * lib/tanl.c: Likewise.
43132         * lib/trigl.c: Likewise.
43133         * m4/math_h.m4: New file.
43134         * MODULES.html.sh (Mathematics): Add math.
43135
43136 2007-02-17  Bruno Haible  <bruno@clisp.org>
43137
43138         * modules/wctype-tests: New file.
43139         * tests/test-wctype.c: New file.
43140
43141         * modules/wchar-tests: New file.
43142         * tests/test-wchar.c: New file.
43143
43144         * modules/unistd-tests: New file.
43145         * tests/test-unistd.c: New file.
43146
43147         * modules/time-tests: New file.
43148         * tests/test-time.c: New file.
43149
43150         * modules/sysexits-tests: New file.
43151         * tests/test-sysexits.c: New file.
43152
43153         * modules/sys_time-tests: New file.
43154         * tests/test-sys_time.c: New file.
43155
43156         * modules/sys_stat-tests: New file.
43157         * tests/test-sys_stat.c: New file.
43158
43159         * modules/sys_socket-tests: New file.
43160         * tests/test-sys_socket.c: New file.
43161
43162         * modules/sys_select-tests: New file.
43163         * tests/test-sys_select.c: New file.
43164
43165         * modules/string-tests: New file.
43166         * tests/test-string.c: New file.
43167
43168         * modules/stdbool-tests: New file.
43169         * tests/test-stdbool.c: New file.
43170
43171         * modules/netinet_in-tests: New file.
43172         * tests/test-netinet_in.c: New file.
43173
43174         * modules/inttypes-tests: New file.
43175         * tests/test-inttypes.c: New file.
43176
43177         * modules/fcntl-tests: New file.
43178         * tests/test-fcntl.c: New file.
43179
43180         * modules/byteswap-tests: New file.
43181         * tests/test-byteswap.c: New file.
43182
43183         * modules/arpa_inet-tests: New file.
43184         * tests/test-arpa_inet.c: New file.
43185
43186 2007-02-17  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43189         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43190         if the corresponding module is not enabled. Emit link warnings if
43191         the function is used nevertheless.
43192         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43193         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43194         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43195         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43196         * modules/inttypes (Depends-on): Add link-warning.
43197         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43198         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43199         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43200         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43201         * modules/imaxdiv (configure.ac): Likewise.
43202         * modules/strtoimax (configure.ac): Likewise.
43203         * modules/strtoumax (configure.ac): Likewise.
43204
43205 2007-02-17  Bruno Haible  <bruno@clisp.org>
43206
43207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43208         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43210         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43211
43212 2007-02-17  Bruno Haible  <bruno@clisp.org>
43213
43214         * modules/link-warning: New file.
43215         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43216         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43217         * modules/string (Depends-on): Add link-warning.
43218         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43219         string.h.
43220         * MODULES.html.sh (Support for building libraries and executables): Add
43221         link-warning.
43222
43223 2007-02-17  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43226         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43227         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43228         long lines.
43229
43230 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         * modules/tmpfile: New file.
43234         * lib/tmpfile.c: New file.
43235         * m4/tmpfile.m4: New file.
43236         * MODULES.html.sh (func_all_modules): New section "Input/output".
43237
43238 2007-02-15  Bruno Haible  <bruno@clisp.org>
43239
43240         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43241         (supports_delete_on_close): New function.
43242         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43243
43244 2007-02-14  Bruno Haible  <bruno@clisp.org>
43245
43246         * modules/mbspcasecmp-tests: New file.
43247         * tests/test-mbspcasecmp.sh: New file.
43248         * tests/test-mbspcasecmp.c: New file.
43249
43250         New module mbspcasecmp.
43251         * modules/mbspcasecmp: New file.
43252         * lib/mbspcasecmp.c: New file.
43253         * lib/string_.h (strncasecmp): Change warning message.
43254         (mbspcasecmp): New declaration.
43255         * m4/mbspcasecmp.m4: New file.
43256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43257         GNULIB_MBSPCASECMP.
43258         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43259         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43260
43261 2007-02-14  Bruno Haible  <bruno@clisp.org>
43262
43263         * modules/mbsncasecmp-tests: New file.
43264         * tests/test-mbsncasecmp.sh: New file.
43265         * tests/test-mbsncasecmp.c: New file.
43266
43267         New module mbsncasecmp.
43268         * modules/mbsncasecmp: New file.
43269         * lib/mbsncasecmp.c: New file.
43270         * lib/string_.h (mbsncasecmp): New declaration.
43271         * m4/mbsncasecmp.m4: New file.
43272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43273         GNULIB_MBSNCASECMP.
43274         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43275         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43276
43277 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43278
43279         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43280         Verify that it doesn't overlap with our flags.
43281         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43282         do not have the desired effect in multibyte locales; instead, use
43283         mbscasecmp.
43284         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43285         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43286         we don't require GNU fnmatch ourselves (if our users require it, they
43287         should do so explicitly).
43288
43289         Fix regex code so it doesn't rely on strcasecmp.
43290         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43291         Otherwise, include gnulib's langinfo.h.
43292         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43293         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43294         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43295         * modules/regex (FILES): Remove m4/codeset.m4.
43296         (Depends-on): Add localcharset.  Remove strcase.
43297
43298 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43299
43300         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43302
43303 2007-02-13  Bruno Haible  <bruno@clisp.org>
43304
43305         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43307
43308 2007-02-12  Bruno Haible  <bruno@clisp.org>
43309
43310         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43311         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43312         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43313         time warning rather than a link error.
43314
43315 2007-02-12  Bruno Haible  <bruno@clisp.org>
43316
43317         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43318         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43320
43321 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43324         args, not 2.
43325
43326 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43327
43328         New module 'time', so that apps can include <time.h> as per
43329         POSIX and GNU instead of separate include files like time_r.h
43330         and timegm.h.  This implementation tries out a simpler approach
43331         for replacing decls in standard include files (as compared to
43332         the string module), somewhat as an experiment.
43333
43334         * config/srclist.txt: Comment out mktime.c for now.
43335         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43336         since it doesn't apply any more.  Use generic wording instead.
43337         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43338         'time'.
43339         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43340         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43341         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43342         Don't include <sys/types.h>; no longer needed since we assume C89.
43343         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43344         * lib/strftime.c: Likewise.
43345         * lib/time_r.c: Likewise.
43346         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43347         * lib/nanosleep.c: Include <time.h> first, to check interface.
43348         * lib/strptime.c: Likewise.
43349         * lib/time_r.c: Likewise.
43350         * lib/timegm.c: Likewise.
43351         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43352         needed.
43353         * lib/timegm.c: Don't include timegm.h; no longer needed.
43354         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43355         time.h now handles any problems in that area.
43356         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43357         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43358         that time.h defines struct timespec.
43359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43360         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43361         handles that.
43362         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43363         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43364         needed.  Set REPLACE_LOCALTIME.
43365         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43366         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43367         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43368         nanosleep; time_h.m4 now does that.  Don't require
43369         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43370         module handles this now.
43371         * modules/getdate (Depends-on): Remove timespec.  Add time.
43372         * modules/nanosleep (Depends-on): Likewise.
43373         * modules/stat-time (Depends-on): Likewise.
43374         * modules/nanosleep (Include): Include time.h, not timespec.h.
43375         * modules/strptime (Files): Remove lib/strptime.h.
43376         (Depends-on): Add extensions, time.
43377         (Include): Include time.h, not strptime.h.
43378         * modules/time_r (Files): Remove lib/time_r.h.
43379         (Depends-on): Add time.
43380         (Include): Include time.h, not time_r.h.
43381         * modules/timegm: Likewise.
43382         * modules/timespec (Description): Now does timespec-related decls
43383         of our own, instead of struct timespec itself.
43384         (Depends-on): Add time; remove extensions.
43385         (Maintainer): Add self.
43386         * modules/utimecmp (Depends-on): Add time; remove timespec.
43387         * modules/utimens (Depends-on): Likewise.
43388         * modules/xnanosleep (Depends-on): Likewise.
43389
43390 2007-02-11  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/c-strstr.c: Include allocsa.h.
43393         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43394         * lib/c-strcasestr.c: Include allocsa.h.
43395         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43396         * lib/strcasestr.c: Include allocsa.h.
43397         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43398         * lib/mbsstr.c: Include allocsa.h.
43399         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43400         allocsa/freesa instead of malloc/free.
43401         * lib/mbscasestr.c: Include allocsa.h.
43402         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43403         allocsa/freesa instead of malloc/free.
43404         * modules/c-strstr (Depends-on): Add allocsa.
43405         * modules/c-strcasestr (Depends-on): Likewise.
43406         * modules/strcasestr (Depends-on): Likewise.
43407         * modules/mbsstr (Depends-on): Likewise.
43408         * modules/mbscasestr (Depends-on): Likewise.
43409
43410 2007-02-11  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43413
43414         * modules/mbsspn-tests: New file.
43415         * tests/test-mbsspn.sh: New file.
43416         * tests/test-mbsspn.c: New file.
43417
43418 2007-02-11  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43421
43422         * modules/mbspbrk-tests: New file.
43423         * tests/test-mbspbrk.sh: New file.
43424         * tests/test-mbspbrk.c: New file.
43425
43426 2007-02-11  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43429         unneeded cast.
43430
43431         * modules/mbscspn-tests: New file.
43432         * tests/test-mbscspn.sh: New file.
43433         * tests/test-mbscspn.c: New file.
43434
43435 2007-02-11  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/mbscasecmp-tests: New file.
43438         * tests/test-mbscasecmp.sh: New file.
43439         * tests/test-mbscasecmp.c: New file.
43440
43441 2007-02-11  Bruno Haible  <bruno@clisp.org>
43442
43443         Ensure O(n) worst-case complexity of mbscasestr.
43444         * lib/mbscasestr.c: Include stdbool.h.
43445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43446         functions.
43447         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43448         the bookkeeping indicates that it's worth it.
43449         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43450
43451         * modules/mbscasestr-tests: New file.
43452         * tests/test-mbscasestr1.c: New file.
43453         * tests/test-mbscasestr2.sh: New file.
43454         * tests/test-mbscasestr2.c: New file.
43455         * tests/test-mbscasestr3.sh: New file.
43456         * tests/test-mbscasestr3.c: New file.
43457         * tests/test-mbscasestr4.sh: New file.
43458         * tests/test-mbscasestr4.c: New file.
43459         * m4/locale-tr.m4: New file.
43460
43461 2007-02-11  Bruno Haible  <bruno@clisp.org>
43462
43463         Ensure O(n) worst-case complexity of mbsstr.
43464         * lib/mbsstr.c: Include stdbool.h.
43465         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43466         functions.
43467         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43468         bookkeeping indicates that it's worth it.
43469         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43470
43471         * modules/mbsstr-tests: New file.
43472         * tests/test-mbsstr1.c: New file.
43473         * tests/test-mbsstr2.sh: New file.
43474         * tests/test-mbsstr2.c: New file.
43475         * tests/test-mbsstr3.sh: New file.
43476         * tests/test-mbsstr3.c: New file.
43477         * m4/locale-fr.m4: New file.
43478
43479 2007-02-11  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/mbsrchr.c (mbsrchr): Fix bug.
43482
43483         * modules/mbsrchr-tests: New file.
43484         * tests/test-mbsrchr.sh: New file.
43485         * tests/test-mbsrchr.c: New file.
43486
43487 2007-02-11  Bruno Haible  <bruno@clisp.org>
43488
43489         * lib/mbschr.c (mbschr): Fix bug.
43490
43491         * modules/mbschr-tests: New file.
43492         * tests/test-mbschr.sh: New file.
43493         * tests/test-mbschr.c: New file.
43494         * m4/locale-zh.m4: New file.
43495
43496 2007-02-11  Bruno Haible  <bruno@clisp.org>
43497
43498         Support for copying multibyte string iterators.
43499         * lib/mbiter.h: Include <string.h>.
43500         (mbiter_multi_copy): New function.
43501         (mbi_copy): New macro.
43502         * lib/mbuiter.h: Include <string.h>.
43503         (mbuiter_multi_copy): New function.
43504         (mbui_copy): New macro.
43505
43506 2007-02-11  Bruno Haible  <bruno@clisp.org>
43507
43508         New module mbslen.
43509         * modules/mbslen: New file.
43510         * lib/mbslen.c: New file.
43511         * lib/string_.h (mbslen): New declaration.
43512         * m4/mbslen.m4: New file.
43513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43514         GNULIB_MBSLEN.
43515         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43516         * MODULES.html.sh (Internationalization functions): Add mbslen.
43517
43518 2007-02-11  Bruno Haible  <bruno@clisp.org>
43519
43520         Ensure O(n) worst-case complexity of strcasestr substitute.
43521         * lib/strcasestr.c: Include stdbool.h.
43522         (knuth_morris_pratt): New function.
43523         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43524         bookkeeping indicates that it's worth it.
43525         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43526
43527         * modules/strcasestr-tests: New file.
43528         * tests/test-strcasestr.c: New file.
43529
43530 2007-02-11  Bruno Haible  <bruno@clisp.org>
43531
43532         Ensure O(n) worst-case complexity of c_strcasestr.
43533         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43534         (knuth_morris_pratt): New function.
43535         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43536         the bookkeeping indicates that it's worth it.
43537         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43538
43539         * modules/c-strcasestr-tests: New file.
43540         * tests/test-c-strcasestr.c: New file.
43541
43542 2007-02-11  Bruno Haible  <bruno@clisp.org>
43543
43544         Ensure O(n) worst-case complexity of c_strstr.
43545         * lib/c-strstr.c: Include stdbool.h, string.h.
43546         (knuth_morris_pratt): New function.
43547         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43548         bookkeeping indicates that it's worth it.
43549         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43550
43551         * lib/c-strstr.c: Complete rewrite for maintainability.
43552
43553         * modules/c-strstr-tests: New file.
43554         * tests/test-c-strstr.c: New file.
43555
43556 2007-02-11  Bruno Haible  <bruno@clisp.org>
43557
43558         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43559         5.2.1 and earlier, whereby \055 was treated just like the range
43560         delimiter '-'.
43561         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43562
43563 2007-02-08  Bruno Haible  <bruno@clisp.org>
43564
43565         * modules/regex (Depends-on): Add stdbool.
43566         Reported by Dalibor Topic <robilad@kaffe.org>.
43567
43568 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43569
43570         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43571         Prefer returning from main to exiting from it.
43572         Remove unnecessary parens after sizeof.
43573
43574 2007-02-05  Bruno Haible  <bruno@clisp.org>
43575
43576         New module mbssep.
43577         * modules/mbssep: New file.
43578         * lib/mbssep.c: New file.
43579         * lib/string_.h (strsep): Add a conditional link warning.
43580         (mbssep): New declaration.
43581         * m4/mbssep.m4: New file.
43582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43583         GNULIB_MBSSEP.
43584         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43585         * MODULES.html.sh (Internationalization functions): Add mbssep.
43586
43587 2007-02-05  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43590         Optimize search in case of 1 delimiter.
43591
43592 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43593
43594         * lib/acl.h: Include sys/types.h before sys/acl.h.
43595
43596 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43597
43598         Merge upstream fix for glibc bugzilla #3957:
43599
43600         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43601
43602         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43603         bit for RE_HAT_LISTS_NOT_NEWLINE.
43604         (build_charclass_op): Remove bogus comment.
43605
43606 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43607
43608         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43609
43610 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43611
43612         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43613         * lib/memmem.c [!defined _LIBC]: Include config.h.
43614
43615 2007-02-04  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43618         warning message.
43619
43620 2007-02-04  Bruno Haible  <bruno@clisp.org>
43621
43622         New module mbstok_r.
43623         * modules/mbstok_r: New file.
43624         * lib/mbstok_r.c: New file.
43625         * lib/string_.h (strtok_r): Change argument names to match the
43626         comments. Add a conditional link warning.
43627         (mbstok_r): New declaration.
43628         * m4/mbstok_r.m4: New file.
43629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43630         GNULIB_MBSTOK_R.
43631         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43632         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43633
43634 2007-02-04  Bruno Haible  <bruno@clisp.org>
43635
43636         New module mbsspn.
43637         * modules/mbsspn: New file.
43638         * lib/mbsspn.c: New file.
43639         * lib/string_.h (strspn): Add a conditional link warning.
43640         (mbsspn): New declaration.
43641         * m4/mbsspn.m4: New file.
43642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43643         GNULIB_MBSSPN.
43644         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43645         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43646
43647 2007-02-04  Bruno Haible  <bruno@clisp.org>
43648
43649         New module mbspbrk.
43650         * modules/mbspbrk: New file.
43651         * lib/mbspbrk.c: New file.
43652         * lib/string_.h (strpbrk): Add a conditional link warning.
43653         (mbspbrk): New declaration.
43654         * m4/mbspbrk.m4: New file.
43655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43656         GNULIB_MBSPBRK.
43657         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43658         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43659
43660 2007-02-04  Bruno Haible  <bruno@clisp.org>
43661
43662         New module mbscspn.
43663         * modules/mbscspn: New file.
43664         * lib/mbscspn.c: New file.
43665         * lib/string_.h (strcspn): Add a conditional link warning.
43666         (mbscspn): New declaration.
43667         * m4/mbscspn.m4: New file.
43668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43669         GNULIB_MBSCSPN.
43670         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43671         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43672
43673 2007-02-04  Bruno Haible  <bruno@clisp.org>
43674
43675         New module mbscasestr, reduced goal of strcasestr.
43676         * modules/mbscasestr: New file.
43677         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43678         (mbscasestr): Renamed from strcasestr.
43679         * lib/strcasestr.c: Don't include mbuiter.h.
43680         (strcasestr): Remove support for multibyte locales.
43681         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43682         Change the conditional link warning.
43683         (mbscasestr): New declaration.
43684         * m4/mbscasestr.m4: New file.
43685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43686         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43687         REPLACE_STRCASESTR.
43688         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43690         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43691         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43692         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43693         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43694         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43695         (Depends-on): Remove mbuiter.
43696         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43697
43698 2007-02-04  Bruno Haible  <bruno@clisp.org>
43699
43700         Simplify handling of strncasecmp.
43701         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43702         the conditional link warning.
43703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43704         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43706         * modules/strcase (configure.ac): Don't invoke
43707         gl_STRING_MODULE_INDICATOR.
43708         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43709
43710 2007-02-04  Bruno Haible  <bruno@clisp.org>
43711
43712         New module mbscasecmp, reduced goal of strcasecmp.
43713         * modules/mbscasecmp: New file.
43714         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43715         (mbscasecmp): Renamed from strcasecmp.
43716         * lib/strcasecmp.c: Don't include mbuiter.h.
43717         (strcasecmp): Remove support for multibyte locales.
43718         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43719         Change the conditional link warning.
43720         (mbscasecmp): New declaration.
43721         * m4/mbscasecmp.m4: New file.
43722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43723         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43724         REPLACE_STRCASECMP.
43725         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43727         GNULIB_MBSCASECMP.
43728         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43729         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43730         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43731         (Depends-on): Remove mbuiter.
43732         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43733
43734 2007-02-04  Bruno Haible  <bruno@clisp.org>
43735
43736         New module mbsstr. Remove module strstr.
43737         * modules/mbsstr: New file.
43738         * modules/strstr: Remove file.
43739         * lib/mbsstr.c: Renamed from lib/strstr.c.
43740         (mbsstr): Renamed from strstr.
43741         * lib/string_.h (strstr): Remove declaration. Change the conditional
43742         link warning.
43743         (mbsstr): New declaration.
43744         * m4/mbsstr.m4: New file.
43745         * m4/strstr.m4: Remove file.
43746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43747         REPLACE_STRSTR.
43748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43749         Don't initialize GNULIB_STRSTR.
43750         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43751         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43752         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43753         (Support for systems lacking ANSI C 89): Remove strstr.
43754
43755 2007-02-04  Bruno Haible  <bruno@clisp.org>
43756
43757         New module mbsrchr.
43758         * modules/mbsrchr: New file.
43759         * lib/mbsrchr.c: New file.
43760         * lib/string_.h (strrchr): Add a conditional link warning.
43761         (mbsrchr): New declaration.
43762         * m4/mbsrchr.m4: New file.
43763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43764         GNULIB_MBSRCHR.
43765         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43766         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43767
43768 2007-02-04  Bruno Haible  <bruno@clisp.org>
43769
43770         New module mbschr.
43771         * modules/mbschr: New file.
43772         * lib/mbschr.c: New file.
43773         * lib/string_.h (strchr): Add a conditional link warning.
43774         (mbschr): New declaration.
43775         * m4/mbschr.m4: New file.
43776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43777         GNULIB_MBSCHR.
43778         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43779         * MODULES.html.sh (Internationalization functions): Add mbschr.
43780
43781 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43782
43783         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43784
43785         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43786
43787 2007-02-04  Bruno Haible  <bruno@clisp.org>
43788
43789         New module description section 'configure.ac-early'.
43790         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43791         (func_get_autoconf_early_snippet): New function.
43792         (func_import, func_create_testdir): Use it. Remove special cases for
43793         modules 'extensions' and 'lock'.
43794         * modules/extensions (configure.ac-early): Require
43795         gl_USE_SYSTEM_EXTENSIONS.
43796         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43797
43798 2007-02-04  Bruno Haible  <bruno@clisp.org>
43799
43800         Make use of gcj-4.3's -fsource and -ftarget option.
43801         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43802         and if so try the options -fsource and -ftarget.
43803         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43804         source_version, ftarget_option, target_version arguments.
43805         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43806         (is_envjavac_oldgcj_14_14_usable): Renamed from
43807         is_envjavac_gcj_14_14_usable.
43808         (is_envjavac_oldgcj_14_13_usable): Renamed from
43809         is_envjavac_gcj_14_13_usable.
43810         (is_gcj_present): Update.
43811         (is_gcj_43, is_gcj43_usable): New functions.
43812         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43813         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43814         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43815         try the options -fsource and -ftarget.
43816
43817 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43818
43819         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43820         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43821         larger value.
43822
43823 2007-02-03  Jim Meyering  <jim@meyering.net>
43824
43825         Give tools a better chance to allocate space for very large buffers.
43826         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43827
43828         Make pwd and readlink work also when run with an unreadable parent dir
43829         on systems with openat support.
43830         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43831         provided getcwd function, even when we have openat support.
43832         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43833
43834 2007-02-02  Bruno Haible  <bruno@clisp.org>
43835
43836         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43837         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43838         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43839         portability problems if one of these functions is only used on specific
43840         platforms.
43841         Reported by Paul Eggert.
43842
43843 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43844
43845         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43846         is causing more trouble than it's curing.
43847         * lib/regex_internal.h (__mempcpy): Remove.
43848         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43849         (and make the code a tad smaller to boot).
43850         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43851
43852 2007-02-02  Jim Meyering  <jim@meyering.net>
43853
43854         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43855         section, not in the Makefile.am: one.
43856
43857 2007-02-02  Eric Blake  <ebb9@byu.net>
43858
43859         * lib/strchrnul.c: Always include config.h first.
43860
43861         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43862         gnulib strstr is not necessary here.
43863
43864 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43865
43866         * m4/socklen.m4: Fix typo.
43867
43868 2007-02-02  Eric Blake  <ebb9@byu.net>
43869
43870         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43871         * modules/netinet_in (Makefile.am): Likewise.
43872
43873 2007-02-01  Bruno Haible  <bruno@clisp.org>
43874
43875         * lib/string_.h (GL_LINK_WARNING): New macro.
43876         (strcasecmp, strstr, strcasestr): If provided by the system,
43877         conditionally define as a macro that leads to a warning instead of to
43878         an error.
43879         (strncasecmp): Conditionally define as a macro that leads to a warning.
43880
43881 2007-02-01  Karl Berry  <karl@gnu.org>
43882
43883         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43884
43885 2007-02-01  Bruno Haible  <bruno@clisp.org>
43886
43887         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43888         renamings.
43889
43890 2007-02-01  Eric Blake  <ebb9@byu.net>
43891
43892         * modules/regex (Depends-on): Revert dependence on mempcpy.
43893         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43894         module's definition of mempcpy.
43895         Reported by Paul Eggert.
43896
43897 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43900         the symbol XYZ before redefining it.  This fixes a problem with
43901         programs that don't use XYZ, when compiled on systems that define
43902         XYZ to something else.
43903
43904 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43905
43906         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43907         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43908         writeable to group or other and (2) is intended to have a special
43909         mode bit that is set or cleared.  In such a case, the directory
43910         should be neither group- nor other-writeable until the special
43911         mode bits are right.
43912
43913 2007-01-31  Eric Blake  <ebb9@byu.net>
43914
43915         * modules/mountlist (Depends-on): Add strstr.
43916
43917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43918         bug.
43919         * modules/string (Makefile.am): Remove redundant replacement.
43920         * modules/regex (Depends-on): Add mempcpy.
43921
43922 2007-01-31  Bruno Haible  <bruno@clisp.org>
43923
43924         New module description field 'Link'.
43925         * gnulib-tool (func_usage): Document --extract-link-directive.
43926         (sed_extract_prog): Recognize 'Link' directive.
43927         (func_get_link_directive): New function.
43928         (func_import): Show summary of link directives.
43929         Handle --extract-link-directive option.
43930         * modules/acl (Link): New section.
43931         * modules/clock-time (Link): New section.
43932         * modules/euidaccess (Link): New section.
43933         * modules/gettext (Link): New section.
43934         * modules/iconv (Link): New section.
43935         * modules/lock (Link): New section.
43936         * modules/nanosleep (Link): New section.
43937         * modules/readline (Link): New section.
43938
43939 2007-01-27  Bruno Haible  <bruno@clisp.org>
43940
43941         Enforce the use of gnulib modules for unportable <string.h> functions.
43942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43943         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43944         (gl_HEADER_STRING_H_BODY): Require it.
43945         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43946         the symbol XYZ to one that gives a link error.
43947         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43948         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43949         * modules/mempcpy (configure.ac): Likewise.
43950         * modules/memrchr (configure.ac): Likewise.
43951         * modules/stpcpy (configure.ac): Likewise.
43952         * modules/stpncpy (configure.ac): Likewise.
43953         * modules/strcase (configure.ac): Likewise.
43954         * modules/strcasestr (configure.ac): Likewise.
43955         * modules/strchrnul (configure.ac): Likewise.
43956         * modules/strdup (configure.ac): Likewise.
43957         * modules/strndup (configure.ac): Likewise.
43958         * modules/strnlen (configure.ac): Likewise.
43959         * modules/strpbrk (configure.ac): Likewise.
43960         * modules/strsep (configure.ac): Likewise.
43961         * modules/strstr (configure.ac): Likewise.
43962         * modules/strtok_r (configure.ac): Likewise.
43963
43964 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43965
43966         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43967
43968 2007-01-30  Jim Meyering  <jim@meyering.net>
43969
43970         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43971
43972 2007-01-29  Bruno Haible  <bruno@clisp.org>
43973
43974         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43975         * lib/execute.c: Likewise.
43976         * lib/pipe.c: Likewise.
43977         * lib/printf-args.h: Likewise.
43978         * lib/printf-args.c: Likewise.
43979         * lib/printf-parse.c: Likewise.
43980         * lib/vasnprintf.c: Likewise.
43981
43982 2007-01-29  Eric Blake  <ebb9@byu.net>
43983
43984         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43985         declaration.
43986
43987 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43988
43989         * lib/strptime.h (strptime): Use 'restrict' for args where
43990         POSIX requires this.
43991         * lib/strptime.c (strptime): Likewise.
43992         Change license notice from LGPL to GPL, since gnulib-tool will
43993         change this as needed.
43994         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43995         defined.
43996         Include "strptime.h" first, to check interface.
43997         Do not #undef _LIBC and _NL_CURRENT.
43998         Do not include <stdlib.h>; no longer needed.
43999         Include "time_r.h" and declare ptime_locale_status
44000         only if _LIBC is not defined.
44001         (__P): Remove unused macro.
44002         (match_string): Bring back glibc version, but use it only if _LIBC
44003         is defined.
44004         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44005         Remove unnecessary assertion and abort() call.
44006         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44007         * m4/strptime.m4: Fix serial number comment.
44008         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44009         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44010         (Depends-on): Add time_r.
44011
44012 2007-01-29  Bruno Haible  <bruno@clisp.org>
44013
44014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44015         strptime.
44016         * modules/strptime (Depends-on): Add stdbool.
44017         * lib/strptime.h: Include <time.h> always. Add comments.
44018
44019 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44020
44021         * modules/strptime: New file.
44022         * lib/strptime.h: New file.
44023         * lib/strptime.c: New file.
44024         * m4/strptime.m4: New file.
44025
44026 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44027
44028         * MODULES.html.sh: New module mpsort.
44029         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44030
44031         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44032         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44034         All uses changed.
44035         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44036         All uses changed.
44037         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44038         to _Restrict_.
44039         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44040         the parameter matches the prototype.
44041
44042 2007-01-28  Jim Meyering  <jim@meyering.net>
44043
44044         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44045         sys/time.h here, reverting that part of the previous patch:
44046         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44047
44048 2007-01-28  Bruno Haible  <bruno@clisp.org>
44049
44050         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44051         value of $(SYS_TIME_H).
44052         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44053         remove it conditionally, too. [added by Jim Meyering]
44054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44056         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44057         GETTIMEOFDAY_REPLACEMENT to 1.
44058
44059 2007-01-28  Bruno Haible  <bruno@clisp.org>
44060
44061         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44062         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44064         Set UNISTD_H instead of UNISTD_H2.
44065         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44066
44067 2007-01-28  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44070         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44071
44072 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44073
44074         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44075         (func_create_testdir): Ensure C locale for `grep' and `tr'
44076         character ranges.
44077         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44078         ACLOCAL_AMFLAGS parsing state machine.
44079
44080 2007-01-27  Bruno Haible  <bruno@clisp.org>
44081
44082         * modules/unistr/base: Update.
44083
44084 2007-01-27  Bruno Haible  <bruno@clisp.org>
44085
44086         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44087         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44088         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44089         modules/unistr/u32-mbtouc.
44090         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44091         * lib/unistr.h: Update.
44092         * lib/linebreak.c: Update.
44093         * modules/unistr/u32-mbtouc: Renamed from
44094         modules/unistr/u32-mbtouc-safe.
44095         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44096         * lib/unistr.h: Update.
44097         * lib/unistr/u32-to-u8.c: Update.
44098         * lib/unistr/u32-to-u16.c: Update.
44099
44100 2007-01-27  Bruno Haible  <bruno@clisp.org>
44101
44102         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44103         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44104         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44105         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44106         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44107         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44108         modules/unistr/u16-mbtouc.
44109         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44110         * lib/unistr.h: Update.
44111         * lib/linebreak.c: Update.
44112         * modules/linebreak: Update.
44113         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44114         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44115         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44116         * modules/unistr/u16-mbtouc: Renamed from
44117         modules/unistr/u16-mbtouc-safe.
44118         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44119         * lib/unistr.h: Update.
44120         * lib/unistr/u16-to-u8.c: Update.
44121         * modules/unistr/u16-to-u8: Update.
44122         * lib/unistr/u16-to-u32.c: Update.
44123         * modules/unistr/u16-to-u32: Update.
44124
44125 2007-01-27  Bruno Haible  <bruno@clisp.org>
44126
44127         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44128         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44129         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44130         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44131         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44132         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44133         modules/unistr/u8-mbtouc.
44134         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44135         * lib/unistr.h: Update.
44136         * lib/striconveh.c: Update.
44137         * modules/striconveh: Update.
44138         * lib/linebreak.c: Update.
44139         * modules/linebreak: Update.
44140         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44141         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44142         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44143         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44144         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44145         * lib/unistr.h: Update.
44146         * lib/striconveh.c: Update.
44147         * modules/striconveh: Update.
44148         * lib/unistr/u8-to-u16.c: Update.
44149         * modules/unistr/u8-to-u16: Update.
44150         * lib/unistr/u8-to-u32.c: Update.
44151         * modules/unistr/u8-to-u32: Update.
44152
44153 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44154
44155         Sync from Libtool.
44156         * lib/argz.c: Do not include strings.h nor memory.h, include
44157         string.h unconditionally.  Patch by Simon Josefsson.
44158
44159 2007-01-27  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44162         from gl_HEADER_STRING_H_BODY.
44163         (gl_HEADER_STRING_H_BODY): Require it.
44164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44166         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44169         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44171         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44172         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44175         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44176         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44178         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44179
44180 2007-01-27  Bruno Haible  <bruno@clisp.org>
44181
44182         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44183         check_PROGRAMS into noinst_PROGRAMS.
44184         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44185         check_PROGRAMS in this case.
44186         (func_import): Set for_test to false.
44187         (func_create_testdir): Set for_test to true.
44188
44189 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44190             Bruno Haible  <bruno@clisp.org>
44191
44192         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44193         (Depends-on): Add string.
44194         (Includes): Use <string.h> instead of strcasestr.h.
44195         * modules/string (Makefile.am): Also substitute the value of
44196         REPLACE_STRCASESTR.
44197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44198         assume strcasestr is declared in <string.h> not <strings.h>. Also
44199         set REPLACE_STRCASESTR.
44200         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44201         REPLACE_STRCASESTR.
44202         * lib/strcasestr.h: Remove file.
44203         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44204         * lib/string_.h (strcasestr): New declaration.
44205
44206 2007-01-27  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/string_.h: Use 'extern'.
44209
44210 2007-01-27  Jim Meyering  <jim@meyering.net>
44211
44212         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44213         of set-but-not-used local, "q".
44214
44215         * lib/mempcpy.c: Include <config.h> before <string.h>.
44216         This fixes a compilation error on HP-UX, due to the system's
44217         "restrict"-using mempcpy prototype.
44218
44219 2007-01-26  Bruno Haible  <bruno@clisp.org>
44220
44221         Small optimization.
44222         * lib/javacomp.c: Include c-strstr.h.
44223          (is_envjavac_gcj): Use c_strstr instead of strstr.
44224         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44225
44226 2007-01-26  Bruno Haible  <bruno@clisp.org>
44227
44228         * MODULES.html.sh (Unicode string functions): Add the new modules.
44229
44230         * modules/uniconv/u32-strconv-to-locale: New file.
44231         * lib/uniconv/u32-strconv-to-locale.c: New file.
44232
44233         * modules/uniconv/u16-strconv-to-locale: New file.
44234         * lib/uniconv/u16-strconv-to-locale.c: New file.
44235
44236         * modules/uniconv/u8-strconv-to-locale: New file.
44237         * lib/uniconv/u8-strconv-to-locale.c: New file.
44238
44239         * modules/uniconv/u32-strconv-from-locale: New file.
44240         * lib/uniconv/u32-strconv-from-locale.c: New file.
44241
44242         * modules/uniconv/u16-strconv-from-locale: New file.
44243         * lib/uniconv/u16-strconv-from-locale.c: New file.
44244
44245         * modules/uniconv/u8-strconv-from-locale: New file.
44246         * lib/uniconv/u8-strconv-from-locale.c: New file.
44247
44248         * modules/uniconv/u32-strconv-to-enc: New file.
44249         * lib/uniconv/u32-strconv-to-enc.c: New file.
44250         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44251         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44252
44253         * modules/uniconv/u16-strconv-to-enc: New file.
44254         * lib/uniconv/u16-strconv-to-enc.c: New file.
44255         * lib/uniconv/u-strconv-to-enc.h: New file.
44256         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44257         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44258
44259         * modules/uniconv/u8-strconv-to-enc: New file.
44260         * lib/uniconv/u8-strconv-to-enc.c: New file.
44261         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44262         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44263
44264         * modules/uniconv/u32-strconv-from-enc: New file.
44265         * lib/uniconv/u32-strconv-from-enc.c: New file.
44266         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44267         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44268
44269         * modules/uniconv/u16-strconv-from-enc: New file.
44270         * lib/uniconv/u16-strconv-from-enc.c: New file.
44271         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44272         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44273
44274         * modules/uniconv/u8-strconv-from-enc: New file.
44275         * lib/uniconv/u8-strconv-from-enc.c: New file.
44276         * lib/uniconv/u-strconv-from-enc.h: New file.
44277         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44278         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44279
44280         * modules/uniconv/u32-conv-from-enc: New file.
44281         * lib/uniconv/u32-conv-from-enc.c: New file.
44282         * modules/uniconv/u32-conv-from-enc-tests: New file.
44283         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44284
44285         * modules/uniconv/u16-conv-from-enc: New file.
44286         * lib/uniconv/u16-conv-from-enc.c: New file.
44287         * lib/uniconv/u-conv-from-enc.h: New file.
44288         * modules/uniconv/u16-conv-from-enc-tests: New file.
44289         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44290
44291         * modules/uniconv/u8-conv-from-enc: New file.
44292         * lib/uniconv/u8-conv-from-enc.c: New file.
44293         * modules/uniconv/u8-conv-from-enc-tests: New file.
44294         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44295
44296         * modules/uniconv/base: New file.
44297         * lib/uniconv.h: New file.
44298
44299 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44300
44301         * doc/gnulib-tool.texi (Initial import): Update to match current
44302         behavior with strdup module.
44303         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44304         * lib/memmem.h: Remove; all uses removed.  This is now done
44305         by <string.h>.
44306         * lib/mempcpy.h: Likewise.
44307         * lib/memrchr.h: Likewise.
44308         * lib/stpcpy.h: Likewise.
44309         * lib/stpncpy.h: Likewise.
44310         * lib/strcase.h: Likewise.
44311         * lib/strchrnul.h: Likewise.
44312         * lib/strdup.h: Likewise.
44313         * lib/strndup.h: Likewise.
44314         * lib/strnlen.h: Likewise.
44315         * lib/strpbrk.h: Likewise.
44316         * lib/strsep.h: Likewise.
44317         * lib/strstr.h: Likewise.
44318         * lib/strtok_r.h: Likewise.
44319         * lib/string_.h: New file.
44320         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44321         Rely on <string.h> instead.
44322         * lib/canon-host.c: Likewise.
44323         * lib/chdir-long.c: Likewise.
44324         * lib/concatpath.c: Likewise.
44325         * lib/exclude.c: Likewise.
44326         * lib/fchdir.c: Likewise.
44327         * lib/getaddrinfo.c: Likewise.
44328         * lib/getcwd.c: Likewise.
44329         * lib/getsubopt.c: Likewise.
44330         * lib/glob.c: Likewise.
44331         * lib/hard-locale.c: Likewise.
44332         * lib/iconvme.c: Likewise.
44333         * lib/javacomp.c: Likewise.
44334         * lib/mempcpy.c: Likewise.
44335         * lib/memrchr.c: Likewise.
44336         * lib/regex_internal.h: Likewise.
44337         * lib/stpncpy.c: Likewise.
44338         * lib/strcasecmp.c: Likewise.
44339         * lib/strchrnul.c: Likewise.
44340         * lib/strdup.c: Likewise.
44341         * lib/striconv.c: Likewise.
44342         * lib/striconveh.c: Likewise.
44343         * lib/striconveha.c: Likewise.
44344         * lib/strncasecmp.c: Likewise.
44345         * lib/strndup.c: Likewise.
44346         * lib/strnlen.c: Likewise.
44347         * lib/strsep.c: Likewise.
44348         * lib/strstr.c: Likewise.
44349         * lib/strtok_r.c: Likewise.
44350         * lib/userspec.c: Likewise.
44351         * lib/w32spawn.h: Likewise.
44352         * lib/xstrndup.c: Likewise.
44353         * lib/mountlist.c (strstr): Remove decl.
44354         * m4/string_h.m4: New file.
44355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44356         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44358         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44359         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44360         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44361         Set REPLACE_STRCASECMP if necessary.
44362         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44363         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44364         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44366         HAVE_DECL_STRDUP if necessary.
44367         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44368         since gl_FUNC_STRNDUP does that now.
44369         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44370         Check for decl here...
44371         (gl_PREREQ_STRNLEN): ... not here.
44372         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44373         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44374         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44376         necessary.
44377         * modules/string: New file.
44378         * modules/memmem (Files): Remove special-purpose include file.
44379         (Depends-on): Add string.
44380         (Include): Include <string.h>, not the removed file.
44381         * modules/mempcpy: Likewise.
44382         * modules/memrchr: Likewise.
44383         * modules/stpcpy: Likewise.
44384         * modules/stpncpy: Likewise.
44385         * modules/strcase: Likewise.
44386         * modules/strchrnul: Likewise.
44387         * modules/strdup: Likewise.
44388         * modules/strndup: Likewise.
44389         * modules/strnlen: Likewise.
44390         * modules/strpbrk: Likewise.
44391         * modules/strsep: Likewise.
44392         * modules/strstr: Likewise.
44393         * modules/strtok_r: Likewise.
44394         * tests/test-dirname.c: Don't include "strdup.h", since
44395         <string.h> now suffices.
44396         * tests/test-memmem.c: Don't include "memmem.h", since
44397         <string.h> now suffices.
44398
44399 2007-01-25  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44402         *resultp is 0.
44403
44404         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44405         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44406         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44407         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44408
44409         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44410         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44411         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44412         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44413         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44414         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44415
44416 2007-01-24  Bruno Haible  <bruno@clisp.org>
44417
44418         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44420         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44421         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44422         gl_FUNC_FTS_CORE.
44423         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44424         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44425         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44426         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44427         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44428         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44429         gl_FUNC_FCHOWNAT.
44430         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44431         gl_FUNC_STRFTIME.
44432         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44433         Reported by Ralf Wildenhues.
44434
44435 2007-01-24  Bruno Haible  <bruno@clisp.org>
44436
44437         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44438         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44439         gl_GETADDRINFO.
44440         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44441         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44442         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44443
44444 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44447         Don't use 'exit'; just return from 'main'.
44448         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44449
44450         * lib/fnmatch_.h: Readjust white space and comments to match
44451         glibc, to avoid spurious diffs.
44452
44453 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44456         2004-12-01 change by Jakub Jelinek, since this code won't compile
44457         if !LIBC.  Problem reported by Bob Proulx.
44458
44459 2007-01-23  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/striconveh.c: Include c-strcaseeq.h.
44462         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44463         * modules/striconveh (Depends-on): Add c-strcaseeq.
44464
44465 2007-01-23  Bruno Haible  <bruno@clisp.org>
44466
44467         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44468
44469         * modules/c-strcaseeq: New file.
44470         * lib/c-strcaseeq.h: New file.
44471
44472         * modules/streq: New file.
44473         * lib/streq.h: New file.
44474
44475 2007-01-23  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/striconveha-tests: New file.
44478         * tests/test-striconveha.c: New file.
44479
44480         * lib/striconveha.h: Include <stdbool.h>.
44481         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44482         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44483         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44484         (mem_iconveha): New function.
44485         (str_iconveha_notranslit): Renamed from str_iconveha.
44486         (str_iconveha): New function.
44487         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44488         c-strcase.
44489
44490 2007-01-23  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44493         encodings without forgiving before trying any encoding with handler.
44494         (str_iconveha): Try all encodings without forgiving before trying any
44495         encoding with handler.
44496
44497 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         Import the following changes from libc.
44500
44501         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44502
44503         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44504
44505         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44506
44507         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44508         normal_bracket label.
44509
44510         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44511
44512         [BZ #361]
44513         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44514         to normal_bracket after fetching the next character.
44515
44516 2007-01-22  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44519         argument.
44520         * lib/striconveh.c (iconv_carefully_1): New function.
44521         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44522         argument.
44523         (str_cd_iconveh): Update.
44524         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44525         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44526         * tests/test-striconveh.c (MAGIC): New macro.
44527         (new_offsets): New function.
44528         (main): Test call with and without offsets.
44529
44530 2007-01-22  Bruno Haible  <bruno@clisp.org>
44531
44532         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44533         * modules/sys_select (Makefile.am): Likewise.
44534         * modules/sys_socket (Makefile.am): Likewise.
44535         * modules/sys_time (Makefile.am): Likewise.
44536
44537 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         * modules/gettimeofday (License): Change from GPL to LGPL, since
44540         gettimeofday is a library function.
44541
44542 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44543
44544         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44545
44546 2007-01-21  Bruno Haible  <bruno@clisp.org>
44547
44548         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44549
44550 2007-01-21  Bruno Haible  <bruno@clisp.org>
44551
44552         * modules/striconveha: New file.
44553         * lib/striconveha.h: New file.
44554         * lib/striconveha.c: New file.
44555         * MODULES.html.sh (Internationalization functions): Add striconveha.
44556         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44557         string.
44558         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44559
44560 2007-01-21  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44563         * lib/striconveh.c (str_iconveh): Likewise.
44564
44565 2007-01-21  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/striconveh.h (mem_iconveh): New declaration.
44568         * lib/striconveh.c (mem_iconveh): New function.
44569         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44570
44571 2007-01-21  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44574
44575         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44576         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44577         original result buffer.
44578         (str_cd_iconveh): Update.
44579         * tests/test-striconveh.c (main): Update.
44580
44581         * lib/striconv.h (mem_cd_iconv): Change specification.
44582         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44583         result buffer.
44584         (str_cd_iconv): Update.
44585         * tests/test-striconv.c (main): Update.
44586
44587 2007-01-21  Bruno Haible  <bruno@clisp.org>
44588
44589         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44590
44591 2007-01-20  Jim Meyering  <jim@meyering.net>
44592
44593         * lib/userspec.c (parse_with_separator): If a user or group string
44594         starts with "+", skip the corresponding name-to-ID look-up, since
44595         such a look-up must fail: user and group names may not include "+".
44596
44597 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44598
44599         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44600         since we now assume the sys_time module.
44601         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44602         check for sys/time.h; no longer needed.
44603         * modules/poll (Depends-on): Depend on sys_time.
44604
44605 2007-01-18  Bruno Haible  <bruno@clisp.org>
44606
44607         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44608         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44609
44610         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44611         gettimeofday.
44612
44613         * tests/test-gettimeofday.c: Include <time.h>.
44614         (dummy): Remove variable.
44615
44616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44617         gl_HEADER_SYS_TIME_H.
44618         (gl_HEADER_SYS_TIME_H): New macro.
44619
44620         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44621         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44622         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44623         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44624         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44626         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44627         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44628         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44629         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44630         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44631
44632         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44633         last change; it caused a compilation error when cross-compiling to
44634         Cygwin.
44635
44636 2007-01-18  Jim Meyering  <jim@meyering.net>
44637
44638         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44639         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44640         than the race-prone "test -d sys || mkdir sys".
44641         (configure.ac): Use AC_PROG_MKDIR_P.
44642         * modules/sys_select: Likewise.
44643         * modules/sys_socket: Likewise.
44644         * modules/sys_time: Likewise.
44645
44646 2007-01-18  Eric Blake  <ebb9@byu.net>
44647
44648         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44649         replace gettimeofday.
44650         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44651         name, to avoid infinite recursion.
44652
44653 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44654
44655         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44656         module sys_time.
44657         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44658         assume timespec.h defines struct timeval.
44659         * lib/settime.c: Likewise.
44660         * lib/utimens.c: Likewise.
44661         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44662         since we now assume the gettimeofday module.
44663         * lib/tempname.c (__gen_tempname): Likewise.
44664         * lib/gettimeofday.h: Remove.
44665         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44666         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44667         Include <time.h>, for 'time()'.
44668         (localtime_buffer_addr): Also use this workaround if
44669         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44670         to simplify the uses.  All uses changed.
44671         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44672         that #undef is inside {}, and 'const' follows type name consistently.
44673         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44674         (gettimeofday): Do not use the maximum possible value for
44675         tv->tv_usec, since that might break usages other than ls.c.
44676         Instead, we'll leave ls.c alone.  This undoes today's patch
44677         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44678         we've never observed the problem but might as well keep the
44679         canary.
44680         * lib/nanosleep.c: Include timespec.h first, for interface check.
44681         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44682         now assume the sys_time module.
44683         * lib/tempname.c: Likewise.
44684         * lib/timespec.h: Likewise.
44685         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44686         needed.
44687         * lib/strftime.c: Likewise.
44688         * lib/timespec.h: Likewise.
44689         * lib/posixtm.c: Include posixtm.h first, for interface check.
44690         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44691         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44692         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44693         * lib/sys_time_.h: New file.
44694         * lib/timespec.h (struct timespec): Use long int, not long.
44695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44696         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44697         Remove obsolescent call to AC_HEADER_TIME.
44698         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44700         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44701         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44702         Likewise.
44703         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44704         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44706         into the sys_time module.  Check for gettimeofday just once.
44707         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44708         for gettimeofday signature to just check the signature.  Merely
44709         compile it, since linking doesn't test signature.  Improve test for
44710         whether gettimeofday.o is actually needed.
44711         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44712         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44713         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44714         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44715         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44716         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44717         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44718         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44719         than worrying about sys/time.h.
44720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44721         Don't bother worrying about TIME_WITH_SYS_TIME.
44722         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44723         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44724         * m4/sys_time_h.m4: New file.
44725         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44726         Don't include sys/time.h.  Return from main rather than exiting.
44727         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44728         all uses changed.
44729         * modules/gethrxtime (Depends-on): Add sys_time.
44730         * modules/gettime (Depends-on): Likewise.
44731         * modules/gettimeofday (Depends-on): Likewise.
44732         * modules/nanosleep (Depends-on): Likewise.
44733         * modules/settime (Depends-on): Likewise.
44734         * modules/tempname (Depends-on): Likewise.
44735         * modules/utimens (Depends-on): Likewise.
44736         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44737         (Include:) Change back to <sys/time.h>.
44738         (Maintainer:) Add self.
44739         * modules/sys_time: New file.
44740         * modules/tempname (Depends-on): Add gettimeofday.
44741         * tests/test-gettimeofday.c: Include <sys/time.h>
44742         rather than gettimeofday.h.
44743
44744 2007-01-17  Bruno Haible  <bruno@clisp.org>
44745
44746         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44747         the license default to GPL.
44748         (func_create_testdir): Don't complain if a module is LGPL and its
44749         tests module depends on GPLed modules.
44750
44751 2007-01-17  Bruno Haible  <bruno@clisp.org>
44752
44753         * lib/gettimeofday.c (gettimeofday): Add code for the case
44754         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44755         maximum possible value for tv->tv_usec, rather than the minimum one.
44756
44757 2005-10-08  Martin Lambers  <marlam@marlam.de>
44758 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44759 2007-01-16  Bruno Haible  <bruno@clisp.org>
44760
44761         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44762         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44763         gl_FUNC_GETTIMEOFDAY.
44764         (Include): Add gettimeofday.h.
44765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44766         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44767         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44768         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44769         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44770         * lib/gettimeofday.h: New file.
44771         * lib/gettimeofday.c: Include <sys/timeb.h>.
44772         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44773         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44774         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44775         fall back on time().
44776
44777         * tests/test-gettimeofday.c: New file.
44778         * modules/gettimeofday-tests: New file.
44779
44780 2007-01-16  Eric Blake  <ebb9@byu.net>
44781
44782         * modules/fnmatch (Depends-on): Depend on wchar.
44783         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44784         * m4/fnmatch.m4: Likewise.
44785         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44786         * m4/mbchar.m4: Likewise.
44787         * modules/mbswidth (Depends-on): Depend on wchar.
44788         * lib/mbswidth.c: Assume <wchar.h>.
44789         * m4/mbswidth.m4: Likewise.
44790         * modules/quotearg (Depends-on): Depend on wchar.
44791         * lib/quotearg.c: Assume <wchar.h>.
44792         * m4/quotearg.m4: Likewise.
44793         * modules/regex (Depends-on): Depend on wchar.
44794         * lib/regex_internal.h: Assume <wchar.h>.
44795         * m4/regex.m4: Likewise.
44796         * modules/stdint (Depends-on): Depend on wchar.
44797         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44798         * m4/stdint.m4: Likewise.
44799         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44800         * modules/strftime (Depends-on): Depend on wchar.
44801         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44802         * modules/strtol (Depends-on): Depend on wchar.
44803         * lib/strtol.c: Assume <wchar.h>.
44804         * modules/wcwidth (Depends-on): Depend on wchar.
44805         * lib/wcwidth.h: Assume <wchar.h>.
44806         * m4/wcwidth.m4: Likewise.
44807
44808 2007-01-16  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/csharpexec-script: New, created from...
44811         * modules/csharpexec: ... this.
44812
44813 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44814
44815         * modules/javaexec-script: New, created from...
44816         * modules/javaexec: ... this.
44817
44818 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44819
44820         * modules/poll (Dependencies): Add sys_select.
44821
44822 2007-01-15  Jim Meyering  <jim@meyering.net>
44823
44824         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44825         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44826         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44827         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44828
44829 2007-01-15  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/striconveh: New file.
44832         * lib/striconveh.h: New file.
44833         * lib/striconveh.c: New file.
44834         * MODULES.html.sh (Internationalization functions): Add striconveh.
44835
44836         * modules/striconveh-tests: New file.
44837         * tests/test-striconveh.c: New file.
44838
44839 2007-01-15  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44842         not from GNU libiconv or GNU libc.
44843
44844 2007-01-15  Bruno Haible  <bruno@clisp.org>
44845
44846         * doc/gnulib-intro.texi (Copyright): Explain the different license
44847         terms for module descriptions, autoconf macros, tests, documentation.
44848
44849 2007-01-14  Bruno Haible  <bruno@clisp.org>
44850
44851         * modules/striconv-tests: New file.
44852         * tests/test-striconv.c: New file.
44853
44854 2007-01-14  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/iconv-tests: New file.
44857         * tests/test-iconv.c: New file.
44858
44859 2007-01-14  Bruno Haible  <bruno@clisp.org>
44860
44861         * gnulib-tool (func_get_license): For test modules, use the license of
44862         the main module.
44863
44864 2007-01-14  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44867         if iconv is found to exist.
44868
44869 2007-01-14  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/c-ctype-tests: New file.
44872         * tests/test-c-ctype.c: New file.
44873
44874 2007-01-14  Bruno Haible  <bruno@clisp.org>
44875
44876         * modules/binary-io-tests: New file.
44877         * tests/test-binary-io.sh: New file.
44878         * tests/test-binary-io.c: New file.
44879
44880 2007-01-14  Bruno Haible  <bruno@clisp.org>
44881
44882         * modules/array-oset-tests: New file.
44883         * tests/test-array_oset.c: New file.
44884
44885 2007-01-14  Bruno Haible  <bruno@clisp.org>
44886
44887         * modules/array-list-tests: New file.
44888         * tests/test-array_list.c: New file.
44889
44890 2007-01-14  Bruno Haible  <bruno@clisp.org>
44891
44892         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44893         and make.
44894         Reported by Simon Josefsson in
44895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44896
44897 2007-01-14  Bruno Haible  <bruno@clisp.org>
44898
44899         * modules/allocsa-tests: New file.
44900         * tests/test-allocsa.c: New file.
44901
44902 2007-01-14  Bruno Haible  <bruno@clisp.org>
44903
44904         * modules/fchdir (Depends-on): Add absolute-header.
44905         * modules/unistd (Depends-on): Likewise.
44906
44907 2006-12-30  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/fchdir: New file.
44910         * modules/unistd (Files): Add lib/unistd_.h.
44911         (Makefile.am): Generate unistd.h from unistd_.h.
44912         * lib/fchdir.c: New file.
44913         * lib/dirent_.h: New file.
44914         * lib/unistd_.h: New file.
44915         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44916         * m4/fchdir.m4: New file.
44917         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44918         (gl_HEADER_UNISTD): Invoke it.
44919         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44920         function.
44921         * lib/backupfile.c (opendir, closedir): Undefine.
44922         * lib/chown.c (open, close): Undefine.
44923         * lib/clean-temp.c (open, close): Undefine.
44924         * lib/copy-file.c (open, close): Undefine.
44925         * lib/execute.c (open, close): Undefine.
44926         * lib/fsusage.c (open, close): Undefine.
44927         * lib/gc-gnulib.c (open, close): Undefine.
44928         * lib/getcwd.c (opendir, closedir): Undefine.
44929         * lib/glob.c (opendir, closedir): Undefine.
44930         * lib/javacomp.c (open, close): Undefine.
44931         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44932         * lib/openat-proc.c (open, close): Undefine.
44933         * lib/pagealign_alloc.c (open, close): Undefine.
44934         * lib/pipe.c (open, close): Undefine.
44935         * lib/progreloc.c (open, close): Undefine.
44936         * lib/savedir.c (opendir, closedir): Undefine.
44937         * lib/utime.c (open, close): Undefine.
44938         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44939
44940 2007-01-10  Bruno Haible  <bruno@clisp.org>
44941
44942         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44943
44944 2007-01-12  Eric Blake  <ebb9@byu.net>
44945
44946         Provide a robust <wchar.h>.  Further simplifications are now
44947         possible in other modules, but not included here.
44948         * modules/wchar: New module.
44949         * m4/wchar.m4: New file.
44950         * lib/wchar_.h: Likewise.
44951         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44952         of the new module.
44953         * MODULES.html.sh (Extended multibyte and wide character utilities):
44954         New section.
44955
44956 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44957
44958         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44959         to a reasonable default for memory allocation.
44960         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44961         file system that reports garbage st_size values for symlinks.
44962         Problem reported by Liyang Hu.
44963
44964 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44965
44966         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44967         Emacs .#* auto-save files).
44968
44969 2007-01-11  Bruno Haible  <bruno@clisp.org>
44970
44971         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44972         directory.
44973
44974 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         Use @...@ consistently in lib/wctype_.h.
44977         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44978         on it being set to 1 or 0.
44979         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44980         go back to AC_SUBSTing it.
44981         * modules/wctype (Makefile.am): Undo previous change.
44982
44983 2007-01-10  Eric Blake  <ebb9@byu.net>
44984
44985         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44986         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44987         * modules/wctype (Makefile.am): Likewise.
44988         Reported by Chris McGuire.
44989
44990 2007-01-10  Jim Meyering  <jim@meyering.net>
44991
44992         fts.c: a small readability/maintainability improvement
44993         * lib/fts.c (fts_read): Make this code slightly more readable and
44994         maintainable by hoisting the "sp->fts_cur = p" assignments to
44995         immediately follow the statements that set P.  Derived from
44996         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44997
44998 2007-01-10  Eric Blake  <ebb9@byu.net>
44999
45000         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45001         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45003         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45004         Reported by Chris McGuire.
45005
45006 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45007
45008         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45009         in sed script.
45010
45011 2007-01-09  Bruno Haible  <bruno@clisp.org>
45012
45013         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45014         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45015         variables.
45016         (func_module): Use them.
45017
45018 2007-01-09  Bruno Haible  <bruno@clisp.org>
45019
45020         * modules/unistr/base: New file.
45021         * lib/unistr.h: New file.
45022
45023         * modules/unistr/u8-to-u16: New file.
45024         * lib/unistr/u8-to-u16.c: New file.
45025
45026         * modules/unistr/u8-to-u32: New file.
45027         * lib/unistr/u8-to-u32.c: New file.
45028
45029         * modules/unistr/u16-to-u8: New file.
45030         * lib/unistr/u16-to-u8.c: New file.
45031
45032         * modules/unistr/u16-to-u32: New file.
45033         * lib/unistr/u16-to-u32.c: New file.
45034
45035         * modules/unistr/u32-to-u8: New file.
45036         * lib/unistr/u32-to-u8.c: New file.
45037
45038         * modules/unistr/u32-to-u16: New file.
45039         * lib/unistr/u32-to-u16.c: New file.
45040
45041         * modules/unistr/u8-check: New file.
45042         * modules/unistr/u16-check: New file.
45043         * modules/unistr/u32-check: New file.
45044         * lib/unistr/u8-check.c: New file.
45045         * lib/unistr/u16-check.c: New file.
45046         * lib/unistr/u32-check.c: New file.
45047
45048         * modules/unistr/u8-chr: New file.
45049         * modules/unistr/u16-chr: New file.
45050         * modules/unistr/u32-chr: New file.
45051         * lib/unistr/u8-chr.c: New file.
45052         * lib/unistr/u16-chr.c: New file.
45053         * lib/unistr/u32-chr.c: New file.
45054
45055         * modules/unistr/u8-cmp: New file.
45056         * modules/unistr/u16-cmp: New file.
45057         * modules/unistr/u32-cmp: New file.
45058         * lib/unistr/u8-cmp.c: New file.
45059         * lib/unistr/u16-cmp.c: New file.
45060         * lib/unistr/u32-cmp.c: New file.
45061
45062         * modules/unistr/u8-cpy: New file.
45063         * modules/unistr/u16-cpy: New file.
45064         * modules/unistr/u32-cpy: New file.
45065         * lib/unistr/u8-cpy.c: New file.
45066         * lib/unistr/u16-cpy.c: New file.
45067         * lib/unistr/u32-cpy.c: New file.
45068         * lib/unistr/u-cpy.h: New file.
45069
45070         * modules/unistr/u8-cpy-alloc: New file.
45071         * modules/unistr/u16-cpy-alloc: New file.
45072         * modules/unistr/u32-cpy-alloc: New file.
45073         * lib/unistr/u8-cpy-alloc.c: New file.
45074         * lib/unistr/u16-cpy-alloc.c: New file.
45075         * lib/unistr/u32-cpy-alloc.c: New file.
45076         * lib/unistr/u-cpy-alloc.h: New file.
45077
45078         * modules/unistr/u8-endswith: New file.
45079         * modules/unistr/u16-endswith: New file.
45080         * modules/unistr/u32-endswith: New file.
45081         * lib/unistr/u8-endswith.c: New file.
45082         * lib/unistr/u16-endswith.c: New file.
45083         * lib/unistr/u32-endswith.c: New file.
45084         * lib/unistr/u-endswith.h: New file.
45085
45086         * modules/unistr/u8-mblen: New file.
45087         * modules/unistr/u16-mblen: New file.
45088         * modules/unistr/u32-mblen: New file.
45089         * lib/unistr/u8-mblen.c: New file.
45090         * lib/unistr/u16-mblen.c: New file.
45091         * lib/unistr/u32-mblen.c: New file.
45092
45093         * modules/unistr/u8-mbtouc: New file.
45094         * modules/unistr/u16-mbtouc: New file.
45095         * modules/unistr/u32-mbtouc: New file.
45096         * lib/unistr/u8-mbtouc.c: New file.
45097         * lib/unistr/u16-mbtouc.c: New file.
45098         * lib/unistr/u32-mbtouc.c: New file.
45099
45100         * modules/unistr/u8-mbtouc-safe: New file.
45101         * modules/unistr/u16-mbtouc-safe: New file.
45102         * modules/unistr/u32-mbtouc-safe: New file.
45103         * lib/unistr/u8-mbtouc-safe.c: New file.
45104         * lib/unistr/u16-mbtouc-safe.c: New file.
45105         * lib/unistr/u32-mbtouc-safe.c: New file.
45106
45107         * modules/unistr/u8-move: New file.
45108         * modules/unistr/u16-move: New file.
45109         * modules/unistr/u32-move: New file.
45110         * lib/unistr/u8-move.c: New file.
45111         * lib/unistr/u16-move.c: New file.
45112         * lib/unistr/u32-move.c: New file.
45113         * lib/unistr/u-move.h: New file.
45114
45115         * modules/unistr/u8-next: New file.
45116         * modules/unistr/u16-next: New file.
45117         * modules/unistr/u32-next: New file.
45118         * lib/unistr/u8-next.c: New file.
45119         * lib/unistr/u16-next.c: New file.
45120         * lib/unistr/u32-next.c: New file.
45121
45122         * modules/unistr/u8-prev: New file.
45123         * modules/unistr/u16-prev: New file.
45124         * modules/unistr/u32-prev: New file.
45125         * lib/unistr/u8-prev.c: New file.
45126         * lib/unistr/u16-prev.c: New file.
45127         * lib/unistr/u32-prev.c: New file.
45128
45129         * modules/unistr/u8-set: New file.
45130         * modules/unistr/u16-set: New file.
45131         * modules/unistr/u32-set: New file.
45132         * lib/unistr/u8-set.c: New file.
45133         * lib/unistr/u16-set.c: New file.
45134         * lib/unistr/u32-set.c: New file.
45135         * lib/unistr/u-set.h: New file.
45136
45137         * modules/unistr/u8-startswith: New file.
45138         * modules/unistr/u16-startswith: New file.
45139         * modules/unistr/u32-startswith: New file.
45140         * lib/unistr/u8-startswith.c: New file.
45141         * lib/unistr/u16-startswith.c: New file.
45142         * lib/unistr/u32-startswith.c: New file.
45143         * lib/unistr/u-startswith.h: New file.
45144
45145         * modules/unistr/u8-stpcpy: New file.
45146         * modules/unistr/u16-stpcpy: New file.
45147         * modules/unistr/u32-stpcpy: New file.
45148         * lib/unistr/u8-stpcpy.c: New file.
45149         * lib/unistr/u16-stpcpy.c: New file.
45150         * lib/unistr/u32-stpcpy.c: New file.
45151         * lib/unistr/u-stpcpy.h: New file.
45152
45153         * modules/unistr/u8-stpncpy: New file.
45154         * modules/unistr/u16-stpncpy: New file.
45155         * modules/unistr/u32-stpncpy: New file.
45156         * lib/unistr/u8-stpncpy.c: New file.
45157         * lib/unistr/u16-stpncpy.c: New file.
45158         * lib/unistr/u32-stpncpy.c: New file.
45159         * lib/unistr/u-stpncpy.h: New file.
45160
45161         * modules/unistr/u8-strcat: New file.
45162         * modules/unistr/u16-strcat: New file.
45163         * modules/unistr/u32-strcat: New file.
45164         * lib/unistr/u8-strcat.c: New file.
45165         * lib/unistr/u16-strcat.c: New file.
45166         * lib/unistr/u32-strcat.c: New file.
45167         * lib/unistr/u-strcat.h: New file.
45168
45169         * modules/unistr/u8-strchr: New file.
45170         * modules/unistr/u16-strchr: New file.
45171         * modules/unistr/u32-strchr: New file.
45172         * lib/unistr/u8-strchr.c: New file.
45173         * lib/unistr/u16-strchr.c: New file.
45174         * lib/unistr/u32-strchr.c: New file.
45175
45176         * modules/unistr/u8-strcmp: New file.
45177         * modules/unistr/u16-strcmp: New file.
45178         * modules/unistr/u32-strcmp: New file.
45179         * lib/unistr/u8-strcmp.c: New file.
45180         * lib/unistr/u16-strcmp.c: New file.
45181         * lib/unistr/u32-strcmp.c: New file.
45182
45183         * modules/unistr/u8-strcpy: New file.
45184         * modules/unistr/u16-strcpy: New file.
45185         * modules/unistr/u32-strcpy: New file.
45186         * lib/unistr/u8-strcpy.c: New file.
45187         * lib/unistr/u16-strcpy.c: New file.
45188         * lib/unistr/u32-strcpy.c: New file.
45189         * lib/unistr/u-strcpy.h: New file.
45190
45191         * modules/unistr/u8-strcspn: New file.
45192         * modules/unistr/u16-strcspn: New file.
45193         * modules/unistr/u32-strcspn: New file.
45194         * lib/unistr/u8-strcspn.c: New file.
45195         * lib/unistr/u16-strcspn.c: New file.
45196         * lib/unistr/u32-strcspn.c: New file.
45197         * lib/unistr/u-strcspn.h: New file.
45198
45199         * modules/unistr/u8-strdup: New file.
45200         * modules/unistr/u16-strdup: New file.
45201         * modules/unistr/u32-strdup: New file.
45202         * lib/unistr/u8-strdup.c: New file.
45203         * lib/unistr/u16-strdup.c: New file.
45204         * lib/unistr/u32-strdup.c: New file.
45205         * lib/unistr/u-strdup.h: New file.
45206
45207         * modules/unistr/u8-strlen: New file.
45208         * modules/unistr/u16-strlen: New file.
45209         * modules/unistr/u32-strlen: New file.
45210         * lib/unistr/u8-strlen.c: New file.
45211         * lib/unistr/u16-strlen.c: New file.
45212         * lib/unistr/u32-strlen.c: New file.
45213         * lib/unistr/u-strlen.h: New file.
45214
45215         * modules/unistr/u8-strmblen: New file.
45216         * modules/unistr/u16-strmblen: New file.
45217         * modules/unistr/u32-strmblen: New file.
45218         * lib/unistr/u8-strmblen.c: New file.
45219         * lib/unistr/u16-strmblen.c: New file.
45220         * lib/unistr/u32-strmblen.c: New file.
45221
45222         * modules/unistr/u8-strmbtouc: New file.
45223         * modules/unistr/u16-strmbtouc: New file.
45224         * modules/unistr/u32-strmbtouc: New file.
45225         * lib/unistr/u8-strmbtouc.c: New file.
45226         * lib/unistr/u16-strmbtouc.c: New file.
45227         * lib/unistr/u32-strmbtouc.c: New file.
45228
45229         * modules/unistr/u8-strncat: New file.
45230         * modules/unistr/u16-strncat: New file.
45231         * modules/unistr/u32-strncat: New file.
45232         * lib/unistr/u8-strncat.c: New file.
45233         * lib/unistr/u16-strncat.c: New file.
45234         * lib/unistr/u32-strncat.c: New file.
45235         * lib/unistr/u-strncat.h: New file.
45236
45237         * modules/unistr/u8-strncmp: New file.
45238         * modules/unistr/u16-strncmp: New file.
45239         * modules/unistr/u32-strncmp: New file.
45240         * lib/unistr/u8-strncmp.c: New file.
45241         * lib/unistr/u16-strncmp.c: New file.
45242         * lib/unistr/u32-strncmp.c: New file.
45243
45244         * modules/unistr/u8-strncpy: New file.
45245         * modules/unistr/u16-strncpy: New file.
45246         * modules/unistr/u32-strncpy: New file.
45247         * lib/unistr/u8-strncpy.c: New file.
45248         * lib/unistr/u16-strncpy.c: New file.
45249         * lib/unistr/u32-strncpy.c: New file.
45250         * lib/unistr/u-strncpy.h: New file.
45251
45252         * modules/unistr/u8-strnlen: New file.
45253         * modules/unistr/u16-strnlen: New file.
45254         * modules/unistr/u32-strnlen: New file.
45255         * lib/unistr/u8-strnlen.c: New file.
45256         * lib/unistr/u16-strnlen.c: New file.
45257         * lib/unistr/u32-strnlen.c: New file.
45258         * lib/unistr/u-strnlen.h: New file.
45259
45260         * modules/unistr/u8-strpbrk: New file.
45261         * modules/unistr/u16-strpbrk: New file.
45262         * modules/unistr/u32-strpbrk: New file.
45263         * lib/unistr/u8-strpbrk.c: New file.
45264         * lib/unistr/u16-strpbrk.c: New file.
45265         * lib/unistr/u32-strpbrk.c: New file.
45266         * lib/unistr/u-strpbrk.h: New file.
45267
45268         * modules/unistr/u8-strrchr: New file.
45269         * modules/unistr/u16-strrchr: New file.
45270         * modules/unistr/u32-strrchr: New file.
45271         * lib/unistr/u8-strrchr.c: New file.
45272         * lib/unistr/u16-strrchr.c: New file.
45273         * lib/unistr/u32-strrchr.c: New file.
45274
45275         * modules/unistr/u8-strspn: New file.
45276         * modules/unistr/u16-strspn: New file.
45277         * modules/unistr/u32-strspn: New file.
45278         * lib/unistr/u8-strspn.c: New file.
45279         * lib/unistr/u16-strspn.c: New file.
45280         * lib/unistr/u32-strspn.c: New file.
45281         * lib/unistr/u-strspn.h: New file.
45282
45283         * modules/unistr/u8-strstr: New file.
45284         * modules/unistr/u16-strstr: New file.
45285         * modules/unistr/u32-strstr: New file.
45286         * lib/unistr/u8-strstr.c: New file.
45287         * lib/unistr/u16-strstr.c: New file.
45288         * lib/unistr/u32-strstr.c: New file.
45289         * lib/unistr/u-strstr.h: New file.
45290
45291         * modules/unistr/u8-strtok: New file.
45292         * modules/unistr/u16-strtok: New file.
45293         * modules/unistr/u32-strtok: New file.
45294         * lib/unistr/u8-strtok.c: New file.
45295         * lib/unistr/u16-strtok.c: New file.
45296         * lib/unistr/u32-strtok.c: New file.
45297         * lib/unistr/u-strtok.h: New file.
45298
45299         * modules/unistr/u8-uctomb: New file.
45300         * modules/unistr/u16-uctomb: New file.
45301         * modules/unistr/u32-uctomb: New file.
45302         * lib/unistr/u8-uctomb.c: New file.
45303         * lib/unistr/u16-uctomb.c: New file.
45304         * lib/unistr/u32-uctomb.c: New file.
45305
45306         * MODULES.html.sh (Unicode string functions): Add the new modules.
45307
45308 2007-01-08  Bruno Haible  <bruno@clisp.org>
45309
45310         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45311         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45312         subdirectories.
45313
45314 2007-01-08  Karl Berry  <karl@gnu.org>
45315
45316         * doc/error.texi: mention that main() fns must set program_name
45317         when progname is used.
45318
45319 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45320
45321         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45322         WCTYPE_H is empty, for the benefit of builds from non-distclean
45323         directories.  Problem reported by Eric Blake in
45324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45325
45326 2007-01-08  Bruno Haible  <bruno@clisp.org>
45327
45328         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45329         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45330         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45331         PROVIDE_CANONICALIZE_FILENAME_MODE.
45332         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45333
45334 2007-01-08  Bruno Haible  <bruno@clisp.org>
45335
45336         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45337         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45338         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45339         * lib/fts.c: Likewise.
45340         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45341
45342 2006-12-25  Bruno Haible  <bruno@clisp.org>
45343
45344         * modules/utf8-ucs4-safe: New file.
45345         * lib/utf8-ucs4-safe.h: New file.
45346         * lib/unistr/utf8-ucs4-safe.c: New file.
45347
45348         * modules/utf16-ucs4-safe: New file.
45349         * lib/utf16-ucs4-safe.h: New file.
45350         * lib/unistr/utf16-ucs4-safe.c: New file.
45351
45352         * MODULES.html.sh (Unicode string functions): Add the new modules.
45353
45354 2007-01-08  Bruno Haible  <bruno@clisp.org>
45355
45356         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45357         (Depends-on): Add unitypes.
45358         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45359         (u8_mbtouc_aux): Move out to separate file.
45360         (u8_mbtouc): Use ucs4_t, uint8_t types.
45361         * lib/unistr/utf8-ucs4.c: New file.
45362
45363         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45364         (Depends-on): Add unitypes.
45365         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45366         (u16_mbtouc_aux): Move out to separate file.
45367         (u16_mbtouc): Use ucs4_t, uint16_t types.
45368         * lib/unistr/utf16-ucs4.c: New file.
45369
45370         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45371         (Depends-on): Add unitypes.
45372         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45373         (u8_uctomb_aux): Move out to separate file.
45374         (u8_uctomb): Use ucs4_t, uint8_t types.
45375         * lib/unistr/ucs4-utf8.c: New file.
45376
45377         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45378         (Depends-on): Add unitypes.
45379         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45380         (u16_uctomb_aux): Move out to separate file.
45381         (u16_uctomb): Use ucs4_t, uint16_t types.
45382         * lib/unistr/ucs4-utf16.c: New file.
45383
45384 2006-12-25  Bruno Haible  <bruno@clisp.org>
45385
45386         * modules/unitypes: New file.
45387         * lib/unitypes.h: New file.
45388         * MODULES.html.sh (func_all_modules): New section "Unicode string
45389         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45390         this section. Add unitypes.
45391
45392 2007-01-08  Bruno Haible  <bruno@clisp.org>
45393
45394         Avoid variable names that conflict with those from libtool.
45395         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45396         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45397         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45398         library_names_spec to acl_library_names_spec, hardcode_* to
45399         acl_hardcode_*.
45400         Reported by Ralf Wildenhues.
45401
45402 2007-01-08  Bruno Haible  <bruno@clisp.org>
45403
45404         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45405         definition.
45406         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45407         definition.
45408         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45409         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45410         definition.
45411         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45412         definition.
45413         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45414         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45415         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45416         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45417         definition.
45418         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45419         definition.
45420         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45421         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45422         GC_USE_<algorithm>.
45423         * lib/gc-libgcrypt.c: Likewise.
45424         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45425         * modules/gc-arctwo (configure.ac): Likewise.
45426         * modules/gc-des (configure.ac): Likewise.
45427         * modules/gc-hmac-md5 (configure.ac): Likewise.
45428         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45429         * modules/gc-md2 (configure.ac): Likewise.
45430         * modules/gc-md4 (configure.ac): Likewise.
45431         * modules/gc-md5 (configure.ac): Likewise.
45432         * modules/gc-random (configure.ac): Likewise.
45433         * modules/gc-rijndael (configure.ac): Likewise.
45434         * modules/gc-sha1 (configure.ac): Likewise.
45435
45436 2007-01-08  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45439         macro definition.
45440         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45441         definition.
45442         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45443         definition.
45444         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45445         * modules/fcntl-safer (configure.ac): Likewise.
45446         * modules/fopen-safer (configure.ac): Likewise.
45447         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45448         GNULIB_FWRITEERROR macro definition.
45449
45450 2007-01-08  Bruno Haible  <bruno@clisp.org>
45451
45452         * m4/gnulib-common.m4: New file.
45453         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45454         (func_get_filelist): Add m4/gnulib-common.m4.
45455
45456 2007-01-08  Bruno Haible  <bruno@clisp.org>
45457
45458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45459         command.
45460
45461 2007-01-08  Jim Meyering  <jim@meyering.net>
45462
45463         Use a more robust test for a "can't happen" condition.
45464         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45465         narrowed the st_size value.  Presuming the "can't happen" condition
45466         is true, that narrowing could conceivably convert an invalid st_size
45467         value into a valid one.  Instead, use a change based on Matthew
45468         Woehlke's original patch.
45469
45470         Slight readability improvement: use an assert-like macro
45471         in place of literal "abort ()" uses.
45472         * lib/fts.c (fts_assert): Define.
45473         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45474         Use this macro instead of a bare 'abort'.
45475
45476 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45479         simply work around them.
45480         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45481         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45482         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45483         declaring.
45484         Don't bother to define as macros, since the standard doesn't require it.
45485         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45486         longer worry about IRIX 5.3.
45487         (HAVE_WCTYPE_CTMP_BUG): Remove.
45488
45489 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45492         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45493         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45494         Problems reported by Georg Schwarz for IRIX 5.3.
45495
45496         * gnulib-tool (autoconf_minversion): Take the maximum version number
45497         found, not the minimum.  Problem reported by James Youngman.
45498
45499 2007-01-03  Karl Berry  <karl@gnu.org>
45500
45501         * doc/error.texi: new file, explaining interaction with progname.
45502         * doc/gnulib.texi: include it.  Update copyright.
45503
45504 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45505
45506         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45507         AC_CANONICAL_HOST, to improve autobuild outputs.
45508
45509 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45510             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45511
45512         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45513         sockets, server sockets, and other file descriptors.  Count errors
45514         to compute the return value.  Reorder the code a bit to be easier
45515         to follow.  Don't set event bits that were not requested (except
45516         POLLERR and POLLHUP).
45517
45518 2007-01-01  Bruno Haible  <bruno@clisp.org>
45519
45520         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45521
45522 2007-01-03  Jim Meyering  <jim@meyering.net>
45523
45524         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45525
45526 2007-01-02  Bruno Haible  <bruno@clisp.org>
45527
45528         * modules/settime (Include): Require timespec.h.
45529         * modules/nanosleep (Include): Likewise.
45530
45531 2007-01-01  Bruno Haible  <bruno@clisp.org>
45532
45533         * gnulib-tool (func_emit_copyright_notice): Bump year.
45534         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45535
45536 2007-01-01  Bruno Haible  <bruno@clisp.org>
45537
45538         Improve support for OpenBSD.
45539         * build-aux/config.rpath (libname_spec): Export.
45540         (library_names_spec): New variable. Export.
45541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45542         library_names_spec from the config.rpath output. Locate shared library
45543         through the name pattern in library_names_spec.
45544
45545 2007-01-01  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45548
45549 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45550
45551         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45552         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45553         assume the C locale, and avoid an "eval" that could cause trouble.
45554         Problem with SORT reported by Bob Proulx.
45555
45556         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45557         Define.  Trivial patch from Henning Nielsen Lund, originally
45558         sent to bug-grep@gnu.org today.
45559
45560 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45561
45562         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45563         struct stat.  Problem reported by Henning Nielsen Lund.
45564         * lib/acl.c: Include acl.h first, to check interface.  Don't
45565         bother to include sys/types.h and sys/stat.h again.
45566
45567 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45568
45569         Import the following change from libc; problem reported by
45570         Sven Verdoolaege.
45571
45572         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45573
45574         [BZ #1373]
45575         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45576
45577 2006-12-28  Jim Meyering  <jim@meyering.net>
45578
45579         * build-aux/announce-gen: Do not assume that the package
45580         builds any of tar.gz, tar.bz2, and .xdelta files.
45581         Suggestion from Simon Josefsson.
45582
45583 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45584
45585         * modules/announce-gen: New file.
45586
45587 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45588
45589         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45590         handles its gotchas now.
45591         * lib/mbswidth.c: Likewise.
45592         * lib/wcwidth.h: Likewise.
45593         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45594         and iswcntrl; the wctype module does this stuff now.
45595         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45597         * modules/mbchar (Depends-on): Add wctype.
45598         * modules/mbswidth (Depends-on): Likewise.
45599         * modules/wcwidth (Depends-on): Likewise.
45600
45601 2006-12-27  Eric Blake  <ebb9@byu.net>
45602
45603         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45604         module uses more than what <wctype.h> is required to provide.
45605
45606 2006-12-26  Eric Blake  <ebb9@byu.net>
45607
45608         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45609
45610 2006-12-26  Eric Blake  <ebb9@byu.net>
45611
45612         * modules/absolute-header: New module.
45613         * modules/fcntl (Depends-on): Depend on it.
45614         * modules/inttypes (Depends-on): Likewise.
45615         * modules/stdint (Depends-on): Likewise.
45616         * modules/sys_stat (Depends-on): Likewise.
45617         * modules/wctype (Depends-on): Likewise.
45618         * MODULES.html.sh (Support for building libraries and
45619         executables): Document it.
45620
45621 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45622
45623         * gnulib-tool (SED): Remove, undoing previous change.
45624         The problem was that it broke coreutils on Solaris, because
45625         "sed --posix" leaked into a makefile.
45626         (sed): New alias, if 'alias' and GNU sed.
45627
45628 2006-12-24  Jim Meyering  <jim@meyering.net>
45629
45630         Work around an fchownat bug in glibc-2.4:
45631         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45632         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45633         in spite of the -P option.
45634         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45635         New macros.
45636         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45637         * modules/openat (Files): Add lib/fchownat.c.
45638         * lib/openat.c (fchownat): Don't define here.  Move to...
45639         * lib/fchownat.c: ...this new file.
45640
45641 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45642
45643         Fix bug reported by Bruno Haible in
45644         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45645         where quotearg.c didn't compile on Mac OS X 10.2 because it
45646         lacks <wchar.h> and wint_t.
45647         * lib/wctype_.h (__wctype_wint_t): New type.
45648         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45649         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45650         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45651         Arg is now of type __wctype_wint_t, not wint_t.
45652         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45653         substitute HAVE_WINT_T.
45654         * modules/wctype (Files): Add m4/wint_t.m4.
45655         (wctype.h): Substitute HAVE_WINT_T.
45656
45657 2006-12-23  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45660
45661 2006-12-23  Bruno Haible  <bruno@clisp.org>
45662
45663         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45664         S_ISLNK.
45665         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45666         mingw.
45667
45668 2006-12-22  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/copy-file.c: Include acl.h.
45671         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45672         Close the file descriptors only after being done with copy_acl.
45673         * modules/copy-file (Depends-on): Add acl.
45674
45675 2006-12-22  Bruno Haible  <bruno@clisp.org>
45676
45677         * gnulib-tool (SED): New variable.
45678         Use $SED instead of sed everywhere.
45679
45680 2006-12-22  Bruno Haible  <bruno@clisp.org>
45681
45682         * modules/no-c++: New file.
45683         * m4/no-c++.m4: New file.
45684         * MODULES.html.sh (Support for building libraries and executables):
45685         Add no-c++.
45686
45687 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45688
45689         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45690         Include <limits.h>, and use its INT_MAX to rewrite the
45691         j loop so that it does not overflow 'int'.  Problem reported by
45692         Ralf Wildenhues in
45693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45694         Play it safe by shifting left by 1 rather than multiplying by 2,
45695         as GCC is less likely to optimize this away when the value
45696         is signed (when it assumes overflow leads to undefined behavior).
45697         Also, don't assume time_t uses two's complement.
45698
45699 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45700
45701         * MODULES.html.sh: New module wctype.
45702         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45703         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45704         <wctype.h>, since the new wctype module should fix this.
45705         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45706         the wctype module should arrange for it.
45707         * lib/regex_internal.h: Likewise.
45708         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45709         since the wctype module should handle this now.
45710         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45711         * modules/fnmatch (Depends-on): Add wctype.
45712         * modules/quotearg (Depends-on): Likewise.
45713         * modules/regex (Depends-on): Likewise.
45714
45715 2006-12-19  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45718         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45719
45720 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45721
45722         * modules/savewd (Depends-on): Fix dependency on fcntl.
45723
45724 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45725
45726         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45727         conforms to C99, rather than relying on the user's environment
45728         setting of STDINT_H.
45729
45730 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45731         and Eric Blake  <ebb9@byu.net>
45732
45733         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45734         This is more consistent with the other defines here.
45735         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45736         Port to z/OS.  Problem reported by Paul Gilmartin.
45737         Change local vars to use gl_ prefix rather than ac_.
45738         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45739         with other defines.
45740         * modules/double-slash-root: New module.
45741         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45742         (Depends-on): Add double-slash-root.
45743         * MODULES.html.sh (File system functions): Mention new module.
45744
45745 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45746
45747         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45748         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45749         This is for the benefit of gzip, which doesn't do i18n.
45750
45751 2006-12-12  Jim Meyering  <jim@meyering.net>
45752
45753         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45754         Reported by Andreas Schwab <schwab@suse.de>.
45755
45756 2006-12-12  Bruno Haible  <bruno@clisp.org>
45757
45758         Merge these changes.
45759         2006-09-05  Bruno Haible  <bruno@clisp.org>
45760         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45761         iconv_alloc succeeded.
45762         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45763         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45764         test for " && dest " at the end - dest is always != NULL there. Call
45765         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45766         with 2xNULL arguments, also to flush the state storage. Handle the
45767         IRIX iconv behaviour. Realloc the final result, to throw away unused
45768         memory.
45769
45770 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45771
45772         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45773         and fchmodat unconditionally, since glibc 2.4 has them.
45774         Problem reported by Arkadiusz Miskiewicz.
45775
45776 2006-12-10  Bruno Haible  <bruno@clisp.org>
45777
45778         * gnulib-tool (func_import): Show the include files only for those
45779         modules that are copied and specified.
45780         Reported by Karl Berry.
45781
45782 2006-12-08  Jim Meyering  <jim@meyering.net>
45783
45784         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45785         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45786
45787         * build-aux/announce-gen: Add two new options, both optional:
45788         --bootstrap-tools=TOOL_LIST
45789               a comma-separated list of tools, e.g.,
45790               autoconf,automake,bison,gnulib
45791         --gnulib-snapshot-date=DATE
45792               if gnulib is in the bootstrap tool list,
45793               then report this as the snapshot date.
45794               If not specified, use the current date/time.
45795               If you specify a date here, be sure it's UTC.
45796
45797 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45798
45799         * tests/test-argp-2.sh: Fix test to match actual output.
45800         (func_compare): Fix sed script to be portable.
45801
45802 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45803
45804         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45805         workaround for this case.  It is not autoconfigured now; offhand
45806         it's hard to see how to autoconfigure it.
45807
45808 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45809
45810         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45811         a directory that is about to be chowned.  Such a directory's
45812         initial file permissions should permit the owner only and this
45813         should not be changed until after the chown, since the group and
45814         other bits would be incorrect if they granted permission before
45815         the chown.
45816
45817         Fix porting problem for iswctype reported by Georg Schwarz in:
45818         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45819         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45820         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45823
45824 2006-12-03  Jim Meyering  <jim@meyering.net>
45825
45826         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45827         p->fts_statp may not yet be defined.
45828         (fts_read): Instead, set it in the caller, once p->fts_statp is
45829         sure to be defined, and corresponds to a top-level directory.
45830         This bug made du -x fail.  Here's the coreutils test case:
45831         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45832         Reported by Mike Frysinger.
45833
45834 2006-12-01  Jim Meyering  <jim@meyering.net>
45835
45836         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45837         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45838         Reported by Simon Josefsson.
45839
45840 2006-11-30  Jim Meyering  <jim@meyering.net>
45841
45842         * m4/warning.m4: Use the all-permissive copyright notice
45843         recommended by RMS (rather than LGPL).
45844         * m4/vararrays.m4: Likewise.
45845         * m4/flexmember.m4: Likewise.
45846
45847 2006-11-29  Bruno Haible  <bruno@clisp.org>
45848
45849         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45850         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45851         using +=.
45852         Reported by Simon Josefsson <simon@josefsson.org>.
45853
45854 2006-11-28  James Youngman <jay@gnu.org>
45855
45856         * README: Advise users that they might find the bug-gnulib@gnu.org
45857         and autotools-announce@gnu.org mailing lists useful.
45858
45859 2006-11-28  Bruno Haible  <bruno@clisp.org>
45860
45861         * m4/ptrdiff_max.m4: Remove file.
45862
45863 2006-11-21  Bruno Haible  <bruno@clisp.org>
45864
45865         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45866         _AC_COMPUTE_INT.
45867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45868         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45869         _AC_COMPUTE_INT.
45870         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45871         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45872         _AC_COMPUTE_INT.
45873         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45874
45875 2006-11-28  Jim Meyering  <jim@meyering.net>
45876
45877         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45878         warning from "gcc -Wshadow" about shadowing the builtin.
45879
45880 2006-11-27  Bruno Haible  <bruno@clisp.org>
45881
45882         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45883         _AC_COMPUTE_INT.
45884         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45885
45886 2006-11-27  Bruno Haible  <bruno@clisp.org>
45887             Paul Eggert  <eggert@cs.ucla.edu>
45888
45889         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45890
45891 2006-11-26  Bruno Haible  <bruno@clisp.org>
45892
45893         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45894         noinst_LTLIBRARIES.
45895
45896 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45897             Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45900         if compiling with "gcc -ansi".
45901
45902 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45903
45904         Fix some incompatibilities with gcc -ansi -pedantic.
45905         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45906         if compiling pedantically with GCC, unless it's C99 or later.
45907         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45908         it mishandles gcc -ansi -pedantic as well.
45909         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45910         if gcc -pedantic.
45911         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45912         initializers for struct if -pedantic, unless it's C99 or later.
45913
45914 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45915
45916         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45917         Don't close an fd more than once. Identical atimes indicate
45918         success, not failure.
45919
45920 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45921
45922         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45923
45924 2006-11-23  Jim Meyering  <jim@meyering.net>
45925
45926         * build-aux/announce-gen: New file.  From coreutils.
45927
45928 2006-11-22  Jim Meyering  <jim@meyering.net>
45929
45930         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45931         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45932         (fts_read): Use a temporary to narrow the overused st_size member
45933         before using it in a switch statement.  Reported by Matthew Woehlke.
45934
45935         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45937
45938 2006-11-20  Bruno Haible  <bruno@clisp.org>
45939
45940         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45941         changequote instead of pairs of brackets.
45942         Reported by Andreas Schwab <schwab@suse.de>.
45943
45944 2006-11-21  Jim Meyering  <jim@meyering.net>
45945
45946         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45947         so as to remain compatible with older compilers.
45948         Patch from Michael Deutschmann.
45949
45950 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45951
45952         * MODULES.html.sh (File system functions): Add openat.
45953
45954         * lib/openat.h (rpl_fstatat): New macro, if
45955         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45956         (fstatat): Define to rpl_fstatat under the same conditions,
45957         unless COMPILING_FSTATAT.
45958         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45959         seems to have the bug.
45960         * lib/fstatat.c: New file.
45961         * modules/openat (Files): Add it.
45962
45963 2006-11-20  Bruno Haible  <bruno@clisp.org>
45964
45965         * Makefile: New file.
45966
45967 2006-11-20  Jim Meyering  <jim@meyering.net>
45968
45969         The beginnings of syntax-related checks for gnulib.
45970         * lib/Makefile: New file.
45971         * lib/t-idcache: New script.  Ensure that the two halves of
45972         idcache.c stay in sync.
45973
45974         * lib/idcache.c: Adjust comments in user- and group- portions to
45975         be more accurate, and to be consistent with one another.
45976
45977 2006-11-20  Jim Meyering  <jim@meyering.net>
45978
45979         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45980         continue using the flexible array member (thus, this module performs
45981         half as many malloc calls), with the addition that...
45982         (getgroup, getuser): Consistently record a non-match via an empty
45983         "name" string, and map an empty string match to a NULL return value.
45984         * modules/idcache (Depends-on): Re-add flexmember.
45985
45986         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45987         (getuidbyname, getgroup, getgidbyname): Likewise.
45988
45989         Use cleaner syntax: NULL rather than 0.
45990         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45991
45992 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45993
45994         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45995         It mishandled the case where the group was missing.
45996         Problem reported by Greg Schafer.
45997         * modules/idcache: Likewise.
45998
45999 2006-11-18  Jim Meyering  <jim@meyering.net>
46000
46001         * check-module (%exempt_header): Add exception for some
46002         conditionally-included headers.
46003
46004         * modules/i-ring (Depends-on): Add verify.
46005         (License): Change to LGPL.
46006
46007 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46010         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46011         and inttostr.h.  Use snprintf rather than uinttostr, so that
46012         LGPLed code doesn't depend on GPLed.
46013
46014 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46015
46016         * modules/inline (License): Change from GPL to LGPL.
46017
46018 2006-11-17  Jim Meyering  <jim@meyering.net>
46019
46020         * modules/d-type (License): Switch to LGPL.
46021
46022 2006-11-15  Bruno Haible  <bruno@clisp.org>
46023
46024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46025
46026 2006-11-15  Eric Blake  <ebb9@byu.net>
46027
46028         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46029         the module dependency.
46030
46031 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46032             Bruno Haible  <bruno@clisp.org>
46033
46034         * gnulib-tool (func_create_testdir): Add license consistency check.
46035
46036 2006-11-15  Eric Blake  <ebb9@byu.net>
46037
46038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46039         random "(cached)" in configure output.
46040
46041 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46042
46043         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46044         test for conforming inttypes.h is both announced and cached.
46045
46046         * MODULES.html.sh (seen_modules, seen_files): New variables.
46047         (func_module): Rewrite to use a few less gnulib-tool and sed
46048         invocations.  Avoid a couple of quadratic algorithms for ...
46049         (missed_modules, missed_files): ... these, with ...
46050         (func_append, func_tmpdir): ... these new functions, from
46051         gnulib-tool.  Analogously, install traps for cleanup.
46052
46053         * tests/test-gc.c (main): Remove unused variables.
46054         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46055
46056 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46057
46058         * modules/inttostr (License): Change to LGPL.
46059
46060 2006-11-14  Eric Blake  <ebb9@byu.net>
46061
46062         * modules/tempname (License): Change to LGPL.
46063
46064 2006-11-14  Eric Blake  <ebb9@byu.net>
46065
46066         * doc/functions.texi (Function Portability): *printf functions on
46067         Cygwin now understand all POSIX size specifiers.
46068
46069 2006-11-14  Bruno Haible  <bruno@clisp.org>
46070
46071         * modules/c-ctype (License): Change to LGPL.
46072
46073 2006-11-12  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46076         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46077         for GNOME libraries, for which the include files are installed in
46078         subdirectories of $prefix/include.
46079
46080 2006-11-12  Bruno Haible  <bruno@clisp.org>
46081
46082         * m4/lib-link.m4: Require at least autoconf-2.54.
46083         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46084         name to underscores for the --with option.
46085
46086 2006-11-13  Bruno Haible  <bruno@clisp.org>
46087
46088         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46089         the tests directory.
46090         Reported by Ralf Wildenhues.
46091
46092 2006-11-13  Bruno Haible  <bruno@clisp.org>
46093
46094         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46095         (func_emit_initmacro_end): Undo the override here.
46096         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46097         Works around the famous automake error in coreutils.
46098
46099 2006-11-13  Eric Blake  <ebb9@byu.net>
46100
46101         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46102         element, not its node.
46103
46104 2006-11-12  Bruno Haible  <bruno@clisp.org>
46105
46106         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46107         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46108
46109 2006-11-12  Bruno Haible  <bruno@clisp.org>
46110
46111         * gnulib-tool: New option --local-symlink.
46112         (func_usage): Document it.
46113         (lsymbolic): New variable.
46114         (func_import, func_create_testdir): If --symlink was not specified,
46115         test whether --local-symlink was specified and the file comes from
46116         the local_gnulib_dir.
46117
46118 2006-11-12  Bruno Haible  <bruno@clisp.org>
46119
46120         * gnulib-tool (func_ln): New function.
46121         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46122
46123 2006-11-12  Bruno Haible  <bruno@clisp.org>
46124
46125         Finish support for source files in subdirectories.
46126         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46127         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46128         AUTOMAKE_OPTIONS.
46129         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46130
46131 2006-11-12  Bruno Haible  <bruno@clisp.org>
46132
46133         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46134         EXTRA_lib_SOURCES augmentation.
46135         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46136
46137 2006-11-12  Jim Meyering  <jim@meyering.net>
46138
46139         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46140         file descriptors.  This also averts a failure on systems with
46141         native openat support when a traversed directory lacks "x" access.
46142         * lib/fts_.h: Include "i-ring.h"
46143         (struct FTS) [fts_fd_ring]: New member.
46144         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46145         (FCHDIR): Add parentheses.
46146         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46147         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46148         When descending, rather than simply closing the previous
46149         fts_cwd_fd value, push that file descriptor onto the ring.
46150         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46151         (fts_open): Initialize the new fd_ring member.
46152         (fts_close): Clear the ring.
46153         (fts_safe_changedir): When possible, use our new fd_ring to skip
46154         the diropen and fstat and dev/ino comparison that would normally
46155         accompany a virtual `chdir ("..")'.
46156
46157         * modules/fts (Depends-on): Add i-ring.
46158         * modules/i-ring: New module.
46159         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46160         * m4/i-ring.m4: New file.
46161
46162 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46163
46164         * gnulib-tool (func_create_testdir): Fix replacement of
46165         `build-aux' in configure.ac.  Run autotools in gltests
46166         subdirectory.
46167         (func_create_testdir, func_create_megatestdir, test): There is
46168         no need for '--force' in most autotool invocations in a new
46169         tree.  Actually fail the whole test if any of the tools, or the
46170         configure or make stages fail.
46171
46172         Sync from Automake.
46173         * build-aux/gnupload: Revert last change.  Add pointer to upload
46174         instructions of the GNU Maintenance Instructions.
46175         Suggestion by Karl Berry.
46176
46177 2006-11-10  Jim Meyering  <jim@meyering.net>
46178
46179         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46180
46181 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46182
46183         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46184         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46185         (bind_textdomain_codeset) [! ENABLE_NLS]:
46186         Evaluate all the arguments.  That way, callers get compatible behavior
46187         if the arguments have side effects.  Also, it avoids some GCC
46188         diagnostics in some cases; Joel E. Denny reported problems when Bison
46189         was configured with --enable-gcc-warnigs.
46190
46191 2006-11-10  Jim Meyering  <jim@meyering.net>
46192
46193         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46194         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46195         account.
46196
46197 2006-11-10  Jim Meyering  <jim@meyering.net>
46198
46199         * modules/inline: New file/module.
46200         * modules/xalloc (Files): Remove m4/inline.m4.
46201         (Depends-on): Add inline, instead.
46202         * modules/oset: Likewise.
46203         * modules/list: Likewise.
46204
46205 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46206
46207         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46208         Problem reported by Matthew Woehlke.
46209
46210 2006-11-09  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/tempname.c (gen_tempname): Remove variant that invokes
46213         __gen_tempname.
46214         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46215         __gen_tempname.
46216
46217 2006-11-08  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46220         to 'yes' instead of 'cross-compiling'.
46221
46222 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46223
46224         * lib/quotearg.h (quotearg_free): New decl.
46225         * lib/quotearg.c (quotearg_free): New function.
46226         (slot0, nslots, slotvec0, slotvec):
46227         Now file-scope so that quotearg_free can get at them.
46228
46229 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46230
46231         Sync from Automake.
46232         * build-aux/gnupload: Add missing 'gnu' to example URL.
46233         Report by Karl Berry.
46234
46235 2006-11-08  Bruno Haible  <bruno@clisp.org>
46236
46237         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46238         Suggested by Paul Eggert.
46239
46240 2006-11-08  Jim Meyering  <jim@meyering.net>
46241
46242         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46243         It's already included if !_LIBC.
46244         (fts_safe_changedir): Add a comment.
46245
46246 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46249         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46250         Matthew Woehlke.
46251
46252         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46253         definitions up, to avoid colliding with change below.
46254         (static_inline) [HAVE_INLINE]: New macro.
46255         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46256         Provide extern decls when !HAVE_INLINE.  Do not define unless
46257         static_inline is defined, either by us or by xmalloc.c.  Use
46258         static_inline rather than static inline.
46259         (XCALLOC): Optimize sizeof(T) = 1 case.
46260         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46261
46262 2006-11-07  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46265         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46266         AC_C_INLINE.
46267         * modules/xalloc (Files): Add m4/inline.m4.
46268
46269 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46270
46271         * README: Fix typo.
46272         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46273         (Miscellanous Notes): ...from this.
46274
46275 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46276
46277         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46278         Mention that offsetof should be used instead of sizeof.
46279         From Bruno Haible.
46280
46281 2006-11-07  Bruno Haible  <bruno@clisp.org>
46282
46283         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46284
46285 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46286
46287         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46288         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46289         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46290         (gl_tree_add_before, gl_tree_add_after):
46291         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46292         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46293         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46294         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46295         (gl_linked_add_after, gl_linked_add_at): Likewise.
46296         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46297         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46298         (gl_tree_add_before, gl_tree_add_after): Likewise.
46299         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46300         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46301         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46302
46303 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46304
46305         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46306
46307 2006-11-06  Bruno Haible  <bruno@clisp.org>
46308
46309         * m4/inline.m4: New file.
46310         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46311         * modules/list (Files): Add m4/inline.m4.
46312         * modules/oset (Files): Likewise.
46313
46314 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46315
46316         * lib/idcache.c: Include <stddef.h>, for offsetof.
46317         (struct userid.name): Change from char * to a flexible array member.
46318         All uses changed.
46319         * modules/idcache (Depends-on): Add flexmember.
46320
46321         * MODULES.html.sh (Core language properties): New module flexmember.
46322         * modules/flexmember, m4/flexmember.m4: New files.
46323
46324         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46325         inline functions that are identical with the old xnmalloc_inline,
46326         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46327         that we can avoid some unnecessary integer multiplications and
46328         divisions in the common case where the element size is known at
46329         compile time.
46330         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46331         needed.
46332         (xnboundedmalloc): Remove.
46333         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46334         arguments, for consistency with rest of this header.
46335         (xcharalloc): Rewrite using XNMALLOC.
46336         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46337         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46338         versions have been moved to lib/xalloc.h and renamed to be the
46339         non-*_inline versions.
46340         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46341         and xnrealloc functions, since those functions are now inline and
46342         now call us.
46343         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46344         renaming described above.
46345         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46346         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46347         captures the dependency in AC_C_INLINE.
46348
46349         New module canonicalize-lgpl, proposed by Charles Wilson in
46350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46351         with a few small changes afterwards.
46352         * MODULES.html.sh (File system functions): New module
46353         canonicalize-lgpl.
46354         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46355         and canonicalize_file_name.
46356         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46357         * modules/canonicalize-lgpl: New files.
46358
46359 2006-11-05  Bruno Haible  <bruno@clisp.org>
46360
46361         * gnulib-tool (func_import, func_create_testdir): Create directories
46362         also for files in subdirectories of lib/.
46363
46364 2006-11-05  Bruno Haible  <bruno@clisp.org>
46365
46366         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46367         ANSI C compliant.
46368
46369 2006-11-03  Bruno Haible  <bruno@clisp.org>
46370
46371         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46372         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46373         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46374         (xnboundedmalloc): New inline function.
46375         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46376         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46377         xmalloc.
46378         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46379         xmalloc.
46380         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46381         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46382         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46383         xmalloc.
46384         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46385         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46386         xmalloc.
46387         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46388         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46389         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46390         xmalloc.
46391         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46392         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46393         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46394         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46395         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46396         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46397         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46398
46399 2006-11-03  Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/c-ctype.h [C++]: Define functions without name mangling.
46402         * lib/fwriteerror.h [C++]: Likewise.
46403         * lib/gcd.h [C++]: Likewise.
46404         * lib/linebreak.h [C++]: Likewise.
46405
46406 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46409         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46410         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46411         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46412         Check for functions and headers just once.
46413         Check for declaration of canonicalize_file_name.
46414         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46415
46416 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46417
46418         * gnulib-tool (func_import): Fix typo in actioncmd.
46419
46420 2006-11-02  Bruno Haible  <bruno@clisp.org>
46421
46422         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46423         newline sequence in the Makefile.am snippet as a space, like "make"
46424         does.
46425         Reported by Roger Persson <perrog@gmail.com>.
46426
46427 2006-11-01  Bruno Haible  <bruno@clisp.org>
46428
46429         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46430         already declared in <string.h>.
46431         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46432
46433 2006-11-01  Bruno Haible  <bruno@clisp.org>
46434
46435         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46436         * lib/strcase.h: Include <string.h>.
46437         (strcasecmp): Define to rpl_strcasecmp here.
46438
46439 2006-11-01  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46442
46443 2006-11-01  Eric Blake  <ebb9@byu.net>
46444
46445         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46446
46447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46448
46449 2006-10-29  Bruno Haible  <bruno@clisp.org>
46450
46451         Make it compile in C++ mode.
46452         * lib/full-write.c (full_rw): Add a cast.
46453
46454 2006-11-01  Bruno Haible  <bruno@clisp.org>
46455
46456         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46457         be POSIX compliant.
46458         Reported by Roger Persson <perrog@gmail.com>.
46459
46460 2006-11-01  Eric Blake  <ebb9@byu.net>
46461
46462         * lib/getopt_.h: Fix comments.
46463
46464 2006-10-31  Eric Blake  <ebb9@byu.net>
46465
46466         * modules/tmpdir (Depends-on): Add sys_stat.
46467         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46468         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46469         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46470         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46471         tempname.
46472
46473 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         Avoid some C++ diagnostics reported by Bruno Haible.
46476         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46477         xmalloc.
46478         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46479         (struct slotvec): Move to top level.
46480         (quotearg_n_options): Rewrite to avoid xmalloc.
46481         * lib/xalloc.h (xcharalloc): New function.
46482         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46483         [defined __cplusplus]: Add function template that provides result
46484         type propagation.  This part of the change is from Bruno Haible.
46485
46486 2006-10-29  Bruno Haible  <bruno@clisp.org>
46487
46488         Make it compile in C++ mode.
46489         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46490         * lib/strnlen1.c (strnlen1): Cast memchr result.
46491         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46492         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46493         (create_temp_dir): Rename local variable 'template'.
46494         (compile_csharp_using_sscli): Add cast.
46495         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46496         * lib/findprog.c (find_in_path): Likewise.
46497         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46498         * lib/wait-process.c (register_slave_subprocess): Likewise.
46499
46500 2006-10-22  Bruno Haible  <bruno@clisp.org>
46501
46502         * modules/tsearch: New file.
46503         * lib/tsearch.h: New file.
46504         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46505         * m4/tsearch.m4: New file.
46506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46507
46508 2006-10-29  Eric Blake  <ebb9@byu.net>
46509
46510         * lib/arcfour.c: Assume config.h.
46511         * lib/arctwo.c: Likewise.
46512         * lib/base64.c: Likewise.
46513         * lib/check-version.c: Likewise.
46514         * lib/crc.c: Likewise.
46515         * lib/des.c: Likewise.
46516         * lib/gc-gnulib.c: Likewise.
46517         * lib/gc-libgcrypt.c: Likewise.
46518         * lib/gc-pbkdf2-sha1.c: Likewise.
46519         * lib/getaddrinfo.c: Likewise.
46520         * lib/getdelim.c: Likewise.
46521         * lib/getline.c: Likewise.
46522         * lib/hmac-md5.c: Likewise.
46523         * lib/hmac-sha1.c: Likewise.
46524         * lib/iconvme.c: Likewise.
46525         * lib/md2.c: Likewise.
46526         * lib/md4.c: Likewise.
46527         * lib/memxor.c: Likewise.
46528         * lib/read-file.c: Likewise.
46529         * lib/readline.c: Likewise.
46530         * lib/rijndael-alg-fst.c: Likewise.
46531         * lib/rijndael-api-fst.c: Likewise.
46532         * lib/xgetdomainname.c: Likewise.
46533
46534 2006-10-28  Eric Blake  <ebb9@byu.net>
46535
46536         * lib/xstrndup.c: Assume config.h.
46537
46538 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46541         stat-macros.h is now for our own macros, whereas stat_h is for
46542         macros in the <sys/stat.h> name space.
46543         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46544         (STAT_MACROS_H): Remove.
46545         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46546         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46547         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46548         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46549         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46550         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46551         Move these macros to ...
46552         * lib/stat_.h: here.  Don't include stat-macros.h.
46553         * lib/canonicalize.c: Don't include stat-macros.h.
46554         * lib/chown.c: Likewise.
46555         * lib/euidaccess.c: Likewise.
46556         * lib/file-type.c: Likewise.
46557         * lib/filemode.c: Likewise.
46558         * lib/glob.c: Likewise.
46559         * lib/isapipe.c: Likewise.
46560         * lib/lchown.c: Likewise.
46561         * lib/lstat.c: Likewise.
46562         * lib/mkdir-p.c: Likewise.
46563         * lib/rmdir.c: Likewise.
46564         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46566         unless mkdir isn't declared, to speed up 'configure'.
46567         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46568         would define all the S_* symbols.
46569         * modules/canonicalize (Depends-on):
46570         Depend on sys_stat, not stat-macros.
46571         * modules/chown: Likewise.
46572         * modules/euidaccess: Likewise.
46573         * modules/filemode: Likewise.
46574         * modules/file-type: Likewise.
46575         * modules/glob: Likewise.
46576         * modules/isapipe: Likewise.
46577         * modules/lchown: Likewise.
46578         * modules/lstat: Likewise.
46579         * modules/mkancesdirs: Likewise.
46580         * modules/rmdir: Likewise.
46581         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46582         * modules/modechange: Likewise.
46583         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46584         (configure.ac): Remove gl_STAT_MACROS.
46585         * modules/sys_stat (Depends-on): Remove stat-macros.
46586
46587 2006-10-27  Bruno Haible  <bruno@clisp.org>
46588
46589         * m4/signed.m4: Remove file.
46590         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46591         invocation.
46592         * modules/vasnprintf (Files): Remove m4/signed.m4.
46593
46594 2006-10-27  Bruno Haible  <bruno@clisp.org>
46595
46596         Update to GNU gettext 0.16.
46597         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46598         m4/inttypes-h.m4, m4/signed.m4.
46599         * m4/gettext.m4: Update to GNU gettext 0.16.
46600         * m4/intl.m4: New file, from GNU gettext.
46601         * m4/intldir.m4: New file, from GNU gettext.
46602         * config/srclist.txt: Update
46603
46604 2006-10-27  Eric Blake  <ebb9@byu.net>
46605
46606         * MODULES.html.sh: Document tempname.
46607         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46608         dependencies.
46609         (Files): Move lib/tempname.c...
46610         * modules/tempname: ...to this new module.
46611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46612         (gl_PREREQ_TEMPNAME): Move...
46613         * m4/tempname.m4: ...to this new file.
46614         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46615         * modules/sys_stat (Depends-on): Add stat-macros.
46616         * lib/stat_.h (includes): Pick up stat macros.
46617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46618         if stat macros are broken.
46619         * lib/tempname.c (includes): No need to include "stat-macros.h".
46620         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46621         (direxists, __path_search) [!_LIBC]: Don't compile these in
46622         gnulib; the tmpdir module covers that.
46623         * lib/tempname.h: New file.
46624
46625 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * COPYING: Explain how gnulib-tool converts licence headers.
46628         Almost all wording by Eric Blake.
46629
46630 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * lib/mbchar.h (is_basic_table): Make read-only.
46633         * lib/mbchar.c (is_basic_table): Likewise.
46634         Reported by John Darrington.
46635
46636 2006-10-25  Bruno Haible  <bruno@clisp.org>
46637
46638         * lib/progname.h (set_program_name): Undefine before defining.
46639
46640 2006-10-25  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46643         false for non-gcc C++ compilers.
46644         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46645
46646 2006-10-24  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46649         iconv implementations like Irix iconv.
46650
46651 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         * modules/vararrays: New file.
46654         * m4/vararrays.m4: New file, taken from diffutils.
46655         * MODULES.html.sh: New module vararrays.
46656
46657 2006-10-24  Karl Berry  <karl@gnu.org>
46658
46659         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46660         Don't call GNU Unix.
46661
46662 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46663
46664         * users.txt: Add Libtool.
46665
46666         Sync from Libtool:
46667
46668         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46669
46670         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46671         to gnulib's policy of including config.h unconditionally.
46672
46673 2006-10-24  Bruno Haible  <bruno@clisp.org>
46674
46675         * modules/wcwidth (Files): Add m4/wint_t.m4.
46676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46677         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46678
46679 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46680
46681         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46682         to pacify GCC with some -W flags enabled.  Problem reported by
46683         Bruno Haible.
46684
46685 2006-10-24  Jim Meyering  <jim@meyering.net>
46686
46687         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46688         Reported by Karl Berry.
46689
46690 2006-10-23  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46693
46694 2006-10-24  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/gl_list.h: Use C comment style, not C++ comment style.
46697
46698 2006-10-23  Eric Blake  <ebb9@byu.net>
46699
46700         * lib/getaddrinfo.c (includes): Add missing include.
46701
46702 2006-10-23  Bruno Haible  <bruno@clisp.org>
46703             Paul Eggert  <eggert@cs.ucla.edu>
46704
46705         Ability to rename obstack_free.
46706         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46707         obstack_free.
46708         (obstack_free): Invoke the __obstack_free macro.
46709         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46710
46711 2006-10-23  Bruno Haible  <bruno@clisp.org>
46712             Paul Eggert  <eggert@cs.ucla.edu>
46713
46714         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46715         __argc, __argv from the declaration. (They are defined as macros on
46716         mingw.)
46717
46718 2006-10-22  Bruno Haible  <bruno@clisp.org>
46719
46720         * doc/gnulib-intro.texi: New file.
46721         * doc/gnulib.texi: Include it.
46722
46723 2006-10-21  Bruno Haible  <bruno@clisp.org>
46724
46725         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46726         "Introduction", "Miscellanous Notes", "Particular Modules".
46727
46728 2006-10-21  Bruno Haible  <bruno@clisp.org>
46729
46730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46731         Change mostlyclean-local rule to avoid sh syntax error from bash
46732         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46733
46734 2006-10-23  Jim Meyering  <jim@meyering.net>
46735
46736         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46737         in place of snprintf.
46738
46739         * modules/inttostr (Files): Add lib/uinttostr.c.
46740         * lib/uinttostr.c (inttostr): New file/function.
46741         * lib/inttostr.h (uinttostr): Declare.
46742         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46743         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46744         Add uinttostr.
46745         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46746
46747 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * lib/canonicalize.c (ELOOP): Define if not already defined.
46750         Problem reported by Bruno Haible in
46751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46752
46753 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46754
46755         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46756         Problem reported by Perry Smith and Ville Laurikari.
46757
46758         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46759         uses.
46760
46761 2006-10-19  Bruno Haible  <bruno@clisp.org>
46762
46763         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46764         for mingw.
46765
46766 2006-10-19  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46769         Needed for mingw.
46770
46771 2006-10-19  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46774
46775 2006-10-19  Bruno Haible  <bruno@clisp.org>
46776
46777         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46778         it.
46779
46780 2006-10-19  Bruno Haible  <bruno@clisp.org>
46781
46782         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46783         invocation.
46784
46785 2006-10-19  Bruno Haible  <bruno@clisp.org>
46786
46787         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46788         mountlist by default.
46789
46790 2006-10-16  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/c-strstr.c: Include c-strstr.h.
46793
46794 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46795
46796         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46797         in a slash.
46798
46799 2006-10-18  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/lock.h [C++]: Wrap definitions in extern "C".
46802
46803 2006-10-18  Bruno Haible  <bruno@clisp.org>
46804
46805         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46806         gl_LIBOBJS list.
46807
46808 2006-10-18  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46811
46812 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46813
46814         * lib/xstrtol.h: Include gettext.h.
46815         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46816         Problem reported by Eric Blake.
46817         * modules/xstrtol (Depends-on): Add gettext-h.
46818
46819 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46820
46821         * lib/strftime.c (advance): New macro.
46822         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46823         incomplete type, so you can't add 0 to it.  Problem and patch
46824         reported by Eelco Dolstra for dietlibc.
46825
46826 2006-10-18  Jim Meyering  <jim@meyering.net>
46827
46828         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46829         type for a local, and rename it: s/up/user_proc/.
46830
46831 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46832
46833         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46834         READ_UTMP_USER_PROCESS.
46835         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46836
46837 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46840         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46841
46842 2006-10-17  Eric Blake  <ebb9@byu.net>
46843
46844         * lib/sigprocmask.c (sigprocmask): Fix typo.
46845
46846         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46847
46848         * modules/clean-temp (Makefile.am): Don't add to make output...
46849         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46850         config.h.
46851
46852 2006-10-17  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46855         differently if DEFAULT_TEXT_DOMAIN is set.
46856
46857 2006-10-16  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/clean-temp.c: Include fwriteerror.h.
46860
46861 2006-10-16  Bruno Haible  <bruno@clisp.org>
46862
46863         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46864
46865 2006-10-16  Bruno Haible  <bruno@clisp.org>
46866
46867         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46868         * lib/sigprocmask.h: Include <sys/types.h>.
46869         (sigset_t): Use the system's definition if present.
46870
46871 2006-10-17  Eric Blake  <ebb9@byu.net>
46872
46873         * lib/xvasprintf.c (includes): Assume config.h.
46874         * lib/xasprintf.c (includes): Likewise.
46875
46876 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46877
46878         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46879         at least as wide as intmax_t.
46880
46881 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46882
46883         (Imported from Automake.)
46884         * build-aux/gnupload: Update to version 1.1 of directive file.
46885
46886 2006-10-16  Eric Blake  <ebb9@byu.net>
46887
46888         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46889         match Automake 1.10a.
46890
46891 2006-10-14  Bruno Haible  <bruno@clisp.org>
46892
46893         * modules/sigprocmask: New file.
46894         * lib/sigprocmask.h: New file.
46895         * lib/sigprocmask.c: New file.
46896         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46897         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46898         request sigprocmask.o.
46899         (gl_PREREQ_SIGPROCMASK): New macro.
46900         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46901         (Depends-on): Add sigprocmask.
46902         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46903         gt_SIGNALBLOCKING. Test for 'raise' only once.
46904         * lib/fatal-signal.c: Include sigprocmask.h.
46905         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46906         unblock_fatal_signals): Define always.
46907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46908         sigprocmask.
46909
46910 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46911
46912         Sync from Automake.
46913         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46914         which incorrectly sets the mode of an existing destination
46915         directory.  In some cases the unpatched install-sh could do the
46916         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46917         system.  We hope this is rare in practice, but it's clearly worth
46918         fixing.  Problem reported by Alex Unleashed in
46919         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46920         Also, don't bother to check for -m bugs unless we're using -m;
46921         suggested by Stepan Kasal.
46922
46923 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46924
46925         Sync from Automake.
46926         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46927         `-c' flag, so they appear at the same position as in %FASTDEP%
46928         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46929         which ignores unknown options only after the first non-option.
46930         Bug report against M4 by Nelson H. F. Beebe.
46931
46932 2006-10-13  Jim Meyering  <jim@meyering.net>
46933
46934         Fix a bug in yesterday's change.
46935         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46936         p->fts_statp->st_dev would be used uninitialized.
46937         Ensures that we always call fts_stat on the very first entry.
46938         Miklos Szeredi reported that find -xdev stopped working.
46939
46940 2006-10-12  Bruno Haible  <bruno@clisp.org>
46941
46942         * gnulib-tool (func_get_automake_snippet): Append an automatically
46943         computed EXTRA_DIST augmentation.
46944         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46945         * modules/alloca-opt (Makefile.am): Likewise.
46946         * modules/allocsa (Makefile.am): Likewise.
46947         * modules/arcfour (Makefile.am): Likewise.
46948         * modules/arctwo (Makefile.am): Likewise.
46949         * modules/argmatch (Makefile.am): Likewise.
46950         * modules/argz (Makefile.am): Likewise.
46951         * modules/atexit (Makefile.am): Likewise.
46952         * modules/backupfile (Makefile.am): Likewise.
46953         * modules/byteswap (Makefile.am): Likewise.
46954         * modules/c-strtod (Makefile.am): Likewise.
46955         * modules/c-strtold (Makefile.am): Likewise.
46956         * modules/calloc (Makefile.am): Likewise.
46957         * modules/canon-host (Makefile.am): Likewise.
46958         * modules/canonicalize (Makefile.am): Likewise.
46959         * modules/chdir-long (Makefile.am): Likewise.
46960         * modules/chdir-safer (Makefile.am): Likewise.
46961         * modules/check-version (Makefile.am): Likewise.
46962         * modules/chown (Makefile.am): Likewise.
46963         * modules/cloexec (Makefile.am): Likewise.
46964         * modules/close-stream (Makefile.am): Likewise.
46965         * modules/closeout (Makefile.am): Likewise.
46966         * modules/crc (Makefile.am): Likewise.
46967         * modules/csharpexec (Makefile.am): Likewise.
46968         * modules/cycle-check (Makefile.am): Likewise.
46969         * modules/des (Makefile.am): Likewise.
46970         * modules/dev-ino (Makefile.am): Likewise.
46971         * modules/dirfd (Makefile.am): Likewise.
46972         * modules/dirname (Makefile.am): Likewise.
46973         * modules/dup2 (Makefile.am): Likewise.
46974         * modules/eealloc (Makefile.am): Likewise.
46975         * modules/error (Makefile.am): Likewise.
46976         * modules/euidaccess (Makefile.am): Likewise.
46977         * modules/exclude (Makefile.am): Likewise.
46978         * modules/exitfail (Makefile.am): Likewise.
46979         * modules/fcntl-safer (Makefile.am): Likewise.
46980         * modules/fcntl (Makefile.am): Likewise.
46981         * modules/file-type (Makefile.am): Likewise.
46982         * modules/fileblocks (Makefile.am): Likewise.
46983         * modules/filemode (Makefile.am): Likewise.
46984         * modules/filenamecat (Makefile.am): Likewise.
46985         * modules/fnmatch (Makefile.am): Likewise.
46986         * modules/fopen-safer (Makefile.am): Likewise.
46987         * modules/fpending (Makefile.am): Likewise.
46988         * modules/fprintftime (Makefile.am): Likewise.
46989         * modules/free (Makefile.am): Likewise.
46990         * modules/fsusage (Makefile.am): Likewise.
46991         * modules/ftruncate (Makefile.am): Likewise.
46992         * modules/fts (Makefile.am): Likewise.
46993         * modules/gc-arcfour (Makefile.am): Likewise.
46994         * modules/gc-des (Makefile.am): Likewise.
46995         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46996         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46997         * modules/gc-md4 (Makefile.am): Likewise.
46998         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46999         * modules/gc-sha1 (Makefile.am): Likewise.
47000         * modules/gc (Makefile.am): Likewise.
47001         * modules/getaddrinfo (Makefile.am): Likewise.
47002         * modules/getcwd (Makefile.am): Likewise.
47003         * modules/getdelim (Makefile.am): Likewise.
47004         * modules/getdomainname (Makefile.am): Likewise.
47005         * modules/getgroups (Makefile.am): Likewise.
47006         * modules/gethostname (Makefile.am): Likewise.
47007         * modules/gethrxtime (Makefile.am): Likewise.
47008         * modules/getline (Makefile.am): Likewise.
47009         * modules/getloadavg (Makefile.am): Likewise.
47010         * modules/getlogin_r (Makefile.am): Likewise.
47011         * modules/getndelim2 (Makefile.am): Likewise.
47012         * modules/getopt (Makefile.am): Likewise.
47013         * modules/getpagesize (Makefile.am): Likewise.
47014         * modules/getpass-gnu (Makefile.am): Likewise.
47015         * modules/getpass (Makefile.am): Likewise.
47016         * modules/getsubopt (Makefile.am): Likewise.
47017         * modules/gettime (Makefile.am): Likewise.
47018         * modules/gettimeofday (Makefile.am): Likewise.
47019         * modules/getugroups (Makefile.am): Likewise.
47020         * modules/getusershell (Makefile.am): Likewise.
47021         * modules/glob (Makefile.am): Likewise.
47022         * modules/group-member (Makefile.am): Likewise.
47023         * modules/hard-locale (Makefile.am): Likewise.
47024         * modules/hash (Makefile.am): Likewise.
47025         * modules/hmac-md5 (Makefile.am): Likewise.
47026         * modules/hmac-sha1 (Makefile.am): Likewise.
47027         * modules/human (Makefile.am): Likewise.
47028         * modules/idcache (Makefile.am): Likewise.
47029         * modules/imaxabs (Makefile.am): Likewise.
47030         * modules/imaxdiv (Makefile.am): Likewise.
47031         * modules/inet_ntop (Makefile.am): Likewise.
47032         * modules/inet_pton (Makefile.am): Likewise.
47033         * modules/intprops (Makefile.am): Likewise.
47034         * modules/inttostr (Makefile.am): Likewise.
47035         * modules/inttypes (Makefile.am): Likewise.
47036         * modules/isapipe (Makefile.am): Likewise.
47037         * modules/javaversion (Makefile.am): Likewise.
47038         * modules/lchmod (Makefile.am): Likewise.
47039         * modules/lchown (Makefile.am): Likewise.
47040         * modules/localcharset (Makefile.am): Likewise.
47041         * modules/long-options (Makefile.am): Likewise.
47042         * modules/lstat (Makefile.am): Likewise.
47043         * modules/malloc (Makefile.am): Likewise.
47044         * modules/mathl (Makefile.am): Likewise.
47045         * modules/mbchar (Makefile.am): Likewise.
47046         * modules/md2 (Makefile.am): Likewise.
47047         * modules/md4 (Makefile.am): Likewise.
47048         * modules/md5 (Makefile.am): Likewise.
47049         * modules/memcasecmp (Makefile.am): Likewise.
47050         * modules/memchr (Makefile.am): Likewise.
47051         * modules/memcmp (Makefile.am): Likewise.
47052         * modules/memcoll (Makefile.am): Likewise.
47053         * modules/memcpy (Makefile.am): Likewise.
47054         * modules/memmem (Makefile.am): Likewise.
47055         * modules/memmove (Makefile.am): Likewise.
47056         * modules/mempcpy (Makefile.am): Likewise.
47057         * modules/memrchr (Makefile.am): Likewise.
47058         * modules/memset (Makefile.am): Likewise.
47059         * modules/memxor (Makefile.am): Likewise.
47060         * modules/mkancesdirs (Makefile.am): Likewise.
47061         * modules/mkdir-p (Makefile.am): Likewise.
47062         * modules/mkdir (Makefile.am): Likewise.
47063         * modules/mkdtemp (Makefile.am): Likewise.
47064         * modules/mkstemp (Makefile.am): Likewise.
47065         * modules/mktime (Makefile.am): Likewise.
47066         * modules/modechange (Makefile.am): Likewise.
47067         * modules/mountlist (Makefile.am): Likewise.
47068         * modules/nanosleep (Makefile.am): Likewise.
47069         * modules/obstack (Makefile.am): Likewise.
47070         * modules/openat (Makefile.am): Likewise.
47071         * modules/pagealign_alloc (Makefile.am): Likewise.
47072         * modules/pathmax (Makefile.am): Likewise.
47073         * modules/physmem (Makefile.am): Likewise.
47074         * modules/poll (Makefile.am): Likewise.
47075         * modules/posixtm (Makefile.am): Likewise.
47076         * modules/posixver (Makefile.am): Likewise.
47077         * modules/putenv (Makefile.am): Likewise.
47078         * modules/quote (Makefile.am): Likewise.
47079         * modules/quotearg (Makefile.am): Likewise.
47080         * modules/raise (Makefile.am): Likewise.
47081         * modules/read-file (Makefile.am): Likewise.
47082         * modules/readline (Makefile.am): Likewise.
47083         * modules/readlink (Makefile.am): Likewise.
47084         * modules/readtokens (Makefile.am): Likewise.
47085         * modules/readutmp (Makefile.am): Likewise.
47086         * modules/realloc (Makefile.am): Likewise.
47087         * modules/regex (Makefile.am): Likewise.
47088         * modules/rename-dest-slash (Makefile.am): Likewise.
47089         * modules/rename (Makefile.am): Likewise.
47090         * modules/rijndael (Makefile.am): Likewise.
47091         * modules/rmdir (Makefile.am): Likewise.
47092         * modules/rpmatch (Makefile.am): Likewise.
47093         * modules/safe-read (Makefile.am): Likewise.
47094         * modules/safe-write (Makefile.am): Likewise.
47095         * modules/same-inode (Makefile.am): Likewise.
47096         * modules/same (Makefile.am): Likewise.
47097         * modules/save-cwd (Makefile.am): Likewise.
47098         * modules/savedir (Makefile.am): Likewise.
47099         * modules/setenv (Makefile.am): Likewise.
47100         * modules/settime (Makefile.am): Likewise.
47101         * modules/sha1 (Makefile.am): Likewise.
47102         * modules/sig2str (Makefile.am): Likewise.
47103         * modules/snprintf (Makefile.am): Likewise.
47104         * modules/stat-macros (Makefile.am): Likewise.
47105         * modules/stat-time (Makefile.am): Likewise.
47106         * modules/stdbool (Makefile.am): Likewise.
47107         * modules/stdint (Makefile.am): Likewise.
47108         * modules/stdlib-safer (Makefile.am): Likewise.
47109         * modules/stpcpy (Makefile.am): Likewise.
47110         * modules/stpncpy (Makefile.am): Likewise.
47111         * modules/strcase (Makefile.am): Likewise.
47112         * modules/strcasestr (Makefile.am): Likewise.
47113         * modules/strchrnul (Makefile.am): Likewise.
47114         * modules/strcspn (Makefile.am): Likewise.
47115         * modules/strdup (Makefile.am): Likewise.
47116         * modules/strerror (Makefile.am): Likewise.
47117         * modules/strftime (Makefile.am): Likewise.
47118         * modules/strndup (Makefile.am): Likewise.
47119         * modules/strnlen (Makefile.am): Likewise.
47120         * modules/strpbrk (Makefile.am): Likewise.
47121         * modules/strsep (Makefile.am): Likewise.
47122         * modules/strstr (Makefile.am): Likewise.
47123         * modules/strtod (Makefile.am): Likewise.
47124         * modules/strtoimax (Makefile.am): Likewise.
47125         * modules/strtok_r (Makefile.am): Likewise.
47126         * modules/strtol (Makefile.am): Likewise.
47127         * modules/strtoll (Makefile.am): Likewise.
47128         * modules/strtoul (Makefile.am): Likewise.
47129         * modules/strtoull (Makefile.am): Likewise.
47130         * modules/strtoumax (Makefile.am): Likewise.
47131         * modules/strverscmp (Makefile.am): Likewise.
47132         * modules/sys_socket (Makefile.am): Likewise.
47133         * modules/sys_stat (Makefile.am): Likewise.
47134         * modules/sysexits (Makefile.am): Likewise.
47135         * modules/time_r (Makefile.am): Likewise.
47136         * modules/timegm (Makefile.am): Likewise.
47137         * modules/timespec (Makefile.am): Likewise.
47138         * modules/tmpfile-safer (Makefile.am): Likewise.
47139         * modules/trim (Makefile.am): Likewise.
47140         * modules/unistd-safer (Makefile.am): Likewise.
47141         * modules/unlinkdir (Makefile.am): Likewise.
47142         * modules/unlocked-io (Makefile.am): Likewise.
47143         * modules/userspec (Makefile.am): Likewise.
47144         * modules/utime (Makefile.am): Likewise.
47145         * modules/utimecmp (Makefile.am): Likewise.
47146         * modules/utimens (Makefile.am): Likewise.
47147         * modules/vasnprintf (Makefile.am): Likewise.
47148         * modules/vasprintf (Makefile.am): Likewise.
47149         * modules/vsnprintf (Makefile.am): Likewise.
47150         * modules/xalloc (Makefile.am): Likewise.
47151         * modules/xgetcwd (Makefile.am): Likewise.
47152         * modules/xnanosleep (Makefile.am): Likewise.
47153         * modules/xreadlink (Makefile.am): Likewise.
47154         * modules/xstrtod (Makefile.am): Likewise.
47155         * modules/xstrtol (Makefile.am): Likewise.
47156         * modules/xstrtold (Makefile.am): Likewise.
47157         * modules/yesno (Makefile.am): Likewise.
47158         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47159
47160 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * modules/error (Makefile.am): Distribute files through
47163         EXTRA_DIST, not lib_SOURCES.
47164
47165 2006-10-12  Eric Blake  <ebb9@byu.net>
47166
47167         * modules/error (Makefile.am): Distribute files in /lib.
47168         * modules/obstack (Makefile.am): Likewise.
47169
47170 2006-10-12  Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/acl (Makefile.am): Distribute all files in lib/ through
47173         EXTRA_DIST.
47174         * modules/arcfour (Makefile.am): Likewise.
47175         * modules/arctwo (Makefile.am): Likewise.
47176         * modules/argmatch (Makefile.am): Likewise.
47177         * modules/argz (Makefile.am): Likewise.
47178         * modules/atexit (Makefile.am): Likewise.
47179         * modules/backupfile (Makefile.am): Likewise.
47180         * modules/c-strtod (Makefile.am): Likewise.
47181         * modules/c-strtold (Makefile.am): Likewise.
47182         * modules/calloc (Makefile.am): Likewise.
47183         * modules/canon-host (Makefile.am): Likewise.
47184         * modules/canonicalize (Makefile.am): Likewise.
47185         * modules/chdir-long (Makefile.am): Likewise.
47186         * modules/chdir-safer (Makefile.am): Likewise.
47187         * modules/check-version (Makefile.am): Likewise.
47188         * modules/chown (Makefile.am): Likewise.
47189         * modules/cloexec (Makefile.am): Likewise.
47190         * modules/close-stream (Makefile.am): Likewise.
47191         * modules/closeout (Makefile.am): Likewise.
47192         * modules/crc (Makefile.am): Likewise.
47193         * modules/cycle-check (Makefile.am): Likewise.
47194         * modules/des (Makefile.am): Likewise.
47195         * modules/dirfd (Makefile.am): Likewise.
47196         * modules/dirname (Makefile.am): Likewise.
47197         * modules/dup2 (Makefile.am): Likewise.
47198         * modules/euidaccess (Makefile.am): Likewise.
47199         * modules/exclude (Makefile.am): Likewise.
47200         * modules/exitfail (Makefile.am): Likewise.
47201         * modules/fcntl-safer (Makefile.am): Likewise.
47202         * modules/file-type (Makefile.am): Likewise.
47203         * modules/fileblocks (Makefile.am): Likewise.
47204         * modules/filemode (Makefile.am): Likewise.
47205         * modules/filenamecat (Makefile.am): Likewise.
47206         * modules/fnmatch (Makefile.am): Likewise.
47207         * modules/fopen-safer (Makefile.am): Likewise.
47208         * modules/fpending (Makefile.am): Likewise.
47209         * modules/fprintftime (Makefile.am): Likewise.
47210         * modules/free (Makefile.am): Likewise.
47211         * modules/fsusage (Makefile.am): Likewise.
47212         * modules/ftruncate (Makefile.am): Likewise.
47213         * modules/fts (Makefile.am): Likewise.
47214         * modules/gc (Makefile.am): Likewise.
47215         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47216         * modules/getaddrinfo (Makefile.am): Likewise.
47217         * modules/getcwd (Makefile.am): Likewise.
47218         * modules/getdelim (Makefile.am): Likewise.
47219         * modules/getdomainname (Makefile.am): Likewise.
47220         * modules/getgroups (Makefile.am): Likewise.
47221         * modules/gethostname (Makefile.am): Likewise.
47222         * modules/gethrxtime (Makefile.am): Likewise.
47223         * modules/getline (Makefile.am): Likewise.
47224         * modules/getloadavg (Makefile.am): Likewise.
47225         * modules/getlogin_r (Makefile.am): Likewise.
47226         * modules/getopt (Makefile.am): Likewise.
47227         * modules/getpass (Makefile.am): Likewise.
47228         * modules/getpass-gnu (Makefile.am): Likewise.
47229         * modules/getsubopt (Makefile.am): Likewise.
47230         * modules/gettime (Makefile.am): Likewise.
47231         * modules/gettimeofday (Makefile.am): Likewise.
47232         * modules/getugroups (Makefile.am): Likewise.
47233         * modules/getusershell (Makefile.am): Likewise.
47234         * modules/glob (Makefile.am): Likewise.
47235         * modules/group-member (Makefile.am): Likewise.
47236         * modules/hard-locale (Makefile.am): Likewise.
47237         * modules/hash (Makefile.am): Likewise.
47238         * modules/hmac-md5 (Makefile.am): Likewise.
47239         * modules/hmac-sha1 (Makefile.am): Likewise.
47240         * modules/human (Makefile.am): Likewise.
47241         * modules/idcache (Makefile.am): Likewise.
47242         * modules/imaxabs (Makefile.am): Likewise.
47243         * modules/imaxdiv (Makefile.am): Likewise.
47244         * modules/inet_ntop (Makefile.am): Likewise.
47245         * modules/inet_pton (Makefile.am): Likewise.
47246         * modules/inttostr (Makefile.am): Likewise.
47247         * modules/isapipe (Makefile.am): Likewise.
47248         * modules/lchown (Makefile.am): Likewise.
47249         * modules/long-options (Makefile.am): Likewise.
47250         * modules/lstat (Makefile.am): Likewise.
47251         * modules/malloc (Makefile.am): Likewise.
47252         * modules/mathl (Makefile.am): Likewise.
47253         * modules/mbchar (Makefile.am): Likewise.
47254         * modules/md2 (Makefile.am): Likewise.
47255         * modules/md4 (Makefile.am): Likewise.
47256         * modules/md5 (Makefile.am): Likewise.
47257         * modules/memcasecmp (Makefile.am): Likewise.
47258         * modules/memchr (Makefile.am): Likewise.
47259         * modules/memcmp (Makefile.am): Likewise.
47260         * modules/memcoll (Makefile.am): Likewise.
47261         * modules/memcpy (Makefile.am): Likewise.
47262         * modules/memmem (Makefile.am): Likewise.
47263         * modules/memmove (Makefile.am): Likewise.
47264         * modules/mempcpy (Makefile.am): Likewise.
47265         * modules/memrchr (Makefile.am): Likewise.
47266         * modules/memset (Makefile.am): Likewise.
47267         * modules/memxor (Makefile.am): Likewise.
47268         * modules/mkancesdirs (Makefile.am): Likewise.
47269         * modules/mkdir (Makefile.am): Likewise.
47270         * modules/mkdir-p (Makefile.am): Likewise.
47271         * modules/mkdtemp (Makefile.am): Likewise.
47272         * modules/mkstemp (Makefile.am): Likewise.
47273         * modules/mktime (Makefile.am): Likewise.
47274         * modules/modechange (Makefile.am): Likewise.
47275         * modules/mountlist (Makefile.am): Likewise.
47276         * modules/nanosleep (Makefile.am): Likewise.
47277         * modules/openat (Makefile.am): Likewise.
47278         * modules/pagealign_alloc (Makefile.am): Likewise.
47279         * modules/physmem (Makefile.am): Likewise.
47280         * modules/poll (Makefile.am): Likewise.
47281         * modules/posixtm (Makefile.am): Likewise.
47282         * modules/posixver (Makefile.am): Likewise.
47283         * modules/putenv (Makefile.am): Likewise.
47284         * modules/quote (Makefile.am): Likewise.
47285         * modules/quotearg (Makefile.am): Likewise.
47286         * modules/raise (Makefile.am): Likewise.
47287         * modules/read-file (Makefile.am): Likewise.
47288         * modules/readline (Makefile.am): Likewise.
47289         * modules/readlink (Makefile.am): Likewise.
47290         * modules/readtokens (Makefile.am): Likewise.
47291         * modules/readutmp (Makefile.am): Likewise.
47292         * modules/realloc (Makefile.am): Likewise.
47293         * modules/regex (Makefile.am): Likewise.
47294         * modules/rename (Makefile.am): Likewise.
47295         * modules/rename-dest-slash (Makefile.am): Likewise.
47296         * modules/rijndael (Makefile.am): Likewise.
47297         * modules/rmdir (Makefile.am): Likewise.
47298         * modules/rpmatch (Makefile.am): Likewise.
47299         * modules/safe-read (Makefile.am): Likewise.
47300         * modules/safe-write (Makefile.am): Likewise.
47301         * modules/same (Makefile.am): Likewise.
47302         * modules/save-cwd (Makefile.am): Likewise.
47303         * modules/savedir (Makefile.am): Likewise.
47304         * modules/setenv (Makefile.am): Likewise.
47305         * modules/settime (Makefile.am): Likewise.
47306         * modules/sha1 (Makefile.am): Likewise.
47307         * modules/sig2str (Makefile.am): Likewise.
47308         * modules/snprintf (Makefile.am): Likewise.
47309         * modules/stdlib-safer (Makefile.am): Likewise.
47310         * modules/stpcpy (Makefile.am): Likewise.
47311         * modules/stpncpy (Makefile.am): Likewise.
47312         * modules/strcase (Makefile.am): Likewise.
47313         * modules/strcasestr (Makefile.am): Likewise.
47314         * modules/strchrnul (Makefile.am): Likewise.
47315         * modules/strcspn (Makefile.am): Likewise.
47316         * modules/strdup (Makefile.am): Likewise.
47317         * modules/strerror (Makefile.am): Likewise.
47318         * modules/strftime (Makefile.am): Likewise.
47319         * modules/strndup (Makefile.am): Likewise.
47320         * modules/strnlen (Makefile.am): Likewise.
47321         * modules/strpbrk (Makefile.am): Likewise.
47322         * modules/strsep (Makefile.am): Likewise.
47323         * modules/strstr (Makefile.am): Likewise.
47324         * modules/strtod (Makefile.am): Likewise.
47325         * modules/strtoimax (Makefile.am): Likewise.
47326         * modules/strtok_r (Makefile.am): Likewise.
47327         * modules/strtol (Makefile.am): Likewise.
47328         * modules/strtoll (Makefile.am): Likewise.
47329         * modules/strtoul (Makefile.am): Likewise.
47330         * modules/strtoull (Makefile.am): Likewise.
47331         * modules/strtoumax (Makefile.am): Likewise.
47332         * modules/strverscmp (Makefile.am): Likewise.
47333         * modules/time_r (Makefile.am): Likewise.
47334         * modules/timegm (Makefile.am): Likewise.
47335         * modules/tmpfile-safer (Makefile.am): Likewise.
47336         * modules/unistd-safer (Makefile.am): Likewise.
47337         * modules/unlinkdir (Makefile.am): Likewise.
47338         * modules/userspec (Makefile.am): Likewise.
47339         * modules/utime (Makefile.am): Likewise.
47340         * modules/utimecmp (Makefile.am): Likewise.
47341         * modules/utimens (Makefile.am): Likewise.
47342         * modules/vasnprintf (Makefile.am): Likewise.
47343         * modules/vasprintf (Makefile.am): Likewise.
47344         * modules/vsnprintf (Makefile.am): Likewise.
47345         * modules/xalloc (Makefile.am): Likewise.
47346         * modules/xgetcwd (Makefile.am): Likewise.
47347         * modules/xnanosleep (Makefile.am): Likewise.
47348         * modules/xreadlink (Makefile.am): Likewise.
47349         * modules/xstrtod (Makefile.am): Likewise.
47350         * modules/xstrtol (Makefile.am): Likewise.
47351         * modules/xstrtold (Makefile.am): Likewise.
47352         * modules/yesno (Makefile.am): Likewise.
47353
47354 2006-10-12  Jim Meyering  <jim@meyering.net>
47355
47356         * m4/getloadavg.m4: Revert the change below.
47357
47358         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47359         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47360         fail with a symlink, which is what coreutils' ./bootstrap now
47361         creates by default.
47362
47363 2006-10-12  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47366         mingw.
47367         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47368         MSVC and mingw explicitly.
47369
47370 2006-10-11  Simon Josefsson  <jas@extundo.com>
47371             Bruno Haible  <bruno@clisp.org>
47372
47373         Add support for multiple gnulib-tool invocations in the scope of a
47374         single configure.ac file.
47375         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47376         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47377         with the same contents as the _LIBADD variable.
47378         (func_emit_initmacro_start, func_emit_initmacro_end,
47379         func_emit_initmacro_done): New functions.
47380         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47381         gl_LIBOBJS and gl_LTLIBOBJS.
47382
47383 2006-10-11  Bruno Haible  <bruno@clisp.org>
47384
47385         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47386         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47387         autoreconf. Instead, invoke autopoint explicitly but move back the
47388         *.m4 files from gnulib.
47389
47390 2006-10-11  Bruno Haible  <bruno@clisp.org>
47391
47392         * gnulib-tool (func_usage): Make module names after --create-testdir
47393         optional.
47394         (func_create_testdir): If no module was specified, use nearly all
47395         modules.
47396
47397 2006-10-12  Jim Meyering  <jim@meyering.net>
47398
47399         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47400         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47401         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47402         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47403         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47404         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47405         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47406         (fts_set_stat_required): New function.
47407         (fts_open): Defer the calls to fts_stat, if possible or requested.
47408         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47409         into fts_stat itself.
47410         (fts_read): Perform any required (deferred) fts_stat call.
47411         (fts_build): Likewise, for the directory we're about to open and read.
47412         In the readdir loop, carefully decide whether each entry will require
47413         an eventual call to fts_stat, using dirent.d_type info if available.
47414         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47415         a command line argument into this function.  Update all callers.
47416         Map a return value of FTS_DOT to FTS_D for a command line argument.
47417         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47418         Thanks to Miklos Szeredi for his tenacity and for the initial
47419         bug report about "find" failing on a FUSE-based file system.
47420
47421         * lib/fts.c (fts_open): Use consistent indentation.
47422
47423 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47426         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47427         reported by Jim Meyering.  All uses of cache variables renamed
47428         to match Autoconf's.
47429         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47430         the other one.
47431
47432         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47433         Fix misspelling in diagnostic.
47434
47435 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47436
47437         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47438         defined.  Problem reported by Matthew Woehlke.
47439
47440         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47441         Add support for Tandem NonStop R series.
47442         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47443         Use new macro.
47444
47445         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47446         (has_trailing_slash): Omit size arg; all callers changed.
47447         Omit 'inline', since it doesn't help performance and we'd
47448         need to configure it.
47449         Don't count //, ///, etc. as having a trailing slash.
47450         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47451         (rpl_rename_dest_slash): On failure, use rename's errno rather
47452         than (in some cases) an incorrect or junk errno.
47453         Simplify code by removing need to compute length; this does
47454         cause it to make two passes instead of one over the file name,
47455         but it's worth it.
47456
47457         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47458         change, since Autoconf's version may no longer be appropriate now
47459         that we are using CVS Autoconf's version.  Add support for Tandem.
47460
47461 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47462             Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47465         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47466         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47467         gl_AC_TYPE_LONG_LONG.
47468
47469         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47470         instead of HAVE_LONG_LONG.
47471         * lib/printf-args.c (printf_fetchargs): Likewise.
47472         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47473         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47474         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47475         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47476         gl_AC_TYPE_LONG_LONG.
47477
47478 2006-10-11  Bruno Haible  <bruno@clisp.org>
47479
47480         * m4/longlong.m4: Add comments.
47481         * m4/ulonglong.m4: Likewise.
47482
47483 2006-10-10  Bruno Haible  <bruno@clisp.org>
47484
47485         Make it possible to #define stpcpy, strdup to aliases.
47486         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47487         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47488
47489 2006-10-10  Bruno Haible  <bruno@clisp.org>
47490
47491         Make it possible to #define gcd to an alias.
47492         * lib/gcd.c: Include config.h.
47493
47494 2006-10-10  Bruno Haible  <bruno@clisp.org>
47495
47496         Make it possible to #define c_isascii to an alias.
47497         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47498         defined. Undefine the macros before defining them, to avoid gcc
47499         warnings.
47500         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47501         define NO_C_CTYPE_MACROS early.
47502
47503 2006-10-10  Bruno Haible  <bruno@clisp.org>
47504
47505         Make it possible to #define set_program_name to an alias.
47506         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47507         ENABLE_RELOCATABLE early.
47508
47509 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47510
47511         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47512         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47513         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47514         More generally, don't assume that 64-bit signed int is available
47515         if unsigned int is, and vice versa.
47516         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47517         unsigned symbols, not on their signed counterparts.
47518         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47519         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47520         (UINT64_C, UINTMAX_C):
47521         Likewise.
47522         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47523         unsigned counterparts.
47524         (Have_long_long, Unsigned): New macros.
47525         (Int): Renamed from INT.
47526         (strtoimax): Use the new macros.
47527         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47528         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47529         * modules/inttypes (inttypes.h): Substitute
47530         HAVE_UNSIGNED_LONG_LONG_INT.
47531         * modules/stdint (stdint.h): Likewise.
47532         (Files): Add m4/ulonglong.m4.
47533
47534 2006-10-10  Bruno Haible  <bruno@clisp.org>
47535
47536         Fix a gcc -Wshadow warning.
47537         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47538         to 'bucket'.
47539         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47540         gl_linked_indexof_from_to): Likewise.
47541         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47542         Likewise.
47543         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47544         Likewise.
47545         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47546         Reported by Eric Blake.
47547
47548 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47549
47550         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47551         for NetBSD.  Problem reported by Bruno Haible.
47552
47553 2006-10-09  Jim Meyering  <jim@meyering.net>
47554
47555         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47556         Patch from Bruno Haible.
47557
47558 2006-10-09  Jim Meyering  <jim@meyering.net>
47559
47560         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47561         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47562         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47563
47564 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47565
47566         Don't include <config.h> twice; this doesn't work in some cases,
47567         e.g., when config.h has "#define intmax_t long long int" and
47568         we include <config.h>, <inttypes.h>, <config.h> in that order.
47569         Problem reported by Matthew Woehlke in:
47570         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47571         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47572         * lib/fts-cycle.c: Don't include config.h.
47573         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47574         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47575         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47576         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47577         inttypes.h.
47578         * lib/xstrtoumax.c: Likewise.
47579         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47580         __strtol and the like, so that this module is more like its siblings.
47581         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47582         Remove; no longer needed now that we assume gnulib inttypes.h.
47583
47584 2006-10-08  Bruno Haible  <bruno@clisp.org>
47585
47586         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47587         option.
47588
47589 2006-10-07  Jim Meyering  <jim@meyering.net>
47590
47591         * modules/inttypes (inttypes.h): Revert what seems to have been
47592         an inadvertent part of today's change: use "|", not "/" in the
47593         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47594
47595 2006-10-07  Bruno Haible  <bruno@clisp.org>
47596
47597         * modules/sublist: New file.
47598
47599 2006-10-07  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47602         * modules/argz (argz.h): Likewise.
47603         * modules/arpa_inet (arpa/inet.h): Likewise.
47604         * modules/byteswap (byteswap.h): Likewise.
47605         * modules/configmake (configmake.h): Likewise.
47606         * modules/fcntl (fcntl.h): Likewise.
47607         * modules/fnmatch (fnmatch.h): Likewise.
47608         * modules/getopt (getopt.h): Likewise.
47609         * modules/glob (glob.h): Likewise.
47610         * modules/inttypes (inttypes.h): Likewise.
47611         * modules/netinet_in (netinet/in.h): Likewise.
47612         * modules/poll (poll.h): Likewise.
47613         * modules/stdbool (stdbool.h): Likewise.
47614         * modules/stdint (stdint.h): Likewise.
47615         * modules/sys_select (sys/select.h): Likewise.
47616         * modules/sys_socket (sys/socket.h): Likewise.
47617         * modules/sys_stat (sys/stat.h): Likewise.
47618         * modules/sysexits (sysexits.h): Likewise.
47619         * modules/unistd (unistd.h): Likewise.
47620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47621         Add a "DO NOT EDIT" comment to the generated file.
47622         (func_import): Likewise for gnulib-comp.m4.
47623
47624 2006-10-07  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/gl_sublist.h: New file.
47627         * lib/gl_sublist.c: New file.
47628
47629 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47630
47631         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47632         name (relative to the original working directory) and the file
47633         name component (relative to the temporary working directory).  All
47634         callers changed.
47635         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47636         * lib/mkdir-p.c (make_dir_parents): Likewise.
47637         * lib/mkdir-p.h (make_dir_parents): Likewise.
47638
47639 2006-10-06  Eric Blake  <ebb9@byu.net>
47640
47641         Define several macros for use by the clean-temp module.
47642         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47644         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47645
47646         * lib/clean-temp.h (close_stream_temp): New declaration.
47647         * lib/clean-temp.c (includes): Pull in headers according to what
47648         other modules are in use.
47649         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47650
47651 2006-10-06  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47654         instead of fopen, fwriteerror.
47655
47656 2006-10-06  Bruno Haible  <bruno@clisp.org>
47657
47658         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47659         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47660         int.
47661         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47662         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47663         Return an error indicator.
47664         Suggested by Eric Blake.
47665
47666 2006-10-06  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47669         Reported by Eric Blake.
47670
47671 2006-10-06  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/closeout (Description): Mention stderr too.
47674
47675 2006-10-06  Bruno Haible  <bruno@clisp.org>
47676         and Paul Eggert  <eggert@cs.ucla.edu>
47677
47678         * lib/closeout.c (close_stdout): Also close stderr.
47679         * lib/closeout.h: Update comment.
47680
47681 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47682
47683         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47684         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47685         * lib/dirchownmod.c: Include lchown.h.
47686         * lib/lchown.c: Don't include files that lchown.h now includes.
47687         Don't declare chown, since lchown.h now does that.
47688         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47689         (lchown): Define to rpl_chown if lchown is declared but
47690         does not exist.  Declare using a prototype if lchown is not
47691         declared.  Add a copyright notice.
47692         * lib/mkstemp.h: Include <unistd.h>.
47693         * lib/openat.c: Include lchown.h.
47694
47695         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47696         we now test for that separately.
47697         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47698         rather than O_NOFOLLOW, when testing whether it's possible to
47699         avoid a race condition reliably.
47700         * lib/savewd.c (savewd_chdir): Likewise.
47701
47702         Remove macros that are no longer needed now that stdint.h is
47703         reliable.
47704         * lib/fsusage.c (UINTMAX_MAX): Remove.
47705         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47706         * lib/utimecmp.c (SIZE_MAX): Remove.
47707
47708         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47709
47710         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47711         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47712         O_NOATIME works.
47713
47714 2006-10-05  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/gl_list.h (gl_sortedlist_search_from_to,
47717         gl_sortedlist_indexof_from_to): New declarations.
47718         (gl_list_implementation): New fields sortedlist_search_from_to,
47719         sortedlist_indexof_from_to.
47720         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47721         inline functions.
47722         * lib/gl_list.c (gl_sortedlist_search_from_to,
47723         gl_sortedlist_indexof_from_to): New functions.
47724         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47725         function.
47726         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47727         (gl_array_sortedlist_search_from_to): New function.
47728         (gl_array_list_implementation): Update.
47729         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47730         function.
47731         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47732         (gl_carray_sortedlist_search_from_to): New function.
47733         (gl_carray_list_implementation): Update.
47734         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47735         gl_linked_sortedlist_indexof_from_to): New functions.
47736         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47737         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47738         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47739         gl_tree_sortedlist_indexof_from_to): New functions.
47740         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47741         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47742         Update.
47743         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47744         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47745         Update.
47746
47747 2006-10-05  Bruno Haible  <bruno@clisp.org>
47748
47749         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47750         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47751         (struct gl_list_implementation): Add fields search_from_to,
47752         indexof_from_to. Remove fields search, indexof.
47753         (gl_list_search): Use the search_from_to method.
47754         (gl_list_search_from, gl_list_search_from_to): New functions.
47755         (gl_list_indexof): Use the indexof_from_to method.
47756         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47757         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47758         (gl_list_search_from, gl_list_search_from_to): New functions.
47759         (gl_list_indexof): Use the indexof_from_to method.
47760         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47761         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47762         gl_array_indexof. Add start_index, end_index arguments.
47763         (gl_array_search_from_to): Renamed from gl_array_search. Add
47764         start_index, end_index arguments.
47765         (gl_array_remove, gl_array_list_implementation): Update.
47766         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47767         gl_carray_indexof. Add start_index, end_index arguments.
47768         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47769         start_index, end_index arguments.
47770         (gl_carray_remove, gl_carray_list_implementation): Update.
47771         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47772         gl_linked_search. Add start_index, end_index arguments.
47773         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47774         start_index, end_index arguments.
47775         (gl_linked_remove): Update.
47776         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47777         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47778         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47779         field to 'size_t'.
47780         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47781         gl_tree_search. Add start_index, end_index arguments.
47782         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47783         start_index, end_index arguments.
47784         (gl_tree_remove): Update.
47785         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47786         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47787         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47788         function.
47789         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47790         gl_tree_search. Add start_index, end_index arguments.
47791         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47792         start_index, end_index arguments.
47793         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47794         Update.
47795         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47796
47797 2006-10-05  Bruno Haible  <bruno@clisp.org>
47798
47799         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47800
47801         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47802         fwriteerror_temp): New declarations.
47803         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47804         (descriptors): New variable.
47805         (cleanup): First, close the descriptors.
47806         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47807         fclose_temp, fwriteerror_temp): New functions.
47808
47809 2006-10-04  Jim Meyering  <jim@meyering.net>
47810
47811         * lib/fts.c (fts_open): Tiny comment change.
47812
47813 2006-10-04  Bruno Haible  <bruno@clisp.org>
47814
47815         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47816         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47817         gl_LOCK_BODY.
47818         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47819         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47820         gl_LOCK_EARLY_BODY.
47821         (gl_LOCK): Require gl_LOCK_BODY.
47822
47823 2006-10-04  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47826         (gl_oset_search_atleast): New declaration.
47827         (struct gl_oset_implementation): Add field 'search_atleast'.
47828         (gl_oset_search_atleast): New inline function.
47829         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47830         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47831         (gl_array_oset_implementation): Update.
47832         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47833         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47834         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47835
47836 2006-10-04  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47839
47840 2006-10-03  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47843         from gl_avltreehash_list_implementation.
47844
47845 2006-10-03  Bruno Haible  <bruno@clisp.org>
47846
47847         * lib/gl_oset.c (gl_oset_add): Fix return type.
47848
47849 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47850
47851         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47852
47853 2006-10-02  Eric Blake  <ebb9@byu.net>
47854
47855         * modules/strnlen (Depends-on): Add extensions.
47856
47857 2006-10-02  Eric Blake  <ebb9@byu.net>
47858
47859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47860         definition in 2.60+.
47861
47862 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47863
47864         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47865         checks.
47866
47867 2006-10-02  Bruno Haible  <bruno@clisp.org>
47868
47869         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47870         to the AUTOMAKE_OPTIONS.
47871         Reported by Jim Meyering.
47872
47873 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47874
47875         Work around bug in Solaris 10 /proc file system:
47876         /proc/self/fd/NNN/.. isn't the parent directory of
47877         the directory whose file descriptor is NNN.  This needs to
47878         be worked around at run time, not compile time, since a
47879         program might be built on Solaris 8, where things work, and
47880         run on Solaris 10.
47881         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47882         to use the following interface instead:
47883         (OPENAT_BUFFER_SIZE): New macro.
47884         (openat_proc_name): New function.
47885         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47886         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47887         Likewise.
47888         * lib/openat-proc.c: New file.
47889         * modules/openat (Files): Add lib/openat-proc.c.
47890         (Depends-on): Add same-inode, stdbool.
47891         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47892
47893 2006-09-29  Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47896         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47897         argument. Set stdout_closed before testing for ferror, not after.
47898         (fwriteerror, fwriteerror_no_ebadf): New functions.
47899
47900 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47901
47902         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47903
47904 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47905
47906         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47907         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47908
47909 2006-09-28  Jim Meyering  <jim@meyering.net>
47910
47911         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47912         Include <unistd.h>.
47913
47914 2006-09-28  Bruno Haible  <bruno@clisp.org>
47915
47916         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47917         * modules/linkedhash-list (Depends-on): Likewise.
47918         * modules/rbtreehash-list (Depends-on): Likewise.
47919
47920 2006-09-28  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/strndup.h: Simplify the redefinition of strndup.
47923         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47924         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47925
47926 2006-09-28  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47929         * lib/gl_linkedhash_list.c: Likewise.
47930         * lib/gl_rbtreehash_list.c: Likewise.
47931
47932 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47933
47934         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47935         getaddrinfo.
47936
47937         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47938         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47939         it causes <stdio_ext.h> to cause a compile-time error.
47940         Problem reported by Nelson H. F. Beebe.
47941         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47942         of HAVE_DECL___PENDING.
47943
47944         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47945         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47946         declaration.
47947
47948 2006-09-27  Jim Meyering  <jim@meyering.net>
47949
47950         This file could end up with a definition for a function
47951         named __strndup, rather than rpl_strndup on a system with
47952         incomplete weak_alias support.
47953         * lib/strndup.c (strndup): Rename from __strndup.
47954         Remove #defines that used to map __strndup to strndup.
47955         Don't use K&R prototypes.
47956         Remove LIBC-related code, since this file is not sync'd with glibc.
47957         * lib/strndup.h: Revamp, accordingly.
47958         * m4/strndup.m4: Modernize.
47959
47960 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         * modules/savewd (Depends-on): Add 'raise'.
47963         * lib/savewd.c: Include <signal.h>, for 'raise'.
47964
47965 2006-09-26  Jim Meyering  <jim@meyering.net>
47966
47967         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47968         when we detect Darwin 8.7.0's acl_get_file bug.
47969         Rearrange to perform the new (below) run-test while $LIBS
47970         contains any acl-related library.  Set USE_ACL at the end.
47971         (gl_ACL_GET_FILE): New function.
47972
47973 2006-09-26  Eric Blake  <ebb9@byu.net>
47974
47975         * lib/verror.c: Include <config.h> unconditionally.
47976
47977 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47978
47979         * modules/clock-time (Maintainer): Add self.
47980         * modules/getlogin_r (Depends-on): Add extensions.
47981
47982 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47983
47984         * modules/clock-time: New module.
47985         * modules/nanosleep (Depends-on): Add clock-time.
47986         * modules/gethrxtime (Depends-on): Likewise.
47987         * modules/gettime (Depends-on): Likewise.
47988         * modules/settime (Depends-on): Likewise.
47989
47990         * modules/fts-lgpl: Depend on openat.
47991         * modules/mkancesdirs: Depend on savewd.
47992         * modules/mkdir-p: Likewise.
47993
47994 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47995
47996         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47997
47998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47999         `gl_have_arbitrary_file_name_length_limit' to
48000         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48001         actually works between configure runs.
48002
48003 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48004             Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48007
48008 2006-09-25  Jim Meyering  <jim@meyering.net>
48009
48010         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48011         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48012
48013 2006-09-25  Eric Blake  <ebb9@byu.net>
48014
48015         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48016         exec's in 2006-09-18 patch when shuffling fds.
48017
48018 2006-09-25  Bruno Haible  <bruno@clisp.org>
48019
48020         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48021         Reported by Jim Meyering.
48022
48023 2006-09-24  Jim Meyering  <jim@meyering.net>
48024
48025         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48026         compare a pointer against a literal "0".  That caused failures with
48027         at least HP-UX's hpcc.
48028
48029 2006-09-22  Simon Josefsson  <jas@extundo.com>
48030
48031         * modules/gc-sha1:
48032         * modules/gc-md4:
48033         * modules/gc-hmac-sha1:
48034         * modules/gc-hmac-md5:
48035         * modules/gc-des:
48036         * modules/gc-arcfour: Distribute more files.
48037
48038 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48039
48040         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48041         (gl_linked_iterator_from_to): Initialize struct completely.
48042         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48043         (gl_tree_iterator_from_to): Likewise
48044         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48045         * lib/gl_array_list.c [lint] (gl_array_iterator)
48046         (gl_array_iterator_from_to): Likewise.
48047         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48048         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48049         (gl_carray_iterator_from_to): Likewise.
48050
48051         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48052         * lib/md4.c (md4_process_block): Remove unused variable.
48053         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48054         parentheses for clarity.
48055
48056 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48057
48058         * modules/bison-i18n (Depends-on): Add gettext.
48059
48060 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48061
48062         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48063         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48064         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48065         also add missing comma that caused broken test.
48066         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48067         stdlib.h, for `abort'.
48068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48069         variables.
48070         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48071         include unistd.h if present, for `rmdir'.
48072         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48073         variables.
48074         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48075         in the process include standard headers for prototypes.
48076         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48077         gets declared on GNU/Linux.
48078         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48079         unistd.h, for `rmdir'.
48080         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48081
48082         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48083         always true.
48084         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48085
48086         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48087
48088 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48089
48090         * gnulib-tool (func_version): Create output all at once.  This
48091         may help avoid triggering unnecessary SIGPIPEs, and at any
48092         rate it doesn't hurt.
48093
48094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48095             Bruno Haible  <bruno@clisp.org>
48096
48097         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48098         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48099         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48100
48101         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48102         (gl_FUNC_VASPRINTF): Invoke it.
48103
48104 2006-09-22  Bruno Haible  <bruno@clisp.org>
48105
48106         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48107         getloadavg.c as first argument.
48108
48109 2006-09-22  Bruno Haible  <bruno@clisp.org>
48110
48111         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48112         at the beginning of the gl_INIT macro.
48113         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48114         gl_GETLOADAVG.
48115
48116 2006-09-22  Bruno Haible  <bruno@clisp.org>
48117
48118         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48119         module.
48120         Suggested by Ralf Wildenhues.
48121
48122 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48123
48124         Import this patch from libc:
48125
48126         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48127
48128         * lib/regex_internal.c (re_string_reconstruct): Handle
48129         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48130         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48131         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48132         re_string_context_at.
48133
48134         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48135         now requires it.
48136         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48137         gl_REGEX now does it for us.
48138         (gl_REGEX): Add test taken from
48139         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48140
48141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48142         Check that large offsets work.  Modernize Autoconf usages.
48143         Prefer "yes" to mean a good thing rather than a bad.
48144         Don't put "#define mkstemp" in config.h, as this might interfere
48145         with standard system headers that "#define mkstemp mkstemp64".
48146
48147         * modules/mkstemp (Depends-on): Add extensions, so that
48148         mkstemp is visible on some platforms.
48149         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48150         (Include): Change to "mkstemp.h" from <stdlib.h>.
48151         (Files): Add mkstemp.h.
48152
48153         * lib/mkstemp.h: New file, since some standard headers
48154         #define mkstemp.
48155         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48156         Include "mkstemp.h".
48157         Make the _LIBC code resemble glibc original more,
48158         e.g., use K&R style.
48159         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48160         (mkstemp): Remove, since mkstemp.h does this for us.
48161         * lib/stdlib--.h: Include mkstemp.h.
48162
48163         Import this patch from libc:
48164
48165         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48166
48167         * lib/tempname.c (__gen_tempname): Change attempts_min
48168         into a macro.  Use preprocessor to decide how to initialize
48169         attempts [Coverity CID 67].
48170
48171 2006-09-20  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/mkdtemp.c: Import from libc.
48174         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48175                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48176                 attempts_min into a macro.  Use preprocessor to decide how to
48177                 initialize attempts [Coverity CID 67].
48178         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48179                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48180                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48181
48182 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48183
48184         * gnulib-tool (func_exit): New function, to allow to pass the
48185         exit status portably through the trap.  Use everywhere.
48186         (--help, --version): Signal a write error.
48187         (trap): catch SIGPIPE, for write errors.
48188         Exit at the end of the trap, with the correct exit status.
48189
48190 2006-09-19  Karl Berry  <karl@gnu.org>
48191
48192         * doc/gnulib.texi: note about the license texinfo files.
48193
48194 2006-09-19  Eric Blake  <ebb9@byu.net>
48195
48196         * gnulib-tool: Avoid space-tab.
48197
48198 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48199
48200         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48201         that prevented coreutils 6.1 from building.  Problem reported
48202         by Petter Reinholdtsen.
48203
48204 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * gnulib-tool (avoidlist): Fix typo that broke options like
48207         --avoid=lock that are used by coreutils bootstrap.
48208
48209 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48210
48211         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48212         more systematically.
48213
48214 2006-09-18  Jim Meyering  <jim@meyering.net>
48215
48216         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48217
48218 2006-09-18  Bruno Haible  <bruno@clisp.org>
48219
48220         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48221
48222 2006-09-18  Bruno Haible  <bruno@clisp.org>
48223
48224         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48225         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48226         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48227         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48228         * m4/gettext.m4: Require autoconf >= 2.52.
48229         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48230         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48231         of gl_cv_header_inttypes_h.
48232
48233 2006-09-18  Bruno Haible  <bruno@clisp.org>
48234
48235         * lib/javaversion.c: Include configmake.h.
48236
48237 2006-09-18  Bruno Haible  <bruno@clisp.org>
48238
48239         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48240         avoid that the while loops be executed in a subshell.
48241
48242 2006-09-18  Bruno Haible  <bruno@clisp.org>
48243
48244         * MODULES.html.sh (func_module): Break long lines.
48245         Suggested by Bruce Korb <bkorb@gnu.org>.
48246
48247 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48248
48249         Speed up by a factor of 1.12.
48250         * gnulib-tool (nl): New variable.
48251         (func_import): Rewrite include directive extraction to only read each
48252         directive once.
48253
48254 2006-09-17  Bruno Haible  <bruno@clisp.org>
48255
48256         * modules/javaversion (Makefile.am): Remove DEFS setting.
48257         (Depends-on): Add configmake, for PKGDATADIR definition.
48258
48259 2006-09-17  Bruno Haible  <bruno@clisp.org>
48260
48261         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48262
48263 2006-09-17  Bruno Haible  <bruno@clisp.org>
48264
48265         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48266         (func_modules_transitive_closure, func_modules_add_dummy,
48267         func_modules_to_filelist, func_import, func_create_testdir,
48268         func_create_megatestdir, ...): Use it wherever possible.
48269         Suggested by Ralf Wildenhues.
48270
48271 2006-09-16  Karl Berry  <karl@gnu.org>
48272
48273         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48274         to avoid sectioning errors.
48275         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48276         [ifinfo]: blank line after @center-ed titles.
48277         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48278         Spell FSF address consistently with others.
48279         (These changes approved by rms.)
48280
48281 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48282
48283         Speed up by a factor of 1.61.
48284         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48285         already checked module names again.
48286
48287 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48288
48289         Speed up by a factor of 1.13.
48290         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48291         for new_files, and the input to func_add_or_update.
48292
48293 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48294
48295         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48296         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48297
48298 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48299
48300         * modules/mkancesdirs (Depends-on): Add fcntl.
48301         * modules/savewd: New file.
48302         * MODULES.html.sh (File system functions): Add savewd.
48303
48304         * modules/configmake (Makefile.am): Add support for the
48305         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48306
48307 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48308
48309         * m4/savewd.m4: New file.
48310
48311 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48314         (dirchownmod): New arg FD.  All callers changed.
48315         Use FD rather than opening the directory ourself, as opening is
48316         now the caller's responsibility.
48317         * lib/dirchownmod.h: Likewise.
48318         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48319         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48320         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48321         (test_dir): Remove.
48322         (mkancesdirs): Return length of prefix of FILE that has already
48323         been made, or -2 if there is a child doing the work.  Redo
48324         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48325         ".", and treat ".." specially since it might stray back into
48326         already-created areas.  Use a subprocess if necessary.  New arg
48327         WD; all users changed.  MAKE_DIR function should now return 1
48328         if it creates a directory that is not readable.  Return -2 if
48329         a child process is spun off.
48330         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48331         Adjust signature to match code.
48332         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48333         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48334         all users changed.
48335         * lib/savewd.c, lib/savewd.h: New files.
48336
48337 2006-09-15  Jim Meyering  <jim@meyering.net>
48338
48339         * modules/rename-dest-slash: New module.
48340         * MODULES.html.sh (posix_compat): Add it here.
48341
48342         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48343
48344 2006-09-15  Jim Meyering  <jim@meyering.net>
48345
48346         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48347         file.
48348
48349         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48350
48351 2006-09-15  Jim Meyering  <jim@meyering.net>
48352
48353         * lib/rename-dest-slash.c (has_trailing_slash): Use
48354         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48355         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48356         test before testing whether SRC is a directory.
48357         Suggestions from Bruno Haible.
48358
48359         Avoid a warning about an unused variable.
48360         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48361         into the #ifdef block where it's used.
48362
48363         * lib/rename-dest-slash.c: New file.
48364
48365 2006-09-14  Bruno Haible  <bruno@clisp.org>
48366
48367         * lib/allocsa.c: Include <config.h> unconditionally.
48368         * lib/asnprintf.c: Likewise.
48369         * lib/asprintf.c: Likewise.
48370         * lib/c-strcasecmp.c: Likewise.
48371         * lib/c-strcasestr.c: Likewise.
48372         * lib/c-strncasecmp.c: Likewise.
48373         * lib/c-strstr.c: Likewise.
48374         * lib/classpath.c: Likewise.
48375         * lib/clean-temp.c: Likewise.
48376         * lib/concatpath.c: Likewise.
48377         * lib/copy-file.c: Likewise.
48378         * lib/csharpcomp.c: Likewise.
48379         * lib/csharpexec.c: Likewise.
48380         * lib/execute.c: Likewise.
48381         * lib/fatal-signal.c: Likewise.
48382         * lib/findprog.c: Likewise.
48383         * lib/fwriteerror.c: Likewise.
48384         * lib/gl_array_list.c: Likewise.
48385         * lib/gl_array_oset.c: Likewise.
48386         * lib/gl_avltree_list.c: Likewise.
48387         * lib/gl_avltree_oset.c: Likewise.
48388         * lib/gl_avltreehash_list.c: Likewise.
48389         * lib/gl_carray_list.c: Likewise.
48390         * lib/gl_linked_list.c: Likewise.
48391         * lib/gl_linkedhash_list.c: Likewise.
48392         * lib/gl_list.c: Likewise.
48393         * lib/gl_oset.c: Likewise.
48394         * lib/gl_rbtree_list.c: Likewise.
48395         * lib/gl_rbtree_oset.c: Likewise.
48396         * lib/gl_rbtreehash_list.c: Likewise.
48397         * lib/imaxabs.c: Likewise.
48398         * lib/imaxdiv.c: Likewise.
48399         * lib/javacomp.c: Likewise.
48400         * lib/javaexec.c: Likewise.
48401         * lib/javaversion.c: Likewise.
48402         * lib/linebreak.c: Likewise.
48403         * lib/localcharset.c: Likewise.
48404         * lib/lock.c: Likewise.
48405         * lib/mbchar.c: Likewise.
48406         * lib/mbswidth.c: Likewise.
48407         * lib/mkdtemp.c: Likewise.
48408         * lib/pipe.c: Likewise.
48409         * lib/printf-args.c: Likewise.
48410         * lib/printf-parse.c: Likewise.
48411         * lib/progname.c: Likewise.
48412         * lib/progreloc.c: Likewise.
48413         * lib/readlink.c: Likewise.
48414         * lib/sh-quote.c: Likewise.
48415         * lib/stpcpy.c: Likewise.
48416         * lib/stpncpy.c: Likewise.
48417         * lib/strcasecmp.c: Likewise.
48418         * lib/strcasestr.c: Likewise.
48419         * lib/strcspn.c: Likewise.
48420         * lib/striconv.c: Likewise.
48421         * lib/strncasecmp.c: Likewise.
48422         * lib/strnlen1.c: Likewise.
48423         * lib/strstr.c: Likewise.
48424         * lib/strtok_r.c: Likewise.
48425         * lib/tls.c: Likewise.
48426         * lib/tmpdir.c: Likewise.
48427         * lib/unicodeio.c: Likewise.
48428         * lib/unsetenv.c: Likewise.
48429         * lib/vasnprintf.c: Likewise.
48430         * lib/vasprintf.c: Likewise.
48431         * lib/wait-process.c: Likewise.
48432         * lib/xallocsa.c: Likewise.
48433         * lib/xsetenv.c: Likewise.
48434         * lib/xstriconv.c: Likewise.
48435
48436 2006-09-13  Simon Josefsson  <jas@extundo.com>
48437
48438         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48439         that internally, suggested by Ralf Wildenhues
48440         <Ralf.Wildenhues@gmx.de>.
48441
48442 2006-09-13  Simon Josefsson  <jas@extundo.com>
48443
48444         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48445         @LIBOBJS@.
48446         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48447
48448 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48449
48450         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48451         longer worry about uses that don't define HAVE_CONFIG_H.
48452         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48453         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48454         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48455         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48456         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48457         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48458         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48459         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48460         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48461         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48462         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48463         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48464         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48465         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48466         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48467         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48468         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48469         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48470         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48471         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48472         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48473         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48474         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48475         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48476         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48477         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48478         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48479         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48480         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48481         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48482         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48483         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48484         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48485         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48486         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48487         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48488         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48489         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48490         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48491         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48492         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48493         Likewise.
48494
48495 2006-09-13  Eric Blake  <ebb9@byu.net>
48496
48497         * lib/getopt.c: Fix typo in last commit.
48498
48499 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48500
48501         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48502         dgettext.
48503
48504 2006-09-12  Jim Meyering  <jim@meyering.net>
48505
48506         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48507         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48508         Reported by Nelson H. F. Beebe.
48509
48510 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48511
48512         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48513         program_invocation_name and program_invocation_short_name are
48514         initialized.
48515         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48516         and program_invocation_short_name to argp.h, so they are visible
48517         to user programs.
48518         * lib/argp.h: Likewise
48519
48520 2006-09-10  Bruno Haible  <bruno@clisp.org>
48521
48522         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48523         m4/inttypes_h.m4, m4/uintmax_t.m4.
48524
48525 2006-09-10  Bruno Haible  <bruno@clisp.org>
48526
48527         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48528         gl_AC_TYPE_UINTMAX_T.
48529
48530 2006-09-10  Bruno Haible  <bruno@clisp.org>
48531
48532         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48533
48534 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48535
48536         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48537         convention.  Text proposed by Bruno Haible.
48538         (struct argp_option): Document the use of N_() wrappers.
48539
48540         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48541         '\v', and translate the two parts separately, instead of feeding
48542         the whole string to gettext.  This allows to exclude
48543         '\v' from the strings visible to the translator by writing doc
48544         strings as N_("..") "\v" N_("..").
48545
48546 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48547
48548         * config/srclist.txt: Undo latest change; the bug was fixed.
48549
48550 2006-09-09  Bruno Haible  <bruno@clisp.org>
48551
48552         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48553         assignments if building a library without libtool.
48554         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48555         in func_emit_lib_Makefile_am.
48556         (func_import): When building a static library libfoo.a, arrange to
48557         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48558         (func_create_testdir): Likewise.
48559         * modules/gc (configure.ac, Makefile.am): If building statically,
48560         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48561         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48562         * modules/striconv (configure.ac, Makefile.am): Likewise.
48563         Based on a suggestion by Ralf Wildenhues.
48564
48565 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48566
48567         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48568         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48569         Also:
48570
48571         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48572         Add year_2050_test to catch glibc bug 2821
48573         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48574
48575         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48576         Prefer #ifdef to #if.
48577
48578         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48579         Return from 'main' instead of calling 'exit'.
48580
48581 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48584         returned the maximum time_t value rather than (time_t) -1.
48585         Problem originally reported by William Bardwell
48586         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48587
48588         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48589         Moved to here ...
48590         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48591         ... from here.
48592
48593 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48594
48595         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48596         2821 is fixed.
48597
48598 2006-09-08  Jim Meyering  <jim@meyering.net>
48599
48600         Don't make generated files read-only.  That would bother too many
48601         people.  However, do retain the ability to work when targets are
48602         read-only: remove the destination and temporary files before writing
48603         them (when generated via sed or echo), or by using the -f option for
48604         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48605         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48606         * modules/byteswap, modules/configmake, modules/fcntl:
48607         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48608         * modules/localcharset, modules/netinet_in, modules/poll:
48609         * modules/stdbool, modules/stdint, modules/sys_select:
48610         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48611
48612 2006-09-08  Jim Meyering  <jim@meyering.net>
48613
48614         Avoid new build failure on FreeBSD 6.0.
48615         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48616         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48617         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48618
48619 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48620
48621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48622
48623 2006-09-07  Jim Meyering  <jim@meyering.net>
48624
48625         Fix global typo in last change: use chmod u-w, not chmod u-x.
48626         Spotted by Paul Eggert and Bruce Korb.
48627         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48628         * modules/byteswap, modules/configmake, modules/fcntl:
48629         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48630         * modules/localcharset, modules/netinet_in, modules/poll:
48631         * modules/stdbool, modules/stdint, modules/sys_select:
48632         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48633
48634 2006-09-06  Jim Meyering  <jim@meyering.net>
48635
48636         Make generated files be read-only.
48637         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48638         Ensure that each generated file is now read-only.
48639         * modules/argz: Likewise.
48640         * modules/arpa_inet: Likewise.
48641         * modules/byteswap: Likewise.
48642         * modules/configmake: Likewise.
48643         * modules/fcntl: Likewise.
48644         * modules/fnmatch: Likewise.
48645         * modules/getopt: Likewise.
48646         * modules/glob: Likewise.
48647         * modules/inttypes: Likewise.
48648         * modules/netinet_in: Likewise.
48649         * modules/poll: Likewise.
48650         * modules/stdbool: Likewise.
48651         * modules/stdint: Likewise.
48652         * modules/sys_select: Likewise.
48653         * modules/sys_socket: Likewise.
48654         * modules/sys_stat: Likewise.
48655         * modules/sysexits: Likewise.
48656         * modules/localcharset: Same as above, but continue using temporary
48657         file named "t-$@" (why different?) rather than the "$@-t" used
48658         everywhere else.
48659
48660         * modules/sysexits (Makefile.am): Replace literal occurrences
48661         of "sysexit.h" more readable, and more consistent, "$@".
48662
48663 2006-09-06  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/striconv: New file.
48666         * modules/xstriconv: New file.
48667         * MODULES.html.sh (Internationalization functions): Add striconv,
48668         xstriconv.
48669
48670 2006-09-06  Bruno Haible  <bruno@clisp.org>
48671
48672         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48673         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48674         not using libtool correctly.
48675
48676 2006-09-06  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/striconv.h: New file.
48679         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48680         iconvstring.c.
48681         * lib/xstriconv.h: New file.
48682         * lib/xstriconv.c: New file.
48683
48684 2006-09-06  Bruno Haible  <bruno@clisp.org>
48685
48686         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48687         lib_..._LDFLAGS.
48688
48689 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48690
48691         * lib/argz_.h: Sync from Libtool.
48692
48693         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48694                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48695
48696         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48697
48698 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48699
48700         * modules/trim: New file.
48701
48702 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48703
48704         * lib/trim.h: New file.
48705         * lib/trim.c: New file.
48706
48707 2006-09-05  Bruno Haible  <bruno@clisp.org>
48708
48709         * MODULES.html.sh (String handling): Add trim.
48710
48711 2006-09-04  Karl Berry  <karl@gnu.org>
48712
48713         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48714         until next release.
48715
48716 2006-09-03  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48719         correctly.
48720
48721 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48722
48723         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48724         not gl_GETLOADAVG.  Omit unneeded semicolons.
48725         Problems reported by Ralf Wildenhues in
48726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48727         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48728         at the end, which is the usual gnulib style.
48729
48730         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48731         of doing all the work ourselves.
48732         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48733         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48734
48735 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48738         Problem reported by Ralf Wildenhues in
48739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48740
48741         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48742         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48743
48744 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48745
48746         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48747         yesterday's patch by changing test -n to test -z.
48748
48749 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48750
48751         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48752         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48753         the former is now obsolescent.
48754
48755         * modules/chdir-long (Depends-on): Add fcntl.
48756
48757 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48758
48759         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48760         obsolescent, and programs should use gnulib instead.
48761         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48762         but with prefixes changed.
48763
48764 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48765
48766         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48767         or stdbool.h, because they might not exist while configuring.
48768
48769         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48770         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48771         does that for us.
48772         (O_DIRECTORY): Remove.
48773
48774 2006-08-31  Eric Blake  <ebb9@byu.net>
48775
48776         * gnulib-tool: Don't let emacs change spaces to TAB.
48777
48778 2006-08-31  Bruno Haible  <bruno@clisp.org>
48779
48780         * gnulib-tool: When calling func_import more than once, do it in a
48781         subshell.
48782         Reported by Eric Blake <ebb9@byu.net>.
48783
48784 2006-08-31  Bruno Haible  <bruno@clisp.org>
48785
48786         * gnulib-tool (nl): Remove variable.
48787         (sed_transform_lib_file): Use more robust test for config-h module.
48788         (func_import): Fix typo in 2006-08-25 patch.
48789
48790 2006-08-31  Bruno Haible  <bruno@clisp.org>
48791
48792         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48793         specified, augment Makefile.am variables instead of assigning them.
48794
48795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         Work around a bug in both the Linux and SunOS 64-bit kernels:
48798         nanosleep mishandles sleeps for longer than 2**31 seconds.
48799         Problem reported by Frank v Waveren in
48800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48802         Check for nanosleep bug.
48803         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48804
48805 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48806
48807         Work around a bug in both the Linux and SunOS 64-bit kernels:
48808         nanosleep mishandles sleeps for longer than 2**31 seconds.
48809         Problem reported by Frank v Waveren in
48810         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48811         * lib/nanosleep.c (BILLION): New constant.
48812         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48813         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48814         implementation.
48815
48816 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48817
48818         * modules/nanosleep (Depends-on): Add gettime.
48819
48820 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48821         and Simon Josefsson  <jas@extundo.com>
48822         and Oskar Liljeblad  <oskar@osk.mine.nu>
48823
48824         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48825         * gnulib-tool (func_import): New license type 'unmodifiable license
48826         text'.
48827         * modules/fdl: Use it.  Longer description.
48828         * module/gpl, module/lgpl: New files.
48829
48830 2006-08-30  Jim Meyering  <jim@meyering.net>
48831
48832         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48833         shadowing the parameter.
48834
48835 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48836
48837         Sync from Libtool:
48838
48839         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48840
48841         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48842         sharing with gnulib.  Report by Eric Blake.
48843
48844 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48845
48846         * modules/isapipe: New file.
48847         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48848
48849 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48850
48851         * modules/configmake (Makefile.am): Add a comment, and omit
48852         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48853         by Bruno Haible.
48854
48855 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48856
48857         * m4/isapipe.m4: New file.
48858
48859 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48860
48861         * lib/isapipe.c, lib/isapipe.h: New files.
48862
48863 2006-08-29  Jim Meyering  <jim@meyering.net>
48864
48865         * modules/configmake (Makefile.am): Make configmake.h depend on
48866         Makefile.  Otherwise, a stale configmake.h could hang around.
48867
48868 2006-08-29  Eric Blake  <ebb9@byu.net>
48869
48870         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48871         resolution of upstream bug 3044.
48872
48873 2006-08-29  Bruno Haible  <bruno@clisp.org>
48874
48875         * modules/localcharset (Depends-on): Add configmake.
48876         (Makefile.am): Remove setting of LIBDIR through DEFS.
48877
48878 2006-08-29  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48881         defined.
48882
48883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48884
48885         * modules/fcntl: New file.
48886         * modules/chdir-safer (Depends-on): Add fcntl.
48887         * modules/fts: Likewise.
48888         * modules/mkdir-p: Likewise.
48889
48890         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48891         This undoes the most recent change, since we're now addressing the
48892         problem in a different way.
48893
48894         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48895         into output, since the output might be called Makefile.am even
48896         if $makefile_name is something different.
48897         (func_import): Use $makefile_am rather than
48898         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48899         empty.
48900
48901         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48902
48903 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48906         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48907         recent change to stdint.m4, since we're now addressing the problem in a
48908         different way.
48909
48910 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48911
48912         * m4/fcntl_h.m4: New file.
48913
48914 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48915
48916         * lib/fcntl_.h: New file.
48917         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48918         the fcntl module.
48919         * lib/dirchownmod.c: Likewise.
48920         * lib/fts.c: Likewise.
48921
48922         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48923         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48924         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48925         just before including <inttypes.h>, to avoid circular inclusion.
48926
48927 2006-08-28  Jim Meyering  <jim@meyering.net>
48928
48929         * doc/visibility.texi: Actually read and correct the grammar of the
48930         sentence affected by yesterday's change.
48931
48932 2006-08-28  Eric Blake  <ebb9@byu.net>
48933
48934         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48935         needs wrapper.
48936
48937 2006-08-28  Eric Blake  <ebb9@byu.net>
48938
48939         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48940
48941 2006-08-28  Eric Blake  <ebb9@byu.net>
48942
48943         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48944
48945 2006-08-28  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/c-strstr: New file, from GNU gettext.
48948         * MODULES.html.sh (String handling): Add c-strstr.
48949
48950 2006-08-28  Bruno Haible  <bruno@clisp.org>
48951
48952         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48953         macros.
48954         Reported by Eric Blake.
48955
48956 2006-08-28  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48959         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48960         * lib/vasprintf.c: Include errno.h, limits.h.
48961         (EOVERFLOW): New fallback definition.
48962         (vasprintf): Test here whether the string length is > INT_MAX.
48963         * lib/vsnprintf.c: Include errno.h, limits.h.
48964         (EOVERFLOW): New fallback definition.
48965         (vsnprintf): Fix bug when generated string was too long for the buffer.
48966         Test here whether the string length is > INT_MAX.
48967
48968 2006-08-28  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/inttypes_.h (SCNX*): Remove definitions.
48971         Reported by Eric Blake.
48972
48973 2006-08-28  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/c-strstr.h: New file, from GNU gettext.
48976         * lib/c-strstr.c: New file, from GNU gettext.
48977
48978 2006-08-28  Bruno Haible  <bruno@clisp.org>
48979
48980         * gnulib-tool: Reorder some statements.
48981
48982 2006-08-28  Bruno Haible  <bruno@clisp.org>
48983
48984         * gnulib-tool: New option --makefile-name.
48985         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48986         $makefile_name.
48987         (func_import): Write $makefile_name to the cache file, and read it from
48988         there unless explicitly specified. Use $makefile_name as file name
48989         instead of Makefile.am. Adjust the recommendations accordingly.
48990
48991 2006-08-28  Bruno Haible  <bruno@clisp.org>
48992
48993         * gnulib-tool (func_verify_module): Check against misapplying patch.
48994
48995 2006-08-28  Bruno Haible  <bruno@clisp.org>
48996
48997         * gnulib-tool (func_relativize, func_relconcat): New functions.
48998         Give an error if --local-dir is given with --update.
48999         Remove trailing slashes from $local_gnulib_dir.
49000         (func_import): Store the relativized $local_gnulib_dir in
49001         gnulib-cache.m4, and read it from there if not specified explicitly.
49002
49003 2006-08-28  Bruno Haible  <bruno@clisp.org>
49004
49005         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49006         is the current directory. Respect also $local_gnulib_dir.
49007
49008 2006-08-28  Bruno Haible  <bruno@clisp.org>
49009             Simon Josefsson  <jas@extundo.com>
49010
49011         BeOS portability.
49012         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49013
49014 2006-08-27  Jim Meyering  <jim@meyering.net>
49015
49016         * doc/visibility.texi: Remove duplicate word: "pointer".
49017
49018 2006-08-26  Bruno Haible  <bruno@clisp.org>
49019
49020         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49021         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49022         (Makefile.am): Create inttypes.h from inttypes_.h.
49023         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49024
49025         * modules/imaxabs: New file.
49026
49027         * modules/imaxdiv: New file.
49028
49029 2006-08-26  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/inttypes.m4: New file.
49032         * m4/_inttypes_h.m4: Remove file.
49033         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49034         PRI_MACROS_BROKEN.
49035         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49036
49037         * m4/imaxabs.m4: New file.
49038
49039         * m4/imaxdiv.m4: New file.
49040
49041 2006-08-26  Bruno Haible  <bruno@clisp.org>
49042
49043         * lib/inttypes_.h: New file.
49044         * lib/inttypes.h: Remove file.
49045         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49046
49047         * lib/imaxabs.c: New file.
49048
49049         * lib/imaxdiv.c: New file.
49050
49051 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         New config-h module, so that "make" output needn't be cluttered
49054         by -DHAVE_CONFIG_H.
49055         * MODULES.html.sh (Support for building libraries and executables):
49056         Add config-h.
49057         * modules/config-h: New file.
49058         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49059         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49060         the config-h module is used.
49061
49062         New configmake module, so that "make" output needn't be cluttered
49063         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49064         * MODULES.html.sh (Support for building libraries and executables):
49065         Add configmake.
49066         * modules/configmake: New file.
49067
49068 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         * m4/config-h.m4: New file.
49071
49072 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49073
49074         * config/srclist.txt: Add elisp-comp.
49075
49076 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49077
49078         * MODULES.html.sh (Support for building libraries and executables):
49079         Add elisp-comp.
49080         * build-aux/elisp-comp: New file.
49081         * modules/elisp-comp: New file.
49082
49083 2006-08-24  Bruno Haible  <bruno@clisp.org>
49084
49085         * gnulib-tool (func_create_testdir): Use non-default values of
49086         sourcebase and m4base.
49087
49088 2006-08-24  Bruno Haible  <bruno@clisp.org>
49089
49090         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49091         HTML structure.
49092
49093 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49094
49095         * modules/openat (Depends-on): Add lchown.
49096
49097 2006-08-23  Bruno Haible  <bruno@clisp.org>
49098
49099         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49100         of gl_LOCK_EARLY instead of gl_LOCK.
49101
49102 2006-08-23  Bruno Haible  <bruno@clisp.org>
49103
49104         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49105         on OSF/1 to no.
49106         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49107
49108 2006-08-23  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49111         as unusable.
49112
49113         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49114         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49115         (gl_LOCK): New macro.
49116
49117 2006-08-22  Simon Josefsson  <jas@extundo.com>
49118
49119         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49120         to md5 module.
49121
49122 2006-08-22  Simon Josefsson  <jas@extundo.com>
49123
49124         * MODULES.html.sh: Add "Support for maintaining and release
49125         projects".
49126
49127         * build-aux/gnupload: New file, from coreutils.
49128
49129 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         Avoid the need for AC_LIBSOURCES in m4 macros.
49132         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49133         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49134         * modules/check-version (EXTRA_DIST): Add check-version.h.
49135         * modules/crc (EXTRA_DIST): Add crc.h.
49136         * modules/des (EXTRA_DIST): Add des.h.
49137         * modules/gc (EXTRA_DIST): Add gc.h.
49138         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49139         * modules/getline (EXTRA_DIST): Add getline.h.
49140         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49141         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49142         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49143         * modules/md2 (EXTRA_DIST): Add md2.h.
49144         * modules/md4 (EXTRA_DIST): Add md4.h.
49145         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49146         * modules/read-file (EXTRA_DIST): Add read-file.h.
49147         * modules/readline (EXTRA_DIST): Add readline.h.
49148         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49149         rijndael-api-fst.h.
49150
49151 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49152
49153         * m4/rijndael.m4 (gl_ARCFOUR):
49154         * m4/arctwo.m4 (gl_ARCTWO):
49155         * m4/check-version.m4 (gl_CHECK_VERSION):
49156         * m4/crc.m4 (gl_CRC):
49157         * m4/des.m4 (gl_DES):
49158         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49159         * m4/gc.m4 (gl_GC):
49160         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49161         * m4/getline.m4 (gl_FUNC_GETLINE):
49162         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49163         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49164         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49165         * m4/md2.m4 (gl_MD2):
49166         * m4/md4.m4 (gl_MD4):
49167         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49168         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49169         * m4/readline.m4 (gl_FUNC_READLINE):
49170         * m4/rijndael.m4 (gl_RIJNDAEL):
49171         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49172         to get the necessary .h files and whatnot.
49173
49174 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49177         gnulib rather than the other way around.
49178         * config/srclistvars.sh (COREUTILS): Remove.
49179
49180 2006-08-22  Jim Meyering  <jim@meyering.net>
49181
49182         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49183
49184         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49185
49186 2006-08-22  Eric Blake  <ebb9@byu.net>
49187
49188         * modules/regexprops-generic: New file.
49189         * MODULES.html.sh (Support for building documentation): List it.
49190
49191 2006-08-22  Eric Blake  <ebb9@byu.net>
49192
49193         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49194         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49195         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49196         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49197
49198 2006-08-22  Bruno Haible  <bruno@clisp.org>
49199
49200         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49201         and lib_LTLIBRARIES like the other lib_* variables.
49202
49203 2006-08-22  Bruno Haible  <bruno@clisp.org>
49204
49205         * build-aux/x-to-1.in: New file, from GNU gettext.
49206
49207 2006-08-22  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49210         <utmpx.h> exists.
49211
49212 2006-08-22  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49215         <utmpx.h> exists.
49216
49217 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49218
49219         BeOS portability.
49220         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49221         exist.
49222         Problem reported by Bruno Haible.
49223
49224 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49225
49226         Avoid the need for AC_LIBSOURCES in m4 macros.
49227         * modules/acl (EXTRA_DIST): Add acl.h.
49228         * modules/argmatch (Files): Add m4/argmatch.m4.
49229         (configure.ac): Add gl_ARGMATCH.
49230         (EXTRA_DIST): Renamed from lib_SOURCES, for
49231         consistency with the other modules.  Remove argmatch.c.
49232         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49233         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49234         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49235         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49236         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49237         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49238         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49239         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49240         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49241         * modules/closeout (EXTRA_DIST): Add closeout.h.
49242         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49243         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49244         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49245         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49246         dirname.h; remove basename.c and stripslash.c.
49247         * modules/exclude (EXTRA_DIST): Add exclude.h.
49248         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49249         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49250         * modules/file-type (EXTRA_DIST): Add file-type.h.
49251         * modules/filemode (EXTRA_DIST): Add filemode.h.
49252         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49253         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49254         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49255         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49256         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49257         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49258         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49259         * modules/getdate (EXTRA_DIST): Add getdate.c.
49260         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49261         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49262         * modules/getpass (EXTRA_DIST): Add getpass.h.
49263         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49264         * modules/group-member (EXTRA_DIST): Add group-member.h.
49265         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49266         * modules/hash (EXTRA_DIST): Add hash.h.
49267         * modules/human (EXTRA_DIST): Add human.h.
49268         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49269         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49270         * modules/lchown (EXTRA_DIST): Add lchown.h.
49271         * modules/long-options (EXTRA_DIST): Add long-options.h.
49272         * modules/lstat (EXTRA_DIST): Add lstat.h.
49273         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49274         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49275         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49276         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49277         * modules/memxor (EXTRA_DIST): Add memxor.h.
49278         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49279         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49280         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49281         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49282         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49283         * modules/physmem (EXTRA_DIST): Add physmem.h.
49284         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49285         * modules/posixver (EXTRA_DIST): Add posixver.h.
49286         * modules/quote (EXTRA_DIST): Add quote.h.
49287         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49288         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49289         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49290         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49291         regex_internal.h regexec.c.
49292         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49293         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49294         * modules/same (EXTRA_DIST): Add same.h.
49295         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49296         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49297         * modules/savedir (EXTRA_DIST): Add savedir.h.
49298         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49299         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49300         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49301         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49302         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49303         * modules/strdup (EXTRA_DIST): Add strdup.h.
49304         * modules/strftime (EXTRA_DIST): Add strftime.h.
49305         * modules/strndup (EXTRA_DIST): Add strndup.h.
49306         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49307         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49308         * modules/time_r (EXTRA_DIST): Add time_r.h.
49309         * modules/timespec (EXTRA_DIST): Add timespec.h.
49310         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49311         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49312         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49313         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49314         * modules/userspec (EXTRA_DIST): Add userspec.h.
49315         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49316         * modules/utimens (EXTRA_DIST): Add utimens.h.
49317         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49318         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49319         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49320         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49321         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49322         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49323         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49324         * modules/yesno (EXTRA_DIST): Add yesno.h.
49325
49326 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49329
49330         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49331         * m4/dev-ino.m4, same-inode.m4: Remove.
49332
49333         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49334         * m4/acl.m4 (AC_FUNC_ACL):
49335         * m4/backupfile.m4 (gl_BACKUPFILE):
49336         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49337         * m4/canon-host.m4 (gl_CANON_HOST):
49338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49339         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49340         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49341         * m4/cloexec.m4 (gl_CLOEXEC):
49342         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49343         * m4/closeout.m4 (gl_CLOSEOUT):
49344         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49345         * m4/dirname.m4 (gl_DIRNAME):
49346         * m4/exclude.m4 (gl_EXCLUDE):
49347         * m4/exitfail.m4 (gl_EXITFAIL):
49348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49349         * m4/file-type.m4 (gl_FILE_TYPE):
49350         * m4/filemode.m4 (gl_FILEMODE):
49351         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49352         * m4/fpending.m4 (gl_FUNC_FPENDING):
49353         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49354         * m4/fts.m4 (gl_FUNC_FTS):
49355         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49356         * m4/getdate.m4 (gl_GETDATE):
49357         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49358         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49359         * m4/getpass.m4 (gl_FUNC_GETPASS):
49360         * m4/gettime.m4 (gl_GETTIME):
49361         * m4/getugroups.m4 (gl_GETUGROUPS):
49362         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49363         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49364         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49365         * m4/hash.m4 (gl_HASH):
49366         * m4/idcache.m4 (gl_IDCACHE):
49367         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49368         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49369         * m4/long-options.m4 (gl_LONG_OPTIONS):
49370         * m4/lstat.m4 (gl_FUNC_LSTAT):
49371         * m4/md5.m4 (gl_MD5):
49372         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49373         * m4/memcoll.m4 (gl_MEMCOLL):
49374         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49375         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49376         * m4/memxor.m4 (gl_MEMXOR):
49377         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49378         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49379         * m4/modechange.m4 (gl_MODECHANGE):
49380         * m4/mountlist.m4 (gl_MOUNTLIST):
49381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49382         * m4/openat.m4 (gl_FUNC_OPENAT):
49383         * m4/pathmax.m4 (gl_PATHMAX):
49384         * m4/physmem.m4 (gl_PHYSMEM):
49385         * m4/posixtm.m4 (gl_POSIXTM):
49386         * m4/posixver.m4 (gl_POSIXVER):
49387         * m4/quote.m4 (gl_QUOTE):
49388         * m4/quotearg.m4 (gl_QUOTEARG):
49389         * m4/readtokens.m4 (gl_READTOKENS):
49390         * m4/readutmp.m4 (gl_READUTMP):
49391         * m4/regex.m4 (gl_REGEX):
49392         * m4/safe-read.m4 (gl_SAFE_READ):
49393         * m4/safe-write.m4 (gl_SAFE_WRITE):
49394         * m4/same.m4 (gl_SAME):
49395         * m4/save-cwd.m4 (gl_SAVE_CWD):
49396         * m4/savedir.m4 (gl_SAVEDIR):
49397         * m4/settime.m4 (gl_SETTIME):
49398         * m4/sha1.m4 (gl_SHA1):
49399         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49400         * m4/stat-macros.m4 (gl_STAT_MACROS):
49401         * m4/stat-time.m4 (gl_STAT_TIME):
49402         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49403         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49404         * m4/strdup.m4 (gl_FUNC_STRDUP):
49405         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49406         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49407         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49408         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49409         * m4/time_r.m4 (gl_TIME_R):
49410         * m4/timespec.m4 (gl_TIMESPEC):
49411         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49412         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49413         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49414         * m4/userspec.m4 (gl_USERSPEC):
49415         * m4/utimecmp.m4 (gl_UTIMECMP):
49416         * m4/utimens.m4 (gl_UTIMENS):
49417         * m4/xalloc.m4 (gl_XALLOC):
49418         * m4/xgetcwd.m4 (gl_XGETCWD):
49419         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49420         * m4/xreadlink.m4 (gl_XREADLINK):
49421         * m4/xstrtod.m4 (gl_XSTRTOD):
49422         * m4/yesno.m4 (gl_YESNO):
49423         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49424         to get the necessary .h files and whatnot.
49425
49426 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49427             Bruno Haible  <bruno@clisp.org>
49428
49429         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49430         /bin/sh understanding of '!' conditional negation.
49431
49432 2006-08-21  Jim Meyering  <jim@meyering.net>
49433
49434         * modules/openat (Depends-on): Really alphabetize.
49435
49436         * modules/acl (Depends-on): Add error and quote.
49437
49438         * check-module (find_included_lib_files): Add at-func.c to the
49439         ok-to-include-more-than-once white list.
49440
49441         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49442
49443 2006-08-21  Bruno Haible  <bruno@clisp.org>
49444
49445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49446         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49447         Reported by Martin Lambers <marlam@marlam.de>.
49448
49449 2006-08-21  Bruno Haible  <bruno@clisp.org>
49450
49451         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49452         specify an installation location, don't emit a noinst_LIBRARIES or
49453         noinst_LTLIBRARIES assignment.
49454
49455 2006-08-21  Bruno Haible  <bruno@clisp.org>
49456
49457         BeOS portability.
49458         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49459         BeOS has mbrtowc() but no <wctype.h>.
49460
49461 2006-08-21  Bruno Haible  <bruno@clisp.org>
49462
49463         BeOS portability.
49464         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49465         exist.
49466
49467 2006-08-21  Bruno Haible  <bruno@clisp.org>
49468
49469         BeOS portability.
49470         * lib/mbchar.h: Include <wctype.h> only if it exists.
49471
49472 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         Remove files that are no longer needed by their respective modules.
49475         * m4/obstack.m4: Remove.
49476         * m4/strerror_r.m4: Remove.
49477         * m4/uint32_t.m4: Remove.
49478         * m4/uintptr_t.m4: Remove.
49479         * m4/ullong_max.m4: Remove.
49480         * m4/xstrtoimax.m4: Remove.
49481         * m4/xstrtoumax.m4: Remove.
49482
49483         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49484         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49485         dependencies now capture this.
49486
49487         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49488         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49489         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49490         * m4/human.m4 (gl_HUMAN): Likewise.
49491         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49492         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49493
49494         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49495
49496         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49497         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49498         stdint.
49499         * m4/human.m4 (gl_HUMAN): Likewise.
49500         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49501         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49502         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49504         * m4/xstrtol (gl_XSTRTOL): Likewise.
49505
49506         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49507         AC_TYPE_LONG_LONG_INT.
49508         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49509         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49510         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49511         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49512
49513         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49514         on stdbool.
49515
49516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49517         (gl_PREREQ_XSTRTOUL): Remove.
49518
49519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49520
49521         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49522         mode.
49523
49524 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49525
49526         Add and change modules to make it easier for coreutils to use
49527         gnulib-tool.
49528         * modules/backupfile (Files): Remove m4/d-ino.m4.
49529         (Depends-on): Add d-ino.
49530         * modules/cycle-check (Depends-on): Add stdint.
49531         (lib_SOURCES): Add cycle-check.h.
49532         * modules/d-ino: New module.
49533         * modules/d-type: New module.
49534         * modules/error (Files): Remove m4/strerror_r.m4.
49535         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49536         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49537         m4/inttypes_h.m4, m4/uintmax_t.m4.
49538         (Depends-on): Add stdint.
49539         (lib_SOURCES): Add fsusage.h.
49540         * modules/getcwd (Files): Remove d-ino.m4.
49541         (Depends-on): Add d-ino.
49542         * modules/getndelim2 (Depends-on): Add stdint.
49543         * modules/glob (Files): Remove m4/d-type.m4.
49544         (Depends-on): Add d-type.
49545         * modules/host-os: New module.
49546         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49547         m4/inttypes_h.m4, m4/uintmax_t.m4.
49548         * Depends-on: Add stdint.
49549         (lib_SOURCES): Add human.h.
49550         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49551         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49552         m4/uintmax_t.m4, m4/ulonglong.m4.
49553         (Depends-on): Add stdint.
49554         (EXTRA_DIST): Add inttostr.h.
49555         * modules/lchmod: New module.
49556         * modules/link-follow: New module.
49557         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49558         (Depends-on): Add lchmod.
49559         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49560         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49561         (Depends-on): Add stdint.
49562         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49563         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49564         (Depends-on): Add stdint.
49565         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49566         * modules/perl: New module.
49567         * modules/regex (Depends-on): Add stdint.
49568         * modules/rmdir-errno: New module.
49569         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49570         m4/intmax_t.m4.
49571         (Depends-on): Add stdint.
49572         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49573         m4/uintmax_t.m4.
49574         (Depends-on): Add stdint.
49575         * modules/unlink-busy: New module.
49576         * modules/utimecmp (Depends-on): Add stdint.
49577         * modules/uptime: New module.
49578         * modules/winsz-ioctl: New module.
49579         * modules/winsz-termios: New module.
49580         * modules/xnanosleep (Depends-on): Add nanosleep.
49581         * modules/ullong_max: Remove.
49582         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49583         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49584         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49585         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49586         (Depends-on): Add inttypes.
49587         (lib_SOURCES): Add xstrtol.h.
49588         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49589         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49590         * MODULES.html.sh: Move 'assert' into the assert section.
49591         Move 'dummy' into the linking section.
49592         Remove ullong_max.
49593         Add section for compatibility checks for POSIX:2001 functions,
49594         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49595         winsz-ioctl, and winsz-termios into it.
49596         Add lchmod.
49597         Add top-level Misc section and put host-os, perl, and uptime
49598         into it.
49599
49600 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49601
49602         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49603         now assume the stdint module.  Do not include inttypes.h.
49604         * lib/fsusage.h: Likewise.
49605         * lib/getndelim2.c: Likewise.
49606         * lib/human.h: Likewise.
49607         * lib/inttostr.h: Likewise.
49608         * lib/obstack.c: Likewise.
49609         * lib/regex_internal.h: Likewise.
49610         * lib/tempname.c: Likewise.
49611         * lib/utimecmp.c: Likewise.
49612         * lib/xstrtol.h: Likewise.
49613
49614         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49615
49616         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49617         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49618         * lib/xtime.h: Likewise.
49619
49620 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49621
49622         * modules/openat (Files): Add lib/fchmodat.c.
49623         Fixes problem reported by Jay Youngman.
49624
49625 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49626
49627         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49628         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49629
49630 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49631             Bruno Haible  <bruno@clisp.org>
49632
49633         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49634         and is a script that invokes bison. Tighten the code. Add comments.
49635
49636 2006-08-18  Jim Meyering  <jim@meyering.net>
49637
49638         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49639         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49640         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49641         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49642
49643 2006-08-18  Bruno Haible  <bruno@clisp.org>
49644
49645         * modules/bison-i18n: New file.
49646         * MODULES.html.sh (Internationalization functions): Add it.
49647
49648 2006-08-18  Bruno Haible  <bruno@clisp.org>
49649
49650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49651         sys/statvfs.h. When getmntinfo was found, check its declaration and
49652         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49653
49654 2006-08-18  Bruno Haible  <bruno@clisp.org>
49655
49656         * m4/bison-i18n.m4: New file, from bison.
49657
49658 2006-08-18  Bruno Haible  <bruno@clisp.org>
49659
49660         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49661         (ME_DUMMY): Treat "kernfs" as a dummy.
49662         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49663
49664 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49665
49666         Update from coreutils.
49667
49668         2006-08-15  Jim Meyering  <jim@meyering.net>
49669
49670         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49671
49672         2006-01-17  Jim Meyering  <jim@meyering.net>
49673
49674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49675
49676         2006-01-11  Jim Meyering  <jim@meyering.net>
49677
49678         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49679         Check for the lchmod function.
49680
49681 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         Update from coreutils.
49684
49685         * lib/__fpending.h: Add copyright notice.
49686         * lib/fprintftime.h: Likewise.
49687         * lib/savedir.c: Use (C) in copyright notice.
49688         * lib/savedir.h: Likewise.
49689
49690         2006-08-15  Jim Meyering  <jim@meyering.net>
49691
49692         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49693         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49694         in support of the EXPECTED_ERRNO macro.
49695         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49696         definitions.  Instead, define the appropriate symbols and include
49697         "at-func.c".
49698         * lib/mkdirat.c (mkdirat): Likewise.
49699         * lib/fchmodat.c (fchmodat): Likewise.
49700         (ENOSYS): Remove definition.
49701         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49702         it.  Don't include "unistd--.h" -- it wasn't ever used.
49703
49704         2006-01-17  Jim Meyering  <jim@meyering.net>
49705
49706         Rewrite fts.c not to change the current working directory,
49707         by using openat, fstatat, fdopendir, etc..
49708
49709         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49710         (HAVE_OPENAT_SUPPORT): Define.
49711         [_LIBC] (fchdir): Don't undef or define; no longer used.
49712         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49713         Now, this `function' always succeeds, and consumes its file descriptor
49714         parameter -- so callers must not close such FDs.  Update callers.
49715         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49716         (diropen): Add parameter, SP.  Adjust all callers.
49717         Implement using diropen_fd, rather than open.
49718         (fts_open): Initialize new member, fts_cwd_fd.
49719         Remove fts_rft-setting code.
49720         (fts_close): Close fts_cwd_fd, if necessary.
49721         (__opendir2): Define in terms of opendir or opendirat,
49722         depending on whether the FST_NOCHDIR flag is set.
49723         (fts_build): Since fts_safe_changedir consumes its FD, and since
49724         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49725         and close the dup'd file descriptor upon failure.
49726         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49727         (fts_safe_changedir): Tweak semantics to reflect that this function
49728         now calls cwd_advance_fd and hence consumes its FD argument.
49729         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49730         [struct FTS] (fts_rft): Remove now-unused member.
49731         [struct FTS] (fts_cycle.state): Improve comment.
49732
49733         * lib/openat.c (openat_needs_fchdir): New function.
49734         * lib/openat.h (openat_needs_fchdir): Declare it.
49735
49736 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49739         Problem and fix reported by Pádraig Brady in
49740         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49741
49742 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49743
49744         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49745
49746 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49747
49748         * lib/memcoll.c (memcoll): Optimize for the common case where the
49749         arguments are bytewise equal.
49750
49751 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49752
49753         * doc/regexprops-generic.texi: Add a copyright notice.
49754
49755 2006-08-15  Bruno Haible  <bruno@clisp.org>
49756
49757         * modules/tmpdir (License): Change to LGPL.
49758
49759 2006-08-15  Bruno Haible  <bruno@clisp.org>
49760
49761         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49762         module.
49763
49764 2006-08-14  Simon Josefsson  <jas@extundo.com>
49765
49766         * config/srclist.txt: Add gnupload.
49767
49768 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         Change copyright notice from LGPL 2 to GPL 2, since that's the
49771         standard form used in the gnulib repository.
49772         * tests/test-lock.c: Likewise.
49773         * tests/test-stdint.c: Likewise.
49774         * tests/test-tls.c: Likewise.
49775
49776         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49777         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49778         Add copyright notice.
49779
49780         * check-module: Add copyright notice.  Output a copyright
49781         notice if "--version" is specified.
49782         * modules/COPYING: New file.
49783         * tests/test-getaddrinfo.c: Add copyright notice.
49784         * tests/test-verify.c: Likewise.
49785
49786 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         Change copyright notice from LGPL 2 to GPL 2, since that's the
49789         standard form used in the gnulib repository.
49790         * lib/lock.c: LGPL -> GPL.
49791         * lib/lock.h: Likewise.
49792         * lib/strnlen1.c: Likewise.
49793         * lib/strnlen1.h: Likewise.
49794         * lib/tls.c: Likewise.
49795         * lib/tls.h: Likewise.
49796         * lib/tmpdir.c: Likewise.
49797
49798         * lib/TODO: Remove; this belongs only in coreutils.
49799
49800 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49801
49802         Add copyright notices to long-enough files that lack them, since
49803         otherwise the files aren't clearly free.  Use the same notice that
49804         getdate.texi already uses.
49805         * doc/alloca-opt.texi: Add copyright notice.
49806         * doc/alloca.texi: Likewise.
49807         * doc/ctime.texi: Likewise.
49808         * doc/functions.texi: Likewise.
49809         * doc/gcd.texi: Likewise.
49810         * doc/gnulib-tool.texi: Likewise.
49811         * doc/inet_ntoa.texi: Likewise.
49812         * doc/visibility.texi: Likewise.
49813
49814         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49815         * doc/quote.texi: Add copyright notice.
49816
49817         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49818         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49819         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49820         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49821         is now obsolete, and give a pointer to the Sun list.
49822         Add copyright notice.
49823
49824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49825
49826         * config/srclistvars.sh: Add copyright notice.
49827
49828 2006-08-14  Eric Blake  <ebb9@byu.net>
49829
49830         Import the following change from libc:
49831
49832         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49833
49834         Upstream bug 2997.
49835         * lib/misc/error.c: Add space between program name and message if file
49836         name is missing.
49837
49838 2006-08-12  Karl Berry  <karl@gnu.org>
49839
49840         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49841         remove, these originate in gnulib now.
49842
49843 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49844
49845         * doc/Makefile (standards.info standards.html standards.dvi):
49846         Also depend on make-stds.texi.
49847
49848 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49849
49850         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49851         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49852
49853         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49854         in wchar_t.  Problem reported by Eric Blake.
49855
49856         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49857         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49858         Also, help the compiler to keep LEN in a register.
49859
49860 2006-08-11  Eric Blake  <ebb9@byu.net>
49861
49862         * users.txt: Sort.  Add tar.
49863
49864 2006-08-11  Bruno Haible  <bruno@clisp.org>
49865
49866         * users.txt: New file.
49867
49868 2006-08-11  Bruno Haible  <bruno@clisp.org>
49869
49870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49871         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49872
49873 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * modules/snprintf (Depends-on): Remove minmax.
49876         (Maintainer): Add self and Bruno.
49877
49878 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49881         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49882         (EOVERFLOW): Define if the system does not.
49883         Do not include "minmax.h"; it wasn't used.
49884         (snprintf): Don't assume size_t promotes to an unsigned type.
49885         Fix bug when generated string was too long for the buffer: the
49886         buffer's contents are supposed to be the initial prefix of the
49887         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49888         exceeds INT_MAX; do the check ourselves.
49889
49890         Import the following changes from libc:
49891
49892         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49893
49894         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49895         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49896         set wc to the byte which couldn't be converted.
49897         (re_string_reconstruct): Don't clear valid_raw_len before calling
49898         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49899         tip_context using re_string_context_at.
49900
49901         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49902
49903         * lib/posix/regex.h: g++ still cannot handled [restrict].
49904
49905         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49906
49907         * lib/posix/regex.h: Remove special handling for VMS.
49908
49909 2006-08-10  Jim Meyering  <jim@meyering.net>
49910
49911         * modules/same-inode: New module.
49912         * modules/dev-ino: New module.
49913         * modules/cycle-check: Depend on these modules, rather than simply
49914         including their .h files.
49915         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49916         required via m4/cycle-check.m4.
49917         * modules/same: Depend on new same-inode module, rather than
49918         including same-inode.h.
49919         * modules/chdir-safer: New file.
49920
49921         * modules/chown (Depends-on): Add stat-macros.
49922
49923 2006-08-10  Jim Meyering  <jim@meyering.net>
49924
49925         * m4/cycle-check.m4: New file.
49926         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49927         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49928
49929 2006-08-10  Eric Blake  <ebb9@byu.net>
49930
49931         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49932         in from original proposal.
49933
49934 2006-08-10  Eric Blake  <ebb9@byu.net>
49935         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49936
49937         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49938         namespace.
49939
49940 2006-08-10  Bruno Haible  <bruno@clisp.org>
49941
49942         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49943         as well.
49944
49945 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49946
49947         Sync from coreutils.
49948
49949         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49950
49951         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49952         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49953
49954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49955
49956         * modules/restrict: Remove; no longer needed now that we assume
49957         Autoconf 2.59 or later.
49958         * MODULES.html.sh: Remove 'restrict'.
49959         * modules/argp (Depends-on): Remove 'restrict'.
49960         * modules/base64 (Depends-on): Likewise.
49961         * modules/gc (Depends-on): Likewise.
49962         * modules/getaddrinfo (Depends-on): Likewise.
49963         * modules/glob (Depends-on): Likewise.
49964         * modules/inet_ntop (Depends-on): Likewise.
49965         * modules/inet_pton (Depends-on): Likewise.
49966         * modules/memxor (Depends-on): Likewise.
49967         * modules/regex (Depends-on): Likewise.
49968         * modules/strtok_r (Depends-on): Likewise.
49969         * modules/time_r (Depends-on): Likewise.
49970
49971 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49972
49973         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49974         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49975         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49976         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49977         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49978         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49979         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49980         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49981
49982         Merge from coreutils.
49983         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49984         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49986         * m4/time_r.m4 (gl_TIME_R): Likewise.
49987
49988 2006-08-09  Karl Berry  <karl@gnu.org>
49989
49990         * config/srclist.txt: no more gettext-tools, per Bruno.
49991
49992 2006-08-08  Eric Blake  <ebb9@byu.net>
49993
49994         * modules/verror: New module.
49995         * MODULES.html.sh: Document it.
49996
49997 2006-08-08  Eric Blake  <ebb9@byu.net>
49998
49999         * lib/verror.h, lib/verror.c: New files.
50000
50001 2006-08-08  Eric Blake  <ebb9@byu.net>
50002
50003         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50004         verror_at_line output complies with GNU Coding Standards even when
50005         file is NULL.
50006
50007 2006-08-07  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50010         versions of AIX.
50011         Reported by Ralf Wildenhues.
50012
50013 2006-08-07  Bruno Haible  <bruno@clisp.org>
50014
50015         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50016         in an AC_DEFUN. Needed so that the autoconf snippets can use
50017         AC_REQUIRE.
50018
50019 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50020
50021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50022         Initialize pkgdata_DATA.
50023         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50024         overriding it.
50025
50026 2006-08-06  Eric Blake  <ebb9@byu.net>
50027
50028         * lib/error.h: Fold in some upstream changes from glibc.
50029         * lib/error.c: Likewise.
50030
50031 2006-08-04  Bruno Haible  <bruno@clisp.org>
50032
50033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50034         Make the mostlyclean-local rule depend on mostlyclean-generic.
50035         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50036
50037 2006-07-31  Bruno Haible  <bruno@clisp.org>
50038
50039         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50040         <stdlib.h>, <string.h>.
50041
50042 2006-07-30  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/readlink (License): Change to LGPL.
50045
50046 2006-07-30  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50049         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50050         set PKGDATADIR to point to it.
50051
50052 2006-07-30  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/csharpexec (configure.ac): Comment out macro invocation.
50055         * modules/javaexec (configure.ac): Likewise.
50056         * modules/javacomp-script (configure.ac): Likewise.
50057
50058         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50059
50060 2006-07-30  Bruno Haible  <bruno@clisp.org>
50061
50062         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50063         linked-list.
50064
50065 2006-07-30  Bruno Haible  <bruno@clisp.org>
50066
50067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50068
50069 2006-07-30  Bruno Haible  <bruno@clisp.org>
50070
50071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50072         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50073         get removed.
50074
50075 2006-07-29  Bruno Haible  <bruno@clisp.org>
50076
50077         Make it possible for gnulib-tool to work with locally modified or
50078         augmented gnulib repositories.
50079         * gnulib-tool (func_usage): Document --local-dir option.
50080         (local_gnulib_dir): New variable.
50081         Handle --local-dir option.
50082         (func_lookup_file): New function.
50083         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50084         (func_get_description, func_get_filelist, func_get_description,
50085         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50086         func_get_automake_snippet, func_get_include_directive,
50087         func_get_license, func_get_maintainer): Use func_lookup_file.
50088         (func_import, func_create_testdir): Use func_lookup_file.
50089
50090 2006-07-29  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/setenv (Depends-on): Add unistd.
50093
50094 2006-07-29  Bruno Haible  <bruno@clisp.org>
50095
50096         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50097
50098 2006-07-29  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50101
50102 2006-07-29  Bruno Haible  <bruno@clisp.org>
50103
50104         * gnulib-tool (import, update): If there is no Makefile.am, look at
50105         aclocal.m4, instead of bailing out.
50106
50107 2006-07-29  Bruno Haible  <bruno@clisp.org>
50108
50109         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50110         Categorize the options by when they are useful.
50111
50112 2006-07-29  Bruno Haible  <bruno@clisp.org>
50113
50114         * gnulib-tool (func_usage): Document option --no-libtool.
50115         Handle option --no-libtool.
50116         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50117         for changed semantics of $libtool variable.
50118         (func_import): Likewise. If libtool is not used, show this through
50119         an option --no-libtool.
50120         (func_create_testdir): Update.
50121
50122 2006-07-29  Bruno Haible  <bruno@clisp.org>
50123
50124         * gnulib-tool (func_import): Extend error message about missing
50125         --doc-base.
50126
50127 2006-07-29  Bruno Haible  <bruno@clisp.org>
50128
50129         * gnulib-tool (func_import): Don't create the $docbase directory if
50130         there is no file to store there.
50131
50132 2006-07-29  Bruno Haible  <bruno@clisp.org>
50133
50134         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50135         relevant, look for configure.ac there, not in the current directory.
50136         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50137
50138 2006-07-29  Bruno Haible  <bruno@clisp.org>
50139
50140         * gnulib-tool (SORT): New variable.
50141         (func_usage): Undocument --assume-autoconf option.
50142         Remove --assume-autoconf option handling.
50143         (autoconf_minversion): Determine from the contents of configure.ac.
50144         (func_import): Remove autoconf_minversion handling.
50145         Suggested by Eric Blake.
50146
50147 2006-07-29  Bruno Haible  <bruno@clisp.org>
50148
50149         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50150
50151 2006-07-29  Bruno Haible  <bruno@clisp.org>
50152
50153         * config/srclist.txt (*setenv.[ch]): Remove rules.
50154
50155 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50156
50157         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50158
50159 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50160
50161         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50162         arpa/inet.h.
50163
50164 2006-07-28  Simon Josefsson  <jas@extundo.com>
50165
50166         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50167         * modules/inet_pton (Depends-on): Likewise.
50168
50169 2006-07-28  Simon Josefsson  <jas@extundo.com>
50170
50171         * m4/netinet_in_h.m4: New file.
50172
50173 2006-07-28  Simon Josefsson  <jas@extundo.com>
50174
50175         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50176         #include's.
50177
50178 2006-07-28  Simon Josefsson  <jas@extundo.com>
50179
50180         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50181         #include's.
50182
50183 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50184
50185         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50186         setgid on directories only if they set these bits.
50187         * lib/modechange.h: Remove obsolete comment about masks.
50188
50189 2006-07-28  Eric Blake  <ebb9@byu.net>
50190
50191         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50192         macro expansion.
50193
50194 2006-07-28  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50197
50198 2006-07-28  Bruno Haible  <bruno@clisp.org>
50199
50200         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50201
50202 2006-07-28  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50205         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50206         Define fallbacks.
50207         Avoids link error on FreeBSD 4.x.
50208         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50209
50210         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50211         encoding.
50212         * lib/mbswidth.c (iswcntrl): Likewise.
50213
50214 2006-07-27  Bruno Haible  <bruno@clisp.org>
50215
50216         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50217         test.
50218
50219 2006-07-27  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50222         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50223         defined.
50224
50225 2006-07-26  Eric Blake  <ebb9@byu.net>
50226
50227         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50228
50229 2006-07-26  Eric Blake  <ebb9@byu.net>
50230
50231         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50232         like mingw that lack mkstemp.
50233         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50234         avoid compilation warning on mingw.
50235
50236 2006-07-26  Bruno Haible  <bruno@clisp.org>
50237
50238         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50239         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50240         INT_FAST*_MIN, INTPTR_MIN.
50241
50242 2006-07-25  Bruno Haible  <bruno@clisp.org>
50243
50244         * modules/version-etc (Depends-on): Add stdarg.
50245
50246 2006-07-25  Bruno Haible  <bruno@clisp.org>
50247
50248         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50249         complex commands.
50250
50251 2006-07-25  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50254         defined in <stdarg.h> or config.h.
50255
50256 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50257
50258         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50259         (gl_STDIO_SAFER): Remove.
50260
50261 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * MODULES.html.sh (File stream based Input/Output):
50264         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50265         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50266         * modules/fopen-safer, modules/tmpfile-safer: New files.
50267         * modules/stdio-safer: Remove.
50268
50269 2006-07-24  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/tmpdir: New file.
50272         * MODULES.html.sh (File system functions): Add it.
50273
50274 2006-07-24  Bruno Haible  <bruno@clisp.org>
50275
50276         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50277         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50278
50279 2006-07-24  Bruno Haible  <bruno@clisp.org>
50280
50281         * modules/clean-temp: New file.
50282
50283 2006-07-24  Bruno Haible  <bruno@clisp.org>
50284
50285         * m4/tmpdir.m4: New file, from GNU gettext.
50286
50287 2006-07-24  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/tmpdir.h: New file, from GNU gettext.
50290         * lib/tmpdir.c: New file, from GNU gettext.
50291
50292 2006-07-24  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/clean-temp.h: New file, from GNU gettext.
50295         * lib/clean-temp.c: New file, from GNU gettext.
50296
50297 2006-07-23  Eric Blake  <ebb9@byu.net>
50298
50299         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50300         (Depends-on): Add binary-io.
50301
50302 2006-07-23  Eric Blake  <ebb9@byu.net>
50303
50304         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50305
50306 2006-07-23  Eric Blake  <ebb9@byu.net>
50307
50308         * lib/tmpfile-safer.c: New file.
50309         * lib/stdio-safer.h (fopen_safer): Add prototype.
50310         * lib/stdio--.h (tmpfile): Make safer.
50311
50312 2006-07-23  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50315         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50316         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50317         gl_linked_remove_at): Use it.
50318
50319 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50320         and Simon Josefsson <jas@extundo.com>
50321
50322         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50323
50324         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50325
50326 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50327
50328         * modules/close-stream: New file.
50329         * modules/closeout (Description): Make it clear that it exits
50330         with a diagnostic on error.
50331         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50332         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50333
50334 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50335
50336         * m4/close-stream.m4: New file.
50337
50338 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         * lib/close-stream.c, lib/close-stream.h: New files.
50341
50342 2006-07-22  Bruno Haible  <bruno@clisp.org>
50343
50344         Merge from GNU gettext 0.15.
50345
50346         2006-05-01  Bruno Haible  <bruno@clisp.org>
50347
50348                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50349
50350         2006-07-22  Bruno Haible  <bruno@clisp.org>
50351
50352                 * modules/javaversion: New file.
50353                 * MODULES.html.sh (Java): Add javaversion.
50354
50355         2006-03-12  Bruno Haible  <bruno@clisp.org>
50356
50357                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50358
50359         2005-12-04  Bruno Haible  <bruno@clisp.org>
50360
50361                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50362                 (untested).
50363
50364         2006-06-21  Bruno Haible  <bruno@clisp.org>
50365
50366                 Avoid warnings from recent versions of mcs.
50367                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50368                 -o, -L, -r any more. Use options documented since mcs-1.0
50369                 instead. Similarly for -g.
50370
50371         2005-12-04  Bruno Haible  <bruno@clisp.org>
50372
50373                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50374                 .resources, not .resource.
50375
50376         2005-07-09  Bruno Haible  <bruno@clisp.org>
50377
50378                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50379                 add a .dll suffix.
50380                 Reported by Mark Junker <mjscod@gmx.de>.
50381
50382         2006-07-22  Bruno Haible  <bruno@clisp.org>
50383
50384                 * modules/gettext: Upgrade to gettext-0.15.
50385                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50386                 m4/visibility.m4.
50387                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50388
50389 2006-07-22  Bruno Haible  <bruno@clisp.org>
50390
50391         Merge from GNU gettext 0.15.
50392
50393         2006-03-25  Bruno Haible  <bruno@clisp.org>
50394
50395                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50396
50397         2006-07-21  Bruno Haible  <bruno@clisp.org>
50398
50399                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50400                 "1.1".
50401
50402         2006-05-09  Bruno Haible  <bruno@clisp.org>
50403
50404                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50405                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50406                 for the conftestver execution.
50407
50408         2006-05-01  Bruno Haible  <bruno@clisp.org>
50409
50410                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50411                 optional target-version argument. Verify that the compiler
50412                 groks source of the specified source-version, or add -source
50413                 option as necessary. Verify that the compiler produces
50414                 bytecode in the specified target-version, or add -target and
50415                 -source options as necessary. Make the result of the test
50416                 available as variable CONF_JAVAC. Also log error output in
50417                 config.log.
50418
50419         2006-03-11  Bruno Haible  <bruno@clisp.org>
50420
50421                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50422
50423         2006-05-09  Bruno Haible  <bruno@clisp.org>
50424
50425                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50426                 CLASSPATH_SEPARATOR to a semicolon.
50427
50428         2006-03-12  Bruno Haible  <bruno@clisp.org>
50429
50430                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50431                 available as variable CONF_JAVA, for subsequent autoconf
50432                 tests. Also log error output in config.log.
50433
50434         2006-07-19  Bruno Haible  <bruno@clisp.org>
50435
50436                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50437                 that getline works on glibc2 systems. Needed to avoid trouble
50438                 in relocatable.c.
50439                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50440
50441         2005-12-04  Bruno Haible  <bruno@clisp.org>
50442
50443                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50444                 launcher (untested).
50445
50446         2005-12-04  Bruno Haible  <bruno@clisp.org>
50447
50448                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50449
50450         2006-07-22  Bruno Haible  <bruno@clisp.org>
50451
50452                 * gettext.m4: Update from GNU gettext-0.15.
50453                 * nls.m4: Likewise.
50454                 * po.m4: Likewise.
50455                 * inttypes-pri.m4: Likewise.
50456                 * inttypes-h.m4: Renamed from inttypes.m4.
50457                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50458
50459 2006-07-22  Bruno Haible  <bruno@clisp.org>
50460
50461         Merge from GNU gettext 0.15.
50462
50463         2005-07-05  Bruno Haible  <bruno@clisp.org>
50464
50465                 * printf-args.c (printf_fetchargs): Work around broken
50466                 definition of wint_t on mingw.
50467
50468         2005-02-12  Bruno Haible  <bruno@clisp.org>
50469
50470                 * xallocsa.h: Add extern "C" for C++.
50471
50472         2006-05-17  Bruno Haible  <bruno@clisp.org>
50473
50474                 Cygwin portability.
50475                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50476
50477         2006-04-30  Bruno Haible  <bruno@clisp.org>
50478
50479                 * progreloc.c: Include <mach-o/dyld.h> if available.
50480                 (find_executable): Use _NSGetExecutablePath when possible.
50481
50482         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50483
50484                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50485                 function.
50486
50487         2005-12-29  Bruno Haible  <bruno@clisp.org>
50488
50489                 * progreloc.c (set_program_name_and_installdir): Fix
50490                 compilation error.
50491
50492         2005-12-04  Bruno Haible  <bruno@clisp.org>
50493
50494                 Cygwin portability.
50495                 * progreloc.c: Include <windows.h> also on Cygwin.
50496                 (find_executable): Add support for Cygwin.
50497                 (set_program_name_and_installdir): Handle also platforms with
50498                 nonempty EXEEXT.
50499
50500         2006-07-11  Bruno Haible  <bruno@clisp.org>
50501
50502                 * javacomp.c: Fix a comment.
50503                 Reported by Jim Meyering.
50504
50505         2006-04-30  Bruno Haible  <bruno@clisp.org>
50506
50507                 * javacomp.h (compile_java_class): Add source_version,
50508                 target_version arguments.
50509                 * javacomp.c: Rewritten to choose only a compiler that
50510                 respects the specified source_version and target_version.
50511
50512         2006-06-27  Bruno Haible  <bruno@clisp.org>
50513
50514                 Assume correct S_ISDIR macro.
50515                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50516
50517         2006-07-22  Bruno Haible  <bruno@clisp.org>
50518
50519                 * javaversion.h: New file, from GNU gettext.
50520                 * javaversion.c: New file, from GNU gettext.
50521                 * javaversion.java: New file, from GNU gettext.
50522                 * javaversion.class: New file, from GNU gettext.
50523
50524         2006-05-17  Bruno Haible  <bruno@clisp.org>
50525
50526                 Cygwin portability.
50527                 * javaexec.c (execute_java_class): Test for jview program
50528                 also on Cygwin.
50529
50530         2006-04-09  Bruno Haible  <bruno@clisp.org>
50531
50532                 * fatal-signal.c: Don't include string.h.
50533                 (at_fatal_signal): Use a copying loop instead of memcpy.
50534
50535         2005-12-04  Bruno Haible  <bruno@clisp.org>
50536
50537                 * csharpexec.c: Add support for 'clix' launcher (untested).
50538                 (execute_csharp_using_sscli): New function.
50539                 (execute_csharp_program): Call it.
50540
50541         2006-06-21  Bruno Haible  <bruno@clisp.org>
50542
50543                 Avoid warnings from recent versions of mcs.
50544                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50545                 -o, -L, -r any more. Use options documented since mcs-1.0
50546                 instead. Similarly for -g.
50547
50548         2005-07-09  Bruno Haible  <bruno@clisp.org>
50549
50550                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50551                 add a .dll suffix.
50552                 Reported by Mark Junker <mjscod@gmx.de>.
50553
50554         2006-06-17  Bruno Haible  <bruno@clisp.org>
50555
50556                 * config.charset: Update for NetBSD 3.0.
50557
50558         2006-05-17  Bruno Haible  <bruno@clisp.org>
50559
50560                 Cygwin portability.
50561                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50562
50563         2006-05-16  Bruno Haible  <bruno@clisp.org>
50564
50565                 * localcharset.c [CYGWIN]: Include <windows.h>.
50566                 (get_charset_aliases): For Cygwin, return the same CPxxx
50567                 aliases list as under WIN32.
50568                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50569                 the environment variables. Fall back to GetACP().
50570
50571         2006-04-05  Bruno Haible  <bruno@clisp.org>
50572
50573                 * config.charset: Update Juan Manuel Guerrero's address.
50574
50575         2005-02-12  Bruno Haible  <bruno@clisp.org>
50576
50577                 * allocsa.h: Add extern "C" for C++.
50578
50579         2005-02-10  Bruno Haible  <bruno@clisp.org>
50580
50581                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50582                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50583
50584         2006-07-22  Bruno Haible  <bruno@clisp.org>
50585
50586                 * gettext.h: Update to GNU gettext-0.15.
50587
50588 2006-07-22  Bruno Haible  <bruno@clisp.org>
50589
50590         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50591         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50592         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50593
50594 2006-07-21  Eric Blake  <ebb9@byu.net>
50595
50596         * modules/stdlib-safer: New file.
50597         * MODULES.html.sh (File stream based Input/Output): Add
50598         stdlib-safer.
50599
50600 2006-07-21  Eric Blake  <ebb9@byu.net>
50601
50602         * lib/stdlib-safer.h: New file from coreutils, required by
50603         stdlib--.h.
50604
50605 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50606
50607         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50608
50609 2006-07-20  Bruno Haible  <bruno@clisp.org>
50610
50611         * gnulib-tool: Recognize new option --assume-autoconf.
50612         (autoconf_minversion): New variable.
50613         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50614
50615 2006-07-20  Bruno Haible  <bruno@clisp.org>
50616
50617         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50618
50619 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50620
50621         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50622         Reindent and repaginate.
50623
50624 2006-07-19  Derek Price  <derek@ximbiot.com>
50625
50626         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50627         Correct grammar.
50628
50629 2006-07-17  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/list: New file.
50632         * modules/array-list: New file.
50633         * modules/carray-list, modules/carray-list-tests: New files.
50634         * modules/linked-list, modules/linked-list-tests: New files.
50635         * modules/avltree-list, modules/avltree-list-tests: New files.
50636         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50637         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50638         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50639         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50640         * modules/oset: New file.
50641         * modules/array-oset: New file.
50642         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50643         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50644         * tests/test-carray_list.c: New file.
50645         * tests/test-linked_list.c: New file.
50646         * tests/test-avltree_list.c: New file.
50647         * tests/test-rbtree_list.c: New file.
50648         * tests/test-linkedhash_list.c: New file.
50649         * tests/test-avltreehash_list.c: New file.
50650         * tests/test-rbtreehash_list.c: New file.
50651         * tests/test-avltree_oset.c: New file.
50652         * tests/test-rbtree_oset.c: New file.
50653         * MODULES.html.sh (Container data structures): New section.
50654
50655 2006-07-17  Bruno Haible  <bruno@clisp.org>
50656
50657         * m4/gl_list.m4: New file.
50658
50659 2006-07-17  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/gl_list.h: New file.
50662         * lib/gl_list.c: New file.
50663         * lib/gl_array_list.h: New file.
50664         * lib/gl_array_list.c: New file.
50665         * lib/gl_carray_list.h: New file.
50666         * lib/gl_carray_list.c: New file.
50667         * lib/gl_linked_list.h: New file.
50668         * lib/gl_linked_list.c: New file.
50669         * lib/gl_anylinked_list1.h: New file.
50670         * lib/gl_anylinked_list2.h: New file.
50671         * lib/gl_avltree_list.h: New file.
50672         * lib/gl_avltree_list.c: New file.
50673         * lib/gl_anyavltree_list1.h: New file.
50674         * lib/gl_anyavltree_list2.h: New file.
50675         * lib/gl_rbtree_list.h: New file.
50676         * lib/gl_rbtree_list.c: New file.
50677         * lib/gl_anyrbtree_list1.h: New file.
50678         * lib/gl_anyrbtree_list2.h: New file.
50679         * lib/gl_anytree_list1.h: New file.
50680         * lib/gl_anytree_list2.h: New file.
50681         * lib/gl_linkedhash_list.h: New file.
50682         * lib/gl_linkedhash_list.c: New file.
50683         * lib/gl_anyhash_list1.h: New file.
50684         * lib/gl_anyhash_list2.h: New file.
50685         * lib/gl_avltreehash_list.h: New file.
50686         * lib/gl_avltreehash_list.c: New file.
50687         * lib/gl_rbtreehash_list.h: New file.
50688         * lib/gl_rbtreehash_list.c: New file.
50689         * lib/gl_anytreehash_list1.h: New file.
50690         * lib/gl_anytreehash_list2.h: New file.
50691
50692         * lib/gl_oset.h: New file.
50693         * lib/gl_oset.c: New file.
50694         * lib/gl_array_oset.h: New file.
50695         * lib/gl_array_oset.c: New file.
50696         * lib/gl_avltree_oset.h: New file.
50697         * lib/gl_avltree_oset.c: New file.
50698         * lib/gl_rbtree_oset.h: New file.
50699         * lib/gl_rbtree_oset.c: New file.
50700         * lib/gl_anytree_oset.h: New file.
50701
50702 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         * m4/mkancesdirs.m4: New file.
50705         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50706         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50707         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50708         it.
50709
50710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50711
50712         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50713         * lib/mkancesdirs.h: New files.
50714         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50715         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50716         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50717         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50718         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50719         callers changed.  Revamp internals significantly, by not
50720         attempting to create directories that are temporarily more
50721         permissive than the final results.  Do not attempt to use
50722         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50723         This removes some race conditions, fixes some bugs, and simplifies
50724         things.  Use new dirchownmod function to do owner and mode changes.
50725         * lib/mkdir-p.h: Likewise.
50726         * lib/modechange.c (octal_to_mode): New function.
50727         (struct mode_change): New member mentioned.
50728         (make_node_op_equals): New arg mentioned.  All callers changed.
50729         (mode_compile): Keep track of which mode bits the user has explicitly
50730         mentioned.
50731         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50732         New arg PMODE_BITS, to keep track of which mode bits the user
50733         mentioned; it treats S_ISUID and S_ISGID speciall.
50734         All callers changed.
50735         * lib/modechange.h: Likewise.
50736
50737 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * MODULES.html.sh: Add mkancestors.
50740         * modules/mkancesdirs: New module.
50741         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50742         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50743         The chdir-safer and afs files are now orphans; I'll remove them
50744         unless someone speaks up.
50745         Add lib/dirchownmod.c, lib/dirchownmod.h.
50746         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50747         Add lchown, mkancesdirs.
50748         (Maintainer): Add self.
50749
50750 2006-07-15  Karl Berry  <karl@gnu.org>
50751
50752         * gnulib-tool: help message wording/arrangement.
50753
50754 2006-07-14  Simon Josefsson  <jas@extundo.com>
50755
50756         * doc/gnulib.texi (Libtool and Windows): New section.
50757
50758 2006-07-12  Simon Josefsson  <jas@extundo.com>
50759
50760         * modules/gendocs (License): Fix license, approved by Karl.
50761
50762 2006-07-12  Eric Blake  <ebb9@byu.net>
50763
50764         * MODULES.html.sh: Add gendocs.
50765
50766 2006-07-11  Eric Blake  <ebb9@byu.net>
50767
50768         * modules/fdl: New module, to install doc/fdl.texi.
50769         * MODULES.html.sh: Add new section for documentation modules.
50770         * gnulib-tool: Avoid space-tab.
50771         (--doc-base): New option, to manage files from doc.
50772
50773 2006-07-11  Eric Blake  <ebb9@byu.net>
50774
50775         * m4/absolute-header.m4: Fix comments to match recent change.
50776
50777 2006-07-11  Eric Blake  <ebb9@byu.net>
50778
50779         * gnulib-tool: List --doc-base before --tests-base.
50780
50781 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50782
50783         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50784
50785 2006-07-11  Bruno Haible  <bruno@clisp.org>
50786
50787         * README: Mention where to put documentation.
50788
50789 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50790
50791         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50792
50793 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50794
50795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50796         to stdint.m4.
50797
50798 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50801         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50802         "no/such/file/stdint.h" when there is no such file, so that
50803         the resulting C code can be parsed by dodgy compilers.
50804         Problems reported by Bob Proulx.
50805
50806 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50807
50808         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50809         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50810         macros into the GNU _D_EXACT_NAMLEN.
50811         * lib/savedir.c:  Likewise.
50812         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50813
50814 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50815         and Paul Eggert  <eggert@cs.ucla.edu>
50816
50817         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50818         * m4/savedir.m4:
50819         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50820         macros into the GNU _D_EXACT_NAMLEN.
50821
50822 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50823
50824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50825         around the absolute name, to work around a problem with the HP-UX
50826         11.23 native C compiler, reported by Bob Proulx.
50827
50828 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         * doc/maintain.texi, make-stds.texi: Sync from
50831         <http://savannah.gnu.org/projects/gnustandards>.
50832
50833 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50834
50835         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50836
50837 2006-07-09  Jim Meyering  <jim@meyering.net>
50838
50839         * m4/glob.m4: Remove a doubled word in a comment.
50840
50841 2006-07-09  Jim Meyering  <jim@meyering.net>
50842
50843         * lib/argp-pv.c: Remove a doubled word in a comment.
50844         * lib/check-version.c (check_version): Likewise.
50845         * lib/javacomp.c (compile_java_class): Likewise.
50846
50847 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50848
50849         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50850         for the benefit of people using Autoconf 2.60.  If you want to
50851         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50852         (or m4/onceonly.m4, if pre-2.57) manually.
50853
50854 2006-07-08  Jim Meyering  <jim@meyering.net>
50855
50856         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50857         comment.
50858         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50859         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50860         comment.
50861
50862 2006-07-08  Jim Meyering  <jim@meyering.net>
50863
50864         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50865
50866 2006-07-07  Simon Josefsson  <jas@extundo.com>
50867
50868         * tests/test-crc.c: Change expected crc value, the test vector
50869         were probably computed using the old broken crc.c?
50870
50871 2006-07-06  Simon Josefsson  <jas@extundo.com>
50872
50873         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50874         now the canonical place for the M4 file).
50875
50876         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50877         from the sys_socket dependency now.
50878
50879         * modules/inet_pton (Files): Ditto.
50880
50881         * modules/inet_ntop (Files): Ditto.
50882
50883 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50884
50885         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50886         not gl_PREREQ_GETUSERSHELL.
50887
50888 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50889
50890         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50891         with only one argument, for Autoconf 2.60.
50892         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50893         expand to nothing, so add a shell command to avoid syntax error.
50894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50895
50896 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50897
50898         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50899
50900 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50903         no longer needed.  Check for isblank decl.
50904         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50905         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50906         of existence.
50907
50908 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * lib/getloadavg.c: Use __VMS, not VMS.
50911         * lib/getopt.c: Likewise.
50912         * lib/getpagesize.h: Likewise.
50913         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50914         and probably does not work.
50915
50916 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50917
50918         * lib/.cppi-disable: Add wcwidth.
50919         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50920         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50921         (ISGRAPH): Remove.  All uses changed to isgraph.
50922         (FOLD) [!defined _LIBC]: Remove special case.
50923         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50924         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50925         HAVE_ISBLANK.
50926         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50927         case.
50928
50929 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50930
50931         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50932         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50933         brackets.  Other minor changes to suppress some compiler
50934         warnings.
50935
50936 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50937         and Paul Eggert  <eggert@cs.ucla.edu>
50938
50939         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50940         of invoking obsolescent AC_HEADER_DIRENT macro.
50941         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50942         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50943         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50945         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50946         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50947         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50948         * m4/readdir.m4: Remove; no longer needed.
50949
50950 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50951         and Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50954         Don't worry about this obsolete case any more.
50955         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50956         directories.
50957         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50958         worry about this obsolete case any more.
50959         * lib/fts.c: Likewise.
50960         * lib/getcwd.c: Likewise.
50961         * lib/glob.h: Likewise.
50962         * lib/savedir.c: Likewise.
50963
50964 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50965
50966         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50967         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50968         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50969         needed.
50970         All uses removed.
50971         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50972         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50973         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50974         needed.
50975         * m4/getdate.m4 (gl_GETDATE): Likewise.
50976         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50977         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50978         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50979         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50980         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50982         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50983         needed.
50984
50985 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * lib/memcasecmp.c: Include <limits.h>.
50988         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50989         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50990         Don't assume isdigit succeeds only on '0' through '9'.
50991
50992 2006-07-05  Eric Blake  <ebb9@byu.net>
50993
50994         * modules/getaddrinfo (Depends-on): Add snprintf.
50995
50996 2006-07-05  Eric Blake  <ebb9@byu.net>
50997
50998         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50999         to avoid 'header present but could not be compiled' on cygwin.
51000
51001 2006-07-05  Eric Blake  <ebb9@byu.net>
51002
51003         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51004         missing from netdb.h.
51005         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51006
51007 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51008
51009         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51010         no longer needed.
51011         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51012         * m4/getdate.m4 (gl_GETDATE): Likewise.
51013         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51014         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51015         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51016         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51017         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51018
51019 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51020
51021         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51022         All uses of is_space replaced by isspace.
51023         * lib/exit.h: Don't talk about STDC_HEADERS.
51024         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51025         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51026         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51027         replaced by isprint etc.
51028         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51029         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51030         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51031         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51032         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51033         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51034
51035 2006-07-05  Bruno Haible  <bruno@clisp.org>
51036
51037         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51038         the function exists, before testing against AIX.
51039         Reported by Martin Lambers <marlam@marlam.de>.
51040
51041 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51044         From Mark D. Baushke.
51045
51046 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51049         to the absolute name, not just one, to bypass Sun C 5.8's
51050         "warning: #include of /usr/include/... may be non-portable".
51051
51052 2006-07-04  Eric Blake  <ebb9@byu.net>
51053
51054         * modules/dirname-tests: New test module.
51055         * tests/test-dirname.c: New file, replacing dirname.c
51056         TEST_DIRNAME section that was recently deleted.
51057
51058 2006-07-04  Bruno Haible  <bruno@clisp.org>
51059
51060         Assume ANSI C header files and <ctype.h> functions.
51061         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51062         (mbsnwidth): Use isprint, iscntrl instead.
51063
51064 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51065
51066         Merge from coreutils.
51067         * MODULES.html.sh: Add xstrtold.
51068         * modules/xstrtold: New file.
51069         * modules/cycle-check (Files): Add lib/same-inode.h.
51070         * modules/dirname (Files): Add m4/double-slash-root.m4.
51071         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51072         * modules/mkdir-p (Files): Add lib/same-inode.h.
51073         * modules/same (Files): Add lib/same-inode.h.
51074
51075 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51076
51077         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51078         This is to keep the terminology clean; POSIX talks about
51079         "absolute pathnames", not "full pathnames", but the GNU
51080         Coding Standards say to use "path" for something else;
51081         so use "absolute" to keep both sides happy.
51082         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51083         Set gl_absolute_header, not gl_full_header_path.
51084         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51085         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51086         All uses changed.
51087
51088         Merge from coreutils.
51089
51090         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51093         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51094         want to require the building of c-strtod.o.
51095         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51096         needs -lm directly.
51097         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51098
51099         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51102         --as-needed option if available.  Problem reported by Albert Chin in
51103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51104         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51105         cc merely issues a bunch of annoying warnings for --as-needed
51106         (this problem was reported by Bob Proulx).  Also, try linking with
51107         -lm to detect a bug in binutils 2.16 (this problem was reported
51108         by Ralf Wildenhues).
51109
51110         2006-06-18  Jim Meyering  <jim@meyering.net>
51111
51112         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51113         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51114         macro.
51115         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51116         also check for glibc-2.4's abort-inducing bug.
51117
51118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51119         Low-probability clean-up should be to use rmdir to get rid of
51120         the just-created directory, not unlink.
51121
51122         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51123         configure fail, and request a bug report to inform us about it.
51124         Add a comment that, barring reports to the contrary, in 2007 we'll
51125         assume ftruncate is universally available.
51126
51127         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51130
51131         2006-03-12  Jim Meyering  <jim@meyering.net>
51132
51133         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51134         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51135         * m4/same.m4 (gl_SAME): Likewise.
51136         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51137
51138         2006-03-11  Eric Blake  <ebb9@byu.net>
51139
51140         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51141         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51142         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51143         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51144
51145 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51146
51147         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51148         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51149         reported by Mark D. Baushke, one in
51150         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51151
51152         Merge from coreutils.
51153
51154         * lib/.cppi-disable: Add stdint_.h.
51155         * lib/.cvsignore: Add stdint.h.
51156
51157         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51158
51159         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51160         both double and long double versions.
51161         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51162         * lib/xstrtold.c: New file.
51163         * lib/xstrtod.h (xstrtold): New decl.
51164
51165         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51166
51167         * lib/filemode.c (setst): Remove.
51168         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51169         (arguably) clearer, and the generated code is a bit smaller on my
51170         Debian GNU/Linux stable x86 host.
51171
51172         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51175         Assume that filemode.h includes sys/types.h and sys/stat.h.
51176         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51177         (ftypelet): Reorder to put common cases first, for efficiency.
51178         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51179         to do 'M'.
51180         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51181         of 10, for compatibility with FreeBSD.  All callers changed.
51182         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51183         types that can't be deduced solely from st_mode.  First arg is now a
51184         const pointer.
51185         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51186         (strmode): Renamed from mode_string.
51187         (filemodestring): New decl.
51188         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51189         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51190         needed.
51191         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51192
51193         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51194
51195         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51196         fsusage.h now does that.  Include fsusage.h first, to test interface.
51197         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51198         at most one method (the old code could have generated decls that
51199         didn't conform to C89, not that this was ever exercised).
51200         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51201
51202         2006-03-19  Jim Meyering  <jim@meyering.net>
51203
51204         Work even in a chroot where d_ino values for entries in "/"
51205         don't match the stat.st_ino values for the same names.
51206         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51207         number, iterate through all entries again, using lstat instead.
51208         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51209         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51210
51211         * lib/getcwd.c (__getcwd): Clarify a comment.
51212         Use memcpy in place of a call to strcpy.
51213
51214         2006-03-12  Jim Meyering  <jim@meyering.net>
51215
51216         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51217         matches that of the current directory (which we're about to chdir ".."
51218         out of), then save the dev-ino of the parent, instead.
51219
51220         * lib/same-inode.h (SAME_INODE): New file/macro.
51221         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51222         Include "same-inode.h", instead.
51223         * lib/same.c: Likewise.
51224         * lib/cycle-check.h: Include "same-inode.h".
51225         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51226         * lib/cycle-check.c (SAME_INODE): Remove definition.
51227         * lib/root-dev-ino.h: Include "same-inode.h".
51228
51229         2006-03-11  Eric Blake  <ebb9@byu.net>
51230
51231         * lib/same.c (same_name): s/base_name/last_component/
51232         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51233         * lib/filenamecat.c (file_name_concat): Likewise.
51234
51235         2006-03-11  Eric Blake  <ebb9@byu.net>,
51236                     Paul Eggert  <eggert@cs.ucla.edu>
51237
51238         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51239         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51240         drive prefix.
51241         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51242         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51243         (last_component): New method.
51244         * lib/dirname.c (dir_len): Determine when drive letters need a
51245         subsequent slash.  Preserve // when it is special.
51246         (dir_name): Don't append dot when drive letter is absolute.
51247         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51248         * lib/basename.c (base_name): New semantics - malloc the result.
51249         Preserve // when it is special.  Preserve relative files that look
51250         like drive letters.
51251         (base_len): Preserve // when it is special.
51252         (last_component): New method, similar to old base_name semantics.
51253         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51254         base_name.  Strip redundant slashes from ///.
51255
51256 2006-07-03  Jim Meyering  <jim@meyering.net>
51257
51258         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51259         macro is used before the first cycle_check call.
51260
51261 2006-07-03  Eric Blake  <ebb9@byu.net>
51262
51263         * modules/dirname (Depends-on): Add xstrndup.
51264
51265 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51266
51267         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51268         test cases, so that config.log is a bit easier to follow.
51269
51270 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51273         both are 64 bits, since this seems to be the tradition, and this
51274         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51275         we ever run into a host that prefers long long to long in this
51276         case, we'll need another configure-time test.  Problem reported by
51277         Jim Meyering.
51278
51279 2006-07-02  Eric Blake  <ebb9@byu.net>
51280
51281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51282
51283 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51284
51285         * modules/inttypes (Depends-on): No longer depends on stdint.
51286         * modules/stdint (Description): Say more about assumptions.
51287         Say that the fast types might differ.  Say macros are used.
51288         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51289         (Makefile.am): Revise list of substituted symbols to match
51290         new stdint.m4.
51291         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51292         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51293         * tests/test-stdint.c (verify_same_types)
51294         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51295         the code conforms to C99/C89.
51296         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51297         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51298
51299 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51302         but fix a bug, by requiring at least 64 bits.
51303         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51304         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51305         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51306         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51307
51308         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51309         changes.  Make 2.59 a prerequisite.  Check and substitute for
51310         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51311         inttypes.h.  Do not use special include files; just use the
51312         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51313         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51314         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51315         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51316         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51317         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51318         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51319         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51320         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51321         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51322         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51323         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51324         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51325         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51326         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51327         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51328         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51329         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51330         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51331         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51332         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51333         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51334         not check for things that C99 does not require, e.g., int8_t.  If
51335         a test isn't needed unless <stdint.h> isn't working, and is
51336         unlikely to be needed for any other reason, then don't do it
51337         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51338         size_t, since we assume C89 freestanding at least.  Do not check
51339         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51340         the right thing even if the types are not defined.  Instead use:
51341         (gl_STDINT_TYPE_PROPERTIES): New macro.
51342         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51343         testing whether <sys/types.h> clashes, as Autoconf does this for
51344         us now.  All uses removed.
51345         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51346         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51347         (gl_CHECK_TYPE_SAME):
51348         Remove; no longer needed.
51349         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51350         exists, since we'll return 0 anyway in that case.
51351         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51352
51353 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51356         possible collision with system files.
51357         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51358         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51359         WCHAR_MIN and WCHAR_MAX in this case.
51360         (<stddef.h>): Do not include; no longer needed.
51361         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51362         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51363         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51364         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51365         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51366         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51367         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51368         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51369         !defined(__c99))]: Include in this case too, since it's harmless
51370         now.
51371         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51372         dangerous to do so.
51373         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51374         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51375         (_STDINT_MIN, _STDINT_MAX): New macros.
51376         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51377         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51378         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51379         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51380         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51381         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51382         macros, not typedefs; this simplifies things quite a bit.
51383         Use long int for all types narrower than int64_t.
51384         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51385         Define in terms of long long int or int64_t or long int,
51386         not int64_t or int32_t.  This saves some compile-time testing.
51387         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51388         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51389         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51390         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51391         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51392         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51393         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51394         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51395         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51396         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51397         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51398         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51399         undef any previous version and define our own version, for
51400         simplicity and consistency with the new macros for types.
51401         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51402         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51403         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51404         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51405         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51406         @WINT_T_SUFFIX@ to keep things simple here.
51407         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51408         Simplify by assuming typical 8/16/32/64 host, since we're
51409         already doing that elsewhere anyway.
51410         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51411         and assume long long int is 64 bits if available.  This
51412         speeds up 'configure'.
51413
51414 2006-07-01  Eric Blake  <ebb9@byu.net>
51415
51416         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51417         Reported by Andreas Buening.
51418
51419 2006-07-01  Eric Blake  <ebb9@byu.net>
51420
51421         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51422
51423 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51424
51425         * lib/getaddrinfo.c: fixed typo
51426
51427 2006-06-29  Jim Meyering  <jim@meyering.net>
51428
51429         * modules/strftime (Maintainer): Add my name, since with the
51430         FPRINTFTIME changes strftime.c has forked from glibc.
51431
51432 2006-06-29  Eric Blake  <ebb9@byu.net>
51433
51434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51435
51436 2006-06-29  Eric Blake  <ebb9@byu.net>
51437
51438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51439
51440 2006-06-29  Eric Blake  <ebb9@byu.net>
51441
51442         * lib/stat_.h: New file.
51443
51444 2006-06-29  Eric Blake  <ebb9@byu.net>
51445
51446         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51447         unused static function.
51448
51449 2006-06-29  Eric Blake  <ebb9@byu.net>
51450
51451         * doc/functions.texi (Function Portability): Document missing lstat
51452         on mingw.
51453
51454 2006-06-29  Eric Blake  <ebb9@byu.net>
51455
51456         * MODULES.html.sh: Add sys_stat.
51457         * modules/sys_stat: New module.
51458         * modules/mkstemp (Depends-on): Add sys_stat.
51459
51460 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51461
51462         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51463
51464 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51465
51466         * m4/c-bs-a.m4: Removed.
51467
51468 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51469
51470         * lib/strftime.c: Assume strftime() exists.
51471
51472 2006-06-29  Derek Price  <derek@ximbiot.com>
51473
51474         * modules/c-bs-a: Removed - \a is C89.
51475         * MODULES.html.sh: Remove c-bs-a.
51476
51477 2006-06-29  Bruno Haible  <bruno@clisp.org>
51478
51479         * modules/wcwidth (License): Change to LGPL.
51480
51481 2006-06-28  Simon Josefsson  <jas@extundo.com>
51482
51483         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51484         on _WIN32.
51485
51486         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51487         getnameinfo.
51488
51489 2006-06-28  Simon Josefsson  <jas@extundo.com>
51490
51491         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51492
51493 2006-06-28  Simon Josefsson  <jas@extundo.com>
51494
51495         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51496         functions there.  It will succeed on Windows XP, but on Windows
51497         2000 and (presumably) earlier, it will fail, and use the internal
51498         re-implementation.
51499         (use_win32_p): New function.
51500         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51501         Support AI_NUMERICSERV to disable getservbyname.
51502         (getnameinfo): New function, only supports
51503         NI_NUMERICHOST|NI_NUMERICSERV for now.
51504
51505         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51506         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51507         getnameinfo.
51508
51509 2006-06-28  Eric Blake  <ebb9@byu.net>
51510
51511         * modules/wcwidth: New file.
51512         * modules/mbchar (Depends-on): Add wcwidth.
51513         * modules/mbswidth (Depends-on): Add wcwidth.
51514         * MODULES.html.sh: Add wcwidth.
51515
51516 2006-06-28  Eric Blake  <ebb9@byu.net>
51517
51518         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51520
51521 2006-06-28  Eric Blake  <ebb9@byu.net>
51522
51523         * lib/xvasprintf.h: Fix comments.
51524
51525 2006-06-28  Eric Blake  <ebb9@byu.net>
51526
51527         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51528         * lib/mbswidth.c (wcwidth): Move from here...
51529         * lib/wcwidth.h: ...to this new file.
51530
51531 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51532
51533         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51534
51535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51536         it's obsolete.
51537         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51538
51539 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51540
51541         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51542         Autoconf 2.60 says this stuff was obsolete.
51543
51544 2006-06-28  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51547
51548 2006-06-28  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51551         gt_TYPE_WCHAR_T.
51552
51553 2006-06-28  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51556         declaration for wcwidth.
51557         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51558
51559 2006-06-28  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51562         (mkdir): Define using _mkdir.
51563
51564 2006-06-28  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/getaddrinfo.h: Fix POSIX URL.
51567         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51568         _WIN32.
51569         (use_win32_p): Make static.
51570         (getaddrinfo): Reject service name if it is empty or does not consist
51571         solely of decimal digits, or if its value is > 65535.
51572         (getnameinfo): Remove useless casts.
51573
51574 2006-06-27  Simon Josefsson  <jas@extundo.com>
51575
51576         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51577         Eggert and Martin Lambers.
51578
51579 2006-06-27  Simon Josefsson  <jas@extundo.com>
51580
51581         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51582         Eggert and Martin Lambers.
51583
51584 2006-06-27  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51587         result to 0, not to empty.
51588         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51589
51590 2006-06-27  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51593
51594 2006-06-26  Simon Josefsson  <jas@extundo.com>
51595
51596         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51597         present.
51598
51599 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51600
51601         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51602         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51604
51605 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51606
51607         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51608
51609 2006-06-26  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51612
51613 2006-06-26  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51616
51617 2006-06-26  Bruno Haible  <bruno@clisp.org>
51618
51619         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51620         SGI C compiler in pre-C99 mode.
51621         Suggested by Mark D. Baushke and Larry Jones.
51622
51623 2006-06-26  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51626         WCHAR_MAX.
51627         Reported by Mark D. Baushke and Larry Jones.
51628
51629 2006-06-26  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51632         in pre-C99 mode.
51633         Suggested by Mark D. Baushke and Larry Jones.
51634
51635 2006-06-23  Simon Josefsson  <jas@extundo.com>
51636             Bruno Haible  <bruno@clisp.org>
51637
51638         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51639         Emit mostlyclean-local rule.
51640         (func_emit_tests_Makefile_am): Likewise.
51641         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51642
51643 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51644
51645         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51646
51647 2006-06-23  Bruno Haible  <bruno@clisp.org>
51648
51649         * tests/test-stdint.c: Update to match ISO C 99 Technical
51650         Corrigendum 1.
51651
51652 2006-06-23  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51655
51656 2006-06-23  Bruno Haible  <bruno@clisp.org>
51657
51658         * lib/stdint_.h: Treat IRIX like OpenBSD.
51659
51660 2006-06-23  Bruno Haible  <bruno@clisp.org>
51661
51662         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51663         ISO C 99 Technical Corrigendum 1.
51664
51665 2006-06-22  Simon Josefsson  <jas@extundo.com>
51666
51667         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51668         MinGW.
51669
51670 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51671
51672         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51673         needed.  Some compiler complained about some of them.  Problem reported
51674         by Larry Jones in
51675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51676
51677 2006-06-21  Simon Josefsson  <jas@extundo.com>
51678
51679         * tests/test-getaddrinfo.c: New file.
51680
51681         * modules/getaddrinfo-tests: New file.
51682
51683         * MODULES.html.sh: Add inet_pton.
51684
51685         * modules/inet_pton: New file.
51686
51687 2006-06-21  Simon Josefsson  <jas@extundo.com>
51688
51689         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51690         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51691         of using the (limited) gnulib implementation on Windows XP.
51692
51693         * m4/inet_pton.m4: New file.
51694
51695 2006-06-21  Simon Josefsson  <jas@extundo.com>
51696
51697         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51698         variable.
51699
51700         * lib/socket_.h: Don't define WINVER.
51701
51702         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51703         slightly modified to work in gnulib.
51704
51705 2006-06-21  Simon Josefsson  <jas@extundo.com>
51706
51707         * doc/gnulib.texi (Windows sockets): Add.
51708
51709 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51710
51711         * lib/read-file.c (fread_file): Start with buffer allocation of
51712         0 bytes rather than 1 byte; this simplifies the code.
51713         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51714         code to free buffer and save/restore errno.
51715         (internal_read_file): Remove unused local.
51716
51717 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51718
51719         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51720         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51721         Problem reported by Denis Excoffier in
51722         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51723
51724 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51725
51726         * modules/sys_socket, modules/socklen: Include sys/types since
51727         FreeBSD 4.x's sys/socket.h needs it.
51728
51729 2006-06-19  Simon Josefsson  <jas@extundo.com>
51730
51731         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51732
51733 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51734
51735         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51736
51737 2006-06-19  Bruno Haible  <bruno@clisp.org>
51738
51739         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51740         and FULL_PATH_INTTYPES_H in angle brackets.
51741         Reported by Mark D. Baushke <mdb@gnu.org>.
51742
51743 2006-06-17  Eric Blake  <ebb9@byu.net>
51744
51745         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51746         errno.
51747
51748 2006-06-17  Bruno Haible  <bruno@clisp.org>
51749
51750         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51751         <sys/inttypes.h>.
51752
51753 2006-06-17  Bruno Haible  <bruno@clisp.org>
51754
51755         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51756         whether errno is declared. Assume <errno.h> declares errno.
51757
51758 2006-06-17  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51761
51762 2006-06-17  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51765         problem on Solaris 2.5.1.
51766
51767 2006-06-16  Eric Blake  <ebb9@byu.net>
51768
51769         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51770         * lib/unicodeio.c [!defined errno]: Likewise.
51771         * lib/strtol.c [!defined errno]: Likewise.
51772         * lib/strtod.c [!defined errno]: Likewise.
51773
51774 2006-06-15  Eric Blake  <ebb9@byu.net>
51775
51776         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51777
51778 2006-06-15  Eric Blake  <ebb9@byu.net>
51779
51780         * config/srclist.txt (ssize_t.m4): Lose sync.
51781
51782 2006-06-15  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/stdint (Files): Include m4/full-header-path.m4,
51785         m4/size_max.m4, m4/wchar_t.m4.
51786         (Makefile.am): Many more substitutions.
51787         * modules/stdint-tests: New file.
51788         * tests/test-stdint.c: New file.
51789
51790 2006-06-15  Bruno Haible  <bruno@clisp.org>
51791
51792         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51793         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51794         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51795         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51796         gl_CHECK_TYPE_SAME): New macros.
51797
51798 2006-06-15  Bruno Haible  <bruno@clisp.org>
51799
51800         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51801
51802 2006-06-15  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/stdint_.h: Rewritten to be fully auto-configured.
51805         Fixes bug on HP-UX/IA64.
51806
51807 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51808
51809         * lib/getdate.y (__attribute__): Don't define if already defined.
51810         Problem reported by Larry Jones.
51811         * lib/utimens.c (__attribute__): Likewise.
51812
51813 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51816         reported by Andreas Schwab.
51817
51818 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51819             Bruno Haible  <bruno@clisp.org>
51820
51821         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51822         check for the declaration of strnlen and a run test that exposes the
51823         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51824         rpl_strndup.
51825
51826 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51827             Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51830
51831 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51832
51833         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51834         compile test, for Tru64 4.0D.
51835
51836 2006-05-28  Karl Berry  <karl@gnu.org>
51837
51838         * config/srclist.txt (printf-args.c): lose sync.
51839
51840 2006-05-26  Martin Lambers  <marlam@marlam.de>
51841
51842         * lib/getpass.c: Updates the test for the native W32 API, and adds
51843         missing includes, thus fixing compilation warnings.
51844
51845 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51846
51847         * lib/exclude.c (exclude_fnmatch): New function.
51848         (excluded_file_name): Call exclude_fnmatch.
51849         * lib/exclude.h (excluded_file_name): New prototype
51850
51851 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51852
51853         * lib/tempname.c (small_open, large_open): New macros.
51854         (__open, __open64) [!_LIBC]: Remove.
51855         (__gen_tempname): Use small_open and large_open instead of __open
51856         and __open64.  This fixes a portability bug on HP-UX 11.11i
51857         reported by Simon Wing-Tang in
51858         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51859
51860 2006-05-24  Bruno Haible  <bruno@clisp.org>
51861
51862         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51863         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51864         Reported by Thorsten Maerz <torte@netztorte.de> via
51865         Aaron Stone <aaron@serendipity.cx>.
51866
51867 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51868
51869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51870         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51871         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51872         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51873         not really conditional on the cache.
51874         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51875
51876 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51877
51878         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51879         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51880         (my_usleep): Don't mishandle maximum value.
51881
51882 2006-05-19  Jim Meyering  <jim@meyering.net>
51883
51884         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51885
51886 2006-05-17  Bruno Haible  <bruno@clisp.org>
51887
51888         Cygwin portability.
51889         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51890
51891 2006-05-17  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/stdint_.h: Fix recognition of Cygwin.
51894
51895 2006-05-15  Bruno Haible  <bruno@clisp.org>
51896
51897         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51898         on libtool patch by Ralf Wildenhues.
51899
51900 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51903         test for C99 conformance; (bool) 0.5 is an integer constant
51904         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51905         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51906
51907 2006-05-11  Simon Josefsson  <jas@extundo.com>
51908
51909         * m4/xvasprintf.m4: Fix obvious typo.
51910
51911 2006-05-11  Jim Meyering  <jim@meyering.net>
51912
51913         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51914         James Lemley.
51915
51916 2006-05-10  Simon Josefsson  <jas@extundo.com>
51917
51918         * lib/md4.c: Typo fix, update copyright years.
51919         (K1, K2): Don't use L because it turn computations into 64-bit on
51920         64-bit platforms.
51921
51922 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51925         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51926         unwanted sign propagation, e.g., on hosts with 64-bit int.
51927         There still are some problems with reeelly weird theoretical hosts
51928         (e.g., 33-bit int) but it's not worth worrying about now.
51929         * lib/sha1.c (rol): Likewise.
51930         (K1, K2, K3, K4): Remove unnecessary L suffix.
51931
51932 2006-05-10  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/des.c: Cast to avoid warnings.
51935
51936 2006-05-09  Bruno Haible  <bruno@clisp.org>
51937
51938         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51939         (Depends-on): Depend also on xsize, stdarg.
51940         (configure.ac): Add gl_XVASPRINTF.
51941
51942 2006-05-09  Bruno Haible  <bruno@clisp.org>
51943
51944         * m4/xvasprintf.m4: New file.
51945
51946 2006-05-09  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51949         (EOVERFLOW): Define fallback value.
51950         (xstrcat): New function.
51951         (xvasprintf): Recognize the special case of a string concatenation.
51952
51953 2006-05-08  Eric Blake  <ebb9@byu.net>
51954
51955         * gnulib-tool (func_version): Base copyright year on CVS date.
51956         (func_emit_copyright_notice): New function.
51957         (func_emit_lib_Makefile_am): Use it.
51958         (func_emit_tests_Makefile_am): Likewise.
51959         (func_import): Likewise.
51960
51961 2006-05-08  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/stdarg: New file.
51964         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51965
51966 2006-05-08  Bruno Haible  <bruno@clisp.org>
51967
51968         * m4/stdarg.m4: New file, from GNU gettext.
51969
51970 2006-05-08  Bruno Haible  <bruno@clisp.org>
51971
51972         * config/srclist.txt (build-aux/config.rpath): different from latest
51973         release.
51974
51975 2006-05-08  Bruno Haible  <bruno@clisp.org>
51976
51977         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51978
51979 2006-05-05  Jim Meyering  <jim@meyering.net>
51980
51981         * m4/warning.m4: New file, derived from bison's file by the same name.
51982
51983 2006-05-03  Bruno Haible  <bruno@clisp.org>
51984
51985         * lib/stdint_.h: Shorter URL.
51986         * lib/inttypes.h: Likewise.
51987
51988 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51991
51992 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         * lib/verify.h: Document the internals better.  Most of this change
51995         was written by Bruno Haible.
51996
51997 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51998
51999         * doc/verify.texi: New file, partly based on a proposal by
52000         Bruno Haible.
52001
52002 2006-05-02  Bruno Haible  <bruno@clisp.org>
52003
52004         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52005         test from here...
52006         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52007
52008 2006-04-29  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52011         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52012
52013 2006-04-29  Bruno Haible  <bruno@clisp.org>
52014
52015         * gnulib-tool: Make --update option actually work.
52016
52017 2006-04-29  Bruno Haible  <bruno@clisp.org>
52018
52019         * doc/gcd.texi: New file.
52020         * doc/gnulib.texi: Include it.
52021
52022 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * lib/getdate.y (get_date): When adding relative date, start with the
52025         initial time, not with the result of the first mktime call.
52026
52027 2006-04-25  Bruno Haible  <bruno@clisp.org>
52028
52029         * gnulib-tool (func_import): Output the include directives in three
52030         blocks, sorted separately.
52031         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52032
52033 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52034
52035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52036         to define main with arguments, for C++.  Reported by Eric Blake.
52037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52038         Prefer 'int main ()' to 'int main (void)', for C++.
52039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52041         for 'main', for C99 and C++.
52042
52043 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52044
52045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52046         Don't assume that exit status -1 is valid.
52047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52048         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52049         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52050         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52051         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52053         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52054         functions can be used without declaring them, or that you can
52055         exit with status -1.
52056         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52057
52058 2006-04-24  Karl Berry  <karl@gnu.org>
52059
52060         * config/srclist.txt (longdouble.m4): sync lost.
52061
52062 2006-04-24  Eric Blake  <ebb9@byu.net>
52063
52064         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52065
52066 2006-04-24  Bruno Haible  <bruno@clisp.org>
52067
52068         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52069         poll() implementation in AIX.
52070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52071
52072 2006-04-24  Bruno Haible  <bruno@clisp.org>
52073
52074         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52075         assigned exactly once.
52076
52077 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52081         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52082         for AM_CPPFLAGS.
52083
52084 2006-04-23  Bruno Haible  <bruno@clisp.org>
52085
52086         * modules/copy-file: Depend on unistd.
52087         * modules/execute: Likewise.
52088         * modules/fatal-signal: Likewise.
52089         * modules/findprog: Likewise.
52090         * modules/mkdtemp : Likewise.
52091         * modules/pipe: Likewise.
52092         * modules/wait-process: Likewise.
52093
52094 2006-04-23  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52097         condition was already detected.
52098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52099
52100 2006-04-23  Bruno Haible  <bruno@clisp.org>
52101
52102         * lib/copy-file.c: Include <unistd.h> unconditionally.
52103         * lib/execute.c: Likewise.
52104         * lib/fatal-signal.c: Likewise.
52105         * lib/findprog.c: Likewise.
52106         * lib/mkdtemp.c: Likewise.
52107         * lib/pipe.h: Likewise.
52108         * lib/pipe.c: Likewise.
52109         * lib/wait-process.h: Likewise.
52110
52111 2006-04-23  Bruno Haible  <bruno@clisp.org>
52112
52113         * gnulib-tool (func_usage): Fix --import description. Document
52114         --update.
52115         (func_import): Create temporary file in a temporary directory, if
52116         --dry-run is specified. Silence errors from 'grep' when there are no
52117         m4 files in $m4dir.
52118         (func_create_testdir): Silence errors from 'grep' when there are no
52119         m4 files in $m4dir.
52120         Reported by Karl Berry <karl@freefriends.org>.
52121
52122 2006-04-20  Bruno Haible  <bruno@clisp.org>
52123
52124         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52125         one argument, so that the code will be portable to Autoconf 2.60.
52126         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52128         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52129
52130 2006-04-19  Derek Price  <derek@ximbiot.com>
52131             Eric Blake  <ebb9@byu.net>
52132
52133         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52134         rather than "/full/path.h".  Update comment to match.  Shorten &
52135         generalize m4_translit call via AS_TR_CPP.
52136
52137 2006-04-19  Derek Price  <derek@ximbiot.com>
52138             Eric Blake  <ebb9@byu.net>
52139
52140         * lib/inttypes.h: Correct grammar in comment.
52141
52142 2006-04-18  Derek Price  <derek@ximbiot.com>
52143             Paul Eggert  <eggert@cs.ucla.edu>
52144
52145         * modules/inttypes: New file.
52146         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52147
52148 2006-04-18  Derek Price  <derek@ximbiot.com>
52149             Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52152         New files.
52153
52154 2006-04-18  Derek Price  <derek@ximbiot.com>
52155             Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/inttypes.h: New file.
52158         * lib/strtoimax.c: Assume <inttypes.h>.
52159
52160 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52161
52162         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52163         isn't mounted.  Problem reported by Kir Kolyshkin.
52164
52165 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52166
52167         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52168         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52169         Derek R. Price.
52170         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52171         implementation.
52172
52173 2006-04-12  Eric Blake  <ebb9@byu.net>
52174
52175         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52176         is now done automatically by the corresponding Autoconf macro.
52177
52178 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52181         time_r.h.
52182
52183 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         Merge regex changes from libc, removing some of our
52186         POSIX-conformance changes that were rejected and redoing them in a
52187         less-intrusive way.
52188
52189         * lib/regcomp.c (re_compile_internal, init_dfa):
52190         Length arg is now size_t, not Idx.  All uses changed.
52191         (peek_token): Forward decl now says internal_function.
52192         (__re_error_msgid, __re_error_msgid_idx):
52193         Now static rather than extern with attribute_hidden.
52194         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52195         For some reason libc prefers K&R style defns for external functions.
52196         (regerror) [!defined _LIBC]: Likewise.
52197         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52198         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52199         (build_range_exp, build_collating_symbol):
52200         Use K&R-style defn.
52201         (re_compile_fastmap): Use '\0' to memset, not 0.
52202         (utf8_sb_map): Make the calculations more obvious.
52203         (init_dfa, parse_bracket_exp, build_charclass_op):
52204         Call calloc and cast result, as glibc does.
52205         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52206         (build_range_exp, build_collating_symbol):
52207         Now internal functions.
52208
52209         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52210
52211         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52212         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52213         Don't depend on VMS; depend on __VMS instead, for POSIX
52214         namespace cleanness.
52215         (regoff_t): Define to ssize_t, not long int.
52216
52217         Remove the REG_ macros named below.  Instead, make the old names
52218         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52219         __USE_GNU_REGEX.
52220         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52221         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52222         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52223         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52224         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52225         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52226         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52227         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52228         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52229         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52230         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52231         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52232         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52233         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52234         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52235         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52236         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52237         (REG_NREGS):
52238         Remove.  All uses replaced by the old RE_* names.
52239         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52240         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52241         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52242         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52243         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52244         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52245         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52246         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52247         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52248         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52249         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52250         Don't bother having these macros be independent of each others'
52251         values, since they no longer exist in the POSIX name space.
52252
52253         Rename the following member names back to their old names,
52254         unless !__USE_GNU_REGEX.  All uses changed back.
52255         (buffer): Renamed from re_buffer.
52256         (allocated): Renamed from re_allocated.
52257         (used): Renamed from re_used.
52258         (syntax): Renamed from re_syntax.
52259         (fastmap): Renamed from re_fastmap.
52260         (translate): Renamed from re_translate.
52261         (can_be_null): Renamed from re_can_be_null.
52262         (regs_allocated): Renamed from re_regs_allocated.
52263         (fastmap_accurate): Renamed from re_fastmap_accurate.
52264         (no_sub): Renamed from re_no_sub.
52265         (not_bol): Renamed from re_not_bol.
52266         (not_eol): Renamed from re_not_eol.
52267         (newline_anchor): Renamed from re_newline_anchor.
52268         (num_regs): Renamed from rm_num_regs.
52269         (start): Renamed from rm_start.
52270         (end): Renamed from rm_end.
52271
52272         (free_state): Move up a bit.
52273
52274         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52275         #define to be empty.
52276         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52277         when that is what is intended.
52278         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52279         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52280         (MAX): New macro.
52281         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52282         All uses changed back to re_malloc, etc.  It's now the caller's
52283         responsibility to check for overflow; all callers changed.
52284         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52285         (re_x2nrealloc): Remove.
52286         (free_state): Remove decl.
52287
52288         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52289         (re_set_registers, re_exec):
52290         Use K&R-style defn.
52291
52292         2006-01-31  Roland McGrath  <roland@redhat.com>
52293
52294         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52295         Reported by Mike Frysinger <vapier@gentoo.org>.
52296
52297         2006-01-15  Andreas Jaeger  <aj@suse.de>
52298
52299         [BZ #1950]
52300         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52301         build_wcs_upper_buffer change.
52302         (build_wcs_upper_buffer): Change return type.
52303
52304         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52305
52306         * lib/regex_internal.h: Include <stdint.h> if available.
52307
52308         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52309
52310         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52311
52312         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52313
52314         * lib/regcomp.c: Adjust for changed secondary hash function.
52315
52316         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52317
52318         * lib/regex.h: Pretty printing.
52319         Clean up namespace a bit.
52320
52321         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52322
52323         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52324         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52325
52326         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52327                     Ulrich Drepper  <drepper@redhat.com>
52328
52329         [BZ #1302]
52330         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52331         changed.
52332         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52333
52334         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52335
52336         [BZ #281]
52337         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52338         * lib/regcomp.c: Remove unnecessary uses of
52339         unsigned RE_TRANSLATE_TYPE.
52340         * lib/regex_internal.h: Likewise.
52341         * lib/regex_internal.c: Likewise.
52342         * lib/regexec.c: Likewise.
52343         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52344
52345         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52346
52347         * lib/regexec.c (find_recover_state): Remove unnecessary
52348         initialization.
52349         (transit_state_bkref): Make DFA a const pointer.
52350         (get_subexp): Likewise.
52351         (check_arrival): Likewise.
52352         (update_cur_sifted_state): Likewise.
52353         (re_search_internal): Likewise.
52354         (prune_impossible_nodes): Likewise.
52355         (acquire_init_state_context): Likewise.
52356         (proceed_next_node): Likewise.
52357         (set_regs): Likewise.
52358         (free_fail_stack_return): Likewise.
52359         (check_arrival_expand_ecl): Mark DFA parameter as const.
52360         (check_arrival_expand_ecl_sub): Likewise.
52361         (check_subexp_limits): Likewise.
52362         (sub_epsilon_src_nodes):  Likewise.
52363         (add_epsilon_src_nodes):  Likewise.
52364         (merge_state_array): Likewise.
52365         (update_regs): Likewise.
52366         (build_trtable): Likewise.
52367         (sift_states_backward): Mark MCTX parameter as const.
52368         (build_sifted_states): Likewise.
52369         (update_cur_sifted_state): Likewise.
52370         (sift_states_mkref): Likewise.
52371         (check_arrival_expand_ecl): Mark eclosure as const.
52372         (check_dst_limits_calc_pos_1): Likewise.
52373         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52374         pointer.
52375
52376         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52377
52378         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52379         (transit_state_sb): Likewise.
52380         (transit_state_mb): Likewise.
52381         (sift_states_iter_mb): Likewise.
52382         (check_arrival_add_next_nodes): Likewise.
52383         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52384         [_LIBC] (re_search_2_stub): Use mempcpy.
52385
52386         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52387         mbrtowc for very simple UTF-8 case.
52388
52389         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52390         a pointer-to-const.
52391         (re_acquire_state_context): Likewise.
52392         * lib/regex_internal.h: Adjust prototypes.
52393
52394         * lib/regex.c: Prevent using C++ compilers.
52395
52396         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52397         (re_acquire_state_context): Likewise.
52398
52399 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * modules/regex (Depends-on): Add ssize_t.
52402
52403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52404
52405         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52406         translation table.
52407
52408 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52411
52412 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52413             Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52416         <sys/types.h> and <inttypes.h>.
52417
52418 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52419
52420         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52421         `__error_t_defined', so argp.h will not typedef the former.
52422
52423 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52426         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52427         glibc names.  Even if glibc is changed to conform to POSIX, the
52428         traditional names will be available anyway, since regex depends on
52429         the extensions module.  Also, fix a longstanding typo in the
52430         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52431         reported by Emanuele Giaquinta.  Also, change sense of cached
52432         variable, so that the message makes sense.
52433
52434 2006-03-24  Simon Josefsson  <jas@extundo.com>
52435
52436         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52437         including some doc fixes.
52438         (base64_encode_alloc): Fix +1 bug on allocation failures.
52439
52440 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52441
52442         * lib/base64.c (base64_encode): Do not read past end of array with
52443         unsanitized input on systems with CHAR_BIT > 8.
52444
52445 2006-03-24  Eric Blake  <ebb9@byu.net>
52446
52447         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52448
52449 2006-03-22  Karl Berry  <karl@gnu.org>
52450
52451         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52452         * config/srclistvars.sh (COREUTILS): new var.
52453
52454 2006-03-17  Jim Meyering  <jim@meyering.net>
52455
52456         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52457         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52458
52459 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52462         no longer needs it.  Instead, check that regoff_t is as least
52463         as wide as ptrdiff_t.
52464
52465         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52466         so that our regex.h stays compatible with the installed regex.
52467         This is helpful for installers who configure --without-included-regex.
52468         Problem reported by Emanuele Giaquinta.
52469
52470 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52473         Typedef to long int, not to off_, as POSIX will likely change
52474         in that direction.
52475
52476 2006-03-15  Eric Blake  <ebb9@byu.net>
52477
52478         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52479
52480 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52481
52482         * lib/argp-help.c (validate_uparams): Fix typo
52483         * lib/argp-parse.c (argp_default_options): Consistently begin help
52484         messages with a lowercase letter.
52485
52486 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52487
52488         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52489         overrun buffers and shouldn't be used (much as gets shouldn't be
52490         used).
52491         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52492
52493 2006-03-08  Simon Josefsson  <jas@extundo.com>
52494
52495         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52496         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52497
52498 2006-03-08  Simon Josefsson  <jas@extundo.com>
52499
52500         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52501         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52502
52503 2006-03-08  Simon Josefsson  <jas@extundo.com>
52504
52505         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52506         signal that configure disabled the device.
52507
52508 2006-03-08  Simon Josefsson  <jas@extundo.com>
52509
52510         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52511         languages.
52512
52513 2006-03-07  Simon Josefsson  <jas@extundo.com>
52514
52515         * modules/getopt (Depends-on): Add unistd.
52516
52517         * modules/unistd: New file.
52518
52519 2006-03-07  Simon Josefsson  <jas@extundo.com>
52520
52521         * modules/gc-random: New file.
52522
52523 2006-03-07  Simon Josefsson  <jas@extundo.com>
52524
52525         * m4/unistd_h.m4: New file.
52526
52527 2006-03-07  Simon Josefsson  <jas@extundo.com>
52528
52529         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52530         test to be side-effect free by storing the result in the cache
52531         variable gl_cv_lib_readline, and moving the assignment of
52532         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52533         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52534
52535 2006-03-07  Simon Josefsson  <jas@extundo.com>
52536
52537         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52538         error on missing devices (the functions will return an error).
52539
52540         * m4/gc.m4: Move random stuff to gc-random.m4
52541
52542 2006-03-07  Simon Josefsson  <jas@extundo.com>
52543
52544         * lib/unistd_.h: New file.
52545
52546 2006-03-07  Simon Josefsson  <jas@extundo.com>
52547
52548         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52549
52550 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52551
52552         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52553         Problem reported by Juan Manuel Guerrero.
52554
52555 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52558         the unistd module.
52559         * lib/getlogin_r.c: Likewise.
52560         * lib/getlogin_r.h: Likewise.
52561         * lib/glob.c: Likewise.
52562         * lib/pagealign_alloc.c: Likewise.
52563         * lib/unistd_.h: Remove; no longer needed.
52564
52565 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52568         Add unistd.
52569         * modules/c-stack (Depends-on): Add unistd.
52570         * modules/getlogin_r: Likewise.
52571         * modules/glob: Likewise.
52572         * modules/pagealign_alloc: Likewise.
52573         * modules/unistd (Files): Remove lib/unistd_.h.
52574         (EXTRA_DIST): Remove.
52575         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52576         need unistd_.h.
52577         (MOSTLYCLEANFILES): Remove unistd.h-t.
52578
52579 2006-03-03  Simon Josefsson  <jas@extundo.com>
52580
52581         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52582
52583 2006-03-03  Simon Josefsson  <jas@extundo.com>
52584
52585         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52586         libidn and bison.
52587
52588 2006-03-03  Simon Josefsson  <jas@extundo.com>
52589
52590         * build-aux/maint.mk: Add indent target.
52591
52592 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52593
52594         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52595         our replacement poll.h in any case, to avoid a differing
52596         declaration from a system header.  Seen on AIX.
52597
52598 2006-03-01  Simon Josefsson  <jas@extundo.com>
52599
52600         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52601         <kasal@ucw.cz>.
52602
52603 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52604
52605         * modules/gettime (Depends-on): Add extensions module.
52606         * modules/nanosleep (Depends-on): Likewise.
52607         * modules/settime (Depends-on): Likewise.
52608
52609 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52610
52611         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52612         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52613         pedantically.
52614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52615         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52616
52617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52618         not "==".  Reported by Ralf Wildenhues.
52619
52620 2006-03-01  Karl Berry  <karl@gnu.org>
52621
52622         * doc/Copyright/request-*: new files, synced from gnuorg.
52623
52624 2006-03-01  Karl Berry  <karl@gnu.org>
52625
52626         * config/srclist.txt (Copyright/*): new entries.
52627
52628 2006-02-28  Simon Josefsson  <jas@extundo.com>
52629
52630         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52631
52632 2006-02-27  Simon Josefsson  <jas@extundo.com>
52633
52634         * lib/base64.h: Indent #define's.  From Jim Meyering
52635         <jim@meyering.net>.
52636
52637 2006-02-27  Jim Meyering  <jim@meyering.net>
52638
52639         Revert the change of 2006-02-24, so these files can continue
52640         to be sync'd from gettext.
52641         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52642         of `config.h'.
52643
52644 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * modules/intprops: New file.
52647         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52648         Add intprops.
52649         * modules/getloadavg (Files): Remove lib/intprops.h.
52650         (Depends-on): Add intprops.
52651         * modules/human: Likewise.
52652         * modules/inttostr: Likewise.
52653         * modules/openat: Likewise.
52654         * modules/sig2str: Likewise.
52655         * modules/userspec: Likewise.
52656         * modules/utimecmp: Likewise.
52657         * modules/xnanosleep: Likewise.
52658         * modules/xstrtol: Likewise.
52659
52660 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52661
52662         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52663         * modules/lock-tests (TESTS): Use $(EXEEXT).
52664         * modules/tls-tests: Likewise.
52665         * modules/argp-tests: Likewise.
52666         (check_PROGRAMS): New var, replacing...
52667         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52668
52669 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52670
52671         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52672         `config.h'.
52673
52674 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52677
52678 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52679
52680         Sync from coreutils.
52681         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52682         gl_CHDIR_SAFER.
52683
52684 2006-02-22  Jim Meyering  <jim@meyering.net>
52685
52686         Sync from coreutils.
52687         * m4/chdir-safer.m4: New file.
52688
52689 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52690
52691         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52692         AT_FDCWD exceeds INT_MAX.
52693         * lib/openat.h (AT_FDCWD): Likewise.
52694
52695 2006-02-17  Eric Blake  <address@hidden>
52696
52697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52698
52699 2006-02-16  Simon Josefsson  <jas@extundo.com>
52700
52701         * modules/getaddrinfo (Depends-on): Add sys_socket.
52702
52703 2006-02-15  Simon Josefsson  <jas@extundo.com>
52704
52705         * build-aux/maint.mk: Add dsyntax-check rule.
52706
52707 2006-02-15  Eric Blake  <ebb9@byu.net>
52708
52709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52710         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52711         'present but cannot compile' warnings on cygwin.
52712         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52713         use ws2tcpip.h if sys/socket.h works.
52714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52715         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52716
52717 2006-02-14  Simon Josefsson  <jas@extundo.com>
52718
52719         * modules/maintainer-makefile (Files): Rename.
52720
52721         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52722         and (the local) Makefile.cfg to maint-cfg.mk.
52723
52724         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52725         to the latter.
52726
52727         * modules/maintainer-makefile: New module.
52728
52729         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52730         severaly stripped to make it possible to build it up from scratch
52731         with reliable tests.
52732
52733         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52734         fixes to permit overriding the default actions when configure and
52735         makefile are not available.
52736
52737 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         Sync from coreutils.
52740         * modules/lstat (Depends-on): Don't depend on xalloc.
52741         (License): Change from GPL to LGPL, since this is now simply a
52742         replacement for a libc function.
52743
52744 2006-02-14  Jim Meyering  <jim@meyering.net>
52745
52746         Sync from coreutils.
52747
52748         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52749         failure on deficient systems, and simplify gnulib lgpl dependencies.
52750         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52751         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52752
52753         * lib/xalloc-die.c: Remove unused definition of N_.
52754
52755 2006-02-14  Jim Meyering  <jim@meyering.net>
52756
52757         Sync from coreutils.
52758         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52759         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52760         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52761         double-quote uses of that variable, to accommodate the rare case in
52762         which getmntent is available in none of the libraries checked.  This
52763         happens at least on FreeBSD 5.0.
52764
52765 2006-02-13  Simon Josefsson  <jas@extundo.com>
52766
52767         * gnulib-tool (Usage): Fix --import, from
52768         karl@freefriends.org (Karl Berry).
52769
52770 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52771
52772         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52773
52774 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52775
52776         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52777         "autoupdate" on 2005-12-12.
52778
52779 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * modules/closeout (Depends-on): Remove atexit.
52782
52783 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52784
52785         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52786         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52787
52788 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52789
52790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52791         __EXTENSIONS__ if this causes compilation to fail.  Problem
52792         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52793         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52794
52795 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52796
52797         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52798         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52800         All uses changed.
52801
52802 2006-01-26  Simon Josefsson  <jas@extundo.com>
52803
52804         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52805         prototype is visible on mingw32.
52806
52807         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52808         for mingw32.
52809
52810         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52811         mingw32).
52812
52813 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52816         attempt to open for write; this always fails, at least on POSIX
52817         hosts.  This reinstates the 2006-01-09 change, which was
52818         inadvertently removed.
52819
52820 2006-01-26  Bruno Haible  <bruno@clisp.org>
52821
52822         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52823         Reported by Paul Eggert.
52824
52825 2006-01-26  Bruno Haible  <bruno@clisp.org>
52826             Paul Eggert  <eggert@cs.ucla.edu>
52827
52828         * lib/stdbool_.h (_Bool)
52829         [(! (defined __cplusplus || defined __BEOS__)
52830           && !defined __GNUC__
52831           && !(defined __HP_cc || defined __xlc__
52832                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52833                || defined __sgi))]:
52834         #define to signed char in these cases too; this simplifies
52835         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52836         etc., separately) and makes it more conservative.
52837
52838 2006-01-25  Simon Josefsson  <jas@extundo.com>
52839
52840         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52841         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52842         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52843
52844 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52845
52846         * lib/argp-namefrob.h: Bugfix. Remove stray #
52847
52848 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52851         so that we test the test.
52852         Check for yet another HP-UX cc bug involving *bool |= bool.
52853
52854 2006-01-25  Karl Berry  <karl@gnu.org>
52855
52856         * config/srclist.txt (vasnprintf.c): sync lost.
52857
52858 2006-01-25  Jim Meyering  <jim@meyering.net>
52859
52860         Sync from the stable (b5) branch of coreutils:
52861
52862         * lib/fts.c (fts_children): Don't let close() clobber errno from
52863         failed fchdir().
52864
52865         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52866         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52867         a dangling symlink.  That can also happen at least for ELOOP.
52868         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52869         FYI, this bug predates the inclusion of fts.c in coreutils.
52870
52871         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52872         in their own block, so pre-c99 compilers don't object.
52873
52874         Avoid the double-free (first in fts_read, second in fts_close) that
52875         would occur when an `active' directory is made inaccessible (e.g.,
52876         via chmod a-x) during a traversal.
52877         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52878         before returning.  Reproduce this failure by
52879         mkdir -p a/b; cd a; chmod a-x . b
52880         Reported by Stavros Passas.
52881
52882 2006-01-25  Jim Meyering  <jim@meyering.net>
52883
52884         * lib/fileblocks.c: Remove more useless parentheses.
52885         * lib/readutmp.h: Likewise.
52886
52887 2006-01-25  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52890         warnings.
52891         Reported by Paul Eggert.
52892
52893 2006-01-25  Bruno Haible  <bruno@clisp.org>
52894
52895         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52896         rid of a trap command. For Solaris sh.
52897         Reported by Mark D. Baushke <mdb@gnu.org>.
52898
52899 2006-01-24  Simon Josefsson  <jas@extundo.com>
52900
52901         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52902         Bruno.
52903
52904 2006-01-24  Karl Berry  <karl@gnu.org>
52905
52906         * config/srclist.txt (argp-namefrob.h): sync lost.
52907
52908 2006-01-24  Jim Meyering  <jim@meyering.net>
52909
52910         * modules/openat (Files): Add lib/intprops.h.
52911         From Mark D. Baushke.
52912
52913 2006-01-24  Jim Meyering  <jim@meyering.net>
52914
52915         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52916         Reported by Mark D. Baushke.
52917
52918 2006-01-24  Jim Meyering  <jim@meyering.net>
52919
52920         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52921
52922 2006-01-24  Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/strnlen (Maintainer): Change from glibc to all.
52925
52926 2006-01-24  Bruno Haible  <bruno@clisp.org>
52927
52928         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52929         Patch by Paul Eggert.
52930
52931 2006-01-24  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52934         already has it.
52935         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52936         2005-11-26.
52937
52938         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52939         'signed char' to avoid problems with the built-in _Bool type.
52940         Reported by Paul Eggert on 2005-11-26.
52941
52942 2006-01-24  Bruno Haible  <bruno@clisp.org>
52943
52944         * gnulib-tool (func_import): Avoid constructing complicated sed
52945         expressions inside backquote.
52946         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52947
52948 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52949
52950         These changes imported from libc.
52951         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52952         test and two separate function calls.
52953         * lib/strndup.c (__strndup): Add libc_hidden_def.
52954
52955 2006-01-23  Simon Josefsson  <jas@extundo.com>
52956
52957         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52958         Remove the test_*_SOURCES variable: automake infers it by default.
52959         * modules/tls-tests: Likewise.
52960
52961 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         Work around porting bugs reported by Dieter in
52964         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52965         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52966         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52967         Include "getopt.h" first, to check interface.
52968         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52969         !HAVE_DECL_GETENV.
52970         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52971         (__strndup): Revert to K&R-style function dfns, the glibc style.
52972         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52973         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52974         Include strnlen.h first, to get prototype properly.
52975         (strnlen): Renamed from __strnlen.
52976         Remove weak alias.
52977
52978 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52981
52982 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52983
52984         * config/srclist.txt: Adjust to reflect glibc reorganization.
52985         This affects only comments.
52986
52987 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52988
52989          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52990          Reported by Bruce Korb <bkorb@gnu.org>.
52991
52992 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52995         to pacify gcc -Wswitch-default.
52996
52997 2006-01-22  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53000         temporary buffer for sprintf, take into account the precision also
53001         for 'd', 'i', 'u', 'o', 'x', 'X'.
53002
53003 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53004
53005         * modules/argp-tests: New module
53006         * tests/test-argp.c: New file
53007         * tests/test-argp-2.sh: New file
53008
53009 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53010
53011         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53012         (__argp_base_name): Removed
53013         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53014         typo.
53015         (__argp_base_name): Provide macro definition or extern declaration
53016         depending on the configuration
53017
53018 2006-01-20  Simon Josefsson  <jas@extundo.com>
53019
53020         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53021
53022 2006-01-20  Simon Josefsson  <jas@extundo.com>
53023
53024         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53025
53026 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53029         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53030         Suggested by Bruno Haible.
53031
53032 2006-01-20  Karl Berry  <karl@gnu.org>
53033
53034         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53035         until changes propagate, I guess.
53036
53037 2006-01-19  Simon Josefsson  <jas@extundo.com>
53038
53039         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53040
53041 2006-01-19  Simon Josefsson  <jas@extundo.com>
53042
53043         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53044
53045 2006-01-19  Simon Josefsson  <jas@extundo.com>
53046
53047         * gnulib-tool: Set check_PROGRAMS.
53048
53049         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53050         modules/des-tests, modules/gc-arcfour-tests,
53051         modules/gc-arctwo-tests, modules/gc-des-tests,
53052         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53053         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53054         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53055         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53056         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53057         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53058         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53059         test_*_SOURCES.
53060
53061 2006-01-18  Simon Josefsson  <jas@extundo.com>
53062
53063         * modules/socklen (Depends-on): Depend on sys_socket.
53064
53065 2006-01-18  Simon Josefsson  <jas@extundo.com>
53066
53067         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53068         modules/des-tests, modules/gc-arcfour-tests,
53069         modules/gc-arctwo-tests, modules/gc-des-tests,
53070         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53071         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53072         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53073         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53074         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53075         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53076         $(EXEEXT) to automake TESTS variable, for mingw32.
53077
53078 2006-01-17  Simon Josefsson  <jas@extundo.com>
53079
53080         * modules/socklen (Include): Need sys/socket.h.
53081
53082 2006-01-17  Bruno Haible  <bruno@clisp.org>
53083
53084         * modules/ssize_t (Include): Add <sys/types.h>.
53085
53086 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53087
53088         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53089         it's not portable and it doesn't work with cross-compiles.
53090         Problem reported by Bruno Haible.  Fix missing-$ typo in
53091         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53092         -zignore from being used with Sun's C compiler.
53093
53094 2006-01-12  Simon Josefsson  <jas@extundo.com>
53095
53096         * lib/base64.c: Fix warning, reported by Bruno Haible
53097         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53098
53099 2006-01-12  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/ldd: New file.
53102         * build-aux/ldd.sh.in: New file.
53103         * MODULES.html.sh (Support for building libraries and executables): Add
53104         ldd.
53105
53106 2006-01-12  Bruno Haible  <bruno@clisp.org>
53107
53108         * m4/ldd.m4: New file.
53109
53110 2006-01-12  Bruno Haible  <bruno@clisp.org>
53111
53112         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53113         endless loop while replacing $auxdir with build-aux.
53114
53115 2006-01-11  Simon Josefsson  <jas@extundo.com>
53116
53117         * lib/stdint_.h (SIZE_MAX): Add missing (.
53118
53119 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53120
53121         Sync from coreutils.
53122         * lib/md5.c: Fix commentary typos.
53123         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53124         * lib/md5.h (__attribute__): Remove; unused.
53125         * lib/sha1.c: Fix commentary to match md5 better.
53126         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53127         so that we don't need to worry about alignment.  All uses changed.
53128         This merges the 2005-10-28 md5 change into sha1.
53129
53130 2006-01-11  Jim Meyering  <jim@meyering.net>
53131
53132         Sync from coreutils.
53133         * lib/md5.c (OP): Fix spacing.
53134
53135 2006-01-11  Bruno Haible  <bruno@clisp.org>
53136
53137         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53138         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53139         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53140
53141 2006-01-11  Bruno Haible  <bruno@clisp.org>
53142
53143         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53144         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53145         the "early" section as well.
53146
53147 2006-01-11  Bruno Haible  <bruno@clisp.org>
53148
53149         Avoid "ar: no archive members specified" error on MacOS X.
53150         * gnulib-tool (func_modules_add_dummy): New function.
53151         (func_import, func_create_testdir): Invoke it.
53152
53153 2006-01-11  Bruno Haible  <bruno@clisp.org>
53154
53155         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53156         with $auxdir in AC_CONFIG_FILES statements.
53157
53158 2006-01-11  Bruno Haible  <bruno@clisp.org>
53159
53160         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53161         Initialize also noinst_HEADERS to empty.
53162
53163 2006-01-11  Bruno Haible  <bruno@clisp.org>
53164
53165         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53166         variables.
53167         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53168         autoreconf.
53169
53170 2006-01-11  Bruno Haible  <bruno@clisp.org>
53171
53172         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53173         overridable by the user.
53174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53175
53176 2006-01-10  Simon Josefsson  <jas@extundo.com>
53177
53178         * modules/sys_socket: New file.
53179
53180 2006-01-10  Simon Josefsson  <jas@extundo.com>
53181
53182         * m4/sys_socket_h.m4: New file.
53183
53184 2006-01-10  Simon Josefsson  <jas@extundo.com>
53185
53186         * lib/socket_.h: New file.
53187
53188 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53189
53190         * modules/readutmp (Maintainer): Add myself.
53191
53192 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53193
53194         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53195         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53196         People who are still concerned with buggy memcmp implementations
53197         can invoke gl_FUNC_MEMCMP themselves.
53198
53199 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/regex_internal.h (BITSET_WORD_BITS):
53202         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53203         preprocessor mishandles large unsigned values as if they were signed.
53204         Problem reported by Claudio Fontana in
53205         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53206
53207 2006-01-10  Jim Meyering  <jim@meyering.net>
53208
53209         Avoid the double-free (first in fts_read, second in fts_close) that
53210         would occur when an `active' directory is made inaccessible (e.g.,
53211         via chmod a-x) during a traversal.
53212         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53213         before returning.  Reproduce this failure by
53214         mkdir -p a/b; cd a; chmod a-x . b
53215         Reported by Stavros Passas.
53216
53217         Sync from coreutils.
53218         * lib/sha1.c: Tweak grammar in a comment.
53219
53220 2006-01-10  Jim Meyering  <jim@meyering.net>
53221
53222         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53223         Patch by Joerg Sonnenberger.
53224
53225 2006-01-10  Bruno Haible  <bruno@clisp.org>
53226
53227         * modules/readutmp: Depend on module free.
53228         * modules/strtok_r: Depend on module restrict.
53229
53230 2006-01-10  Bruno Haible  <bruno@clisp.org>
53231
53232         * modules/gettext (configure.ac): Add an invocation of
53233         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53234
53235 2006-01-10  Bruno Haible  <bruno@clisp.org>
53236
53237         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53238         Reported by Werner Lemberg <wl@gnu.org>.
53239
53240 2006-01-10  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/localcharset.c: Update from GNU gettext.
53243
53244 2006-01-10  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/argp.h (__const): Remove macro. Use const instead.
53247         * lib/argp-fmtstream.h (__const): Likewise.
53248         * lib/glob_.h (__const): Remove macro.
53249         * lib/glob-libc.h: Use const instead of __const.
53250
53251 2006-01-10  Bruno Haible  <bruno@clisp.org>
53252
53253         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53254         variable.
53255         Needed to avoid an automake error regarding the 'gettext' module.
53256
53257 2006-01-09  Simon Josefsson  <jas@extundo.com>
53258
53259         * modules/inet_ntop (Depends-on): Add restrict.
53260
53261 2006-01-09  Simon Josefsson  <jas@extundo.com>
53262
53263         * modules/gc-rijndael-tests (License): Put under LGPL.
53264
53265         * modules/gc-des-tests (License): Likewise.
53266
53267         * modules/gc-arcfour-tests (License): Likewise.
53268
53269         * modules/gc-arctwo-tests (License): Likewise.
53270
53271         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53272
53273         * modules/gc-hmac-sha1-tests (Files): Likewise.
53274
53275         * modules/gc-hmac-md5-tests (License): Likewise.
53276
53277         * modules/gc-sha1-tests (License): Likewise.
53278
53279         * modules/gc-md5-tests (License): Likewise.
53280
53281         * modules/gc-md4-tests (License): Likewise.
53282
53283         * modules/gc-md2-tests (License): Likewise.
53284
53285         * modules/gc-tests (License): Likewise.
53286
53287         * modules/des-tests (License): Likewise.
53288
53289         * modules/md4-tests (License): Likewise.
53290
53291         * modules/md2-tests (License): Likewise.
53292
53293 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         Sync from coreutils:
53296
53297         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53298         * modules/lib-ignore: New file.
53299         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53300         chdir-safer.m4, lchmod.m4.
53301         * modules/openat: Add mkdirat.c, openat-priv.h.
53302
53303 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         Sync from coreutils.
53306         * m4/lib-ignore.m4: New file.
53307         * m4/lchmod.m4: New file.
53308
53309 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53310
53311         Sync from coreutils.
53312         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53313         for write access: POSIX says that must fail.
53314         * lib/fts.c (diropen): Likewise.
53315         * lib/save-cwd.c (save_cwd): Likewise.
53316         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53317         well, for minor improvements on hosts that lack O_DIRECTORY.
53318         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53319         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53320         Fall back on chown if open failed with EACCES.
53321
53322         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53323         Report an error at compile-time if only a 1-second nominal clock
53324         resolution is found.
53325
53326         * lib/lchmod.h: New file.
53327         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53328         (make_dir_parents): Use lchown rather than chown, and
53329         lchmod rather than chmod.
53330
53331         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53332         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53333         "proc" reported by n0dalus.
53334
53335         * lib/mountlist.c: Include <limits.h>.
53336         (dev_from_mount_options)
53337         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53338         New function.  It no longer assumes "dev=" has the System V meaning
53339         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53340         (read_file_system_list)
53341         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53342         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53343         dev= in that case.
53344
53345         * lib/posixtm.h (PDS_PRE_2000): New macro.
53346         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53347         allow_century.  All usages changed.  Reject dates outside the range
53348         1969-1999 if PDS_PRE_2000 is used.
53349
53350 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         Sync from coreutils.
53353         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53354         (Time of day items): Mention the possibility of leap seconds.
53355         Problem reported by Dr. David Alan Gilbert.
53356
53357 2006-01-09  Jim Meyering  <jim@meyering.net>
53358
53359         Sync from coreutils.
53360
53361         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53362
53363         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53364
53365         * lib/modechange.c (mode_compile): Reject an invalid mode string
53366         that starts with an octal digit.  From Andreas Gruenbacher.
53367
53368         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53369         and dup to open_safer and dup_safer, respectively.
53370         (openat_permissive): Fix typo in comment.
53371
53372         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53373         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53374         (_): Remove; no longer needed.
53375         (openat): Renamed from rpl_openat; no need for rpl_openat
53376         since openat.h renames openat for us.
53377         Replace most of the body with a call to openat_permissive,
53378         to avoid duplicate code.
53379         Port to (probably hypothetical) environments were mode_t is
53380         wider than int.
53381         (openat_permissive): Require mode arg, so that we can check
53382         types better.  Put it just after flags.  Change cwd failure
53383         indicator from pointer-to-bool to pointer-to-errno-value.
53384         All callers changed.
53385         Invoke openat_save_fail and/or openat_restore_fail if
53386         cwd_errno is null, so that openat can call us.
53387         (openat_permissive, fdopendir, fstatat, unlinkat):
53388         Simplify errno handling to avoid some duplicate code,
53389         as it's OK to set errno on success.
53390         * lib/openat.h: Revamp code so that function macros depend on
53391         __OPENAT_PREFIX only, not also on AT_FDCWD.
53392         (openat_ro): Remove.  Caller changed to use openat_permissive.
53393         (openat_permissive): Now a macro, if not a function.
53394         (openat_restore_fail, openat_save_fail): Now always functions,
53395         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53396
53397         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53398         and openat.c.
53399         * lib/mkdirat.c: Include openat-priv.h.
53400         Remove definitions of macros defined therein.
53401         * lib/openat.c: Likewise.
53402
53403         * lib/mkdirat.c (mkdirat): New file and function.
53404         * lib/openat.h (mkdirat): Declare.
53405
53406         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53407
53408         * lib/openat.h (openat_permissive): Declare.
53409         (openat_ro): Define.
53410
53411         * lib/openat.c (EXPECTED_ERRNO): New macro.
53412         (openat_permissive): New function -- used in remove.c rewrite.
53413         (all functions): Set errno just before returning, only if there
53414         was an actual failure.
53415         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53416
53417         Emulate openat-family functions using Linux's procfs, if possible.
53418         Idea and some code based on Ulrich Drepper's glibc changes.
53419
53420         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53421         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53422         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53423         before falling back on save_cwd and restore_cwd.
53424         (fdopendir, fstatat, unlinkat): Likewise.
53425
53426         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53427         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53428
53429         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53430         as second argument to va_arg.  Otherwise, some versions of gcc
53431         warn that `if this code is reached, the program will abort'.
53432
53433 2006-01-09  Jim Meyering  <jim@meyering.net>
53434
53435         Sync from coreutils.
53436         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53437         Require openat-priv.h.
53438
53439 2006-01-09  Bruno Haible  <bruno@clisp.org>
53440
53441         * modules/strnlen (Include): Use strnlen.h.
53442
53443 2006-01-09  Bruno Haible  <bruno@clisp.org>
53444
53445         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53446
53447 2006-01-09  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/sysexit_.h (EX_OK): New macro.
53450         Suggested by Martin Lambers <marlam@marlam.de>.
53451
53452 2006-01-09  Bruno Haible  <bruno@clisp.org>
53453
53454         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53455         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53456
53457 2006-01-09  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53460         numbers.
53461
53462 2006-01-09  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53465         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53466         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53467         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53468
53469 2006-01-09  Bruno Haible  <bruno@clisp.org>
53470
53471         * build-aux/javacomp.sh.in: New file, moved from lib/.
53472         * modules/javacomp-script (Files): Update.
53473         (configure.ac): Add AC_CONFIG_FILES invocation.
53474         (EXTRA_DIST): Remove variable.
53475
53476         * build-aux/javaexec.sh.in: New file, moved from lib/.
53477         * modules/javaexec (Files): Update.
53478         (configure.ac): Add AC_CONFIG_FILES invocation.
53479         (EXTRA_DIST): Remove javaexec.sh.in.
53480
53481         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53482         * modules/csharpcomp-script (Files): Update.
53483         (configure.ac): Add AC_CONFIG_FILES invocation.
53484         (EXTRA_DIST): Remove variable.
53485
53486         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53487         * modules/csharpexec (Files): Update.
53488         (configure.ac): Add AC_CONFIG_FILES invocation.
53489         (EXTRA_DIST): Remove csharpexec.sh.in.
53490
53491 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53492
53493         Sync from coreutils.
53494
53495         Add POSIX ACL support
53496         * lib/acl.h (copy_acl, set_acl): Add declarations.
53497         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53498         systems other than Linux.
53499         (chmod_or_fchmod): New function: use fchmod when possible,
53500         and chmod otherwise.
53501         (file_has_acl): Add a POSIX ACL implementation, with a
53502         Linux-specific subcase.
53503         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53504         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53505         acls are unsupported.
53506         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53507         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53508         are unsupported.
53509
53510 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53511
53512         Sync from coreutils.
53513         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53514
53515 2006-01-07  Bruno Haible  <bruno@clisp.org>
53516
53517         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53518         gl_EARLY.
53519
53520 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53523         Problem reported for Mingw by Mark Junker.
53524
53525 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53526
53527         * README: Gnulib normally doesn't generate a tarball.
53528
53529 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53530
53531         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53532         long int, not int, for nanosecond counts, so that people who are
53533         used to POSIX struct timespec won't be surprised.  Reported by Jim
53534         Meyering.
53535
53536 2005-12-28  Bruno Haible  <bruno@clisp.org>
53537
53538         * build-aux/config.rpath: Update from GNU gettext.
53539
53540 2005-12-16  Jim Meyering  <jim@meyering.net>
53541
53542         * modules/fprintftime: New module.
53543         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53544
53545 2005-12-16  Jim Meyering  <jim@meyering.net>
53546
53547         * m4/fprintftime.m4: New file.
53548
53549 2005-12-16  Jim Meyering  <jim@meyering.net>
53550
53551         * lib/fprintftime.c, lib/fprintftime.h: New files.
53552
53553 2005-12-15  Simon Josefsson  <jas@extundo.com>
53554
53555         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53556         new m4/socklen.m4.
53557
53558 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53559
53560         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53561         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53562
53563 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53564
53565         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53566         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53567         struct uparams is valid. Fall back to the default values if it is
53568         not.
53569
53570 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53571
53572         * modules/argp (Files): Add argp-pin.c
53573         (Depends-on): dirname
53574         (lib_SOURCES): Add argp-pin.c
53575
53576 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53577
53578         * m4/argp.m4:  Check if program_invocation_name and
53579         program_invocation_short_name are declared and define appropriate
53580         macros if they are not.
53581
53582 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53583
53584         * lib/argp-help.c (__argp_base_name): New function
53585         (__argp_short_program_name): Rewrite using __argp_base_name
53586         * lib/argp-namefrob.h: Define program_invocation_name and
53587         program_invocation_short_name if requested
53588         (__argp_base_name): Add prototype
53589         * lib/argp-parse.c (argp_def): Use gettext wrappers
53590         (argp_default_parser): Use __argp_base_name
53591         * lib/argp-pin.c: New file. Defines program_invocation_name and
53592         program_invocation_short_name on systems that lack them.
53593
53594 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53597         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53598         porting problem reported by Georg Schwarz in
53599         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53600
53601 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53604         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53605         porting problem reported by Georg Schwarz in
53606         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53607
53608 2005-12-05  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53611         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53612         Reported by Mark Junker <mjscod@gmx.de>.
53613
53614 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53617         Use implementation from Albert Chin, with some
53618         comments/corrections by Stepan Kasal and myself.
53619
53620 2005-12-02  Bruno Haible  <bruno@clisp.org>
53621
53622         * gnulib-tool (func_import): Accept GPLed build tool modules when
53623         --lgpl is given.
53624         * modules/csharpcomp-script: New file.
53625         * modules/csharpcomp: Depend on it.
53626         * modules/javacomp-script: New file.
53627         * modules/javacomp: Depend on it.
53628         Suggested by Simon Josefsson.
53629
53630 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53631
53632         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53633         statement, to work around an HP-UX 10.20 compiler bug reported by
53634         Peter O'Gorman.
53635
53636 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * modules/savedir (Depends-on): Add openat.
53639
53640 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53641
53642         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53643         (uintmax_t) [defined uintmax_t]: Do not declare.
53644         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53645         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53646         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53647         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53648         sake of portability to weird hosts that C allows (though we don't
53649         know of any practical examples).
53650
53651         * lib/savedir.h (fdsavedir): New decl.
53652         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53653         contains most of the former guts of savedir.
53654         (savedir): Use savedirstream.
53655         Include "openat.h".
53656
53657 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53658
53659         * modules/obstack (Files): Add m4/ulonglong.m4.
53660         Problem reported by Davide Angelocola.
53661
53662 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53665         coreutils no longer futzes with rounding modes.
53666
53667 2005-11-14  Jim Meyering  <jim@meyering.net>
53668
53669         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53670         replacement of mkstemp.
53671
53672 2005-11-10  Simon Josefsson  <jas@extundo.com>
53673
53674         * lib/readline.c: Remove EOL.
53675
53676 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * modules/gethrxtime (Depends-on): Add gettime.
53679
53680 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53683         or gettimeofday; no longer needed.
53684
53685 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53688         time business.
53689         (gethrxtime) [! (HAVE_NANOUPTIME
53690         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53691         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53692         our own approximation.
53693
53694 2005-11-08  Eric Blake  <ebb9@byu.net>
53695
53696         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53697
53698 2005-11-08  Eric Blake  <ebb9@byu.net>
53699
53700         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53701
53702 2005-11-04  Bruno Haible  <bruno@clisp.org>
53703
53704         * gnulib-tool: Implement --update mode.
53705
53706 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         Fix porting problem reported by Theodoros V. Kalamatianos.
53709         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53710         Don't assume that futimes failing means we must fail.
53711
53712 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53715         variables to suggest the intended function of the PATH_MAX check.
53716
53717 2005-10-30  Kean Johnston  <jkj@sco.com>
53718
53719         Trivial changes to support SCO systems.
53720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53721         as PATH_MAX.
53722         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53723         where __ptr is null when no I/O is pending.
53724
53725 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53728         leave errno alone.  Problem reported by Dmitry V. Levin.
53729
53730 2005-10-28  Simon Josefsson  <jas@extundo.com>
53731
53732         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53733         Test more.
53734
53735         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53736
53737         * modules/md2, modules/md2-tests: New files.
53738
53739 2005-10-28  Simon Josefsson  <jas@extundo.com>
53740
53741         * m4/inet_ntop.m4: More tests.
53742
53743         * m4/gc-md2.m4, md2.m4: New file.
53744
53745 2005-10-28  Simon Josefsson  <jas@extundo.com>
53746
53747         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53748         "restrict" keywords, as per POSIX.  Protect the function
53749         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53750         Don't use K&R prototypes.  Check the sprintf return values.
53751         Re-define EAFNOSUPPORT if not present.  Indent.
53752
53753         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53754         suggested by Bruno Haible <bruno@clisp.org>.
53755
53756         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53757
53758         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53759
53760         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53761         libgcrypt).
53762
53763         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53764
53765         * lib/md2.h, lib/md2.c: New files.
53766
53767 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53770         errno alone.  Problem reported by Frederic Jolliton.
53771
53772 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         * modules/verify (License): Change from GPL to LGPL.  This is a
53775         tiny module and there are apparently near-equivalents that are
53776         under the BSD license.
53777
53778 2005-10-24  Simon Josefsson  <jas@extundo.com>
53779
53780         * modules/sha1: Relicense to LGPL.
53781
53782 2005-10-24  Simon Josefsson  <jas@extundo.com>
53783
53784         * lib/md4.h: Shrink buffer size, now that we changed the type.
53785
53786 2005-10-23  Simon Josefsson  <jas@extundo.com>
53787
53788         * gnulib-tool (func_import): Fix --tests-base.
53789
53790 2005-10-22  Simon Josefsson  <jas@extundo.com>
53791
53792         * modules/arcfour (Depends-on): Need stdint.
53793
53794 2005-10-22  Simon Josefsson  <jas@extundo.com>
53795
53796         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53797         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53798
53799 2005-10-22  Simon Josefsson  <jas@extundo.com>
53800
53801         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53802         suggested by Bruno Haible <bruno@clisp.org>.
53803
53804 2005-10-22  Simon Josefsson  <jas@extundo.com>
53805
53806         * lib/crc.h: Include stddef.h, for size_t.
53807
53808 2005-10-22  Simon Josefsson  <jas@extundo.com>
53809
53810         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53811         arcfour_context struct (simplify test vector testing in GNU
53812         Shishi).
53813
53814 2005-10-21  Simon Josefsson  <jas@extundo.com>
53815
53816         * modules/des, modules/des-tests: New files.
53817
53818         * modules/gc-des, modules/gc-des-tests: New files.
53819
53820         * tests/test-des.c, tests/test-gc-des.c: New file.
53821
53822 2005-10-21  Simon Josefsson  <jas@extundo.com>
53823
53824         * modules/arctwo, modules/arctwo-tests: New files.
53825
53826         * tests/test-arctwo.c: New file.
53827
53828         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53829
53830         * tests/test-gc-arctwo.c: New file.
53831
53832 2005-10-21  Simon Josefsson  <jas@extundo.com>
53833
53834         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53835         Bruno Haible <bruno@clisp.org>.
53836
53837         * m4/gc-des.m4: New file.
53838
53839 2005-10-21  Simon Josefsson  <jas@extundo.com>
53840
53841         * m4/arctwo.m4: New file.
53842
53843         * m4/gc-arctwo.m4: New file.
53844
53845 2005-10-21  Simon Josefsson  <jas@extundo.com>
53846
53847         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53848         block.
53849
53850 2005-10-21  Simon Josefsson  <jas@extundo.com>
53851
53852         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53853         <bruno@clisp.org>.
53854
53855         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53856
53857         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53858         Bruno Haible <bruno@clisp.org>.
53859
53860         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53861         <bruno@clisp.org>.
53862
53863 2005-10-21  Simon Josefsson  <jas@extundo.com>
53864
53865         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53866
53867 2005-10-21  Simon Josefsson  <jas@extundo.com>
53868
53869         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53870
53871 2005-10-21  Simon Josefsson  <jas@extundo.com>
53872
53873         * lib/des.h, lib/des.c: New files.
53874
53875         * lib/gc-gnulib.c: Support DES.c
53876
53877 2005-10-21  Simon Josefsson  <jas@extundo.com>
53878
53879         * lib/arctwo.h, lib/arctwo.c: New files.
53880
53881         * lib/gc-gnulib.c: Support ARCTWO.
53882
53883 2005-10-21  Simon Josefsson  <jas@extundo.com>
53884
53885         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53886         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53887
53888 2005-10-21  Simon Josefsson  <jas@extundo.com>
53889
53890         * gnulib-tool (func_import, func_create_testdir): Define automake
53891         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53892         Makefile.am snippet),
53893         suggested by Bruno Haible <bruno@clisp.org>.
53894
53895         * modules/gc (Makefile.am): Use it.
53896
53897 2005-10-21  Bruno Haible  <bruno@clisp.org>
53898
53899         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53900         patch.
53901
53902 2005-10-19  Simon Josefsson  <jas@extundo.com>
53903
53904         * tests/test-gc-rijndael.c: New file.
53905
53906         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53907
53908 2005-10-19  Simon Josefsson  <jas@extundo.com>
53909
53910         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53911         interface too.
53912
53913 2005-10-19  Simon Josefsson  <jas@extundo.com>
53914
53915         * tests/test-gc-arcfour.c: New file.
53916
53917         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53918
53919 2005-10-19  Simon Josefsson  <jas@extundo.com>
53920
53921         * modules/gc-md4, modules/gc-md4-tests: New file.
53922
53923         * tests/test-gc-md4.c: New file.
53924
53925 2005-10-19  Simon Josefsson  <jas@extundo.com>
53926
53927         * m4/gc-md4.m4: New file.
53928
53929 2005-10-19  Simon Josefsson  <jas@extundo.com>
53930
53931         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53932         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53933         <kasal@ucw.cz>.
53934
53935 2005-10-19  Simon Josefsson  <jas@extundo.com>
53936
53937         * m4/gc-arcfour.m4: New file.
53938
53939         * m4/gc-rijndael.m4: New file.
53940
53941 2005-10-19  Simon Josefsson  <jas@extundo.com>
53942
53943         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53944
53945 2005-10-19  Simon Josefsson  <jas@extundo.com>
53946
53947         * lib/gc-gnulib.c: Support ARCFOUR.
53948
53949 2005-10-19  Simon Josefsson  <jas@extundo.com>
53950
53951         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53952         support.
53953
53954         * lib/gc.h: Add ECB enum type.
53955
53956         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53957
53958 2005-10-18  Simon Josefsson  <jas@extundo.com>
53959
53960         * tests/test-md5.c: New file.
53961
53962         * modules/md5-tests: New file.
53963
53964 2005-10-18  Simon Josefsson  <jas@extundo.com>
53965
53966         * tests/test-md4.c: New file.
53967
53968         * modules/md4, modules/md4-tests: New files.
53969
53970 2005-10-18  Simon Josefsson  <jas@extundo.com>
53971
53972         * m4/md4.m4: New file.
53973
53974 2005-10-18  Simon Josefsson  <jas@extundo.com>
53975
53976         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53977
53978 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53979
53980         * gnulib-tool (func_create_testdir): Omit the second check whether
53981         BUILT_SOURCES in nonempty.
53982
53983 2005-10-17  Simon Josefsson  <jas@extundo.com>
53984
53985         * tests/test-rijndael.c: New file.
53986
53987 2005-10-17  Simon Josefsson  <jas@extundo.com>
53988
53989         * modules/sha1: Depend on stdint instead of md5.
53990
53991         * modules/md5: Depend on stdint, remove uint32_t.
53992
53993 2005-10-17  Simon Josefsson  <jas@extundo.com>
53994
53995         * modules/gc-sha1-tests: New file.
53996
53997         * tests/test-gc-sha1.c: New file.
53998
53999 2005-10-17  Simon Josefsson  <jas@extundo.com>
54000
54001         * m4/md5.m4: Remove call to uint32_t.m4.
54002
54003 2005-10-17  Simon Josefsson  <jas@extundo.com>
54004
54005         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54006
54007         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54008         md5.h.
54009
54010         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54011
54012         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54013
54014 2005-10-17  Simon Josefsson  <jas@extundo.com>
54015
54016         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54017
54018 2005-10-17  Simon Josefsson  <jas@extundo.com>
54019
54020         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54021
54022 2005-10-17  Simon Josefsson  <jas@extundo.com>
54023
54024         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54025
54026         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54027
54028 2005-10-17  Bruno Haible  <bruno@clisp.org>
54029
54030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54031         that it can also be used in a test.
54032
54033 2005-10-16  Bruno Haible  <bruno@clisp.org>
54034
54035         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54036         TESTS_ENVIRONMENT, so that individual tests can augment it.
54037
54038         * gnulib-tool (func_create_testdir): Use an intermediate target for
54039         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54040         macros, like $(ALLOCA_H), which cannot be passed through the command
54041         line.
54042
54043 2005-10-15  Simon Josefsson  <jas@extundo.com>
54044
54045         * modules/rijndael-tests: New file.
54046
54047         * modules/rijndael: New file.
54048
54049 2005-10-15  Simon Josefsson  <jas@extundo.com>
54050
54051         * m4/rijndael.m4: New file.
54052
54053 2005-10-15  Simon Josefsson  <jas@extundo.com>
54054
54055         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54056
54057         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54058
54059 2005-10-14  Simon Josefsson  <jas@extundo.com>
54060
54061         * tests/test-arcfour.c: New file.
54062
54063         * modules/arcfour, modules/arcfour-tests: New files.
54064
54065 2005-10-14  Simon Josefsson  <jas@extundo.com>
54066
54067         * m4/arcfour.m4: New file.
54068
54069 2005-10-14  Simon Josefsson  <jas@extundo.com>
54070
54071         * lib/arcfour.h, lib/arcfour.c: New files.
54072
54073 2005-10-14  Roland McGrath  <roland@redhat.com>
54074
54075         Import from libc.  [BZ #1331]
54076         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54077         macro argument.
54078         Reported by Matej Vela <vela@debian.org>.
54079
54080 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54083         include <wchar.h>; no longer needed.
54084
54085 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54086
54087         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54088
54089 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54090         and  Ulrich Drepper  <drepper@redhat.com>
54091
54092         Import from libc.
54093         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54094         instead of inline stream orientation test and two separate
54095         function calls.  Pay no attention to USE_IN_LIBIO.
54096
54097 2005-10-13  Simon Josefsson  <jas@extundo.com>
54098
54099         * modules/gc-hmac-md5-tests: New file.
54100
54101         * tests/test-gc-hmac-sha1.c: New file.
54102
54103         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54104
54105         * modules/gc-hmac-md5-tests: New file.
54106
54107         * tests/test-gc-md5.c: New file.
54108
54109         * modules/gc-md5-tests: New file.
54110
54111 2005-10-13  Simon Josefsson  <jas@extundo.com>
54112
54113         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54114         Move memory allocation outside of loop.
54115
54116 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54119         intermediate directory is in a read-only file system.  Problem
54120         reported by Eric Blake.
54121
54122 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54123
54124         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54125
54126 2005-10-12  Simon Josefsson  <jas@extundo.com>
54127
54128         * tests/test-hmac-sha1.c: New file.
54129
54130         * modules/hmac-sha1-tests: New file.
54131
54132         * modules/hmac-sha1: New file.
54133
54134 2005-10-12  Simon Josefsson  <jas@extundo.com>
54135
54136         * modules/gc-sha1: New file.
54137
54138 2005-10-12  Simon Josefsson  <jas@extundo.com>
54139
54140         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54141
54142         * tests/test-gc-pbkdf2-sha1.c: New file.
54143
54144 2005-10-12  Simon Josefsson  <jas@extundo.com>
54145
54146         * modules/gc-md5, modules/gc-hmac-md5: New files.
54147
54148         * modules/gc (Files): Remove md5, memxor and hmac files.
54149
54150 2005-10-12  Simon Josefsson  <jas@extundo.com>
54151
54152         * m4/gc-pbkdf2-sha1.m4: New file.
54153
54154         * m4/gc-hmac-sha1.m4: New file.
54155
54156         * m4/gc-sha1: New file.
54157
54158         * m4/hmac-sha1.m4: New file.
54159
54160 2005-10-12  Simon Josefsson  <jas@extundo.com>
54161
54162         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54163
54164         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54165
54166 2005-10-12  Simon Josefsson  <jas@extundo.com>
54167
54168         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54169         suggested by Bruno Haible <bruno@clisp.org>.
54170
54171 2005-10-12  Simon Josefsson  <jas@extundo.com>
54172
54173         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54174
54175 2005-10-12  Simon Josefsson  <jas@extundo.com>
54176
54177         * lib/gc-pbkdf2-sha1.c: New file.
54178
54179         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54180
54181 2005-10-12  Simon Josefsson  <jas@extundo.com>
54182
54183         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54184
54185         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54186
54187 2005-10-12  Simon Josefsson  <jas@extundo.com>
54188
54189         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54190         GC_USE_HMAC_MD5, respectively.
54191
54192         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54193         (gc_md5): Fix typo.
54194
54195         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54196
54197         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54198
54199         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54200
54201 2005-10-12  Bruno Haible  <bruno@clisp.org>
54202
54203         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54204         Reported by Stepan Kasal <kasal@ucw.cz>.
54205
54206 2005-10-11  Simon Josefsson  <jas@extundo.com>
54207
54208         * tests/test-crc.c: New file.
54209
54210         * modules/crc, modules/crc-tests: New files.
54211
54212 2005-10-11  Simon Josefsson  <jas@extundo.com>
54213
54214         * m4/crc.m4: New file.
54215
54216 2005-10-11  Simon Josefsson  <jas@extundo.com>
54217
54218         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54219
54220         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54221
54222         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54223
54224 2005-10-11  Simon Josefsson  <jas@extundo.com>
54225
54226         * lib/crc.h, lib/crc.c: New files.
54227
54228         * lib/gc.h (gc_hash_buffer): Add doc.
54229
54230 2005-10-11  Bruno Haible  <bruno@clisp.org>
54231
54232         * modules/c-strcasestr: New file.
54233         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54234
54235 2005-10-11  Bruno Haible  <bruno@clisp.org>
54236
54237         * modules/c-strcase: New file.
54238         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54239
54240 2005-10-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/strcasecmp.c: Include limits.h.
54243         (strcasecmp): Avoid integer overflow on exotic platforms.
54244         * lib/strncasecmp.c: Include limits.h.
54245         (strncasecmp): Avoid integer overflow on exotic platforms.
54246         Reported by Paul Eggert.
54247
54248 2005-10-11  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/c-strcasestr.h: New file, from GNU gettext.
54251         * lib/c-strcasestr.c: New file, from GNU gettext.
54252
54253 2005-10-11  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/c-strcase.h: New file, from GNU gettext.
54256         * lib/c-strcasecmp.c: New file, from GNU gettext.
54257         * lib/c-strncasecmp.c: New file, from GNU gettext.
54258
54259 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54260
54261         * modules/mempcpy (License): GPL -> LGPL.
54262         * modules/strchrnul (License): Likewise.
54263         * modules/sysexits (License): Likewise.
54264
54265 2005-10-08  Simon Josefsson  <jas@extundo.com>
54266
54267         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54268
54269 2005-10-07  Simon Josefsson  <jas@extundo.com>
54270
54271         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54272
54273 2005-10-06  Simon Josefsson  <jas@extundo.com>
54274
54275         * tests/test-hmac-md5.c: New file.
54276
54277         * modules/hmac-md5-tests: New file.
54278
54279         * modules/hmac-md5: New file.
54280
54281 2005-10-06  Simon Josefsson  <jas@extundo.com>
54282
54283         * m4/hmac-md5.m4: New file.
54284
54285         * m4/memxor.m4: Require gl_C_RESTRICT.
54286
54287 2005-10-06  Simon Josefsson  <jas@extundo.com>
54288
54289         * lib/memxor.c (memxor): Avoid casts and warnings.
54290
54291 2005-10-06  Simon Josefsson  <jas@extundo.com>
54292
54293         * lib/hmac-md5.c: New file.
54294
54295         * lib/hmac.h: New file.
54296
54297 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54300         promotes to int, not unsigned int, to catch the AIX 5.3
54301         compiler bug.
54302
54303 2005-10-05  Simon Josefsson  <jas@extundo.com>
54304
54305         * modules/memxor: New file.
54306
54307         * modules/iconv (Files): Move config.rpath to havelib, it is used
54308         there.
54309
54310         * modules/havelib (Files): Add config.rpath.
54311
54312 2005-10-05  Simon Josefsson  <jas@extundo.com>
54313
54314         * m4/memxor.m4: New file.
54315
54316 2005-10-05  Simon Josefsson  <jas@extundo.com>
54317
54318         * lib/memxor.c (memxor): Fix compiler error.
54319
54320         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54321         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54322
54323         * lib/memxor.h, lib/memxor.c: New files.
54324
54325         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54326         we assume all systems have it, suggested by Jim Meyering
54327         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54328         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54329         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54330         same reasons.
54331
54332 2005-10-05  Simon Josefsson  <jas@extundo.com>
54333
54334         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54335
54336 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54339         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54340         needed, since the source code now assumes these .h files.
54341
54342 2005-10-05  Derek Price  <derek@ximbiot.com>
54343
54344         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54345
54346 2005-10-05  Bruno Haible  <bruno@clisp.org>
54347
54348         * modules/stdint (License): Change to LGPL.
54349
54350 2005-10-04  Simon Josefsson  <jas@extundo.com>
54351
54352         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54353         D. Baushke" <mdb@gnu.org>.
54354
54355 2005-10-04  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/verify.h (verify_true): Provide alternative definition for C++.
54358
54359 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54360
54361         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54362         (SSIZE_MAX): New macro, if not already defined.
54363         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54364         than 2 GiB.
54365
54366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         Sync from coreutils.
54369         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54370         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54371         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54372         ULLONG_MAX doesn't work with 2.7.2.1.
54373
54374 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54375
54376         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54377         From Ben Pfaff.
54378
54379         * modules/exclude (Depends-on): Depend on verify.
54380         * modules/strtoimax (Depends-on): Likewise.
54381         * modules/utimecmp (Depends-on): Likewise.
54382
54383 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54384
54385         * lib/exclude.c: Include verify.h.
54386         (verify): Remove.  All callers changed to use verify.h's version.
54387         * lib/strtoimax.c: Likewise.
54388         * lib/utimecmp.c: Likewis.e
54389
54390         Sync from coreutils.
54391         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54392         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54393         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54394         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54395         bother returning ENOSYS if settimeofday or stime fails; just let
54396         them return whatever errno they want to return.
54397         * lib/utimens.c: Include unistd.h, for dup2.
54398         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54399         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54400
54401 2005-10-02  Jim Meyering  <jim@meyering.net>
54402
54403         Sync from coreutils.
54404         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54405         from glibc-2.2.5 that fails for read-only files.
54406
54407 2005-10-02  Jim Meyering  <jim@meyering.net>
54408
54409         Sync from coreutils.
54410         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54411         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54412         `#if HAVE_CONFIG_H'.
54413         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54414         Remove AT_FDCWD test.
54415         Do not consume the fd unless successful.
54416         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54417         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54418         block, so that we don't even try to compile it if settimeofday is
54419         available.  This works around a compilation failure on OSF1 V5.1,
54420         due to stime requiring a `long int*' while tv_sec is `int'.
54421
54422 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54423
54424         Sync from coreutils.
54425         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54426         against `yes', rather than just testing for nonempty.
54427
54428 2005-10-01  Simon Josefsson  <jas@extundo.com>
54429
54430         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54431         and Darwin.
54432
54433         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54434         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54435         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54436         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54437         Check if struct addrinfo is declared.
54438
54439 2005-10-01  Simon Josefsson  <jas@extundo.com>
54440
54441         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54442         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54443         AI_* and EAI_* definitions.  Protect function declarations.
54444
54445 2005-10-01  Jim Meyering  <jim@meyering.net>
54446
54447         Sync from coreutils.
54448
54449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54450         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54451         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54453         in the inet and nsl libraries.  Required on Solaris 5.7.
54454
54455 2005-10-01  Jim Meyering  <jim@meyering.net>
54456
54457         Sync from coreutils.
54458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54459         in the inet and nsl libraries.  Required on Solaris 5.7.
54460
54461 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54462
54463         * lib/getdelim.c (getdelim): Remove unused variables.
54464
54465 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54468         so that the code works even with ancient cpp.  Portability problem
54469         with GCC 2.7.2.1 reported by Thomas M.Ott.
54470
54471 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54472
54473         * modules/regex (Depends-on): Add strcase.
54474
54475         * modules/gethostname (Licence): Change from GPL to LGPL, since
54476         gethostname.c is a trivial implementation of a standard library
54477         function.
54478         * modules/poll (License): Change from GPL to LGPL, since it's
54479         derived from LGPL code.
54480
54481 2005-09-27  Jim Meyering  <jim@meyering.net>
54482
54483         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54484         HAVE_CONFIG_H.
54485
54486         * lib/intprops.h (signed_type_or_expr__): Define.
54487         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54488         for unsigned types.
54489
54490 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * lib/verify.h (verify_expr): Remove, replacing with:
54493         (verify_true): New macro that returns true instead of void.
54494         (verify_type__): Remove.
54495         (verify): Use verify_true rather than verify_type__.
54496
54497 2005-09-26  Bruno Haible  <bruno@clisp.org>
54498
54499         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54500         is necessary.
54501         (lib_SOURCES): Remove mbchar.c.
54502         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54503         (Files): Add m4/mbrtowc.m4.
54504         * modules/mbiter: Likewise.
54505         * modules/mbuiter: Likewise.
54506
54507 2005-09-26  Bruno Haible  <bruno@clisp.org>
54508
54509         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54510         compile mbchar.c if they are not both present.
54511         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54512         * m4/mbiter.m4 (gl_MBITER): Likewise.
54513         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54514         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54515         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54516
54517 2005-09-25  Jim Meyering  <jim@meyering.net>
54518
54519         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54520         also uses socklen_t.
54521
54522 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * lib/utimens.c (ENOSYS): Define if not already defined.
54525         (futimens): Support having a null PATH if the file descriptor
54526         is nonnegative.
54527
54528         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54529         Remove.
54530         (__attribute): Define to empty unless GCC 3.1 or later.
54531         This works around a core dump on OpenBSD 3.4, which has GCC
54532         2.95.3, which dumps core when given __attribute__(()).  It also
54533         simplifies other tests, since we really don't want to bother with
54534         worrying about which ancient version of GCC supported what.
54535         Original problem reported by Yoann Vandoorselaere, with part of
54536         the fix suggested by Derek Price.
54537
54538 2005-09-24  Jim Meyering  <jim@meyering.net>
54539
54540         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54541         so we can once again use a positive bitfield width of 1 -- now we
54542         don't have to explain why we were using a bitfield width of 2.
54543
54544 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54545
54546         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54547         and similarly for the other external symbols.  Problem reported
54548         by James Gallager.
54549
54550         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54551         bug reported by Jim Meyering.
54552
54553         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54555         not needed, since socklen is a prerequisite module.
54556
54557 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54560         Problem reported by Eric Blake.
54561         (getaddrinfo): Initialize se so that it's not garbage.
54562         Redo internal storage allocation so that it doesn't make unportable
54563         assumptions about alignment.
54564         Fix a memory leak.
54565
54566         * lib/utimens.c (futimens): Use futimesat if available.
54567         Prefer it to futimes since it doesn't have the futimes bug.
54568
54569         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54570         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54571         Instead, declare a function that returns a pointer to an array,
54572         and use verify_type__ to declare the size of the array.
54573         Problem and germ of a solution reported by Bruno Haible.
54574         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54575         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54576
54577 2005-09-23  Jim Meyering  <jim@meyering.net>
54578
54579         Sync from coreutils.
54580         Correct build failure (socklen_t not defined) on at least
54581         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54582         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54583
54584 2005-09-23  Jim Meyering  <jim@meyering.net>
54585
54586         * modules/getaddrinfo (Depends-on): Add socklen.
54587
54588 2005-09-23  Bruno Haible  <bruno@clisp.org>
54589
54590         * tests/test-verify.c: New file.
54591
54592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         Sync from coreutils.
54595
54596         * modules/argmatch (Depends-on): Add verify.
54597         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54598         unistd-safer.
54599         * modules/save-cwd (Depends-on): Likewise.
54600
54601         * modules/openat (Files): Add lib/openat-die.c.
54602         (Depends-on): Remove error, exitfail.
54603         Add dirname.
54604
54605         * modules/verify: New file.
54606         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54607         with "verify" module.
54608
54609 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         Sync from coreutils.
54612
54613         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54614         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54615         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54616         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54617         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54618         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54619         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54620         Don't bother checking for string.h, stdlib.h, unistd.h.
54621         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54622         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54623         module's job.
54624         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54625         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54626
54627         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54628         (gl_GETDATE): Use it.
54629
54630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54631
54632 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         Sync from coreutils.
54635
54636         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54637         stat-time.h.
54638         * lib/argmatch.h: Include verify.h
54639         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54640         (ARGMATCH_ASSERT): Remove; unused.
54641         * lib/canonicalize.c: Assume STDC_HEADERS.
54642         * lib/exclude.c: Include "strcase.h".
54643         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54644         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54645         and stdio-safer.h.
54646         (getusershell): Call fopen, not fopen_safer.
54647         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54648         Do not include unistd-safer.h.
54649         (save_cwd): Don't call fd_safer; no longer needed
54650         now that we include fcntl--.h.
54651
54652         * lib/getdate.y (relative_time): New type.
54653         (RELATIVE_TIME_0): New constant.
54654         (parser_control): Use relative_time instead of doing it ourselves.
54655         (%union): Add new relative_time rel member.
54656         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54657         Now typeless.
54658         (relunit, relunit_snumber): Now of type rel.
54659         (zone, rel, relunit, get_date): Adjust to above changes.
54660
54661         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54662         Do not include unistd-safer.h.
54663         (getloadavg): Don't call fd_safer; no longer needed
54664         now that we include fcntl--.h.
54665
54666         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54667         (make_dir_parents): Treat ENOSYS like EEXIST.
54668
54669         Improve quality of diagnostics on restore_cwd failure.
54670         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54671         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54672         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54673         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54674         each time through the loop.  Do not diagnose restore_cwd failure;
54675         that is the caller's job (and perhaps the caller does not care).
54676
54677         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54678         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54679         If the file already exists but is not a directory, don't bother
54680         to try to make its parents.
54681         Close potential file descriptor leak if we can't chdir("/") (!).
54682         Don't always return true if chdir($PWD) fails; return true only
54683         if the requested action was done successfully (except for the
54684         chdir($PWD)).
54685         Don't log final directory unless we actually made it.
54686         Refactor to avoid duplicate code to fix up permissions.
54687         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54688
54689         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54690         to make it a bit faster and (I hope) clearer.
54691         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54692         Fix bug in formats like %2N.
54693
54694         * lib/verify.h: New file.
54695
54696 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         Sync from coreutils.
54699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54700
54701 2005-09-22  Jim Meyering  <jim@meyering.net>
54702
54703         Sync from coreutils.
54704
54705         * m4/lstat.m4 (gl_FUNC_LSTAT):
54706         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54707         Remove obsolete comment.
54708         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54709         * m4/xstrtod.m4: Likewise.
54710
54711         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54712
54713 2005-09-22  Jim Meyering  <jim@meyering.net>
54714
54715         Sync from coreutils.
54716
54717         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54718
54719         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54720         the .tm_year member, since otherwise gcc-4.0 would now warn about
54721         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54722
54723         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54724         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54725
54726         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54727         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54728         when run in a time zone for which daylight savings time is in effect
54729         for the starting date.
54730
54731         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54732         stop us from restricting permissions of just-created absolute-named
54733         directories.
54734         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54735         to restore initial working directory.
54736         * lib/mkdir-p.c (make_dir_parents): New parameter:
54737         different_working_dir, to tell caller if/when we change the working
54738         directory and are unable to return to the initial one.
54739         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54740         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54741         `return false'.  This fixes a bug introduced on 2004-07-30.
54742
54743         * lib/openat.c (fdopendir): Be sure to close the supplied
54744         file descriptor before returning.  This makes our replacement
54745         implementation a little closer to Solaris's, where fdopendir
54746         ties the file descriptor to the returned DIR* pointer.
54747         * lib/openat.c (unlinkat): New function.
54748         * lib/openat.h (unlinkat): Add prototype.
54749         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54750         (openat_restore_fail): Rename from openat_restore_die.
54751         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54752
54753         Provide an alternative to exiting immediately upon save_cwd or
54754         restore_cwd failure.  Now, an application can arrange e.g.,
54755         to perform a longjump in that case.
54756         * lib/openat.c: Include dirname.h.
54757         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54758         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54759         and openat_restore_die rather than calling error directly.
54760         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54761
54762         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54763         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54764         define.
54765
54766         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54767         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54768                             int utc, int nanoseconds);
54769         Background:
54770         date should not have to allocate a megabyte of virtual memory to
54771         handle a format argument like +%1048575T.  When implemented with
54772         strftime, it must allocate such a buffer, use strftime to fill it
54773         in, print it, then free it.
54774         With fprintftime, it simply prints everything and exits.
54775         With no need for memory allocation, that's one fewer way to fail.
54776         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54777         optional field width, not before, so we accept %9:z, not %:9z.
54778         (my_strftime): Be sure to use L_('x') for literals.
54779
54780         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54781         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54782         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54783         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54784         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54785         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54786         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54787         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54788         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54789         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54790         * lib/xgethostname.c, lib/xreadlink.c:
54791         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54792
54793         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54794         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54795         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54796         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54797         and don't include <sys/file.h>).
54798
54799 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54800
54801         Sync from coreutils.
54802
54803         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54804         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54805         [!LDAV_DONE]: Avoid unused variable warning.
54806
54807 2005-09-21  Bruno Haible  <bruno@clisp.org>
54808
54809         * lib/unicodeio.h (unicode_to_mb): New declaration.
54810
54811 2005-09-20  Derek Price  <derek@ximbiot.com>
54812
54813         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54814         getaddrinfo.h.
54815
54816 2005-09-20  Bruno Haible  <bruno@clisp.org>
54817
54818         * gnulib-tool: Remove trailing slashes from the values specified for
54819         --source-base, --m4-base, --tests-base, --aux-dir.
54820         Suggested by Simon Josefsson <jas@extundo.com>.
54821
54822 2005-09-20  Bruno Haible  <bruno@clisp.org>
54823
54824         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54825         func_modules_to_filelist, func_import, func_create_testdir): Make all
54826         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54827         change when gnulib-tool is invoked in a different locale.
54828
54829 2005-09-19  Simon Josefsson  <jas@extundo.com>
54830
54831         * m4/socklen.m4: Fix typo.
54832
54833 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54834
54835         Use a consistent style for including <config.h>.
54836         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54837         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54838         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54839         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54840         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54841         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54842         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54843         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54844         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54845         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54846         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54847         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54848         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54849         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54850         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54851         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54852         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54853         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54854         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54855         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54856         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54857         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54858         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54859         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54860         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54861         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54862         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54863         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54864         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54865         lib/xstrtoumax.c, lib/yesno.c:
54866         Standardize inclusion of config.h.
54867         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54868         lib/inttostr.h:  Removed inclusion of config.h from header files.
54869         * lib/inttostr.c:  Adjusted in-tree users.
54870         * lib/timespec.h: Remove superfluous warning to include config.h.
54871         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54872         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54873         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54874         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54875         config.h with HAVE_CONFIG_H.
54876
54877 2005-09-19  Jim Meyering  <jim@meyering.net>
54878
54879         * modules/pathmax (License): Change to LGPL.
54880
54881 2005-09-19  Derek Price  <derek@ximbiot.com>
54882
54883         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54884
54885 2005-09-19  Bruno Haible  <bruno@clisp.org>
54886
54887         * gnulib-tool (import): Provide default for --tests-base.
54888
54889 2005-09-19  Bruno Haible  <bruno@clisp.org>
54890
54891         * doc/quote.texi: New file, extracted from gnulib.texi.
54892         * doc/ctime.texi: New file, extracted from gnulib.texi.
54893         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54894         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54895         * doc/gnulib.texi: Include them.
54896
54897 2005-09-18  Bruno Haible  <bruno@clisp.org>
54898
54899         Portability fix.
54900         * gnulib-tool (func_readlink): New function.
54901         (func_ln_if_changed): Use it.
54902
54903 2005-09-18  Bruno Haible  <bruno@clisp.org>
54904
54905         * gnulib-tool: Support --with-tests also with --import.
54906         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54907         (func_import): Use variables $testsbase and $inctests. Emit a
54908         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54909         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54910         SUBDIRS += $testsdir.
54911         (func_create_testdir): Update.
54912
54913 2005-09-18  Bruno Haible  <bruno@clisp.org>
54914
54915         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54916         instead of $dry_run.
54917         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54918         (func_ln_if_changed): Don't handle dry-run here.
54919         (func_import): In dry-run mode, detect more precisely which actions
54920         would be performed, and don't use "...ing" verbs.
54921
54922 2005-09-18  Bruno Haible  <bruno@clisp.org>
54923
54924         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54925         (func_import): Use join on two temporary files instead of three nested
54926         loops, in order to determine which files are new or old.
54927
54928 2005-09-18  Bruno Haible  <bruno@clisp.org>
54929
54930         * gnulib-tool (func_import): Comment out code that spits out the
54931         new files with --dry-run.
54932
54933 2005-09-18  Bruno Haible  <bruno@clisp.org>
54934
54935         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54936
54937 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * lib/stat-time.h: New file.
54940         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54941         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54942         in a different way.
54943         (timespec_cmp): New function.
54944         * lib/utimecmp.c: Include stat-time.h.
54945         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54946         members exist, not on the obsolescent ST_MTIM_NSEC.
54947         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54948
54949 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54950
54951         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54952
54953 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54954
54955         * MODULES.html.sh (File system functions): Add stat-time.
54956         * modules/stat-time: New file.
54957         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54958         is now done in a different way, by the stat-time module.
54959         * modules/utimecmp (Depends-on): Add stat-time.
54960
54961 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * m4/st_mtim.m4: Remove.  Superseded by...
54964         * m4/stat-time.m4: New file.
54965         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54966         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54967
54968 2005-09-15  Derek Price  <derek@ximbiot.com>
54969
54970         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54971
54972 2005-09-15  Derek Price  <derek@ximbiot.com>
54973
54974         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54975         * lib/regex_internal.c: Ditto, using this...
54976         (__GNUC_PREREQ): ...new macro.
54977         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54978         using...
54979         (__GNUC_PREREQ): ...this new macro.
54980
54981         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54982
54983 2005-09-15  Derek Price  <derek@ximbiot.com>
54984             Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54987         changes, consolidating in...
54988         * lib/regex_internal.h: ...this file.
54989
54990 2005-09-13  Jim Meyering  <jim@meyering.net>
54991
54992         * lib/canon-host.c: Filter through gnu indent and reword comments
54993         slightly.
54994         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54995
54996 2005-09-13  Derek Price  <derek@ximbiot.com>
54997
54998         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54999         failure.
55000         Reported by Jim Meyering  <jim@meyering.net>.
55001
55002 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55003
55004         * lib/base64.c: Typo.
55005         (base64_encode): Put b64str in initialized data section.
55006
55007 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         Merge glibc and coreutils changes into gnulib, plus a few
55010         extra fixes.
55011         * lib/md5.c: Use #error rather than a string.
55012         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55013         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55014         (__attribute__): Define to empty for non recent-GCC.
55015         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55016         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55017         Renamed from their non-__ counterparts, with new macros replacing
55018         them if not _LIBC.  Add __THROW attribute.
55019         (rol): Remove.
55020         (struct md5_ctx): Align buffer if using GCC.
55021         * lib/sha1.h (struct sha1_ctx): Likewise.
55022         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55023         The old name was backwards.
55024         (NOTSWAP): Remove; not used.
55025         (rol): New macro, moved here from md5.h.
55026         (sha1_process_block): Remove a FIXME that doesn't make sense.
55027
55028 2005-09-12  Derek Price  <derek@ximbiot.com>
55029
55030         Return usable errors from canon-host.
55031         * lib/canon-host.h: New file.
55032         * lib/canon-host.c (canon_host): Wrap...
55033         (canon_host_r): ...this new function, which now relies exclusively on
55034         getaddrinfo.
55035         (ch_strerror): New function.
55036         (last_cherror): New global.
55037         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55038         interface.
55039         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55040         void *.
55041         (freeaddrinfo): Free ai->ai_canonname when set.
55042
55043 2005-09-12  Derek Price  <derek@ximbiot.com>
55044
55045         Make canon-host require getaddrinfo.
55046         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55047         AC_LIBSOURCE canon-host.h.  Call...
55048         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55049         gl_GETADDRINFO.
55050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55051
55052 2005-09-12  Derek Price  <derek@ximbiot.com>
55053
55054         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55055         LGPL.
55056         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55057
55058 2005-09-12  Derek Price  <derek@ximbiot.com>
55059
55060         * lib/gai_strerror.c: Include config.h when available.  Include
55061         getaddrinfo.h before other headers to test interface.
55062         Reported by Larry Jones <lawrence.jones@ugs.com>.
55063
55064 2005-09-12  Derek Price  <derek@ximbiot.com>
55065             Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * modules/glob (Files): Add glob-libc.h.
55068
55069 2005-09-12  Derek Price  <derek@ximbiot.com>
55070             Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55073         glob_.h, glob-libc.h.
55074         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55075
55076 2005-09-12  Derek Price  <derek@ximbiot.com>
55077             Paul Eggert  <eggert@cs.ucla.edu>
55078
55079         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55080         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55081         protecting things that should be done only in gnulib contexts.
55082         * lib/glob_.h: New file, containing only the glob things needed for
55083         gnulib.
55084         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55085         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55086         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55087         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55088         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55089         and to respect the namespace rules better.
55090
55091 2005-09-08  Simon Josefsson  <jas@extundo.com>
55092
55093         * modules/socklen: New file.
55094
55095 2005-09-08  Simon Josefsson  <jas@extundo.com>
55096
55097         * m4/socklen.m4: New file.
55098
55099 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * modules/utimens (Files): Add m4/utimbuf.m4, since
55102         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55103         Reported by Sergey Poznyakoff.
55104
55105 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55108         definitions, since that's the preferred style in glibc.
55109         Fix a minor spacing issue, and update copyright notice to match
55110         glibc's.
55111
55112 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55115
55116 2005-09-06  Simon Josefsson  <jas@extundo.com>
55117
55118         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55119         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55120
55121 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55122
55123         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55124         warning.
55125
55126 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55127
55128         * config/srclist.txt: Add glibc bug 1302.
55129
55130 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         Change bitset word type from unsigned int to unsigned long int,
55133         as this has better performance on typical 64-bit hosts.
55134         Port bitset code to hosts with unusual word sizes.
55135         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55136         (build_collating_symbol):
55137         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55138         argument is a bitset.  This is merely a style issue, but it makes
55139         it clearer that an entire array is expected.
55140         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55141         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55142         Port to the case where bitset_word is not the same as unsigned int.
55143         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55144         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55145         Likewise.
55146         * lib/regexec.c (check_dst_limits_calc_pos_1,
55147         check_subexp_matching_top):
55148         (build_trtable, group_nodes_into_DFAstates):
55149         Likewise.
55150         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55151         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55152         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55153         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55154         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55155         * lib/regcomp.c (optimize_subexps, lower_subexp):
55156         Work even if bitset_word has holes in its bitwise representation.
55157         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55158         * lib/regexec.c (check_dst_limits_calc_pos_1,
55159         check_subexp_matching_top):
55160         Likewise.
55161         * lib/regex_internal.c (re_string_reconstruct):
55162         Don't assume UCHAR_MAX == 255.
55163         * lib/regex_internal.h (bitset_set_all): Likewise.
55164         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55165         All uses changed.
55166         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55167         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55168         All uses changed.
55169         (BITSET_WORD_MAX): New macro.
55170         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55171         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55172         (bitset_empty, bitset_copy):
55173         Prefer sizeof (bitset) to multiplying it out ourselves.
55174         (bitset_not_merge): Remove; unused.
55175         (bitset_contain): Return bool, not unsigned int with one bit on.
55176         All callers changed.
55177         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55178         alignment than re_node_set; do this by defining a new internal
55179         type struct dests_alloc and using it to allocate memory.
55180
55181 2005-09-05  Bruno Haible  <bruno@clisp.org>
55182
55183         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55184         links.
55185
55186 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55187
55188         * modules/size_max (Makefile.am): Add size_max.h
55189
55190 2005-09-04  Derek Price  <derek@ximbiot.com>
55191
55192         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55193
55194 2005-09-03  Simon Josefsson  <jas@extundo.com>
55195
55196         * gnulib-tool: Fix typo.
55197
55198 2005-09-03  Simon Josefsson  <jas@extundo.com>
55199
55200         * config/srclist.txt: Add glibc bug 1293.
55201
55202 2005-09-03  Derek Price  <derek@ximbiot.com>
55203
55204         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55205         From Larry Jones <lawrence.jones@ugs.com>.
55206
55207 2005-09-02  Simon Josefsson  <jas@extundo.com>
55208
55209         * modules/socklen: New file.
55210
55211 2005-09-02  Simon Josefsson  <jas@extundo.com>
55212
55213         * modules/havelib: New module.
55214
55215         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55216         Use havelib.
55217
55218 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55219
55220         Check for arithmetic overflow when calculating sizes, to prevent
55221         some buffer-overflow issues.  These patches are conservative, in the
55222         sense that when I couldn't determine whether an overflow was possible,
55223         I inserted a run-time check.
55224         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55225         macros.
55226         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55227         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55228         (re_xnrealloc, re_x2nrealloc): New inline functions.
55229         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55230         parse_bracket_exp):
55231         (build_equiv_class, build_charclass): Check for arithmetic overflow
55232         in size expression calculations.
55233         * lib/regex_internal.c (re_string_realloc_buffers):
55234         (build_wcs_upper_buffer, re_node_set_add_intersect):
55235         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55236         (re_dfa_add_node, register_state): Likewise.
55237         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55238         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55239         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55240         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55241
55242 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55245         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55246
55247 2005-09-02  Bruno Haible  <bruno@clisp.org>
55248
55249         Support for lib vs. lib64 distinction on biarch platforms.
55250         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55251         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55253
55254 2005-09-02  Bruno Haible  <bruno@clisp.org>
55255
55256         * gnulib-tool (import): In the other first-use case, provide defaults
55257         as well.
55258
55259 2005-09-02  Bruno Haible  <bruno@clisp.org>
55260
55261         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55262         patches not yet found in the latest gettext release.
55263
55264 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55267         to avoid a collision with bits/local_lim.h in glibc.
55268         All uses changed.  Problem reported by Dmitry V. Levin in
55269         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55270
55271         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55272         bugs in int versus size_t comparisons.
55273         (re_string_context_at): Fix bug where the code assumed that
55274         Idx is signed.
55275
55276         Use bool where appropriate.
55277         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55278         All callers changed.
55279         (calc_eclosure_iter): Likewise, for ROOT arg.
55280         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55281         (build_charclass_op): Likewise, for NON_MATCH arg.
55282         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55283         (re_string_construct_common): Likewise, for ICASE arg.
55284         * lib/regexec.c (re_search_2_stub, re_search_stub):
55285         Likewise, for RET_LEN arg.
55286         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55287         (set_regs): Likewise, for FL_BACKTRACK arg.
55288         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55289         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55290         (calc_eclosure_iter, parse_bracket_exp):
55291         Use bool for internal variables that are booleans.
55292         * lib/regexec.c (re_search_internal, check_matching,
55293         proceed_next_node):
55294         (set_regs, build_sifted_states, sift_states_bkref):
55295         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55296         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55297         (find_collation_sequence_value):
55298         Likewise.
55299         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55300         (re_node_set_compare):
55301         Return bool, not int. All callers changed.
55302         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55303         (build_trtable, check_node_accept): Likewise.
55304         * lib/regex_internal.h: Include stdbool.h.
55305
55306         Fix bugs uncovered when converting to bool.
55307         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55308         failure instead of charging ahead blindly.
55309         * lib/regex_internal.c (register_state): Likewise.
55310         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55311         for freeing internal storage.
55312         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55313         bitset pieces used as boolean, to avoid undefined behavior
55314         on hosts that do int overflow checking.
55315
55316 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         * config/srclist.txt: Add glibc bugs 1285-1287.
55319
55320 2005-09-01  Jim Meyering  <jim@meyering.net>
55321
55322         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55323         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55324         Require gl_STAT_MACROS, too.
55325
55326 2005-09-01  Bruno Haible  <bruno@clisp.org>
55327
55328         * gnulib-tool (import): In the first-use case, provide defaults.
55329
55330 2005-09-01  Bruno Haible  <bruno@clisp.org>
55331
55332         * gnulib-tool (func_import): Remove the .tmp files.
55333
55334 2005-09-01  Bruno Haible  <bruno@clisp.org>
55335
55336         * gnulib-tool (func_import): Fix handling of symbolic links.
55337
55338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55341         old glibc regex code mishandles strings longer than 2**31 bytes.
55342         This patch fixes this when the regex code is used in gnulib
55343         (i.e., outside glibc).
55344
55345         This patch should not affect the use of the regex code inside
55346         glibc.  No doubt this problem also needs to be handled for glibc
55347         as well, but the result will be an incompatible change to the
55348         glibc ABI, and the old ABI will have to be supported too.  That
55349         can be the the subject for another patch.
55350
55351         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55352         governing whether the rest of this patch is active.  By default,
55353         the macro is disabled and the patch has no effect.
55354         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55355         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55356         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55357         (re_match_2, re_set_registers): Use the new types.
55358         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55359         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55360         New macros.
55361         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55362         (re_string_context_at, bin_tree_t, re_dfastate_t):
55363         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55364         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55365         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55366         (re_string_char_size_at, re_string_wchar_at):
55367         (re_string_elem_size_at):
55368         Use the new types and macros to port to 64-bit hosts.
55369         Use unsigned types for internal values, so that the code
55370         mostly works even for arrays larger than SSIZE_MAX.
55371         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55372         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55373         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55374         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55375         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55376         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55377         (calc_inveclosure, parse_dup_op, build_range_exp):
55378         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55379         (fetch_number, create_token_tree, mark_opt_subexp):
55380         Likewise.
55381         * lib/regex_internal.c (re_string_construct_common,
55382         create_ci_newstate):
55383         (create_cd_newstate, re_string_allocate, re_string_construct):
55384         (re_string_realloc_buffers, build_wcs_upper_buffer):
55385         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55386         (re_string_reconstruct, re_string_peek_byte_case):
55387         (re_string_fetch_byte_case, re_string_context_at):
55388         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55389         (re_node_set_init_copy, re_node_set_add_intersect):
55390         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55391         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55392         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55393         (re_acquire_state, re_acquire_state_context, register_state):
55394         Likewise.
55395         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55396         search_cur_bkref_entry):
55397         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55398         (re_search_internal, re_search_2_stub, re_search_stub)
55399         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55400         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55401         (update_cur_sifted_state, check_dst_limits):
55402         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55403         (check_subexp_limits, sift_states_bkref, merge_state_array):
55404         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55405         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55406         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55407         (expand_bkref_cache, check_node_accept_bytes):
55408         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55409         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55410         (acquire_init_state_context, check_halt_node_context):
55411         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55412         (sift_states_backward, clean_state_log_if_needed):
55413         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55414         (find_recover_state, transit_state_sb, transit_state_mb):
55415         (transit_state_bkref, build_trtable, match_ctx_clean):
55416         Likewise.
55417         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55418         to work around an assumption that REG_MISSING is negative.
55419
55420         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55421         (seek_collating_symbol_entry) [defined _LIBC]:
55422         (lookup_collation_sequence_value) [defined _LIBC]:
55423         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55424         Use prototypes rather than old-style function definitions.
55425         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55426         (transit_state_sb) [0]:
55427         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55428
55429         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55430         rm_eo.
55431
55432         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55433         (optimize_subexps, lower_subexp):
55434         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55435         since the signed shift might overflow.  Use 1u<<31 instead.
55436         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55437         Likewise.
55438         * lib/regexec.c (check_dst_limits_calc_pos_1,
55439         check_subexp_matching_top): Likewise.
55440
55441         * lib/regcomp.c (optimize_subexps, lower_subexp):
55442         Use CHAR_BIT rather than 8, for clarity.
55443         * lib/regexec.c (check_dst_limits_calc_pos_1):
55444         (check_subexp_matching_top): Likewise.
55445         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55446         have to worry about portability issues when shifting it left.
55447         Remove no-longer-needed test for table_size > 0.
55448         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55449         in a word, as the resulting behavior is undefined.
55450         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55451         in one case, a <= should have been an <, and in another case the
55452         whole test was missing.
55453         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55454         the standard name CHAR_BIT.
55455         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55456         this is not true on one's complement and signed-magnitude hosts.
55457
55458         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55459         next_last_offset.
55460         (struct re_dfa_t): Remove unused member states_alloc.
55461         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55462
55463 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55464
55465         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55466         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55467         and large-file glibc and in 32-bit large-file Solaris.
55468
55469 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55470
55471         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55472         lengths fit in regoff_t; this isn't true if regoff_t is the same
55473         width as size_t.
55474         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55475         (= START + RANGE) instead of RANGE.  This avoids overflow
55476         problems when regoff_t is the same width as size_t.
55477         All callers changed.
55478         (re_search_2_stub): Check for overflow when adding the
55479         sizes of the two strings.
55480         (re_search_stub): Check for overflow when adding START
55481         to RANGE; if it occurs, substitute the extreme value.
55482
55483 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55484
55485         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55486
55487 2005-08-31  Jim Meyering  <jim@meyering.net>
55488
55489         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55490         a pointer-to-const.
55491         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55492         (register_state): Likewise.
55493         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55494         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55495         (group_nodes_into_DFAstates): Likewise.
55496
55497 2005-08-31  Jim Meyering  <jim@meyering.net>
55498
55499         * check-module: Add a FIXME comment.
55500
55501 2005-08-31  Eric Blake  <ebb9@byu.net>
55502
55503         * modules/unistd-safer (Files): Add unistd--.h.
55504         * modules/stdio-safer (Files): Add stdio--.h.
55505
55506 2005-08-31  Derek Price  <derek@ximbiot.com>
55507
55508         * lib/getdelim.c (getdelim): Return EOF on EOF.
55509         Reported by Larry Jones <lawrence.jones@ugs.com>.
55510
55511 2005-08-31  Bruno Haible  <bruno@clisp.org>
55512
55513         Avoid unnecessary diffs in the generated lib/Makefile.am.
55514         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55515         the generated files.
55516         (func_import): Don't set cmd.
55517
55518 2005-08-31  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/strstr.c: Include <stddef.h>, for NULL.
55521         * lib/strcasestr.c: Likewise.
55522         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55523
55524 2005-08-31  Bruno Haible  <bruno@clisp.org>
55525
55526         * gnulib-tool: New option --macro-prefix.
55527         (func_import): Use macro_prefix.
55528         (import): Handle option --macro-prefix.
55529
55530 2005-08-31  Bruno Haible  <bruno@clisp.org>
55531
55532         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55533         Also use new variables cached_lgpl, cached_libtool.
55534
55535 2005-08-31  Bruno Haible  <bruno@clisp.org>
55536
55537         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55538         always instantiating them.
55539
55540 2005-08-31  Bruno Haible  <bruno@clisp.org>
55541
55542         * gnulib-tool (func_import): Read the previous cached settings
55543         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55544         earlier added by gnulib but are now dropped. Warn when a gnulib file
55545         overwrites a non-gnulib file.
55546
55547 2005-08-31  Bruno Haible  <bruno@clisp.org>
55548
55549         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55550         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55551         projects that don't keep autogenerated files in CVS. Put into
55552         actioncmd only the specified modules, not the transitive closure.
55553
55554 2005-08-31  Bruno Haible  <bruno@clisp.org>
55555
55556         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55557         Create directories that shall be filled.
55558         (import): Don't look for gl_* macros in configure.ac. Recurse across
55559         all directories containing a gnulib-cache.m4 files, if meaningful.
55560
55561 2005-08-31  Bruno Haible  <bruno@clisp.org>
55562
55563         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55564         (import): Set seen_libtool when we see gl_LIBTOOL.
55565
55566 2005-08-31  Bruno Haible  <bruno@clisp.org>
55567
55568         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55569         declaration macro definitions from generated gnulib.m4.
55570
55571 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55572
55573         * lib/iconvme.h: Add prototype for iconv_alloc.
55574
55575 2005-08-29  Simon Josefsson  <jas@extundo.com>
55576
55577         * lib/iconvme.c: Fix errno.
55578
55579 2005-08-29  Bruno Haible  <bruno@clisp.org>
55580
55581         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55582         that it works when the directory contains spaces.
55583
55584 2005-08-29  Bruno Haible  <bruno@clisp.org>
55585
55586         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55587
55588 2005-08-29  Bruno Haible  <bruno@clisp.org>
55589
55590         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55591         Emit more advice.
55592
55593 2005-08-29  Bruno Haible  <bruno@clisp.org>
55594         and Stepan Kasal  <kasal@ucw.cz>
55595
55596         * check-module: If more parameters are given, check each of them
55597         separately; add more exceptions, as noted by Jim Meyering.
55598         (check_module): New procedure.
55599         (%exempt_header): Now contains all exceptions.
55600
55601 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55602
55603         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55604
55605 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55606
55607         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55608
55609 2005-08-28  Bruno Haible  <bruno@clisp.org>
55610
55611         * m4/gnulib-tool.m4: New file.
55612
55613 2005-08-27  Jim Meyering  <jim@meyering.net>
55614
55615         * modules/unistd-safer (Files): Add pipe-safer.c.
55616         * modules/fcntl-safer (Files): Add creat-safer.c.
55617
55618 2005-08-27  Jim Meyering  <jim@meyering.net>
55619
55620         * m4/stdlib-safer.m4: New file.  From coreutils.
55621         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55623         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55624         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55625         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55626
55627 2005-08-27  Jim Meyering  <jim@meyering.net>
55628
55629         * lib/fopen-safer.c: Merge minor changes from coreutils.
55630         * lib/dup-safer.c: Likewise.
55631         * lib/fd-safer.c: Likewise.
55632
55633         Merge from coreutils.
55634         * lib/stdio--.h: New file.
55635         * lib/stdlib--.h: New file.
55636         * lib/mkstemp-safer.c: New file.
55637
55638         GNU tar needs these.
55639         * lib/pipe-safer.c: New file.
55640         * lib/creat-safer.c: New file.
55641         * lib/fcntl--.h (creat): Define to creat_safer.
55642         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55643         * lib/unistd--.h (pipe): Define to pipe_safer.
55644         * lib/unistd-safer.h: Declare pipe_safer.
55645
55646 2005-08-26  Simon Josefsson  <jas@extundo.com>
55647
55648         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55649         Haible <bruno@clisp.org>.
55650
55651 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * lib/regex_internal.h: Remove all references to
55654         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55655         or better.
55656         (bitset_not, bitset_merge, bitset_not_merge):
55657         (bitset_mask, re_string_allocate, re_string_construct):
55658         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55659         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55660         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55661         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55662         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55663         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55664         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55665         (re_acquire_state_context):
55666         Remove unnecessary forward decls.
55667         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55668         Put __attribute at function definition,
55669         now that the function decl has been removed.
55670         * lib/regex_internal.c (re_string_peek_byte_case):
55671         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55672         Likewise.
55673
55674 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55675
55676         * m4/regex.m4: Add AC_PREREQ(2.50).
55677         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55678
55679 2005-08-25  Simon Josefsson  <jas@extundo.com>
55680
55681         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55682         __fsetlocking.
55683
55684 2005-08-25  Simon Josefsson  <jas@extundo.com>
55685
55686         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55687         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55688         GLIBC specific code.
55689
55690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         Make regex safe for g++.  This fixes one real bug (an "err"
55693         that should have been "*err").  g++ problem reported by
55694         Sam Steingold.
55695         * lib/regex_internal.h (re_calloc): New macro, consistent with
55696         re_malloc etc.  All callers of calloc changed to use re_calloc.
55697         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55698         not int.  All callers changed.
55699         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55700         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55701         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55702         (find_recover_state): Change "err" to "*err"; this fixes what
55703         appears to be a real bug.
55704         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55705         versus int.
55706
55707 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * modules/regex (Depends-on): Add malloc, since the code
55710         assumes that !malloc(0) means failure.
55711
55712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55715
55716         alloca modernization/simplification for regex.
55717         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55718         needs to be at the start of the file, and can be moved into
55719         regex_internal.h and simplified.
55720         * lib/regex_internal.h: Include <alloca.h>.
55721         (__libc_use_alloca) [!defined _LIBC]: New macro.
55722         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55723         now works outside glibc.
55724
55725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         * config/srclist.txt: Add glibc bugs 1241, 1245.
55728
55729 2005-08-25  Jim Meyering  <jim@meyering.net>
55730
55731         * lib/open-safer.c: Include <config.h>.
55732         Otherwise, we'd lose LARGEFILE support in any file using
55733         e.g. "fcntl--.h"
55734
55735 2005-08-25  Bruno Haible  <bruno@clisp.org>
55736
55737         * m4/minmax.m4: Require autoconf 2.52.
55738         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55739         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55740         alternatives of translit over the alphabet.
55741         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55742
55743 2005-08-24  Simon Josefsson  <jas@extundo.com>
55744
55745         * tests/test-getpass.c: New file.
55746
55747 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55750         for GNU regex features.
55751
55752 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55753
55754         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55755         * lib/regex.h (regerror): Likewise.
55756
55757         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55758         requires this.  (The code never needed it.)
55759
55760         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55761         All uses of recently-renamed identifiers changed to use the new,
55762         POSIX-compliant names.  The code will build and run just fine
55763         without these changes, but it's better to eat our own dog food
55764         and use the standard-conforming names.
55765
55766         * lib/regex.h: Fix a multitude of POSIX name space violations.
55767         These changes have an effect only for programs that define
55768         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55769         do not change anything for programs compiled in the normal way.
55770         Also, there is no effect on the ABI.
55771
55772         (_REGEX_SOURCE): New macro.
55773         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55774         defined and _GNU_SOURCE is not; this fixes a name space violation.
55775
55776         Rename the following macros to obey POSIX requirements.
55777         The old names are still visible as macros if _REGEX_SOURCE is defined.
55778         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55779         RE_BACKSLASH_ESCAPE_IN_LISTS.
55780         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55781         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55782         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55783         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55784         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55785         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55786         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55787         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55788         (REG_INTERVALS): renamed from RE_INTERVALS.
55789         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55790         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55791         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55792         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55793         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55794         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55795         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55796         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55797         RE_UNMATCHED_RIGHT_PAREN_ORD.
55798         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55799         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55800         (REG_DEBUG): renamed from RE_DEBUG.
55801         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55802         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55803         unusual, since we can't clash with the POSIX REG_ICASE.
55804         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55805         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55806         (REG_NO_SUB): renamed from RE_NO_SUB.
55807         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55808         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55809         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55810         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55811         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55812         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55813         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55814         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55815         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55816         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55817         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55818         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55819         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55820         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55821         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55822         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55823         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55824         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55825         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55826         (REG_FIXED): Renamed from REGS_FIXED.
55827         (REG_NREGS): Renamed from RE_NREGS.
55828
55829         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55830         of other REG_* macros, since POSIX says the user is allowed to
55831         #undef these macros selectively.
55832
55833         (reg_errcode_t): Update comment stating what other tables need
55834         to be consistent.
55835
55836         Rename the following enum values to obey POSIX requirements.
55837         The old names are still visible as macros.
55838         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55839         is not defined, since GNU is supposed to be a superset of POSIX as
55840         much as possible, and since we want reg_errcode_t to be a signed
55841         type for implementation consistency.
55842         (_REG_NOERROR): Renamed from REG_NOERROR.
55843         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55844         (_REG_BADPAT): Renamed from REG_BADPAT.
55845         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55846         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55847         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55848         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55849         (_REG_EBRACK): Renamed from REG_EBRACK.
55850         (_REG_EPAREN): Renamed from REG_EPAREN.
55851         (_REG_EBRACE): Renamed from REG_EBRACE.
55852         (_REG_BADBR): Renamed from REG_BADBR.
55853         (_REG_ERANGE): Renamed from REG_ERANGE.
55854         (_REG_ESPACE): Renamed from REG_ESPACE.
55855         (_REG_BADRPT): Renamed from REG_BADRPT.
55856         (_REG_EEND): Renamed from REG_EEND.
55857         (_REG_ESIZE): Renamed from REG_ESIZE.
55858         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55859         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55860         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55861         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55862         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55863
55864         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55865         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55866         changed.  But support the old name if the new one is not defined
55867         and if _REGEX_SOURCE.
55868
55869         Change the following member names in struct re_pattern_buffer.
55870         The old names are still supported if !_REGEX_SOURCE.
55871         The new names are always supported, regardless of _REGEX_SOURCE.
55872         (re_buffer): Renamed from buffer.
55873         (re_allocated): Renamed from allocated.
55874         (re_used): Renamed from used.
55875         (re_syntax): Renamed from syntax.
55876         (re_fastmap): Renamed from fastmap.
55877         (re_translate): Renamed from translate.
55878         (re_can_be_null): Renamed from can_be_null.
55879         (re_regs_allocated): Renamed from regs_allocated.
55880         (re_fastmap_accurate): Renamed from fastmap_accurate.
55881         (re_no_sub): Renamed from no_sub.
55882         (re_not_bol): Renamed from not_bol.
55883         (re_not_eol): Renamed from not_eol.
55884         (re_newline_anchor): Renamed from newline_anchor.
55885
55886         Change the following member names in struct re_registers.
55887         The old names are still supported if !_REGEX_SOURCE.
55888         The new names are always supported, regardless of _REGEX_SOURCE.
55889         (rm_num_regs): Renamed from num_regs.
55890         (rm_start): Renamed from start.
55891         (rm_end): Renamed from end.
55892
55893         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55894         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55895         Prepend __ to parameter names.
55896
55897         Undo yesterday's changes.
55898
55899 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55902         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55903         lib/regex.c.
55904
55905 2005-08-24  Jim Meyering  <jim@meyering.net>
55906
55907         Sync from coreutils.
55908         * m4/fcntl-safer.m4: New file.
55909
55910         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55911         and object files for this module.
55912
55913 2005-08-24  Jim Meyering  <jim@meyering.net>
55914
55915         Sync from coreutils.
55916         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55917
55918 2005-08-24  Jim Meyering  <jim@meyering.net>
55919
55920         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55921         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55922
55923 2005-08-24  Jim Meyering  <jim@meyering.net>
55924
55925         * modules/fcntl-safer: New module.
55926         * modules/fts (Depends-on): Add fcntl-safer.
55927         * MODULES.html.sh (File descriptor based Input/Output):
55928         Add fcntl-safer.
55929
55930 2005-08-24  Bruno Haible  <bruno@clisp.org>
55931
55932         Support for unit test modules.
55933         * modules/README: Mention tests modules.
55934         * modules/TEMPLATE-TESTS: New file.
55935         * gnulib-tool: New options --extract-tests-module, --with-tests and
55936         --tests-base (unused for the moment).
55937         (testsbase, inctests): New variables.
55938         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55939         (func_verify_module): Exclude TEMPLATE-TESTS.
55940         (func_verify_nontests_module, func_verify_tests_module): New functions.
55941         (func_get_dependencies): Add implicit dependency for tests modules.
55942         (func_get_tests_module): New function.
55943         (func_modules_transitive_closure): When --with-tests was specified,
55944         include the unit tests as well, unless explicitly avoided.
55945         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55946         (func_emit_tests_Makefile_am): New function.
55947         (func_create_testdir): When --with-tests was specified, emit a
55948         tests/ directory.
55949         * MODULES.html.sh (Future developments): Update.
55950
55951 2005-08-24  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/tls-tests: New file.
55954         * tests/test-tls.c: New file, from GNU gettext.
55955
55956 2005-08-24  Bruno Haible  <bruno@clisp.org>
55957
55958         * modules/lock-tests: New file.
55959         * tests/test-lock.c: New file, from GNU gettext.
55960
55961 2005-08-24  Bruno Haible  <bruno@clisp.org>
55962
55963         * lib/lock.h: Add multiple inclusion guard.
55964         * lib/tls.h: Add multiple inclusion guard.
55965
55966 2005-08-24  Bruno Haible  <bruno@clisp.org>
55967
55968         * gnulib-tool: Add support for the --aux-dir option to
55969         --create-testdir, --create-megatestdir, --test, --megatest.
55970         (func_create_testdir, func_create_megatestdir): Optionally emit a
55971         AC_CONFIG_AUX_DIR directive.
55972         (create-testdir, create-megatestdir, test, megatest): Provide a
55973         default value for $auxdir.
55974
55975 2005-08-24  Bruno Haible  <bruno@clisp.org>
55976
55977         * gnulib-tool (import): Use compound statement instead of subshell
55978         where possible.
55979
55980 2005-08-24  Bruno Haible  <bruno@clisp.org>
55981
55982         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55983
55984 2005-08-24  Bruno Haible  <bruno@clisp.org>
55985
55986         * gnulib-tool (func_version): Update.
55987
55988 2005-08-24  Bruno Haible  <bruno@clisp.org>
55989
55990         * gnulib-tool (func_import, func_create_testdir,
55991         func_create_megatestdir): Quote all autoconf macro arguments.
55992
55993 2005-08-24  Bruno Haible  <bruno@clisp.org>
55994
55995         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55996         option --force, because --force causes the aclocal.m4 of each
55997         subdirectory to be newer than the corresponding config.h.in.
55998
55999 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56002         All contents moved to gl_REGEX.
56003         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56004         assume that it does.
56005
56006 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         * lib/regex.h (REG_NOSYS)
56009         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56010         Define, since POSIX requires it as of 2001.
56011         (_REG_ENOSYS)
56012         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56013         New private symbol, used to keep the enum signed in all cases.
56014         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56015         Youngman in
56016         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56017
56018         * lib/regex_internal.c (re_string_skip_chars, register_state):
56019         (calc_state_hash):
56020         Remove forward decls; no longer needed now that we use prototypes.
56021         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56022         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56023         (clean_state_log_if_needed): Likewise.
56024
56025 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * config/srclist.txt: Add glibc bugs 1231-1233.
56028
56029 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56030
56031         Fix problems reported by Sam Steingold in
56032         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56033         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56034         assumed that reg_errcode_t is a signed type, which is not
56035         necessarily true if _XOPEN_SOURCE is not defined.
56036         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56037         since some compilers warn about it otherwise.
56038
56039 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56042         (init_word_char, create_initial_state, duplicate_node_closure):
56043         (fetch_token, peek_token_bracket, build_range_exp):
56044         (build_collating_symbol): Remove forward decls; no longer needed
56045         now that we use prototypes.
56046
56047         * lib/regcomp.c:
56048         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56049         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56050         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56051         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56052         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56053         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56054         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56055         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56056         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56057         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56058         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56059         (build_charclass, build_charclass_op, fetch_number, create_tree):
56060         (create_token_tree, mark_opt_subexp, duplicate_tree):
56061         Use prototypes rather than old-style definitions.
56062
56063         * lib/regex_internal.c:
56064         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56065         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56066         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56067         (re_string_reconstruct, re_string_peek_byte_case):
56068         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56069         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56070         (re_node_set_init_copy, re_node_set_add_intersect):
56071         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56072         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56073         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56074         (re_acquire_state, re_acquire_state_context, register_state):
56075         (create_ci_newstate, create_cd_newstate, free_state):
56076         Likewise.
56077         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56078         re_search_2):
56079         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56080         (re_search_internal, prune_impossible_nodes):
56081         (acquire_init_state_context, check_matching, static):
56082         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56083         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56084         (update_regs, sift_states_backward, build_sifted_states):
56085         (clean_state_log_if_needed, merge_state_array):
56086         (update_cur_sifted_state, add_epsilon_src_nodes):
56087         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56088         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56089         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56090         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56091         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56092         (check_arrival, check_arrival_add_next_nodes):
56093         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56094         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56095         (check_node_accept_bytes, check_node_accept, extend_buffers):
56096         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56097         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56098         (sift_ctx_init):
56099         Likewise.
56100
56101         * lib/regex_internal.h:
56102         (re_string_allocate, re_string_construct, re_string_reconstruct):
56103         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56104         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56105         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56106         (re_string_context_at, re_string_peek_byte_case):
56107         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56108         is defined, since we now use prototypes always.
56109
56110         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56111         C89 or better.  All uses removed.
56112
56113 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * config/srclist.txt: Add glibc bugs 1220-1227.
56116
56117 2005-08-20  Jim Meyering  <jim@meyering.net>
56118
56119         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56120         of unused local, dfa.
56121
56122 2005-08-20  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56125
56126 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56127
56128         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56129         (re_node_set_insert_last, re_dfa_add_node):
56130         Rename local variables to avoid GCC shadowing warnings.
56131
56132 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56133
56134         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56135         [defined lint]: Suppress bogus uninitialized-variable warnings.
56136
56137         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56138         and let the caller return REG_ESPACE if out of space.  This
56139         removes an uninitialied-variable warning with GCC 4.0.1, and also
56140         avoids taking the address of a local variable.  All callers
56141         changed.
56142
56143 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56144
56145         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56146         $LIBCSRC/posix/regexec.c.
56147         Add glibc bug 1217 for regcomp.c.
56148
56149 2005-08-19  Jim Meyering  <jim@meyering.net>
56150
56151         * lib/regexec.c (proceed_next_node): Redo local variables to
56152         avoid GCC shadowing warnings.
56153
56154 2005-08-18  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/strstr.c (strstr): Fix return value in multibyte case.
56157         * lib/strcasestr.c (strcasestr): Likewise.
56158
56159 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56162
56163 2005-08-17  Jim Meyering  <jim@meyering.net>
56164
56165         Make the %s format (seconds since the epoch) work for a negative
56166         number and when used with a zero-padded field width, e.g. %015s.
56167
56168         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56169         label so that it precedes the code to set `digits'.  Otherwise,
56170         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56171         print `00-22'.  Now, it prints `-0022', as it should.
56172
56173 2005-08-17  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/strstr (Files): Add m4/mbrtowc.m4.
56176         (Depends-on): Add mbuiter.
56177
56178 2005-08-17  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/strcasestr: New file.
56181         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56182         strcasestr.
56183
56184 2005-08-17  Bruno Haible  <bruno@clisp.org>
56185
56186         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56187
56188 2005-08-17  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/mbuiter: New file.
56191         * MODULES.html.sh (Extended multibyte and wide character utilities):
56192         Add mbuiter.
56193
56194 2005-08-17  Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56197         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56198
56199 2005-08-17  Bruno Haible  <bruno@clisp.org>
56200
56201         * m4/strcasestr.m4: New file.
56202
56203 2005-08-17  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56206         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56207
56208 2005-08-17  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/strcasestr.h: New file.
56211         * lib/strcasestr.c: New file.
56212
56213 2005-08-17  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/strcasecmp.c: Use mbuiter.h.
56216
56217 2005-08-17  Bruno Haible  <bruno@clisp.org>
56218
56219         * lib/mbuiter.h: New file.
56220
56221 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56224         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56225         and gl_GETOPT are both invoked via different paths (as happens
56226         with GNU tar CVS because it uses both argp and getopt), the former
56227         wins.
56228
56229 2005-08-16  Bruno Haible  <bruno@clisp.org>
56230
56231         * modules/tls: New file.
56232         * MODULES.html.sh (Multithreading): Add tls.
56233
56234 2005-08-16  Bruno Haible  <bruno@clisp.org>
56235
56236         * modules/strnlen1: New file.
56237         * MODULES.html.sh (String handling): Add strnlen1.
56238
56239 2005-08-16  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/strcase (Files): Add m4/mbrtowc.m4.
56242         (Depends-on): Add strnlen1, mbchar.
56243
56244 2005-08-16  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/mbiter: New file.
56247         * MODULES.html.sh (Extended multibyte and wide character utilities):
56248         Add mbiter.
56249
56250 2005-08-16  Bruno Haible  <bruno@clisp.org>
56251
56252         * modules/mbfile: New file.
56253         * MODULES.html.sh (Extended multibyte and wide character utilities):
56254         Add mbfile.
56255
56256 2005-08-16  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/mbchar: New file.
56259         * MODULES.html.sh (Extended multibyte and wide character utilities):
56260         New section.
56261
56262 2005-08-16  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/tls.m4: New file, from GNU gettext.
56265
56266 2005-08-16  Bruno Haible  <bruno@clisp.org>
56267
56268         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56269         always.
56270         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56271
56272 2005-08-16  Bruno Haible  <bruno@clisp.org>
56273
56274         * m4/mbiter.m4: New file.
56275
56276 2005-08-16  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/mbfile.m4: New file.
56279
56280 2005-08-16  Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/mbchar.m4: New file.
56283
56284 2005-08-16  Bruno Haible  <bruno@clisp.org>
56285
56286         * lib/tls.h: New file, from GNU gettext.
56287         * lib/tls.c: New file, from GNU gettext.
56288
56289 2005-08-16  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/strnlen1.h: New file.
56292         * lib/strnlen1.c: New file.
56293
56294 2005-08-16  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56297         (mbi_init): Update.
56298         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56299         NUL byte, not after it.
56300
56301 2005-08-16  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/strcase.h (strcasecmp): Add note in comments.
56304         * lib/strncasecmp.c: Use code from strcasecmp.c.
56305         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56306         (strcasecmp): Work correctly in multibyte locales.
56307
56308 2005-08-16  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/mbiter.h: New file.
56311
56312 2005-08-16  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/mbfile.h: New file.
56315
56316 2005-08-16  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/mbchar.h: New file.
56319         * lib/mbchar.c: New file.
56320
56321 2005-08-16  Bruno Haible  <bruno@clisp.org>
56322
56323         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56324         the valid ones. Makes the comparison operations transitive:
56325         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56326         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56327
56328 2005-08-15  Simon Josefsson  <jas@extundo.com>
56329
56330         * modules/ssize_t (License): Change to 'unlimited'.
56331
56332         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56333
56334 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56335
56336         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56337         Add comments for each pending glibc patch.
56338
56339 2005-08-15  Bruno Haible  <bruno@clisp.org>
56340
56341         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56342         __cplusplus is defined.
56343
56344 2005-08-14  Jim Meyering  <jim@meyering.net>
56345
56346         Sync from coreutils.
56347
56348         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56349         Use the hash-table-based cycle-detection code not just when
56350         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56351         Reported by James Youngman in
56352         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56353         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56354         FTS_TIGHT_CYCLE_CHECK.
56355         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56356         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56357         once again.
56358         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56359         * lib/fts.c (fd_safer): Remove decl.
56360         Include fcntl--.h rather than unistd-safer.h
56361         (fts_safe_changedir): Don't call fd_safer; no longer needed
56362         now that we include fcntl--.h.
56363
56364 2005-08-12  Simon Josefsson  <jas@extundo.com>
56365
56366         * modules/getndelim2: Use ssize_t module.
56367         * modules/getnline: Likewise.
56368         * modules/safe-read: Likewise.
56369         * modules/xreadlink: Likewise.
56370
56371         * modules/ssize_t: New file.
56372
56373 2005-08-12  Simon Josefsson  <jas@extundo.com>
56374
56375         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56376
56377 2005-08-12  Simon Josefsson  <jas@extundo.com>
56378
56379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56380         ssize_t.
56381
56382 2005-08-12  Simon Josefsson  <jas@extundo.com>
56383
56384         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56385         readline, getdelim and check_version.
56386         (Support for systems lacking ISO C 99: Sizes of integer types):
56387         Add size_max.
56388
56389 2005-08-12  Bruno Haible  <bruno@clisp.org>
56390
56391         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56392
56393 2005-08-11  Simon Josefsson  <jas@extundo.com>
56394
56395         * modules/readline: New file.
56396
56397         * modules/strnlen (Files): Add strnlen.h.
56398
56399 2005-08-11  Simon Josefsson  <jas@extundo.com>
56400
56401         * m4/readline.m4: New file.
56402
56403 2005-08-11  Simon Josefsson  <jas@extundo.com>
56404
56405         * lib/readline.h, readline.c: New file.
56406
56407 2005-08-11  Simon Josefsson  <jas@extundo.com>
56408
56409         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56410         gl_AVOID.
56411
56412 2005-08-11  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56415
56416 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56417
56418         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56419
56420 2005-08-10  Simon Josefsson  <jas@extundo.com>
56421
56422         * tests/test-iconvme.c: New file.
56423
56424 2005-08-10  Simon Josefsson  <jas@extundo.com>
56425
56426         * m4/strnlen.m4: New file.
56427
56428         * m4/strndup.m4: Don't check for strnlen declaration, done in
56429         strnlen.m4.
56430
56431 2005-08-10  Simon Josefsson  <jas@extundo.com>
56432
56433         * lib/strndup.c: Use strnlen.h.
56434
56435         * lib/strnlen.h: New file.
56436
56437 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56438
56439         * README: Typos.
56440
56441 2005-08-02  Simon Josefsson  <jas@extundo.com>
56442
56443         * modules/readline: New file.
56444
56445 2005-08-02  Simon Josefsson  <jas@extundo.com>
56446
56447         * modules/getdelim: New file.
56448
56449         * modules/getline: Rewrite, don't use getndelim2.
56450
56451 2005-08-02  Simon Josefsson  <jas@extundo.com>
56452
56453         * m4/getline.m4: Separate out getdelim stuff into separate module.
56454
56455         * m4/getdelim.m4: New file.
56456
56457 2005-08-02  Simon Josefsson  <jas@extundo.com>
56458
56459         * lib/getline.h, getline.c: Rewrite.
56460
56461         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56462
56463 2005-07-31  Bruno Haible  <bruno@clisp.org>
56464
56465         * lib/lock.h (gl_lock_initializer): New macro.
56466         (gl_lock_define_initialized): Use it.
56467         (gl_rwlock_initializer): New macro.
56468         (gl_rwlock_define_initialized): Use it.
56469         (gl_recursive_lock_initializer): New macro.
56470         (gl_recursive_lock_define_initialized): Use it.
56471
56472 2005-07-30  Karl Berry  <karl@gnu.org>
56473
56474         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56475         Report from Ben Pfaff, regarding getopt.
56476
56477 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56478
56479         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56480         normal way.
56481         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56482         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56483         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56484         (gl_GETOPT): Use the new macros.  Most of the implementation
56485         is moved to the new macros.  This is for programs like Emacs
56486         that don't want all the functionality of gl_GETOPT.
56487
56488 2005-07-26  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/lock.m4: Update from GNU gettext.
56491
56492 2005-07-26  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/lock.h: Update from GNU gettext.
56495         * lib/lock.c: Update from GNU gettext.
56496
56497 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56498
56499         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56500         obsolescent AC_TRY_RUN.  Include the default includes files, for
56501         'exit'.
56502
56503 2005-07-24  Bruno Haible  <bruno@clisp.org>
56504
56505         * modules/visibility: New file.
56506         * MODULES.html.sh (Misc): Add visibility.
56507
56508 2005-07-24  Bruno Haible  <bruno@clisp.org>
56509
56510         * m4/visibility.m4: New file.
56511
56512 2005-07-24  Bruno Haible  <bruno@clisp.org>
56513
56514         * doc/visibility.texi: New file.
56515
56516 2005-07-22  Bruno Haible  <bruno@clisp.org>
56517
56518         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56519         $(ALLOCA_H), redundant through BUILT_SOURCES.
56520         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56521         redundant through BUILT_SOURCES.
56522         * modules/byteswap (Makefile.am): Remove explicit dependency on
56523         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56524         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56525         $(FNMATCH_H), redundant through BUILT_SOURCES.
56526         * modules/getopt (Makefile.am): Remove explicit dependency on
56527         $(GETOPT_H), redundant through BUILT_SOURCES.
56528         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56529         redundant through BUILT_SOURCES.
56530         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56531         redundant through BUILT_SOURCES.
56532         * modules/stdbool (Makefile.am): Remove explicit dependency on
56533         $(STDBOOL_H), redundant through BUILT_SOURCES.
56534         * modules/stdint (Makefile.am): Remove explicit dependency on
56535         $(STDINT_H), redundant through BUILT_SOURCES.
56536         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56537         Remove explicit dependency on $(SYSEXITS_H).
56538         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56539
56540 2005-07-18  Simon Josefsson  <jas@extundo.com>
56541
56542         * lib/check-version.c (check_version): Accept identical versions too.
56543
56544 2005-07-18  Bruno Haible  <bruno@clisp.org>
56545
56546         * modules/lock: New file.
56547         * MODULES.html.sh (Multithreading): New section.
56548
56549 2005-07-18  Bruno Haible  <bruno@clisp.org>
56550
56551         * m4/lock.m4: New file, from GNU gettext.
56552
56553 2005-07-18  Bruno Haible  <bruno@clisp.org>
56554
56555         * lib/lock.h: New file, from GNU gettext.
56556         * lib/lock.c: New file, from GNU gettext.
56557
56558 2005-07-18  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/lock.h (gl_once_t): New type.
56561         (gl_once_define, gl_once): New macros.
56562         * lib/lock.c (fresh_once): New variable.
56563         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56564         functions.
56565
56566 2005-07-16  Simon Josefsson  <jas@extundo.com>
56567
56568         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56569         workaround, suggested by Bruno.
56570
56571 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56572
56573         * modules/xalloc (Depends-on): Add xalloc-die.
56574         * modules/xvasprintf (Depends-on): Add xalloc-die.
56575
56576 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56577
56578         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56579         with a minor change.
56580
56581 2005-07-15  Bruno Haible  <bruno@clisp.org>
56582
56583         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56584         When using lib/poll.c, define poll as rpl_poll.
56585
56586 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56587
56588         * modules/argp (Depends-on): Remove unlocked-io.
56589
56590 2005-07-14  Derek Price  <derek@ximbiot.com>
56591
56592         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56593         for glob symlink bug.
56594
56595 2005-07-14  Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56598         Instead, test for *_unlocked function declarations directly.
56599
56600 2005-07-11  Simon Josefsson  <jas@extundo.com>
56601
56602         * modules/size_max: New file.
56603
56604         * modules/xsize: Depend on size_max module for size_max.m4.
56605
56606 2005-07-11  Simon Josefsson  <jas@extundo.com>
56607
56608         * lib/size_max.h: New file.
56609
56610 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56611
56612         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56613         copyright symbol and the year.
56614         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56615         (version_etc_va): Use parameterized copyright notice.
56616         Reword to conform to the current GNU coding standards.
56617
56618 2005-07-11  Karl Berry  <karl@gnu.org>
56619
56620         * doc/gnulib.texi (Quoting): new node.
56621         (Initial import): more info, from Patrice.
56622
56623 2005-07-11  Bruno Haible  <bruno@clisp.org>
56624
56625         * gnulib-tool (func_usage): Document option --avoid.
56626         (Command line options): Handle --avoid.
56627         (func_acceptable): New function.
56628         (func_modules_transitive_closure): Use it.
56629
56630 2005-07-11  Bruno Haible  <bruno@clisp.org>
56631
56632         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56633         Reported by Jim Meyering.
56634
56635 2005-07-10  Bruno Haible  <bruno@clisp.org>
56636
56637         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56638         Needed when size_t is smaller than 'unsigned int'.
56639         Reported by Paul Eggert.
56640
56641 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56642
56643         * modules/argp (Depends-on): Add unlocked-io
56644
56645 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56646
56647         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56648         block of defines.
56649
56650 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56653         fix now.
56654
56655 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56656         and Paul Eggert  <eggert@cs.ucla.edu>
56657
56658         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56659         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56660
56661 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         * modules/regex (Files): Add lib/regex_internal.c,
56664         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56665         (Depends-on): Add extensions.
56666         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56667
56668 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56669
56670         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56671         pathconf.
56672         * m4/same.m4 (gl_SAME): Likewise.
56673         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56674
56675         * m4/regex.m4: Adjust to new libc regex implementation.
56676         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56677         all the .c and .h parts of (the new) regex.
56678         Quote the m4 stuff better.
56679         Check for RE_ICASE bug of old gnulib.
56680         Check for REG_STARTEND of recent libc.
56681         Rename local variables from jm_* to gl_*.
56682         Quote operand of "test -f".
56683         Say "recent enough" version of libc, not "version 2".
56684         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56685         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56686         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56687         Remove check for btowc, isascii.
56688         Require AM_LANGINFO_CODESET.
56689
56690 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * lib/regex.c, regex.h: Sync from libc.
56693         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56694         * lib/regexec.c:
56695         New files, synced from libc, except that regex_internal.h
56696         currently has a small porting fix.
56697
56698 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56699
56700         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56701         regex_internal.c, regexec.c.
56702         Add regex_internal.h too, but as a comment, since the libc version
56703         is currently broken in gnulib mode.
56704
56705 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56706
56707         Support programs like Emacs that use gnulib but not gettext.
56708         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56709         * modules/gettext-h: New file.
56710         * modules/gettext (Files): Remove lib/gettext.h.
56711         (Depends-on): Add gettext-h.
56712         (Makefile.am): Remove lib_SOURCES.
56713         * modules/argmatch, modules/c-stack, modules/closeout:
56714         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56715         * modules/execute, modules/file-type, modules/getaddrinfo:
56716         * modules/getopt, modules/human, modules/javacomp:
56717         * modules/javaexec, modules/mkdir-p, modules/obstack:
56718         * modules/openat, modules/pagealign_alloc, modules/pipe:
56719         * modules/quotearg, modules/regex, modules/rpmatch:
56720         * modules/unicodeio, modules/userspec, modules/version-etc:
56721         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56722         * modules/xsetenv:
56723         Depend on gettext-h, not gettext.
56724
56725 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * gnulib-tool (func_import): Add support for 'public domain' license.
56728         * modules/alloca, modules/atexit, modules/memmove:
56729         Now public domain, not GPL.
56730         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56731         * modules/realloc, modules/strerror, modules/strtod:
56732         Now LGPL, not GPL.
56733
56734 2005-07-05  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56737         autoconf CVS. Needed for mingw.
56738
56739 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         Remove the dependency of the strftime module on the tzset module.
56742         * modules/strftime (Depends-on): Remove dependency on tzset.
56743
56744 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         Remove the dependency of the strftime module on the tzset module.
56747         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56748         gl_FUNC_TZSET_CLOBBER.
56749
56750 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         Remove the dependency of the strftime module on the tzset module.
56753         * lib/strftime.c (my_strftime)
56754         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56755         Copy the input structure, to work around some of the bug with
56756         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56757         Solaris releases, you should also use the tzset module, but we won't
56758         require it as a dependency any more since we don't want LGPLed code
56759         to depend on GPLed code.
56760
56761 2005-07-02  Jim Meyering  <jim@meyering.net>
56762
56763         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56764         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56765         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56766         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56767
56768 2005-07-02  Jim Meyering  <jim@meyering.net>
56769
56770         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56771
56772 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56775         declares only 'struct timespec;' (!).
56776
56777 2005-07-01  Jim Meyering  <jim@meyering.net>
56778
56779         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56780         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56781         * lib/save-cwd.c, tempname.c:
56782         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56783         and don't include <sys/file.h>).
56784
56785 2005-06-29  Jim Meyering  <jim@meyering.net>
56786
56787         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56788         type name.  Use the variable name instead.
56789         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56790         Likewise.
56791
56792 2005-06-28  Simon Josefsson  <jas@extundo.com>
56793
56794         * modules/check-version (Files): Add check-version.m4.
56795
56796 2005-06-28  Simon Josefsson  <jas@extundo.com>
56797
56798         * m4/check-version.m4: New file, suggested by Jim Meyering
56799         <jim@meyering.net>.
56800
56801 2005-06-28  Simon Josefsson  <jas@extundo.com>
56802
56803         * lib/check-version.h, lib/check-version.c: New files.
56804
56805 2005-06-28  Simon Josefsson  <jas@extundo.com>
56806
56807         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56808         collision with global variable.  Better indentation.  Don't
56809         increment buffer pointer beyond buffer end.  Based on comments
56810         from Paul Eggert <eggert@cs.ucla.edu>.
56811
56812         * lib/base64.h: Indent.
56813
56814 2005-06-28  Simon Josefsson  <jas@extundo.com>
56815
56816         * doc/gnulib.texi (Library version handling): New section.
56817
56818 2005-06-28  Jim Meyering  <jim@meyering.net>
56819
56820         * check-module (find_included_lib_files): Hard-code another
56821         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56822         but modules/fts-lgpl (correctly) does not list those files.
56823
56824         * modules/canonicalize (Files): Add lib/pathmax.h.
56825
56826 2005-06-25  Simon Josefsson  <jas@extundo.com>
56827
56828         * modules/check-version: New file.
56829
56830 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56831
56832         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56833         initializer of struct addrinfo, as an indication that we don't
56834         care how many members the structure has.
56835
56836 2005-06-24  Derek Price  <derek@ximbiot.com>
56837         and Bruno Haible  <bruno@clisp.org>
56838
56839         Remove stat module & update lstat.
56840         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56841         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56842         * m4/stat.m4: Remove this file.
56843
56844 2005-06-24  Derek Price  <derek@ximbiot.com>
56845         and Bruno Haible  <bruno@clisp.org>
56846
56847         Remove stat module & update lstat.
56848         * lib/stat.c: Remove this file...
56849         (slash_aware_lstat): ...moving this content and its support...
56850         * lib/lstat.c (rpl_lstat): ...into here.
56851         * lib/lstat.h: New file.
56852
56853 2005-06-24  Derek Price  <derek@ximbiot.com>
56854         and Bruno Haible  <bruno@clisp.org>
56855
56856         Remove stat module & update lstat.
56857         * config/srclist.txt (libc sources): Remove stat.
56858
56859 2005-06-24  Derek Price  <derek@ximbiot.com>
56860         and Bruno Haible  <bruno@clisp.org>
56861
56862         Remove stat module & update lstat.
56863         * MODULES.html.sh (stat): Remove.
56864         * MODULES.html: Regenerated.
56865         * modules/lstat (Description): Correct function name.
56866         (Files): Add "lstat.h".
56867         (Depends-on): Remove stat, add xalloc, stat-macros.
56868         * modules/stat: Remove this file.
56869         (Include): Add "lstat.h", remove <sys/stat.h>.
56870
56871 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56872
56873         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56874         (ranged_convert): Don't save conversion in a temporary struct.
56875         This causes a warning with GCC 4.0.0, and anyway in the typical
56876         case it's not worth the extra 100 bytes or so of code.
56877         (ranged_convert, __mktime_internal): When calling a function via a
56878         pointer P, use P () rather than (*P) (), as we now assume C89 or
56879         better.
56880
56881 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56882
56883         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56884         "who -r" failed to give output.  Problem reported by Tim Waugh.
56885
56886         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56887         (xcalloc): Use it to avoid needless tests.
56888         Problem reported by Jim Meyering.
56889
56890 2005-06-20  Derek Price  <derek@ximbiot.com>
56891
56892         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56893         unnecessary for Autoconfs > 2.59c.
56894
56895 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56896
56897         * lib/argp.h (__option_is_short): Check upper limit of
56898         __key. Isprint() requires its argument to have the value
56899         of an unsigned char or EOF.
56900
56901 2005-06-16  Jim Meyering  <jim@meyering.net>
56902
56903         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56904         when either N or S is zero.
56905
56906 2005-06-16  Derek Price  <derek@ximbiot.com>
56907
56908         * m4/bison.m4: Declare YACC & YFLAGS precious.
56909
56910 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56913         multibyte string or pattern, fall back on unibyte matching.
56914         Problem reported by James Youngman.
56915
56916 2005-06-08  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/csharpcomp: New file.
56919         * MODULES.html.sh (C#): Add csharpcomp.
56920
56921 2005-06-08  Bruno Haible  <bruno@clisp.org>
56922
56923         * m4/csharpcomp.m4: New file, from GNU gettext.
56924
56925 2005-06-08  Bruno Haible  <bruno@clisp.org>
56926
56927         * lib/csharpcomp.h: New file, from GNU gettext.
56928         * lib/csharpcomp.c: New file, from GNU gettext.
56929         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56930
56931 2005-06-08  Bruno Haible  <bruno@clisp.org>
56932
56933         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56934         warning on mingw.
56935
56936 2005-06-07  Derek Price  <derek@ximbiot.com>
56937
56938         Sync from CVS.
56939         * lib/glob_.h: Indent nested #ifdef.
56940
56941 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56942
56943         Sync from coreutils.
56944         Use "file name" when talking about file names, instead of "filename"
56945         or "path", as per the GNU coding standards.
56946         * lib/mkdir-p.c: Renamed from makepath.c.
56947         (make_dir_parents): Renamed from make_path.  All callers changed.
56948         * lib/mkdir-p.h: Likewise.  All includers changed.
56949         * lib/filenamecat.c: Renamed from path-concat.c.
56950         (file_name_concat): Renamed from path_concat.  All callers changed.
56951         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56952         * lib/filenamecat.h: Likewise.  All includers changed.
56953         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56954         in comments or local variable names.
56955         * lib/basename.c: Likewise.
56956         * lib/canonicalize.c, canonicalize.h: Likewise.
56957         * lib/dirname.c, dirname.h: Likewise.
56958         * lib/euidaccess.c: Likewise.
56959         * lib/exclude.c: Likewise
56960         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56961         * lib/fsusage.c, fsuage.h: Likewise.
56962         * lib/fts.c, fts_.h: Likewise.
56963         * lib/getcwd.c: Likewise.
56964         * lib/getloadavg.c: Likewise.
56965         * lib/mkstemp.c: Likewise.
56966         * lib/mountlist.c, mountlist.h: Likewise.
56967         * lib/openat.c, openat.h: Likewise.
56968         * lib/readlink-stub.c: Likewise.
56969         * lib/readutmp.c, readutmp.h: Likewise.
56970         * lib/rename.c: Likewise.
56971         * lib/rmdir.c: Likewise.
56972         * lib/same.c: Likewise.
56973         * lib/savedir.c: Likewise.
56974         * lib/stripslash.c: Likewise.
56975         * lib/tempname.c: Likewise.
56976         * lib/xreadlink.c: Likewise.
56977         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56978         All uses changed.
56979         * lib/exclude.h: Likewise.
56980
56981         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56982         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56983         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56984         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56985         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56986         files have been getting away with it for years (MORE/BSD 4.3
56987         is extinct now).
56988         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56989         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56990
56991         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56992         Define to 256, not 255, as per modern POSIX.
56993
56994 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         Sync from coreutils.
56997         Use "file name" when talking about file names, instead of "filename"
56998         or "path", as per the GNU coding standards.
56999         * MODULES.html.sh: mkdir-p renamed from makepath.
57000         filenamecat renamed from path-concat.
57001         * modules/filenamecat: Renamed from modules/path-concat.
57002         (Files): filenamecat.h and filenamecat.c renamed from
57003         path-concat.h and path-concat.c.
57004         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57005         (Include): filenamecat.h, not path-concat.h.
57006         * modules/mkdir-p: Renamed from modules/makepath.
57007         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57008         makepath.c.
57009         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57010         (Include): mkdir-p.h, not makepath.h.
57011
57012 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57013
57014         Sync from coreutils.
57015         * m4/mkdir-p.m4: Renamed from makepath.m4.
57016         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57017         Rename files from makepath.c to mkdir-p.c, and from
57018         makepath.h to mkdir-p.h.
57019         * m4/filenamecat.m4: Renamed from path-concat.m4.
57020         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57021         Rename files from path-concat.c to filenamecat.c,
57022         and from path-concat.h to filenamecat.h.
57023         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57024         "file name" in local variables or comments.
57025         * m4/rename.m4: Likewise.
57026
57027 2005-06-01  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/csharpexec: New file.
57030         * MODULES.html.sh (C#): New section.
57031
57032 2005-06-01  Bruno Haible  <bruno@clisp.org>
57033
57034         * m4/csharp.m4: New file, from GNU gettext.
57035         * m4/csharpexec.m4: New file, from GNU gettext.
57036
57037 2005-06-01  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/csharpexec.h: New file, from GNU gettext.
57040         * lib/csharpexec.c: New file, from GNU gettext.
57041         * lib/csharpexec.sh.in: New file, from GNU gettext.
57042
57043 2005-05-31  Derek Price  <derek@ximbiot.com>
57044             Paul Eggert  <eggert@cs.ucla.edu>
57045
57046         Sync from cvs.
57047         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57048
57049 2005-05-31  Derek Price  <derek@ximbiot.com>
57050             Paul Eggert  <eggert@cs.ucla.edu>
57051
57052         Sync from cvs.
57053         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57054
57055 2005-05-29  Derek Price  <derek@ximbiot.com>
57056
57057         * config/srclist.txt (glob_.h, glob.c): Add these files.
57058
57059 2005-05-29  Derek Price  <derek@ximbiot.com>
57060
57061         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57062         * modules/glob: New file.
57063         * modules/getlogin_r: Add link to POSIX spec in description.
57064
57065 2005-05-29  Derek Price  <derek@ximbiot.com>
57066             Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * m4/glob.m4: New file.
57069
57070 2005-05-29  Derek Price  <derek@ximbiot.com>
57071             Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         * lib/glob_.h, lib/glob.c: New files.
57074
57075 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57078         * modules/fts-lgpl (Depends-on): Remove gettext.
57079
57080 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57083         and don't require gt_INTTYPES_PRI.
57084
57085 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57088
57089         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57090         the configuration hassle isn't worth it.
57091         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57092         (LONGEST_MODIFIER, PRIuMAX): Remove.
57093
57094 2005-05-27  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57097
57098 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57099
57100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57101         _POSIX_PTHREAD_SEMANTICS for Solaris.
57102
57103 2005-05-25  Derek Price  <derek@ximbiot.com>
57104
57105         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57106
57107 2005-05-25  Derek Price  <derek@ximbiot.com>
57108             Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57111         * lib/getlogin_r.c, getlogin_r.h: New files.
57112
57113 2005-05-25  Bruno Haible  <bruno@clisp.org>
57114             Derek Price  <derek@ximbiot.com>
57115
57116         * lib/getlogin_r.h: Simplify API documentation.
57117
57118 2005-05-23  Derek Price  <derek@ximbiot.com>
57119
57120         * modules/minmax (Files): Add m4/minmax.m4.
57121         (configure.ac): Add gl_MINMAX.
57122
57123 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57126         so that unistd-safer.h (GPL'ed code) need not be included.
57127
57128 2005-05-22  Bruno Haible  <bruno@clisp.org>
57129
57130         * m4/minmax.m4: New file.
57131         Based on a patch by Derek Price <derek@ximbiot.com>.
57132
57133 2005-05-22  Bruno Haible  <bruno@clisp.org>
57134
57135         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57136         (INT64_MIN): Fix definition.
57137         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57138
57139         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57140         NEED_SIGNED_INT_TYPES.
57141
57142         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57143         HAVE_SYSTEM_INTTYPES.
57144
57145 2005-05-22  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57148         Also include <sys/param.h> if it defines MIN, MAX.
57149         Based on a patch by Derek Price <derek@ximbiot.com>.
57150
57151 2005-05-21  Jim Meyering  <jim@meyering.net>
57152
57153         * modules/fts (Files): Add m4/inttypes-pri.m4.
57154         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57155
57156 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         New fts module.
57159         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57160         (setup_dir, free_dir): New functions.
57161         (enter_dir, leave_dir): Define trivial
57162         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57163         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57164         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57165         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57166         Move to fts-cycle.c.
57167         (fts_open): Use setup_dir.
57168         (fts_close): Use free_dir.
57169         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57170         This adds a label and some gotos, but the alternatives were messier.
57171         Check for memory allocation failure when entering a dir.
57172         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57173         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57174         (FTS): New member fts_cycle, that is a union that contains the
57175         old active_dir_ht and cycle_state.  All uses changed to mention
57176         fts_cycle.ht and fts_cycle.state.
57177         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57178         fts.c, with the following changes:
57179         (setup_dir, free_dir): New functions.
57180         (enter_dir): Now returns bool.  Return true if successful, false
57181         if memory exhausted.  All callers changed.
57182         Do not bother partly cleaning up on
57183         memory allocation failure; that is free_dir's job.
57184         However, free ad if hash_insert fails, to avoid memory leak.
57185         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57186         fts->fts_options to see which union member to use.
57187
57188 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57189
57190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57191         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57192
57193 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57196
57197 2005-05-20  Jim Meyering  <jim@meyering.net>
57198
57199         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57200         Now a macro, to pacify GCC.
57201
57202 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57203
57204         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57205         of -1.
57206
57207 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57208
57209         * lib/chown.c (rpl_chown): Return -1 on failure.
57210
57211 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57212
57213         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57214         Don't check for stddef.h.
57215         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57216         don't use its results.
57217         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57218         since we include them unconditionally.  Don't require
57219         AM_STDBOOL_H, since stdbool is a prerequisite.
57220         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57221         since we assume C89 or better.
57222         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57223         as we don't use their results.
57224         Don't check for fchdir, memmove, memset, strrchr, as we use
57225         them unconditionally.
57226         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57227         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57228
57229 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57232         Include <stddef.h> unconditionally, since we assume C89 now.
57233         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57234         * lib/fts.c: Include fts_.h first, to check interface.
57235         Do not include intprops.h; no longer needed.
57236         Include cycle-check.h and hash.h, since fts_.h no longer does.
57237         Remove unnecessary casts of closedir to void.
57238         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57239         decide whether to decrement nlinks.
57240         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57241         (FTS): Use struct hash_table * instead of Hash_table, so that
57242         we no longer need to include hash.h here.
57243
57244 2005-05-18  Jim Meyering  <jim@meyering.net>
57245
57246         * modules/dirfd (License): Change to LGPL.  Most of the code
57247         is already in the public domain.
57248
57249 2005-05-18  Jim Meyering  <jim@meyering.net>
57250
57251         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57252         Reported by Yoann Vandoorselaere.
57253
57254 2005-05-17  Jim Meyering  <jim@meyering.net>
57255
57256         * m4/fts.m4: New file, from coreutils.
57257
57258 2005-05-17  Jim Meyering  <jim@meyering.net>
57259
57260         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57261
57262 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         Sync from coreutils.
57265         * m4/unlinkdir.m4: New file.
57266
57267 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         Sync from coreutils.
57270         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57271         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57272         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57273         White space changes only.
57274         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57275         special.
57276         * lib/yesno.c: Include getline.h, not ctype.h.
57277         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57278         Use getline to remove arbitrary restriction on response length.
57279
57280 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57281
57282         * config/srclist-update: Spell out "Street" in FSF postal
57283         mail address; this is the style the FSF seems to prefer.
57284
57285         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57286         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57287         this updates FSF postal mail address.
57288
57289         Sync from coreutils.
57290         * modules/unlinkdir: New file.
57291         * modules/yesno (Depends-on): Add getline.
57292         * MODULES.html.sh (File system functions): Add unlinkdir.
57293
57294 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57297         lib/strsep.h:
57298         Change the initial comment to refer to GPL, not LGPL.
57299         gnulib-tool will change it to LGPL as needed.
57300
57301         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57302         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57303         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57304         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57305         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57306         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57307         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57308         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57309         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57310         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57311         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57312         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57313         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57314         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57315         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57316         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57317         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57318         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57319         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57320         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57321         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57322         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57323         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57324         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57325         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57326         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57327         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57328         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57329         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57330         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57331         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57332         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57333         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57334         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57335         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57336         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57337         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57338         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57339         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57340         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57341         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57342         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57343         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57344         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57345         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57346         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57347         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57348         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57349         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57350         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57351         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57352         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57353         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57354         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57355         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57356         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57357         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57358         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57359         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57360         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57361         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57362         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57363         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57364         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57365         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57366         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57367         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57368         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57369         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57370         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57371         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57372         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57373         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57374         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57375         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57376         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57377         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57378         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57379         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57380         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57381         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57382         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57383         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57384         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57385         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57386         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57387         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57388         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57389         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57390         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57391         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57392         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57393         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57394         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57395         lib/yesno.c, lib/yesno.h:
57396         Update FSF postal mail address.
57397
57398 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57399
57400         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57401         tests/test-memmem.c, tests/test-stpncpy.c:
57402         Update FSF postal mail address.
57403
57404 2005-05-13  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57407         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57408         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57409         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57410         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57411         Add support for 64-bit integers in the MSVC compiler.
57412
57413 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57414
57415         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57416
57417 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57418
57419         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57420
57421 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         * doc/getdate.texi (General date syntax): Don't say that date
57424         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57425         Problem reported by Nic Ferrier.
57426
57427 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57428
57429         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57430         specified in ai_socktype. Fix invalid ai_protocol
57431         check. ai_protocol is usually set to 0 or depending on
57432         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57433         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57434         ai_socktype / ai_protocol in the returned addrinfo structure.
57435
57436 2005-05-10  Simon Josefsson  <jas@extundo.com>
57437
57438         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57439         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57440
57441 2005-05-10  Karl Berry  <karl@gnu.org>
57442
57443         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57444         (from http://www.gnu.org/licenses).
57445         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57446         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57447         fdl.texi suffices.
57448
57449 2005-05-10  Karl Berry  <karl@gnu.org>
57450
57451         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57452         (COPYING.DOC): remove.
57453
57454         * config/srclist-update: new FSF address.
57455
57456 2005-05-10  Derek Price  <derek@ximbiot.com>
57457
57458         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57459         possible.
57460
57461 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57462             Bruno Haible  <bruno@clisp.org>
57463
57464         * modules/inet_ntop: New file.
57465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57466         inet_ntop.
57467
57468 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57469             Bruno Haible  <bruno@clisp.org>
57470
57471         * m4/inet_ntop.m4: New file.
57472
57473 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57474             Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/inet_ntop.h: New file.
57477         * lib/inet_ntop.c: New file, from glibc with modifications.
57478
57479 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * modules/time_r (License): Change to LGPL.
57482         * modules/extensions (License): Change to LGPL.  Actually,
57483         the license is more permissive than that, but currently gnulib-tool
57484         doesn't know how to handle more-permissive licenses.
57485
57486         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57487         Problem reported by Dave Love.
57488
57489 2005-05-08  Jim Meyering  <jim@meyering.net>
57490
57491         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57492         blank.
57493
57494 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57495
57496         * modules/argmatch (Depends-on): Add stdbool.
57497         * modules/backupfile (Depends-on): Likewise.
57498         * modules/chdir-long (Depends-on): Likewise.
57499         * modules/closeout (Depends-on): Likewise.
57500         * modules/cycle-check (Depends-on): Likewise.
57501         * modules/dirname (Depends-on): Likewise.
57502         * modules/fnmatch (Depends-on): Likewise.
57503         * modules/fsusage (Depends-on): Likewise.
57504         * modules/fwriteerror (Depends-on): Likewise.
57505         * modules/getcwd (Depends-on): Likewise.
57506         * modules/getloadavg (Depends-on): Likewise.
57507         * modules/hard-locale (Depends-on): Likewise.
57508         * modules/makepath (Depends-on): Likewise.
57509         * modules/mountlist (Depends-on): Likewise.
57510         * modules/nanosleep (Depends-on): Likewise.
57511         * modules/posixtm (Depends-on): Likewise.
57512         * modules/quotearg (Depends-on): Likewise.
57513         * modules/readtokens (Depends-on): Likewise.
57514         * modules/readtokens0 (Depends-on): Likewise.
57515         * modules/readutmp (Depends-on): Likewise.
57516         * modules/save-cwd (Depends-on): Likewise.
57517         * modules/strftime (Depends-on): Likewise.
57518         * modules/userspec (Depends-on): Likewise.
57519         * modules/utimecmp (Depends-on): Likewise.
57520         * modules/xgetcwd (Depends-on): Likewise.
57521         * modules/xnanosleep (Depends-on): Likewise.
57522         * modules/xstrtod (Depends-on): Likewise.
57523         * modules/yesno (Depends-on): Likewise.
57524
57525 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57528         needless checks.
57529
57530 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57531
57532         Merge from coreutils.  Among other things,
57533         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57534         * lib/fd-safer.c: New file.
57535         * lib/fcntl-safer.h, open-safer.c: Remove.
57536         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57537         * lib/dup-safer.c: Include unistd-safer.h first.
57538         Don't include errno.h.
57539         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57540         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57541         * lib/file-type.c: Rely on file-type.h change.
57542         * lib/getloadavg.c: Include unistd-safer.h.
57543         (getloadavg): Use safer open.
57544         * lib/getusershell.c: Include "stdio-safer.h".
57545         (getusershell): Use safer fopen.
57546         * lib/long-options.c (long_options): Use NULL rather than 0.
57547         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57548         'free'.
57549         * lib/modechange.c: Likewise.
57550         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57551         (MODE_DONE): New constant.
57552         (struct mode_change): Remove 'next' member.
57553         (make_node_op_equals): New function; like the old one of the
57554         same name, except it allocates an array.
57555         (mode_compile, mode_create_from_ref): Use it.
57556         (mode_compile): Allocate result as an array, not a linked list.
57557         Parse octal string ourself, so that we catch mistakes like "+0".
57558         (mode_adjust): Arg is an array, not a linked list.
57559         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57560         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57561         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57562         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57563         Remove.  This is now stat-macros.h's job.
57564         (talloc): Remove.  All callers replaced by xalloc, so that
57565         our invokers don't have to worry about reporting memory failures.
57566         (make_node_op_equals): Remove.
57567         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57568         New constants.
57569         (struct mode_change): Moved here from modechange.h.
57570         (mode_append_entry): Remove.
57571         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57572         apps to have incorrect behavior.  Use simpler algorithm for head
57573         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57574         Detect more invalid usages rather than having somewhat-random behavior.
57575         Don't insert an "a=" action, as that leads to incorrect behavior.
57576         (mode_compile, mode_create_from_ref): Return NULL on error instead
57577         of an enum, since now there's only one way to have an error.  All
57578         callers changed.
57579         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57580         at the correct time.  Simplify calculation of "+u" and its ilk.
57581         Don't mishandle "+X".
57582         (mode_free): Remove "register" and localize decls.
57583         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57584         (struct mode_change): Move to modechange.c; callers don't
57585         need to see this stuff.
57586         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57587         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57588         (mode_change, mode_adjust): Reflect the new signatures noted above.
57589         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57590         that might redefine system include files.
57591         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57592         (my_usleep): Use NULL rather than (void *) 0.
57593         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57594         Use siginterrupt to specify that system calls should be interrupted.
57595         (rpl_nanosleep): Move initialization of suspended closer to call of
57596         my_usleep.
57597         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57598         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57599         (desirable_utmp_entry): New function.
57600         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57601         using x2nrealloc, to simplify logic.
57602         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57603         size calculation.  Do not assume utmp file is a regular file.
57604         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57605         (READ_UTMP_CHECK_PIDS): New constant.
57606         * lib/save-cwd.c: Include unistd-safer.h.
57607         (save_cwd): Use fd_safer.
57608         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57609         [!_LIBC] Include "stat-macros.h" instead.
57610         * lib/unistd-safer.h (fd_safer): New decl.
57611
57612 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         * modules/getloadavg (Depends-on): Add unistd-safer.
57615         * modules/getusershell (Depends-on): Add stdio-safer.
57616         * modules/lstat (Depends-on): Remove xalloc.
57617         * modules/mkstemp (Depends-on): Add stat-macros.
57618         * modules/modechange (Depends-on): Remove xstrtol.
57619         Add stat-macros, xalloc.
57620         * modules/save-cwd (Depends-on): Add unistd-safer.
57621         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57622         * modules/unistd-safer (Files): Add lib/fd-safer.c
57623         (Makefile.am): Remove lib_SOURCES.
57624
57625         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57626         Remove fcntl-safer; unistd-safer supersedes it.
57627
57628 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57631         AC_HEADER_STAT.
57632         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57633         (gl_PREREQ_CHOWN): Remove.
57634         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57635         it.  Don't require AC_HEADER_STAT.
57636         (gl_PREREQ_LSTAT): Remove.
57637         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57638         Don't require AC_HEADER_STAT.
57639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57640         (gl_PREREQ_RMDIR): Remove.
57641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57642         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57643         the stat-macros module a prerequisite.
57644         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57645         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57646         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57647         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57648         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57649         variable names.
57650         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57651         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57652         variable prefixes.
57653         * m4/fcntl-safer.m4: Remove.
57654         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57655         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57656         Invoke gl_PREREQ_FD_SAFER.
57657         (gl_PREREQ_FD_SAFER): New macro.
57658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57659         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57660         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57661         Remove duplicate call to AC_LIBOBJ(readutmp).
57662         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57663
57664         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57665         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57666
57667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * MODULES.html.sh (Misc): Add byteswap.
57670
57671 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57672
57673         * modules/getcwd (Depends-on): Add extensions.
57674         * modules/openat (Depends-on): Likewise.
57675
57676 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57677
57678         * modules/byteswap: New file.
57679
57680 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57681
57682         * m4/byteswap.m4: New file.
57683
57684 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57685
57686         * lib/byteswap_.h: New file.
57687
57688 2005-04-25  Karl Berry  <karl@gnu.org>
57689
57690         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57691
57692 2005-04-25  Albert Chin  <china@thewrittenword.com>
57693
57694         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57695         Toolkit C bug.
57696
57697 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57698
57699         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57700         (func_ln_if_changed) Remove forcibly for no error message
57701         in case file does not exist.
57702
57703 2005-04-19  Simon Josefsson  <jas@extundo.com>
57704
57705         * gnulib-tool (Options): Make --symlink mean --symbolic.
57706
57707 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57708
57709         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57710
57711 2005-04-16  Simon Josefsson  <jas@extundo.com>
57712
57713         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57714
57715 2005-04-15  Simon Josefsson  <jas@extundo.com>
57716
57717         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57718
57719 2005-04-15  Simon Josefsson  <jas@extundo.com>
57720
57721         * gnulib-tool: Rename --symlink to --symbolic.
57722
57723 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57724
57725         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57726         symbolic links to files instead of copying/moving.  Add --aux-dir,
57727         specifying directory relative --dir where auxiliary build tools
57728         are placed.
57729
57730 2005-04-14  Bruno Haible  <bruno@clisp.org>
57731
57732         * modules/allocsa (License): Change to LGPL.
57733         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57734
57735 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57738         that "UTC +1 second" continues to work.  Problem reported
57739         by Dmitry V. Levin.
57740         (relunit_snumber): New rule.
57741         (relunit): Use it.
57742
57743 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * lib/getdate.y (universal_time_zone_table): New constant.
57746         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57747         universal_time_zone_table.
57748         (lookup_zone): Prefer universal_time_zone_table to
57749         local_time_zone_table, so that "GMT" time stamps are allowed in
57750         London during the summer.  Problem reported by Ian Abbott.
57751
57752 2005-04-12  Jim Meyering  <jim@meyering.net>
57753
57754         * lib/human.c (humblock): Set *options even when returning due to
57755         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57756         warning from gcc-4.
57757
57758 2005-04-09  Jim Meyering  <jim@meyering.net>
57759
57760         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57761         -Wuninitialized: initialize tm0.tm_year.
57762
57763 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57764
57765         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57766         count, since there's no maximum.  All uses changed.
57767         Add member dsts_seen.
57768         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57769         not being INT_MAX.
57770         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57771         Use pc_rels_seen to decide whther a date is absolute.
57772
57773         * lib/getdate.y (number): Don't overwrite year.
57774         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57775         check.
57776
57777 2005-04-02  Simon Josefsson  <jas@extundo.com>
57778
57779         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57780         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57781
57782 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57783
57784         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57785         where no absolute path name can be longer than PATH_MAX.
57786
57787 2005-03-27  Jim Meyering  <jim@meyering.net>
57788
57789         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57790
57791 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57794         "one's complement" -> "ones' complement" in comment, as per Knuth.
57795         "value of type" -> "type or expression" in comment.
57796         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57797
57798 2005-03-26  Jim Meyering  <jim@meyering.net>
57799
57800         Comment nits.
57801         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57802         Correct typos: s/or/of/.
57803
57804 2005-03-26  Jim Meyering  <jim@meyering.net>
57805
57806         * modules/check-include-files: Move to ../ and rename to...
57807         * check-module: ...this.
57808
57809 2005-03-25  Jim Meyering  <jim@meyering.net>
57810
57811         * modules/xvasprintf (Files): Add xalloc.h.
57812
57813 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57814
57815         * modules/gettext (Files): config/config.rpath ->
57816         build-aux/config.rpath
57817         * modules/iconv (Files): Likewise.
57818         Problem reported by Oskar Liljeblad.
57819
57820 2005-03-23  Jim Meyering  <jim@meyering.net>
57821
57822         * modules/check-include-files: New script to check for
57823         missing dependencies, multiple includes, etc.
57824
57825         * modules/c-strtold (Depends-on): Add xalloc.
57826         * modules/c-strtod (Depends-on): Add xalloc.
57827         * modules/hash (Depends-on): Add xalloc.
57828         (Files): Remove lib/xalloc.h.
57829
57830         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57831         * modules/userspec (Files): Add lib/inttostr.h.
57832
57833 2005-03-23  Jim Meyering  <jim@meyering.net>
57834
57835         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57836
57837 2005-03-22  Jim Meyering  <jim@meyering.net>
57838
57839         * modules/stat-macros: New module.
57840         * modules/canonicalize, modules/euidaccess, modules/file-type,
57841         * modules/filemode, modules/lchown, modules/makepath,
57842         * modules/rmdir, modules/stat: Depend on new stat-macros module
57843         rather than listing lib/stat-macros.h manually.
57844         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57845
57846 2005-03-22  Jim Meyering  <jim@meyering.net>
57847
57848         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57849
57850 2005-03-22  Bruno Haible  <bruno@clisp.org>
57851
57852         * config/srclist.txt: Replace target directory 'config' with
57853         'build-aux'.
57854         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57855         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57856         ../build-aux/.
57857
57858 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57859
57860         * modules/chdir-long (Depends-on): Add mempcpy.
57861
57862         * modules/acl, modules/backupfile, modules/c-strtod,
57863         modules/c-strtold, modules/canon-host, modules/canonicalize,
57864         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57865         modules/exclude, modules/exitfail, modules/file-type,
57866         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57867         modules/getdate, modules/getline, modules/getpagesize,
57868         modules/getpass, modules/getugroups, modules/group-member,
57869         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57870         modules/inttostr, modules/long-options, modules/makepath,
57871         modules/md5, modules/memcasecmp, modules/memcoll,
57872         modules/modechange, modules/mountlist, modules/path-concat,
57873         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57874         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57875         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57876         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57877         modules/strftime, modules/strndup, modules/strverscmp,
57878         modules/timespec, modules/unlocked-io, modules/userspec,
57879         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57880         modules/yesno:
57881         Remove lib_SOURCES line from Makefile.am section, as this is now
57882         done automatically by the corresponding Autoconf macro.
57883
57884 2005-03-21  Jim Meyering  <jim@meyering.net>
57885
57886         Changes imported from coreutils.
57887
57888         * lib/cycle-check.c: Don't include xalloc.h.
57889
57890         * lib/path-concat.c: Don't include assert.h.
57891         (path_concat): Remove assertion that would have triggered
57892         for ABASE starting with more than one slash.
57893         Reported by Andreas Schwab.
57894
57895         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57896         properly when ABASE is an absolute file name.
57897         Correct the description of this function.
57898         Include <assert.h>.
57899         Add an assertion and a test driver.
57900         This fixes a bug introduced on 2004-07-02.
57901         Andreas Schwab reported the resulting failure of cp --parents:
57902         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57903
57904 2005-03-21  Jim Meyering  <jim@meyering.net>
57905
57906         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57908
57909 2005-03-21  Jim Meyering  <jim@meyering.net>
57910         and  Paul Eggert  <eggert@cs.ucla.edu>
57911
57912         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57913         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57914         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57915         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57916         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57917         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57918         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57919         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57920         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57921         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57922         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57923         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57924         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57925         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57926         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57927         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57928         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57929         for these modules.
57930
57931 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57932
57933         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57934         (which shouldn't happen), generate nothing instead of returning 0
57935         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57936
57937 2005-03-16  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57940         HAVE_LONGLONG_64BIT.
57941
57942 2005-03-16  Bruno Haible  <bruno@clisp.org>
57943
57944         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57945         HAVE_LONGLONG_64BIT.
57946
57947 2005-03-16  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57950         HAVE_LONGLONG_64BIT.
57951
57952 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57955         reliably distinguish strftime failure from empty output on POSIX
57956         hosts.
57957
57958 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57961         (iconv_string): Don't guess a size-zero buffer, as that might cause
57962         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57963         result would be 'too large', where 'too large' is (heuristically)
57964         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57965         overflow concerns.  This will prevent some unwanted malloc failures
57966         when the inputs are very large.
57967
57968 2005-03-15  Karl Berry  <karl@gnu.org>
57969
57970         * config/srclist.txt (config.rpath): from gettext.
57971         * config/config.rpath: update.
57972
57973 2005-03-15  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57976         to 'negate'.
57977
57978         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57979         variable.
57980
57981         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57982         results.
57983
57984 2005-03-14  Simon Josefsson  <jas@extundo.com>
57985
57986         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57987         <fx@gnu.org>.
57988
57989 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57990
57991         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57992         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57993         intprops.h.
57994         * lib/strtol.c: Likewise.
57995
57996 2005-03-14  Jim Meyering  <jim@meyering.net>
57997
57998         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57999         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58000         to be nonzero so that we (and caller) can detect the difference
58001         between a valid zero-length expansion and an error return, even
58002         when the underlying strftime fails before writing anything into
58003         that location.
58004
58005 2005-03-14  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58008         Update from GNU gettext 0.14.3.
58009
58010 2005-03-10  Jim Meyering  <jim@meyering.net>
58011
58012         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58013
58014 2005-03-10  Jim Meyering  <jim@meyering.net>
58015
58016         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58017         so that this module works on systems without fchdir.
58018
58019 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58020
58021         Factor int-properties macros into a single file, except for
58022         glibc-related files.
58023         * lib/intprops.h: New file.
58024         * lib/getloadavg.c: Include it instead of limits.h.
58025         (INT_STRLEN_BOUND): Remove.
58026         * lib/human.c: Include intprops.h.
58027         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58028         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58029         302/1000.
58030         * lib/inttostr.h: Include intprops.h instead of limits.h.
58031         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58032         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58033         for consistency with intprops.h.
58034         (time_t_is_integer, twos_complement_arithmetic): Use them.
58035         * lib/sig2str.h: Include <signal.h>, intprops.h.
58036         (INT_STRLEN_BOUND): Remove.
58037         * lib/strftime.c (TYPE_SIGNED): Remove.
58038         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58039         * lib/strtol.c: Adjust comments to match intprops.h.
58040         * lib/userspec.c: Include intprops.h.
58041         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58042         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58043         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58044         instead of rolling our own expressions.
58045         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58046
58047         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58048         instead of int.
58049         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58050         the right thing even if adding 1900 would overflow.  Similarly
58051         for tm_mon + 1 and tm_yday + 1.
58052         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58053         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58054         (DO_SIGNED_NUMBER): New macro.
58055         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58056
58057 2005-03-07  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58060
58061 2005-03-07  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58064
58065 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58066
58067         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58068         (func_import): Only replace files via --import when they have actually
58069         changed.
58070
58071 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58072
58073         * m4/mmap-anon.m4: New file.
58074         * m4/pagealign_alloc.m4: New file.
58075
58076 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58077             Bruno Haible  <bruno@clisp.org>
58078
58079         * modules/pagealign_alloc: New file.
58080         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58081
58082 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58083             Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/pagealign_alloc.h: New file.
58086         * lib/pagealign_alloc.c: New file.
58087
58088 2005-03-03  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58091         Use an all-permissive copyright notice, recommended by RMS.
58092
58093 2005-03-02  Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58096         of AIX, the replacement has to be done only after <string.h> is
58097         included, therefore not in config.h. stpncpy.h does the replacement,
58098         and stpncpy.c uses it.
58099
58100 2005-03-02  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58103         stpncpy.c uses it.
58104
58105 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58108         The workaround isn't strictly needed for POSIX conformance, and
58109         it's too much of a pain to configure and maintain.  We'll ask
58110         people to fix their kernels instead.
58111         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58112         (NANOSLEEP_BUG_WORKAROUND): Remove.
58113         (xnanosleep): Remove the workaround.
58114
58115 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58116
58117         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58118         Reported by Derek Price.
58119         (Include): Add "timespec.h".
58120
58121         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58122
58123 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58126         to detect nanosleep bug.
58127
58128 2005-03-01  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58131
58132 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         * modules/gethrxtime: New file.
58135         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58136         (Depends-on): Add gethrxtime.
58137         (configure.ac): Add gl_XNANOSLEEP.
58138         (Makefile.am): Remove lib_SOURCES line.
58139
58140 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58141
58142         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58143         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58144
58145 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58146
58147         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58148         * lib/timespec.h (gettime): Return void, since it always
58149         succeeds now.  All uses changed.
58150         * lib/gettime.c (gettime) Likewise.
58151         [HAVE_NANOTIME]: Prefer nanotime.
58152         Assume gettimeofday succeeds, as POSIX requires.
58153         Assime time () succeeds, since other code already does.
58154         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58155         (timespec_subtract): Remove.
58156         (NANOSLEEP_BUG_WORKAROUND): New constant.
58157         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58158         things considerably.  Use it only on GNU/Linux hosts, since the
58159         workaround shouldn't be needed elsewhere.
58160
58161 2005-02-24  Bruno Haible  <bruno@clisp.org>
58162
58163         * modules/gettext (Files): Add m4/glibc2.m4.
58164
58165 2005-02-24  Bruno Haible  <bruno@clisp.org>
58166
58167         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58168         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58169         * m4/progtest.m4:
58170         Update from GNU gettext 0.14.2.
58171         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58172
58173 2005-02-24  Bruno Haible  <bruno@clisp.org>
58174
58175         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58176         * lib/config.charset: Update from GNU gettext 0.14.2.
58177
58178 2005-02-24  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/gettext.h: Update from GNU gettext 0.14.2.
58181
58182 2005-02-23  Simon Josefsson  <jas@extundo.com>
58183
58184         * m4/iconvme.m4: New file.
58185
58186 2005-02-23  Jim Meyering  <jim@meyering.net>
58187
58188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58189         change.
58190         Thanks to Bruno Haible for catching it.
58191
58192 2005-02-22  Simon Josefsson  <jas@extundo.com>
58193
58194         * modules/iconvme: New file.
58195
58196         * MODULES.html.sh: Add iconvme.
58197
58198 2005-02-22  Simon Josefsson  <jas@extundo.com>
58199
58200         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58201
58202 2005-02-22  Simon Josefsson  <jas@extundo.com>
58203
58204         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58205
58206 2005-02-22  Jim Meyering  <jim@meyering.net>
58207
58208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58209         s/ifndef/ifdef/.
58210
58211 2005-02-20  Neil Conway  <neilc@samurai.com>
58212
58213         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58214         returned by OSX/Darwin if the specified buffer is not large
58215         enough for the hostname.
58216
58217 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58218
58219         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58220         pass it to _help, otherwise the latter coredumps trying to
58221         dereference state.root_argp.
58222
58223 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         * modules/chdir-long (Depends-on): Add memrchr.
58226         * modules/memrchr (Files): Add lib/memrchr.h.
58227         (Include): "memrchr.h".
58228
58229 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58232
58233 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58234
58235         * lib/memrchr.h: New file.
58236         * lib/chdir-long.c: Include it.
58237         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58238         Don't bother including stddef.h.
58239
58240 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58243         inclusion.
58244         Include <sys/types.h>, for dev_t.
58245         (ME_DUMMY, ME_REMOTE): Move from here....
58246         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58247         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58248         Dmitry V. Levin.
58249         Include mountlist.h first, to test the interface.
58250
58251 2005-01-29  Bruno Haible  <bruno@clisp.org>
58252
58253         * lib/progname.c (program_name): Initialize.
58254         Needed when linking statically on MacOS X.
58255
58256 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         Sync from coreutils.
58259         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58260         (Depends-on): Add c-strtod.
58261         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58262
58263 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         Sync from coreutils.
58266         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58267
58268         Remove files that are specific to coreutils.
58269         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58270
58271 2005-01-28  Bruno Haible  <bruno@clisp.org>
58272
58273         * modules/javacomp: New file.
58274         * MODULES.html.sh (Java): Add javacomp.
58275
58276 2005-01-28  Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/javacomp.m4: New file, from GNU gettext.
58279
58280 2005-01-28  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/javacomp.sh.in: New file, from GNU gettext.
58283         * lib/javacomp.h: New file, from GNU gettext.
58284         * lib/javacomp.c: New file, from GNU gettext.
58285
58286 2005-01-26  Simon Josefsson  <jas@extundo.com>
58287
58288         * lib/gai_strerror.c: Use GPL in header.
58289
58290 2005-01-26  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/javaexec: New file.
58293         * MODULES.html.sh (Java): Add javaexec.
58294
58295 2005-01-26  Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/javaexec.m4: New file, from GNU gettext.
58298
58299 2005-01-26  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/javaexec.sh.in: New file, from GNU gettext.
58302         * lib/javaexec.h: New file, from GNU gettext.
58303         * lib/javaexec.c: New file, from GNU gettext.
58304
58305 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58306
58307         * modules/lchown (Depends-on): Remove lchown.h
58308
58309 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58310
58311         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58312         must be defined if the header file was not found, in order
58313         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58314
58315 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58316
58317         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58318         initializers for struct pentry_state.
58319         (__argp_error): Check return value of __asprintf
58320         (__argp_failure): Translate error message
58321
58322         * lib/argp-parse.c: Removed braces around the expansion of N_()
58323
58324 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58327         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58328         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58329         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58330         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58331         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58332         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58333         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58334         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58335         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58336         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58337         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58338         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58339         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58340         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58341         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58342         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58343         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58344         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58345         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58346         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58347         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58348         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58349         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58350         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58351         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58352         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58353         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58354         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58355         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58356         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58357         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58358         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58359         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58360         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58361         Use an all-permissive copyright notice, recommended by RMS.
58362
58363 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58364
58365         * modules/chdir-long (Depends-on): Remove mempcpy.
58366
58367 2005-01-21  Jim Meyering  <jim@meyering.net>
58368
58369         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58370         same value as for Solaris 9.
58371
58372         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58373         component length.  This included changing the parameter to be
58374         of type `char *' rather than `char const *'.
58375         * lib/chdir-long.h (chdir_long): Update prototype.
58376
58377         * lib/openat.c (fdopendir, fstatat): New functions.
58378         * lib/openat.h: Include headers required for use of DIR and struct
58379         stat.
58380         [AT_SYMLINK_NOFOLLOW]: Define.
58381         (fdopendir, fstatat): Add prototypes.
58382
58383 2005-01-21  Bruno Haible  <bruno@clisp.org>
58384
58385         * modules/classpath: New file.
58386         * MODULES.html.sh (Java): Add classpath.
58387
58388 2005-01-21  Bruno Haible  <bruno@clisp.org>
58389
58390         * lib/classpath.h: New file, from GNU gettext.
58391         * lib/classpath.c: New file, from GNU gettext.
58392
58393 2005-01-20  Simon Josefsson  <jas@extundo.com>
58394
58395         * modules/version-etc-fsf: New file.
58396
58397 2005-01-20  Simon Josefsson  <jas@extundo.com>
58398
58399         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58400         * lib/version-etc.c: Remove version_etc_copyright.
58401         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58402         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58403
58404 2005-01-20  Simon Josefsson  <jas@extundo.com>
58405
58406         * lib/base64.h (isbase64): Add.
58407
58408         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58409         using a unsigned prototype, don't inline.
58410         (base64_decode): Use it.
58411
58412 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58415         it.
58416
58417 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         * lib/save-cwd.c (save_cwd): Remove code to support the case
58420         where fchdir is missing or flaky.
58421
58422 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58423
58424         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58425
58426 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58429         AC_LIBSOURCES now does this.
58430         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58431         with new ullong_max module.
58432
58433 2005-01-19  Bruno Haible  <bruno@clisp.org>
58434
58435         * modules/sh-quote: New file.
58436         * MODULES.html.sh (Executing programs): Add sh-quote.
58437
58438 2005-01-19  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/sh-quote.h: New file, from GNU gettext.
58441         * lib/sh-quote.c: New file, from GNU gettext.
58442
58443 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         Merge from coreutils.
58446         * m4/ullong_max.m4: New file.
58447         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58448         (gl_MACROS): Assume localeconv exists.
58449
58450 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         Merge changes from coreutils, as described below in several
58453         changelogs dated today.
58454
58455         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58456         (O_DIRECTORY): Remove; not needed here, since "." must be
58457         a directory.  All uses removed.
58458         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58459         universal on Suns, and we also need to test for IRIX.
58460         Revamp code to use 'if' rather than '#if'.
58461         Avoid unnecessary comparison of cwd->desc to 0.
58462
58463         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58464         for known valid error numbers rather than observed invalid ones.
58465
58466 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * modules/ullong_max: New file.
58469
58470         * modules/chdir-long, modules/openat: New files.
58471         * modules/save-cwd (Depends-on): Depend on chdir-long.
58472         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58473
58474 2005-01-18  Jim Meyering  <jim@meyering.net>
58475
58476         Merge from coreutils.
58477         * m4/chdir-long.m4, m4/openat.m4: New files.
58478         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58479         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58480         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58481         is sane and DOES follow symlinks.  Besides, testing 20 different
58482         systems found no broken chown implementations.
58483         Prompted by a change in rsync's copy of this macro.
58484         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58485
58486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58487
58488         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58489         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58490         NULL-means-set-to-current-time semantics.
58491         Remove temporary file immediately, rather than waiting
58492         for configure's at-exit trap code to do it.
58493
58494 2005-01-18  Jim Meyering  <jim@meyering.net>
58495
58496         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58497
58498         * lib/utimens.c (futimens): Account for the fact that futimes
58499         can also fail with errno == ENOSYS or errno == ENOENT.
58500         Patch from Dmitry V. Levin.
58501
58502         Change the name of the robust chdir function from chdir to chdir_long.
58503         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58504         (restore_cwd): Use chdir_long, not chdir.
58505         * lib/chdir-long.c: Renamed from chdir.c.
58506         * lib/chdir-long.h: Renamed from chdir.h.
58507         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58508         Hurd.
58509
58510 2005-01-18  Bruno Haible  <bruno@clisp.org>
58511
58512         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58513         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58514         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58515         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58516         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58517         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58518         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58519         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58520         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58521         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58522         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58523         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58524         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58525         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58526         Use an all-permissive copyright notice, recommended by RMS.
58527
58528 2005-01-18  Bob Proulx  <bob@proulx.com>
58529
58530         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58531         simplify offsetof() macro construct to avoid compile failure with
58532         native HP-UX 11.0 ANSI C compiler.
58533
58534 2005-01-17  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58537         redundant because stpncpy.m4 takes care of it.
58538
58539 2005-01-17  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58542
58543 2005-01-17  Bruno Haible  <bruno@clisp.org>
58544
58545         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58546         used.
58547
58548 2005-01-17  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/fwriteerror.h (fwriteerror): Change specification to include
58551         fclose.
58552         * lib/fwriteerror.c: Include <stdbool.h>.
58553         (fwriteerror): At the end, close the file stream. Record whether
58554         stdout was already closed.
58555
58556 2005-01-17  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/execute.c (environ): Declare if needed.
58559         * lib/pipe.c (environ): Likewise.
58560         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58561
58562 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58563
58564         * modules/argp: Depend on vsnprintf
58565
58566 2005-01-10  Jim Meyering  <jim@meyering.net>
58567
58568         * modules/closeout (Depends-on): Add atexit.
58569
58570 2005-01-06  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58573
58574 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58575
58576         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58577         definitions to be after all include files, to avoid collisions.
58578         Problem reported by Bob Proulx.
58579
58580 2005-01-04  Jim Meyering  <jim@meyering.net>
58581
58582         Changes imported from coreutils.
58583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58584         as the mkstemp template, use a temporary directory and an
58585         8.3-friendly template to avoid trouble on systems like DJGPP.
58586         Reported by Juan M. Guerrero via Stepan Kasal.
58587         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58588         close. Remove the temporary directory right away, rather than waiting
58589         for configure's at-exit trap code to do it.
58590         Suggestion from Stepan Kasal.
58591
58592 2005-01-01  Simon Josefsson  <jas@extundo.com>
58593
58594         * gnulib-tool: Print #include directives when --import'ing.
58595
58596 2004-12-28  Simon Josefsson  <jas@extundo.com>
58597
58598         * tests/test-base64.c: Include required header files.  Remove
58599         unused variables.
58600
58601 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * modules/error (Depends-on): Remove gettext.
58604
58605 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58608         not needed.  This removes a dependency on the gettext module.
58609         [defined _LIBC]: Do not include <libintl.h>; not needed.
58610
58611 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58614         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58615
58616 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58619         HAVE_DECL_STRTOLD.
58620
58621 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58622
58623         * modules/getdate (Depends-on): Remove alloca-opt.
58624
58625 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58628
58629 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * lib/argp-parse.c: Include <stddef.h>.
58632         (alignof, alignto): New macros.
58633         (parser_init): Don't assume that void * is aligned sufficiently
58634         for struct option.
58635
58636         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58637         need to extend the stack.
58638         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58639         large.
58640
58641 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58642
58643         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58644
58645 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58648         (2004-10-24) change.  Apparently this was a false alarm.
58649
58650         * modules/getdate: Depend on alloca-opt, not alloca.
58651
58652 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58653
58654         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58655         Remove now-obsolete comment about AIX.
58656         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58657         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58658         (YYMAXDEPTH): New macro.
58659
58660 2004-12-18  Simon Josefsson  <jas@extundo.com>
58661
58662         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58663
58664 2004-12-18  Bruno Haible  <bruno@clisp.org>
58665
58666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58667
58668 2004-12-18  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/fatal-signal.c (fatal_signals): Make non-const.
58671         (init_fatal_signals): New function.
58672         (uninstall_handlers, install_handlers): Ignore signals that were set to
58673         SIG_IGN.
58674         (at_fatal_signal): Call init_fatal_signals.
58675         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58676         SIG_IGN.
58677         Reported by Paul Eggert.
58678
58679 2004-12-18  Bruno Haible  <bruno@clisp.org>
58680
58681         * doc/alloca.texi: New file.
58682         * doc/alloca-opt.texi: New file.
58683
58684 2004-12-17  Jim Meyering  <jim@meyering.net>
58685
58686         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58687         Otherwise, install-sh could exit with improper exit status when
58688         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58689
58690 2004-12-16  Simon Josefsson  <jas@extundo.com>
58691
58692         * tests/test-base64.c: Add license.
58693
58694 2004-12-15  Stepan Kasal  <address@hidden>
58695
58696         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58697
58698 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         * modules/getcwd (Files): Add m4/d-ino.m4.
58701         Suggested by Mark D. Baushke.
58702
58703 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * lib/getdate.y (textint): New member "negative".
58706         (time_zone_hhmm): New function.
58707         Expect 14 shift-reduce conflicts, not 13.
58708         (o_colon_minutes): New rule.
58709         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58710         (yylex): Set the "negative" member of signed numbers.
58711
58712 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         * doc/getdate.texi (Time of day items, Time zone items):
58715         Describe new formats +00:00, UTC+00:00.
58716
58717 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58718
58719         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58720         spurious "-l"s.  Problem reported by Stepan Kasal.
58721
58722 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58723
58724         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58725         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58726
58727 2004-12-04  Simon Josefsson  <jas@extundo.com>
58728
58729         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58730         Vandoorselaere <yoann@prelude-ids.org>.
58731
58732 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         Changes imported from coreutils.
58735         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58736         exist.
58737         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58738
58739 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         Changes imported from coreutils.
58742         * lib/hard-locale.c: Assume <locale.h> exists.
58743         Include "strdup.h".
58744         (GLIBC_VERSION): New macro.
58745         (hard_locale): Assume setlocale exists.
58746         Rewrite to avoid #ifdef.
58747         Use strdup rather than malloc + strcpy.
58748         * lib/human.c: Assume <locale.h> exists.
58749         (human_readable): Assume localeconv exists.
58750
58751 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58752
58753         * modules/hard-locale (Depends-on): Add strdup.
58754
58755 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58756
58757         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58758         convert T2, not T.  (Imported from libc.)
58759
58760 2004-11-30  Simon Josefsson  <jas@extundo.com>
58761
58762         * modules/restrict (License): Change to LGPL.
58763
58764 2004-11-30  Simon Josefsson  <jas@extundo.com>
58765
58766         * m4/restrict.m4: Add copyright and copying conditions.
58767
58768 2004-11-30  Simon Josefsson  <jas@extundo.com>
58769
58770         * m4/base64.m4: New file.
58771
58772 2004-11-30  Simon Josefsson  <jas@extundo.com>
58773
58774         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58775         base64.
58776
58777         * tests/test-base64.c: New file.
58778
58779         * modules/base64: New file.
58780
58781 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58784         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58785
58786         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58787
58788 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58791         (__getcwd.c): Don't restore errno; glibc doesn't.
58792         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58793         first, falling back to our code only if its results look suspicious.
58794         Ensure that the resulting buffer is only as large as necessary.
58795
58796         * lib/readutmp.c: Include readutmp.h first.
58797         Include <errno.h>, since readutmp.h no longer does that.
58798         * lib/readutmp.h: Don't include <errno.h>,
58799         <sys/param.h>, <time.h>; not needed to establish interface.
58800         (errno): Remove decl.
58801         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58802         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58803         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58804
58805 2004-11-28  Simon Josefsson  <jas@extundo.com>
58806
58807         * lib/base64.h, base64.c: New file.
58808
58809 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58812
58813 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58816         (Depends-on): Remove pathmax, same.  Add mempcpy.
58817         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58818         (Makefile.am): Append getcwd.h to lib_SOURCES.
58819         (Include): Add getcwd.h.
58820         (Maintainer): Change from Jim Meyering to "all, glibc",
58821         since getdate now uses intended-for-glibc code.
58822         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58823         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58824
58825 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58828         HP's ANSI C compiler.
58829         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58830         Declaring int functions causes warnings on some modern systems and
58831         shouldn't be needed to compile on ancient ones.
58832         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58833         defined.
58834
58835         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58836         with the following changes.
58837         (__set_errno): Parenthesize properly.
58838         Include <stdbool.h>.
58839         (MIN, MAX, MATCHING_INO): New macros.
58840         (__getcwd): Define with prototype, not K&R form.
58841         Use heuristics to allocate default buffer on stack if possible.
58842         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58843         behavior, and to avoid the PATH_MAX limit when computing
58844         ../../../../...
58845         Use MATCHING_INO to compare inode number to file.
58846         Check for arithmetic overflow in size calculations.
58847         Fix bug in reallocation of dot array that caused getcwd to fail
58848         on directories nested deeper than 75.
58849         Be more careful about saving errno on error.
58850         Do not use realloc; use only free+malloc, as this is a bit
58851         more flexible and avoids a needless copy operation.
58852         Do not inspect st_dev and st_ino for symbolic links; POSIX
58853         doesn't specify the latter.
58854         Check for closedir errors.
58855         Avoid needless casts.
58856         Use "#ifdef weak_alias" around weak_alias, to be like other
58857         glibc code.
58858         The following changes to getcwd.c have effect only when used in
58859         gnulib; they have no effect inside glibc proper.
58860         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58861         as alloca isn't used.
58862         (alloca, __alloca): Likewise.
58863         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58864         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58865         unconditionally, as gnulib assumes C89 or better.
58866         Do not include <sys/param.h>.
58867         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58868         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58869         better.
58870         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58871         Include <dirent.h> in a way that is compatible with modern Autoconf.
58872         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58873         New macros, if not already defined.
58874         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58875         Use "_LIBC", not "defined _LIBC", for consistency.
58876         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58877         a mempcpy module.
58878         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58879         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58880         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58881         credit only to Jim Meyering and adjust the copyright dates.
58882         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58883         <stdlib.h>, <unistd.h>, "pathmax.h".
58884         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58885         (INITIAL_BUFFER_SIZE): Remove.
58886         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58887
58888 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58889
58890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58891         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58892         Use the _ONCE methods, for efficiency.
58893         Check for fcntl.h.  In test program, include <errno.h>
58894         and <fcntl.h> if available.  Remove old K&R cruft from
58895         test program.  Check for common errors in GNU/Linux,
58896         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58897         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58899         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58900         name accordingly.
58901         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58902         accommodate new getcwd.c.
58903         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58904         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58905         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58906         that's all we need now.
58907
58908 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58909
58910         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58911         argp-parse.c depends on getopt internals, that means we should
58912         always use our getopt, to be on the safe side.
58913         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58914         order not to spoil the result of an eventual previous invocation
58915         of gl_GETOPT_SUBSTITUTE.
58916
58917 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58918
58919         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58920         redefinition warnings. To avoid them, include the defines
58921         in `#if !defined __need_getopt ... #endif'. The only place
58922         where __getopt_argv_const is used is in definitions
58923         of getopt_long and getopt_long_only below, which are as well
58924         protected by `#ifndef __need_getopt'.
58925         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58926         __need_getopt after including <stdio.h> and <unistd.h> These
58927         headers might have defined it.
58928
58929 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58930
58931         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58932
58933 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58936         (futimens): New function, which uses futimes if available.
58937         (futimens, utimens): Support timespec==NULL, with same semantics
58938         as utime and utimens.
58939         * lib/utimens.h (futimens): New decl.
58940
58941 2004-11-23  Jim Meyering  <jim@meyering.net>
58942
58943         * lib/getopt_.h: Remove trailing blanks.
58944
58945 2004-11-23  Jim Meyering  <jim@meyering.net>
58946
58947         * lib/__fpending.c: Add comment.
58948
58949 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58950
58951         * modules/canonicalize (Depends-on): Add xreadlink.
58952         Problem reported by James Youngman.
58953
58954 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58957         New macros.
58958         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58959         optopt): Use them instead of invoking ## directly; otherwise, the
58960         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58961
58962 2004-11-19  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/strtok_r.c: Move comments from here...
58965         * lib/strtok_r.h: ... to here.
58966
58967 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58970         implementations that mishandle size_t overflow.
58971
58972 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58975         might fail.  Problem reported by Yoann Vandoorselaere.
58976         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58977         implementations that mishandle size_t overflow.
58978
58979 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * modules/canon-host (Depends-on): Add strdup.
58982
58983 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58984
58985         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58986
58987 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         * lib/canon-host.c: Include "strdup.h".
58990         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58991         Use strdup instead of malloc/strcpy to duplicate strings.
58992
58993         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58994         (human_space_before_unit): New constant.
58995         * lib/human.c (human_readable): Support it.
58996
58997         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58998         (xgetcwd): Set errno correctly when failing.
58999         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59000         the failure is actually due to a PATH_MAX problem.
59001
59002         Further getopt changes to make it more likely that glibc will
59003         buy the changes back.
59004         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59005         (getopt): Use it, so to preserve glibc semantic
59006         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59007         when compiling for libc.
59008         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59009         (getopt_long, getopt_long_only): Use it.
59010
59011         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59012         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59013         (getopt): Argv is now char * const *, as per standard.
59014         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59015         not char *__getopt_argv_const *.
59016         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59017         _getopt_long_only_r): Likewise.
59018         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59019         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59020         _getopt_long_r, _getopt_long_only_r): Likewise.
59021         * lib/getopt_.h (__getopt_argv_const): Remove.
59022         (getopt): Argv is now char * const *, as per standard.
59023
59024         * lib/getdate.y (tORDINAL): New token.
59025         (day, relunit): Allow it for relative times.
59026         (relative_time_table): Use tORDINAL for ordinals.
59027
59028 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59031         Document that "second" isn't allowed as an ordinal number.
59032
59033 2004-11-16  Jim Meyering  <jim@meyering.net>
59034
59035         * modules/closeout (Depends-on): Add fpending.
59036
59037 2004-11-15  Jim Meyering  <jim@meyering.net>
59038
59039         * lib/closeout.c: Include "__fpending.h" once again.
59040         Include <stdbool.h>.
59041         (close_stdout): Don't fail just because stdout was closed initially,
59042         since some programs don't write to stdout in the normal course of
59043         operation (other than --version and --help), and we don't want this
59044         function to make e.g. `touch file >&-' fail.
59045         But do fail if it was closed and someone has tried to write to it.
59046         E.g., `printf foo >&-' must fail.
59047
59048 2004-11-13  Jim Meyering  <jim@meyering.net>
59049
59050         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59051
59052 2004-11-12  Simon Josefsson  <jas@extundo.com>
59053
59054         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59055         small doc fix is still pending.
59056
59057 2004-11-11  Simon Josefsson  <jas@extundo.com>
59058
59059         * modules/strtok_r: New file.
59060
59061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59062         strtok_r.
59063
59064 2004-11-11  Simon Josefsson  <jas@extundo.com>
59065
59066         * m4/strtok_r.m4: New file.
59067
59068         * m4/getopt.m4: Replace opterr.
59069
59070 2004-11-11  Simon Josefsson  <jas@extundo.com>
59071
59072         * lib/strtok_r.h, strtok_r.c: New file.
59073
59074 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59075
59076         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59077         of replacing opterr, getopt, etc.  This should handle the
59078         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59079
59080 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59081
59082         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59083         we can stop lying to compilers about the constness of argv when we
59084         are compiled outside glibc.
59085         (getopt, getopt_long, getopt_long_only): Use it.
59086         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59087         _getopt_internal, getopt): Likewise.
59088         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59089         _getopt_long_only_r): Likewise.
59090         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59091         _getopt_long_r, _getopt_long_only_r): Likewise.
59092
59093         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59094         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59095         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59096         the other external symbols.
59097         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59098         declaration, since the above renaming now works around collisions.
59099
59100 2004-11-11  Jim Meyering  <jim@meyering.net>
59101
59102         * lib/linebreak.c: Remove trailing blanks.
59103         * lib/alloca_.h: Likewise.
59104         * lib/acosl.c: Likewise.
59105         * lib/euidaccess.c: Likewise.
59106         * lib/allocsa.h: Likewise.
59107
59108 2004-11-10  Simon Josefsson  <jas@extundo.com>
59109
59110         * m4/getaddrinfo.m4: New file.
59111
59112 2004-11-10  Simon Josefsson  <jas@extundo.com>
59113
59114         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59115
59116 2004-11-10  Simon Josefsson  <jas@extundo.com>
59117
59118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59119         getaddrinfo.
59120
59121         * modules/getaddrinfo: New file.
59122
59123 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59126
59127 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         * lib/mktime.c (SHR): New macro, which is a portable
59130         substitute for >> that should work even on Crays.
59131         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59132         Problem reported by Mark D. Baushke in
59133         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59134         * lib/getdate.y (SHR): Likewise.
59135         (tm_diff): Use it.
59136         * lib/strftime.c (SHR): Likewise.
59137         (tm_diff): Use it.
59138         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59139         quote_these_too, so that right shifts are well defined.  All uses
59140         changed.
59141
59142 2004-11-10  Jim Meyering  <jim@meyering.net>
59143
59144         Ensure that no close failure goes unreported.
59145         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59146         return early when it seems there's nothing to flush.
59147         Don't include __fpending.h.
59148
59149 2004-11-10  Jim Meyering  <jim@meyering.net>
59150
59151         * modules/closeout (Depends-on): Remove fpending.
59152
59153 2004-11-10  Jim Meyering  <jim@meyering.net>
59154
59155         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59156
59157 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59160         gl_FUNC_STRFTIME.
59161         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59162         and AC_REQUIRE when possible, to avoid duplicate checks.
59163         Check for <wchar.h>.
59164
59165 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59168
59169 2004-11-09  Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/sockpfaf.m4: New file.
59172
59173 2004-11-05  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59176         Reported by Mark D. Baushke <mdb@cvshome.org>.
59177
59178 2004-11-04  Bruno Haible  <bruno@clisp.org>
59179
59180         2004-09-11  Bruno Haible  <bruno@clisp.org>
59181                 * allocsa.valgrind: New file.
59182         2004-02-06  Bruno Haible  <bruno@clisp.org>
59183                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59184                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59185                 Reported by Christopher Seip <chris.seip@hp.com>.
59186
59187 2004-11-04  Bruno Haible  <bruno@clisp.org>
59188
59189         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59190         (Makefile.am): Distribute it.
59191
59192 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59195         with errno == ERANGE if the buffer is too small.
59196         Problem reported by Mark D. Baushke.
59197
59198 2004-11-03  Albert Chin  <china@thewrittenword.com>
59199             Paul Eggert  <eggert@cs.ucla.edu>
59200
59201         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59202         equivalent, substitute $ac_type for equivalent type rather than
59203         blindly using uint32_t *always* which won't work if uint32_t is not
59204         available.  Define _UINT32_T to work around typedef of uint32_t if
59205         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59206         2.5.1.
59207
59208 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         * m4/jm-macros.m4: Sync from coreutils.
59211         (gl_MACROS): Check for mbrlen, for pathchk.
59212         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59213
59214 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         * lib/xreadlink.c (MAXSIZE): New macro.
59217         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59218         size does not exceed MAXSIZE.  Avoid cast.
59219         As suggested by Mark D. Baushke in
59220         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59221         if readlink fails with buffer size just under MAXSIZE, try again
59222         with MAXSIZE.
59223
59224 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59227
59228 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59229         and  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59232         (get_date): Overparenthesize to avoid GCC warning.
59233
59234 2004-11-02  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59237         returns void.
59238
59239 2004-11-02  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59242         function returns void.
59243
59244 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59247         fflush_unlocked, flockfile, funlockfile, funlockfile,
59248         fputs_unlocked, putc_unlocked.
59249
59250 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59253         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59254         already declared.
59255
59256 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         * modules/getdate (Files): Add doc/getdate.texi.
59259         (Depends-on): Add setenv, xalloc.
59260
59261 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59262
59263         * lib/getdate.y: Add support for TZ="foo" within a date string.
59264         Fix some bugs near time_t boundaries.  Reject dates with
59265         out-of-range components, e.g., "Sept 31".
59266         Include <stdlib.h>, "setenv.h", "xalloc.h".
59267         (ISDIGIT_LOCALE): Remove; unused.
59268         Note that the TZ and time functions used here are not reentrant.
59269         (mktime_ok, get_tz): New functions.
59270         (TZBUFSIZE): New constant.
59271         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59272         This requires that we sometimes generate our own TZ="XXX..." setting.
59273
59274 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         * doc/getdate.texi: New file, from coreutils with modifications for
59277         the new TZ parsing.
59278
59279 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59280
59281         * lib/mktime.c (not_equal_tm): Remove redundant check.
59282
59283 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * modules/regex (lib_SOURCES): Add regex.c.
59286         Reported by James Youngman in
59287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59288
59289 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         * lib/getdate.y: Use Bison 1.875 features, and some minor
59292         code cleanups.  This change does not affect semantics.
59293         Don't include <stdlib.h>; no longer needed.
59294         Don't include unlocked-io.h; only the "#if TEST" code uses
59295         stdio, and performance isn't crucial there.
59296         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59297         Bison 1.875 features as described below.
59298         All uses of "PC." replaced by "pc->".
59299         (YYSTYPE): Add a forward declaration.
59300         (yylex, yyerror): Use full prototypes in forward decls.
59301         Use "%pure-parser" rather than obsolescent "%pure_parser".
59302         Use %parse-param and %lex-param instead of obsolescent
59303         YYPARSE_PARAM and YYLEX_PARAM.
59304         (meridian_table, month_and_day_table, time_units_table,
59305         relative_time_table, time_zone_table, military_table,
59306         lookup_zone, lookup_word, get_date):
59307         Use NULL instead of 0 where appropriate.
59308         (to_hour): Avoid abort (), to avoid a dependency on
59309         stdlib.h.
59310         (yyerror, yylex): Now accepts parser_control * arg.
59311         (main) [TEST]: Use '\0' rather than 0 for char.
59312
59313 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59316
59317 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59318
59319         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59320         It's now the caller's responsibility to handle the case where
59321         !HAVE_GETPAGESIZE && !defined getpagesize.
59322
59323         * lib/mktime.c (leapyear): Arg is long int, not int.
59324
59325 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59328
59329 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59332         missing.  Problem reported by James Youngman.
59333
59334 2004-10-16  Simon Josefsson  <jas@extundo.com>
59335
59336         * gnulib-tool: Fix comments.  Fix parse problem.
59337         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59338
59339 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59342         implementation of getopt_long.  Problem reported by Alexander Taler in:
59343         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59344
59345 2004-10-15  Bruno Haible  <bruno@clisp.org>
59346
59347         * gnulib-tool: Untabify. Initialize supplied_libname.
59348         (func_usage): More homogenous output.
59349         (func_modules_transitive_closure, func_modules_to_filelist,
59350         func_emit_lib_Makefile_am): New functions.
59351         (func_import): New function, extracted from big case statement. Use
59352         func_get_license, func_modules_transitive_closure,
59353         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59354         opt_lgpl. Don't use test -a, as it's not portable.
59355         (func_create_testdir): Use func_modules_transitive_closure,
59356         func_modules_to_filelist, func_emit_lib_Makefile_am.
59357
59358 2004-10-15  Bruno Haible  <bruno@clisp.org>
59359
59360         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59361
59362 2004-10-15  Bruno Haible  <bruno@clisp.org>
59363
59364         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59365         the portions belonging to each module.
59366         Suggested by Derek Robert Price <derek@ximbiot.com>.
59367
59368 2004-10-12  Simon Josefsson  <jas@extundo.com>
59369
59370         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59371         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59372         to real functions.
59373
59374 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59375
59376         * modules/vsnprintf: New file.
59377
59378 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59379
59380         * m4/vsnprintf.m4: New file.
59381
59382 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59383
59384         * lib/vsnprintf.h: New file.
59385         * lib/vsnprintf.c: New file.
59386
59387 2004-10-11  Bruno Haible  <bruno@clisp.org>
59388
59389         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59390         vsnprintf.
59391
59392 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59395
59396 2004-10-07  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59399         fits into the provided buffer.
59400
59401 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         * lib/diacrit.c, diacrit.h: Add GPL notice.
59404
59405         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59406         notice.
59407         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59408         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59409         This avoids a potential constant-folding bug.
59410
59411 2004-10-05  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59414         for the declaration of strsep.
59415
59416 2004-10-05  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59419
59420 2004-10-04  Simon Josefsson  <jas@extundo.com>
59421
59422         * modules/memmem: New file.
59423         * tests/test-memmem.c: New file.
59424         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59425
59426 2004-10-04  Simon Josefsson  <jas@extundo.com>
59427
59428         * m4/memmem.m4: New file.
59429
59430 2004-10-04  Simon Josefsson  <jas@extundo.com>
59431
59432         * lib/memmem.h: New file.
59433         * lib/memmem.c: New file, taken from glibc.
59434
59435 2004-10-04  Simon Josefsson  <jas@extundo.com>
59436
59437         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59438         '#ifdef USE_UNLOCKED_IO'.
59439
59440 2004-10-04  Simon Josefsson  <jas@extundo.com>
59441
59442         * config/srclist.txt: Add memmem from glibc.
59443
59444 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59447
59448         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59449         modules/exclude, modules/getdate, modules/getline,
59450         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59451         modules/getusershell, modules/linebuffer, modules/md5,
59452         modules/mountlist, modules/posixtm, modules/readtokens,
59453         modules/readutmp, modules/regex, modules/sha1,
59454         modules/version-etc, modules/yesno:
59455         Remove dependency on unlocked-io.
59456
59457 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59460
59461         * m4/unlocked-io.m4: Add copyright notice.
59462         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59463
59464 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59467         * lib/xmalloc.c (xmemdup): Likewise.
59468         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59469         XFREE): Remove these long-obsolescent macros.
59470         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59471         * lib/xstrdup.c: Remove.
59472
59473         * lib/regex.c (re_comp): Cast gettext return value to char *,
59474         Problem reported by Martin Neitzel via Mark D. Baushke.
59475
59476 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59479         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59480         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59481         regex.c, sha1.c, version-etc.c, yesno.c:
59482         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59483         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59484         the includer's responsibility.
59485
59486         Sync from coreutils.
59487
59488         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59489         points to the start of a string, as the C Standard says the
59490         resulting behavior is undefined.
59491
59492         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59493         simple -> simple_backups, numbered_existing ->
59494         numbered_existing_backups, numbered -> numbered_backups
59495         to avoid shadowing problems.  All uses changed.
59496         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59497         * lib/backupfile.c (check_extension, numbered_backup):
59498         Rename locals to avoid shadowing 'basename'.
59499         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59500         once.
59501
59502         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59503         * lib/.cvsignore: Add getopt.h.
59504
59505 2004-10-04  Bruno Haible  <bruno@clisp.org>
59506
59507         * modules/README: New file.
59508         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59509         not a module.
59510
59511 2004-10-02  Jim Meyering  <jim@meyering.net>
59512
59513         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59514
59515 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59516
59517         * modules/strsep: New file.
59518
59519 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59520
59521         * m4/strsep.m4: New file.
59522
59523 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59524
59525         * lib/strsep.h: New file.
59526         * lib/strsep.c: New file.
59527
59528 2004-10-01  Simon Josefsson  <jas@extundo.com>
59529
59530         * lib/snprintf.c (snprintf): Handle size==0.
59531
59532 2004-10-01  Simon Josefsson  <jas@extundo.com>
59533             Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59536         (snprintf): Declare 'args'.
59537
59538 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         * lib/snprintf.c: Remove comments as to why each header is needed.
59541
59542 2004-10-01  Bruno Haible  <bruno@clisp.org>
59543
59544         * MODULES.html.sh: Add strsep.
59545
59546 2004-09-30  Simon Josefsson  <jas@extundo.com>
59547
59548         * modules/snprintf: New file.
59549
59550 2004-09-30  Simon Josefsson  <jas@extundo.com>
59551
59552         * m4/snprintf.m4: New file.
59553
59554 2004-09-30  Simon Josefsson  <jas@extundo.com>
59555
59556         * lib/snprintf.h, lib/snprintf.c: New files.
59557
59558 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59559
59560         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59561         (hol_entry_help): Never translate an empty string.
59562         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59563         * lib/argp.h (OPTION_NO_TRANS): New option.
59564
59565 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         * modules/argp (Maintainer): Replace Simon Josefsson
59568         by Sergey Poznyakoff.
59569
59570 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59573         changes merged back into glibc.
59574
59575 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59576
59577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59578
59579 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59580
59581         * lib/xvasprintf.c: Include xalloc.h.
59582         (xvasprintf): Use xalloc_die, not xmalloc_die.
59583
59584 2004-09-29  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/alloca-opt: New file, derived from modules/alloca.
59587         * modules/allocsa: Depend on alloca-opt instead of alloca.
59588         * modules/setenv: Likewise.
59589         * modules/vasnprintf: Likewise.
59590         * MODULES.html.sh: Add alloca-opt.
59591
59592 2004-09-28  Simon Josefsson  <jas@extundo.com>
59593
59594         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59595         LGPL, and to replace license template from GPL to LGPL.
59596
59597 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59598
59599         * modules/dummy: Change license to LGPL.
59600
59601 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59604
59605 2004-09-24  Simon Josefsson  <jas@extundo.com>
59606
59607         * modules/minmax (License): Change from GPL to LGPL.
59608
59609 2004-09-23  Simon Josefsson  <jas@extundo.com>
59610
59611         * gnulib-tool (--import): Typo.
59612
59613 2004-09-23  Simon Josefsson  <jas@extundo.com>
59614
59615         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59616
59617 2004-09-22  Bruno Haible  <bruno@clisp.org>
59618
59619         * modules/*: Add 'License' field.
59620         * gnulib-tool: Accept --extract-license option.
59621         (func_get_license): New function.
59622
59623 2004-09-21  Bruno Haible  <bruno@clisp.org>
59624
59625         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59626         Reported by Simon Josefsson.
59627
59628 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59629
59630         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59631         gl_AC_TYPE_LONG_LONG.
59632
59633 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59636
59637 2004-09-18  Simon Josefsson  <jas@extundo.com>
59638         and  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59641         calls with autoreconf.  Define GL_LIB.
59642
59643 2004-09-14  Karl Berry  <karl@gnu.org>
59644
59645         * config/srclist.txt: unsync setenv.c, sigh.
59646
59647 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59650         Problem reported by Bruno Haible in:
59651         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59652
59653 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59654
59655         * config/srclist.txt: Comment out argp-pvh.c.
59656
59657 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59660         in case some system header has #define'd it.  Problem reported by
59661         Soeren D. Schulze in
59662         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59663
59664 2004-09-09  Karl Berry  <karl@gnu.org>
59665
59666         * regex.[ch]: delete from the root.  These were supposed to be
59667                 synced with emacs cvs, but this has not happened for about
59668                 a year, and anyway nothing else uses emacs regex.[ch].
59669                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59670                 lib/regex[.ch] is untouched.
59671
59672 2004-09-09  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59675
59676 2004-09-09  Bruno Haible  <bruno@clisp.org>
59677
59678         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59679         modifications.
59680         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59681
59682 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59683
59684         * modules/xvasprintf: New file.
59685         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59686
59687 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59688
59689         * lib/xvasprintf.h: New file.
59690         * lib/xvasprintf.c: New file.
59691         * lib/xasprintf.c: New file.
59692
59693 2004-09-08  Bruno Haible  <bruno@clisp.org>
59694
59695         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59696
59697 2004-09-08  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59700         length is > INT_MAX.
59701         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59702         more.
59703
59704 2004-09-08  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/stdint_.h: New file, taken from GNU clisp.
59707
59708 2004-09-08  Bruno Haible  <bruno@clisp.org>
59709             Oskar Liljeblad  <oskar@osk.mine.nu>
59710
59711         * modules/stdint: New file.
59712         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59713
59714 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         Import from coreutils.
59717         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59718         strings on unbounded length.  alloca's performance benefits aren't
59719         that important here.
59720         (V_STRDUP): Remove.
59721         (parse_with_separator): New function, with most of the internals
59722         of the old parse_user_spec.  Allow user to omit both user and group,
59723         for compatibility with FreeBSD.
59724         Clone only the user name, not the entire spec.
59725         Do not set *uid, *gid unless entirely successful.
59726         Avoid memory leak in some failing cases.
59727         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59728         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59729         (parse_user_spec): Rewrite to use parse_with_separator.
59730
59731 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         * modules/userspec: Don't depend on alloca.
59734
59735 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59736
59737         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59738
59739 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59742         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59743         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59744
59745 2004-08-16  Simon Josefsson  <jas@extundo.com>
59746
59747         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59748         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59749         Add --dry-run for --import.
59750         Let user provided command line parameters override configure.ac
59751         settings.
59752
59753 2004-08-12  Simon Josefsson  <jas@extundo.com>
59754
59755         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59756         as discussed with Paul Eggert in threads rooted at
59757         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59758         and
59759         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59760         Before, the test was empty, and relied on ELIDE_CODE in source
59761         code.)
59762         (gl_PREREQ_GETOPT): New macro.
59763         (gl_GETOPT): Use them.
59764
59765 2004-08-12  Simon Josefsson  <jas@extundo.com>
59766
59767         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59768         * lib/getopt_.h: Renamed from getopt.h.
59769
59770 2004-08-12  Simon Josefsson  <jas@extundo.com>
59771
59772         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59773         Change default library name from libfoo to libgnu.
59774         Now, if you have a configure.ac that says:
59775                 gl_SOURCE_BASE(gl)
59776                 gl_M4_BASE(gl/m4)
59777                 gl_MODULES(error getopt etcetera)
59778                 gl_INIT
59779         you can import all you need by running:
59780                 ../gnulib/gnulib-tool --import
59781
59782         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59783         (Makefile.am): Rewrite, use logic from argz.
59784         (Include): Use <getopt.h> instead of "getopt.h".
59785
59786 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * modules/argp (Files): Add m4/unlocked-io.m4.
59789         (Depends-on): Add extensions.
59790
59791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59794         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59795         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59796         Check for program_invocation_name, program_invocation_short_name,
59797         flockfile, funlockfile, features.h, _getopt_long_only_r.
59798
59799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59802         its complicated substitute.
59803         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59804         and program_invocation_name.
59805         (__argp_basename) [!_LIBC]: Remove; the only use was
59806         replaced by its body.
59807         (__argp_short_program_name): Change condition from
59808         !defined __argp_short_program_name to
59809         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59810         to match argp-namefrob.h.
59811         (__argp_failure): Don't assume strerror_r returns char *.
59812         * lib/argp-parse.c (N_): Define unconditionally.
59813         (argp_default_options): Fill out initializers with 0 to avoid
59814         gcc warnings.
59815
59816 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59819         getopt1.c.
59820
59821 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         Merge from coreutils.
59824
59825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59826
59827         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59828         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59829
59830 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59831
59832         Merge from coreutils.
59833
59834         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59835         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59836         for Reliant Unix 5.43.
59837
59838         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59839         (union fooround): Use uintmax_t, not long int.
59840         The rest is a merge from libc:
59841         [defined _LIBC]: Include <shlib-compat.h>.
59842         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59843
59844         * lib/settime.c (settime): Recode to avoid warning with
59845         Sun Forte C 6U2.
59846
59847         * lib/strverscmp.c: Convert to UTF-8.
59848
59849 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59850
59851         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59852         m4/uintmax_t.m4.
59853
59854 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         * modules/xalloc-die: New file.
59857         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59858
59859         * modules/md5 (Files): Add m4/uint32_t.m4.
59860         * modules/sha1: Renamed from modules/sha.
59861         (Files):
59862         Rename lib/sha.h to lib/sha1.h.
59863         Rename lib/sha.c to lib/sha1.c.
59864         Rename m4/sha.m4 to m4/sha1.m4.
59865         (lib_SOURCES): Likewise.
59866         (configure.ac): Rename gl_SHA to gl_SHA1.
59867         (Include): sha.h -> sha1.h.
59868
59869 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59870
59871         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59872         * m4/sha1.m4: Renamed from sha.m4.
59873         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59874
59875 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * lib/obstack.h (obstack_empty_p):
59878         Don't assume that chunk->contents is suitably aligned.
59879         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59880         Likewise. Problem reported by Benno in
59881         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59882
59883         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59884         readable.  This could be improved further but it'd take some work.
59885
59886 2004-08-08  Simon Josefsson  <jas@extundo.com>
59887
59888         * modules/xgethostname (Depends-on): Remove exit and error (not
59889         used).
59890
59891         * modules/getpass-gnu: Add getpass.h.
59892         (Depends-on): Add stdbool.
59893         * modules/getpass: Add getpass.h.
59894
59895 2004-08-08  Simon Josefsson  <jas@extundo.com>
59896
59897         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59898         Check getpass declaration.
59899
59900 2004-08-08  Simon Josefsson  <jas@extundo.com>
59901
59902         * lib/xgethostname.c: Don't include error.h (not used).
59903
59904         * lib/getpass.h: Add.
59905         * lib/getpass.c: Include getpass.h first.
59906
59907 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59908
59909         * lib/xalloc-die.c: New file.
59910         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59911         All uses removed.
59912         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59913         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59914         xalloc-die.c.
59915         (_, N_, xalloc_die): Move to xalloc-die.c.
59916         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59917         so that we needn't mess with xalloc_msg_memory_exhausted.
59918
59919         * lib/sha1.h: Renamed from sha.h.
59920         (SHA1_H): Renamed from _SHA_H.
59921         (sha1_ctx): Renamed from sha_ctx.
59922         (sha1_init_ctx): Renamed from sha_init_ctx.
59923         (sha1_process_block): Renamed from sha_process_block.
59924         (sha1_process_bytes): Renamed from sha_process_bytes.
59925         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59926         (sha1_read_ctx): Renamed from sha_read_ctx.
59927         (sha1_stream): Renamed from sha_stream.
59928         (sha1_buffer): Renamed from sha_buffer.
59929         * lib/sha1.c: Likewise; renamed from sha.c.
59930         Do not include <sys/types.h>.
59931         Include <stddef.h> rather than <stdlib.h>.
59932
59933 2004-08-08  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59936         FILESYSTEM_PREFIX_LEN.
59937         * lib/progreloc.c: Likewise.
59938         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59939
59940 2004-08-06  Simon Josefsson  <jas@extundo.com>
59941
59942         * modules/progname (Depends-on): Don't depend on stdbool.
59943
59944 2004-08-06  Simon Josefsson  <jas@extundo.com>
59945
59946         * modules/getsubopt: New file.
59947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59948         getsubopt.
59949
59950 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         More merge from coreutils.
59953
59954         * m4/utimens.m4, m4/utimecmp.m4: New files.
59955         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59956         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59957         prereq.m4, sha.m4: Import changes from coreutils.
59958
59959 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59960
59961         More merge from coreutils.
59962         * modules/raise, modules/readtokens0, modules/utimens:
59963         * modules/utimecmp, module/xnanosleep: New files.
59964         * modules/strftime: Add lib/strftime.h.
59965         Change include from <time.h> to "strftime.h".
59966         * modules/yesno: Add lib/yesno.h.
59967         * modules/backupfile: Remove lib/addext.c.
59968         * modules/euidaccess: Add stat-macros.h.
59969         * modules/canonicalize, modules/euidaccess,
59970         modules/filemode, modules/lchown, modules/makepath,
59971         modules/rmdir, modules/stat: Likewise.
59972
59973 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59974
59975         Merge from tar.
59976         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59977         SIZE_MAX is a valid preprocessor constant.
59978         (__argp_basename): Change from "#ifndef _LIBC"
59979         to "#ifndef __argp_short_program_name", so that
59980         we don't compile these functions for tar.
59981
59982         More merges from coreutils.
59983         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59984         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59985         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59986         * lib/addext.c: Remove; no longer needed.
59987         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59988         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59989         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59990         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59991         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59992         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59993         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59994         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59995         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59996         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59997         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59998         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59999         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60000         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60001         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60002         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60003         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60004         Import changes from coreutils.
60005
60006 2004-08-05  Simon Josefsson  <jas@extundo.com>
60007
60008         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60009
60010 2004-08-05  Simon Josefsson  <jas@extundo.com>
60011
60012         * m4/getsubopt.m4: New file.
60013
60014 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60015
60016         Merge from coreutils.
60017
60018         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60019         * m4/getcwd-path-max.m4: New files.
60020
60021         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60022         FILESYSTEM_PREFIX_LEN ->
60023         FILE_SYSTEM_PREFIX_LEN.
60024         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60025         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60026         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60027         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60028
60029         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60030         prerequisite modules now handle the DOS stuff.
60031         Don't check for unistd.h.
60032
60033 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         Merge from coreutils.
60036
60037         * lib/.gdb-history: Remove; this doesn't belong here.
60038
60039         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60040         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60041         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60042         * lib/getcwd.c: New files.
60043
60044         * lib/dirname.h: Include <stdbool.h>.
60045         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60046         for consistency with POSIX terminology.  All uses changed.
60047         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60048         (strip_trailing_slashes): Use bool for booleans.
60049         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60050
60051         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60052         sometimes returns a positive errno value even when it succeeds.
60053         (print_errno_message) [!LIBC]: Fall back on strerror if
60054         __strerror_r fails.
60055
60056         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60057         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60058         (longest_relative_suffix): New function.
60059         (path_concat): Use it.  Assume first argument is not NULL.
60060         Port to DOS.  Omit redundant separators.
60061         Report an error instead of returning NULL.
60062         Use mempcpy instead of memcpy.
60063         (xpath_concat): Remove: not declared or used.
60064
60065         * lib/same.h: Include <stdbool.h>
60066         (same_name): Return bool, not int.
60067         * lib/same.c (same_name): Likewise.
60068         (errno): Don't declare; we assume C89 or better now.
60069
60070         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60071         if not already defined.
60072
60073         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60074         * lib/dup-safer.c (errno): Likewise.
60075
60076 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         Merge from coreutils.
60079         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60080         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60081         * modules/path-concat: Don't depend on strdup.
60082
60083 2004-08-03  Simon Josefsson  <jas@extundo.com>
60084
60085         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60086         * lib/progname.h: Don't include stdbool.h.
60087
60088 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60089
60090         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60091         * MODULES.html.sh (func_all_modules): Remove fatal.
60092
60093 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60096
60097 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60100         working.
60101
60102 2004-08-02  Simon Josefsson  <jas@extundo.com>
60103
60104         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60105         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60106         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60107
60108 2004-08-01  Simon Josefsson  <jas@extundo.com>
60109
60110         * lib/xgetdomainname.c: Include stdlib.h, for free().
60111
60112 2004-07-19  Bruno Haible  <bruno@clisp.org>
60113
60114         * MODULES.html.sh (func_all_modules): Add dummy.
60115
60116 2004-07-16  Simon Josefsson  <jas@extundo.com>
60117
60118         * modules/dummy: New file.
60119
60120 2004-07-16  Simon Josefsson  <jas@extundo.com>
60121
60122         * lib/dummy.c: New file.
60123
60124 2004-07-16  Bruno Haible  <bruno@clisp.org>
60125
60126         * lib/backupfile.h: Add extern "C" for C++.
60127         * lib/closeout.h: Likewise.
60128         * lib/copy-file.h: Likewise.
60129         * lib/findprog.h: Likewise.
60130         * lib/full-write.h: Likewise.
60131         * lib/pathname.h: Likewise.
60132         * lib/progname.h: Likewise.
60133         * lib/stpcpy.h: Likewise.
60134         * lib/stpncpy.h: Likewise.
60135         * lib/strcase.h: Likewise.
60136         * lib/strstr.h: Likewise.
60137         * lib/xalloc.h: Likewise.
60138
60139         * lib/mbswidth.h: Add extern "C" for C++.
60140         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60141
60142 2004-07-13  Robert Millan  <robertmh@gnu.org>
60143
60144         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60145
60146 2004-07-09  Simon Josefsson  <jas@extundo.com>
60147
60148         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60149         failed without this.)
60150
60151 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         * modules/chown (Files): Add lib/fchown-stub.c, since
60154         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60155
60156 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60157
60158         * lib/fchown-stub.c: New file.
60159
60160 2004-06-24  Jim Meyering  <jim@meyering.net>
60161
60162         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60163
60164 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * modules/argz: Omit "#include".
60167
60168         * MODULES.html.sh (func_all_modules): Add calloc, to match
60169         2004-06-01 addition of calloc module.
60170
60171 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60172
60173         * m4/argz.m4: New file, which is autoupdated from libtool.
60174
60175 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60178         libtool.
60179
60180 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60181
60182         * config/srclist-update: Don't insist on "USA." before the
60183         close-comment, as libtool omits the period and puts the */ on a
60184         separate line.
60185         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60186         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60187
60188 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60189
60190         * modules/argz: New file.
60191         * MODULES.html.sh (func_all_modules): Add argz.
60192
60193 2004-06-12  Jim Meyering  <jim@meyering.net>
60194         and  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * modules/hash (Files): Add lib/xalloc.h.
60197         * modules/pipe (Depends-on): Add wait-process.
60198         * modules/stat (Depends-on): Add xalloc.
60199         * modules/userspec (Files): Add lib/userspec.h.
60200         * modules/xstrto
60201
60202         Upgrade from gettext-0.13.
60203         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60204         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60205         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60206
60207 2004-06-10  Jim Meyering  <jim@meyering.net>
60208
60209         * lib/calloc.c: New file.
60210
60211 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60212
60213         * lib/getdate.y (yylex): Allow space between sign and number.
60214         Problem reported by Dan Jacobson.
60215
60216 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60217
60218         Merge from coreutils CVS.
60219
60220         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60221         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60222         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60223         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60224         xstrtol.m4: Fix copyright date and/or serial number.
60225
60226         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60227         See if we need an fchown replacement.
60228         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60229         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60230         and use the replacement function if we detect either defect.
60231
60232         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60233         gl_UTIMECMP.
60234
60235 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60236         and  Jim Meyering  <jim@meyering.net>
60237
60238         Merge from coreutils CVS.
60239
60240         * lib/stat-macros.h: New file, with contents from file-type.h
60241         and coreutils' system.h.
60242         * lib/file-type.c: Include "stat-macros.h".
60243         * lib/file-type.h (file_type): Move all macro definitions to new file,
60244         stat-macros.h.
60245
60246         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60247         Wrap old code with this conditional.
60248         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60249         function that does not dereference symlinks.
60250         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60251
60252         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60253         dependency problems.
60254         (xreadlink): Accept new arg SIZE, for efficiency.
60255         All decls and uses changed.
60256         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60257
60258         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60259         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60260
60261         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60262         sysexits.h.
60263
60264 2004-06-01  Jim Meyering  <jim@meyering.net>
60265
60266         * m4/calloc.m4: New file.
60267
60268 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60271         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60272         Also, fix a typo in a diagnostic.
60273
60274 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60275
60276         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60277         or AC_FUNC_REALLOC.
60278
60279 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60282         macros to be defined.
60283         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60284         the allocator returns NULL because the requested size is zero.
60285
60286 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60289         var.  Add comment explaining why libc still defines it.  This
60290         merges the following patch from glibc:
60291         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60292
60293 2004-05-20  Andreas Schwab  <schwab@suse.de>
60294
60295         * m4/free.m4: Replace free if it not known to work, not the other
60296         way round.
60297
60298 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60301         present in glibc since revision 1.1 of this file.
60302         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60303         obstack_alignment_mask, obstack_alloc, obstack_base,
60304         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60305         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60306         obstack_grow0, obstack_init, obstack_int_grow,
60307         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60308         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60309         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60310         nonexistent functions.
60311
60312 2004-05-18  Karl Berry  <karl@gnu.org>
60313
60314         * config/srclist.txt: break link for vasnprintf.c.
60315
60316 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         Port obstack to the AS/400, where pointers are 16 bytes wide and
60319         you cannot cast an integer to a valid pointer.  This patch is
60320         currently waiting to be integrated into glibc; see
60321         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60322
60323         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60324         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60325         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60326         (struct obstack): temp member is now a union of a pointer and
60327         an integer, instead of an integer.  All integer uses changed.
60328         This does not affect the physical layout of struct obstack,
60329         except on hosts (like the AS/400) where the size or alignment of
60330         void * is greater than that of ptrdiff_t.
60331         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60332         __STDC__)]: Store temporary in pointer member of union, not
60333         integer member.
60334         * lib/obstack.c: Include <stddef.h>, for offsetof.
60335         (struct fooalign): Remove; it doesn't need a name.
60336         (union fooround): Change double to long double, and add void *.
60337         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60338         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60339         not a macro.  Hence the values are always int; so remove all
60340         casts-to-int in uses.
60341
60342 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60345         we can get this patch merged into glibc.
60346
60347 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60348             Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * m4/argp: Depend on alloca.
60351
60352 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60353             Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60356         freecoding.
60357
60358 2004-05-17  Bruno Haible  <bruno@clisp.org>
60359
60360         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60361         precision that consists of a '.' followed by an empty digit string.
60362         Patch by Tor Lillqvist <tml@iki.fi>.
60363
60364 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60367         for backward compatibility with older code.  We need our own
60368         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60369         it under some other name, and our alloca.h will define it.
60370
60371 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60372             Derek Price  <derek@ximbiot.com>
60373
60374         * lib/alloca.c: Include <alloca.h>, to get our interface.
60375         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60376         include <alloca.h> first.  Use C89 prototype for alloca; this
60377         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60378         Use #elif for simplicity, since we can assume C89 now.
60379         Don't try to source the system alloca.h since it will not be found
60380         and to prevent recursively including its replacement.
60381         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60382         * lib/regex.c: Likewise.
60383
60384 2004-05-16  Derek Price  <derek@ximbiot.com>
60385             Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         getline cleanup.  This changes the getndelim2 API: both order of
60388         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60389         no delimiter).
60390
60391         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60392         interface does that.
60393         (getline): Always use getdelim, so that we don't have two
60394         copies of this code.
60395         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60396         if available.
60397         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60398         (GETNDELIM2_MAXIMUM): New macro.
60399         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60400         instead of the old practice of delim2==0.  All callers changed.
60401         Return -1 on overflow, instead of returning junk.
60402         Do not set *linesize unless allocation succeeds.
60403         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60404         that we include sys/types.h.
60405         * lib/getnline.h: Likewise.
60406         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60407         (getndelim2): Reorder arguments.
60408         * lib/getnline.c (getnline, getndelim):
60409         Don't discard the NMAX argument.
60410         (getnline): Invoke getndelim, to avoid code duplication.
60411         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60412         of (size_t) -1 by callers of the getnline family.
60413
60414 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60417         Check for gettimeofday.
60418         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60419         Check for settimeofday, stime.
60420
60421 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * lib/nanosleep.c (suspended): Change its type from int to
60424         sig_atomic_t volatile.
60425         (first_call): Make it private to rpl_nanosleep, and have it
60426         be zero initially as that's a bit faster.
60427         (my_usleep): Round up fractional times instead of truncating them,
60428         as this is the usual meaning for 'sleep'.
60429
60430         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60431         doesn't work.
60432         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60433         (ENOSYS): Define if not defined.
60434         (settime): Fall back on stime if it exists and settimeofday fails.
60435         But don't bother with fallbacks if a method fails with errno == EPERM.
60436
60437 2004-05-11  Jim Meyering  <jim@meyering.net>
60438
60439         Prior to this change, the save_cwd caller required read access to the
60440         current directory on most systems (ones with the fchdir function).
60441
60442         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60443         fails, try write-only, and finally, resort to using xgetcwd.
60444
60445 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60446
60447         * lib/obstack.c, obstack.h: Import changes from libc.
60448
60449 2004-04-28  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60452         also implicitly appends .exe to executables.
60453         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60454         accepts Windows pathnames.
60455         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60456         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60457         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60458         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60459         Reported by Derek Robert Price <derek@ximbiot.com>.
60460
60461 2004-04-21  Karl Berry  <karl@gnu.org>
60462
60463         * config/srclist.txt (localcharset.c): break sync.
60464
60465 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60466
60467         * m4/host-os.m4: Add a copyright notice.
60468
60469 2004-04-20  Jim Meyering  <jim@meyering.net>
60470
60471         Change UTILS_ to gl_ in AC_DEFINE'd names.
60472         Change utils_- and jm_-prefixed variables, too.
60473         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60474         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60476
60477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60478         Don't emit trailing blanks.
60479         Also rename jm_-prefixed variables to have gl_ prefix.
60480
60481         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60482         Also rename jm_-prefixed variables to have gl_ prefix.
60483
60484         * m4/jm-macros.m4: Reflect the renamings.
60485         * m4/prereq.m4: Likewise.
60486
60487 2004-04-20  Jim Meyering  <jim@meyering.net>
60488
60489         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60490         memory.
60491
60492 2004-04-20  Jim Meyering  <jim@meyering.net>
60493             Bruno Haible  <bruno@clisp.org>
60494
60495         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60496         memory when realloc fails.
60497
60498 2004-04-19  Jim Meyering  <jim@meyering.net>
60499
60500         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60501         now that readutmp.c may call `free (0)'.
60502
60503 2004-04-19  Bruno Haible  <bruno@clisp.org>
60504
60505         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60506         * m4/inttypes_h.m4: Likewise.
60507         * m4/stdint_h.m4: Likewise.
60508         * m4/intmax_t.m4: Likewise.
60509         * m4/uintmax_t.m4: Likewise.
60510
60511 2004-04-18  Jim Meyering  <jim@meyering.net>
60512
60513         * m4/prereq.m4: Don't forbid jm_ prefix.
60514
60515         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60516         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60517         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60518         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60519         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60520         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60521         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60522         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60523         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60524         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60525         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60526         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60527         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60528         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60529         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60530         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60531         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60532         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60533         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60534
60535 2004-04-18  Jim Meyering  <jim@meyering.net>
60536
60537         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60538         failure, don't leak memory and do call END_UTMP_ENT.
60539
60540 2004-04-16  Jim Meyering  <jim@meyering.net>
60541
60542         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60543         coreutils' stat program.
60544         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60545
60546 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60547
60548         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60549         C89.
60550         (CHAR_BIT): Remove, since we assume C89.
60551         Include <stdint.h> if available, as per current Autoconf CVS advice.
60552
60553 2004-03-31  Jim Meyering  <jim@meyering.net>
60554
60555         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60556         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60557         * m4/xalloc.m4: Likewise.
60558
60559 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60560
60561         Merge from coreutils.
60562
60563         * m4/inttostr.m4: New file.
60564         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60565         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60566         Require gl_CLOCK_TIME.
60567         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60568
60569 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60570
60571         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60572         not bool, to be more consistent with Unix conventions.
60573         Suggested by Bruno Haible.
60574
60575         Merge from coreutils.
60576
60577         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60578         * lib/umaxtostr.c: New files.
60579
60580         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60581         the usual <time.h> dance.
60582         (get_date): Change signature to support fractional time stamps.
60583         All callers changed.
60584         * lib/getdate.y: Include "getdate.h" first, as we can now
60585         assume C89 and don't need to worry about 'const'.
60586         Similarly, include "unlocked-io.h" near start, not in middle.
60587         Include <limits.h>.
60588         (textint.value): Use long int rather than int.
60589         (textint.digits): Use size_t rather than int.
60590         (BILLION, LOG10_BILLION): New constants.
60591         (parser_control): New member rel_ns.  Members day_ordinal,
60592         time_zone, month, day, hour, minutes, rel_year, rel_month,
60593         rel_day, rel_hour, rel_minutes, rel_seconds
60594         are now long int, not int.  Member seconds is now struct timespec,
60595         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60596         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60597         not int.
60598         (%union.intval): Now long int, not int.
60599         New member timespec.
60600         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60601         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60602         (spec): Now is a timespec or an item list.
60603         (timespec, items): New nonterminals.
60604         (time, rel, relunit, number, get_date):
60605         Add support for fractional seconds.
60606         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60607         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60608         (to_hour): First arg is now long int, not int.
60609         (to_year): Returns long int, not int.
60610         Don't treat year -70 like 70.
60611         (tm_diff): Returns long int, not int.
60612         (lookup_word): Use bool instead of int when appropriate.
60613         (yylex): Use size_t for count, not int.
60614         Detect overflow when parsing large integer constants.
60615         Add support for fractions.
60616         (get_date): Make pointers 'const' if possible.
60617         Use more-portable code to detect integer overflow.
60618         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60619         Don't use ctime; it's not reliable if the year has >4 digits.
60620
60621         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60622         This is for compatibility with BSD.
60623
60624         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60625         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60626         From coreutils' system.h.
60627
60628         * lib/userspec.c: Don't include "posixver.h".
60629         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60630         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60631         compatible extension.  Simplify code by removing a boolean int
60632         that was always nonzero if a string was nonnull.
60633
60634 2004-03-30  Jim Meyering  <jim@meyering.net>
60635
60636         Merge from coreutils.
60637
60638         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60639         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60640         on some systems one must include <grp.h> before it.
60641         Reported by Christian Krackowizer.
60642
60643 2004-03-30  Jim Meyering  <jim@meyering.net>
60644
60645         Merge from coreutils.
60646
60647         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60648
60649         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60650         an empty input stream.
60651
60652         * lib/readtokens.c: Include <stdbool.h>.
60653         (readtoken): Use `size_t' rather than int/long.
60654         All callers adjusted.
60655         Use `bool' rather than `int' where appropriate.
60656         Use memset rather than an explicit loop.
60657         Use x2nrealloc rather than xrealloc.
60658         Allow the use of `\0' as a delimiter.
60659         (readtokens): Likewise.
60660         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60661
60662 2004-03-30  Jim Meyering  <jim@meyering.net>
60663
60664         * m4/realloc.m4: Remove file, since now it does no more than
60665         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60666         the `configure.ac' section of module/realloc.
60667         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60668
60669 2004-03-30  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60672         nonnull.
60673
60674 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60675
60676         Merge changes to getloadavg.c from coreutils and Emacs.
60677
60678         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60679         Define to an expression, not to the empty string.
60680         Include cloexec.h and xalloc.h.
60681         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60682         Use set_cloexec_flag rather than rolling our own.
60683         * lib/cloexec.c, lib/cloexec.h: New files.
60684
60685 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60686
60687         * m4/cloexec.m4: New file.
60688
60689 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60690
60691         * lib/getopt.h: Sync with libc CVS.
60692
60693 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60694             Bruno Haible  <bruno@clisp.org>
60695
60696         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60697         mbswidth.
60698
60699 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60700             Bruno Haible  <bruno@clisp.org>
60701
60702         * lib/mbswidth.h: Include <wchar.h> only if
60703         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60704         <wchar.h>.
60705         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60706
60707 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60708
60709         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60710         Sync with libc CVS.
60711         * lib/getopt_int.h: New file, also synced from libc.
60712
60713 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60714
60715         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60716         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60717         Bring back getopt.c, getopt.h, getopt1.c.
60718
60719 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60720
60721         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60722         All uses changed.  Check for sa_sigaction member; this fixes
60723         a bug first reported by Jason Andrade in
60724         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60725
60726 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60727
60728         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60729         '#if' expressions.  Unlike the code it replaces, it does not
60730         depend on (defined _SC_PAGESIZE).  However, it does depend on
60731         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60732         first reported by Jason Andrade in
60733         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60734
60735 2004-02-25  Simon Josefsson  <jas@extundo.com>
60736
60737         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60738
60739 2004-02-25  Simon Josefsson  <jas@extundo.com>
60740
60741         * lib/strdup.h: New file.
60742         * lib/strdup.c: Include it.
60743         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60744         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60745
60746 2004-02-23  Karl Berry  <karl@gnu.org>
60747
60748         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60749         (from fencepost.gnu.org:/gd/gnuorg).
60750
60751 2004-02-23  Karl Berry  <karl@gnu.org>
60752
60753         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60754         * config/srclist.txt: add maintain/standards documents.
60755
60756 2004-02-18  Bruno Haible  <bruno@clisp.org>
60757
60758         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60759         Reported by Derek Robert Price <derek@ximbiot.com>.
60760
60761 2004-02-16  Karl Berry  <karl@gnu.org>
60762
60763         * config/mkinstalldirs, install-sh: update from automake.
60764
60765 2004-02-06  Karl Berry  <karl@gnu.org>
60766
60767         * m4/po.m4: update from gettext 0.14.1.
60768
60769 2004-02-06  Karl Berry  <karl@gnu.org>
60770
60771         * lib/config.charset: update from gettext 0.14.1.
60772
60773 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60774
60775         Add comments and code, prompted by suggestions from Bruno Haible
60776         for sh-quote.
60777         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60778         describing the enum quoting_style values.
60779         * lib/quotearg.c (quotearg_alloc): New function.
60780         (quotearg_buffer_restyled): Treat lone { and } as special.
60781         Treat = as special.  Work around bug with older shells
60782         that "see" a '\' that is really the 2nd byte of a multibyte char.
60783         Quote empty string with shell_quoting_style.
60784
60785 2004-02-03  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/pipe.m4: New file, from GNU gettext.
60788
60789 2004-02-03  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/pipe.h: New file, from GNU gettext.
60792         * lib/pipe.c: New file, from GNU gettext.
60793
60794 2004-01-27  Bruno Haible  <bruno@clisp.org>
60795
60796         * m4/execute.m4: New file, from GNU gettext.
60797
60798 2004-01-27  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/execute.h: New file, from GNU gettext.
60801         * lib/execute.c: New file, from GNU gettext.
60802         * lib/w32spawn.h: New file, from GNU gettext.
60803
60804 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60805
60806         Merge from diffutils.
60807
60808         * lib/file-type.c (file_type): Add typed memory objects.
60809         * lib/file-type.h (S_TYPEISTMO): New macro.
60810
60811         * lib/c-stack.h (c_stack_action): Remove argv argument.
60812         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60813         (die): Don't calculate message unless segv_action returns.
60814         (get_stack_location, min_address_from_argv, max_address_from_argv,
60815         volatile stack_base, volatile_stack_size): Remove.
60816         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60817         that every segmentation violation is a stack overflow.  (Ouch!)
60818         See Debian bug 136249 (still outstanding) for more info about why
60819         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60820
60821 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60822
60823         Exit-status fix from coreutils.
60824
60825         Use exit_failure consistently in place of EXIT_FAILURE,
60826         so that program exit statuses are consistent on failure.
60827
60828         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60829         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60830         * lib/argmatch.h: Comment fix to match the above.
60831         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60832         Now a macro referring to exit_failure, instead of a separate
60833         variable.  Include "exitfail.h" to get it.
60834         * lib/xstrtol.h: Include "exitfail.h".
60835         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60836
60837         * lib/long-options.c (parse_long_options): Use prototype
60838         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60839         for clarity.
60840
60841 2004-01-21  Jim Meyering  <jim@meyering.net>
60842
60843         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60844         so as not to conflict with a different-sized __mktime_internal
60845         function in GNU libc.
60846         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60847         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60848
60849 2004-01-20  Karl Berry  <karl@gnu.org>
60850
60851         * config/config.guess: update from config.
60852
60853         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60854
60855 2004-01-20  Bruno Haible  <bruno@clisp.org>
60856
60857         Safer stack allocation.
60858         * lib/setenv.c: Include allocsa.h.
60859         (alloca): Remove fallback definition.
60860         (freea): Remove macro.
60861         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60862         instead of freea.
60863
60864 2004-01-20  Bruno Haible  <bruno@clisp.org>
60865
60866         * m4/eealloc.m4: New file, from GNU gettext.
60867
60868 2004-01-20  Bruno Haible  <bruno@clisp.org>
60869
60870         * m4/allocsa.m4: New file, from GNU gettext.
60871
60872 2004-01-20  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/xallocsa.h: New file, from GNU gettext.
60875         * lib/xallocsa.c: New file, from GNU gettext.
60876
60877 2004-01-20  Bruno Haible  <bruno@clisp.org>
60878
60879         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60880
60881 2004-01-20  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60884         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60885         specially.
60886
60887 2004-01-20  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60890         patch.
60891
60892 2004-01-20  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60895
60896 2004-01-20  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/eealloc.h: New file.
60899
60900 2004-01-20  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/binary-io.h: Avoid warnings on Cygwin.
60903
60904 2004-01-20  Bruno Haible  <bruno@clisp.org>
60905
60906         * lib/allocsa.h: New file, from GNU gettext.
60907         * lib/allocsa.c: New file, from GNU gettext.
60908
60909 2004-01-18  Karl Berry  <karl@gnu.org>
60910
60911         * doc/gpl.texi, doc/lgpl.texi: new files.
60912
60913 2004-01-18  Karl Berry  <karl@gnu.org>
60914
60915         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60916         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60917
60918 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60919
60920         Merge from coreutils.
60921
60922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60923         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60924         (gl_DEFAULT_POSIX2_VERSION): Move
60925         the documentation from 'configure' into 'config.hin',
60926         so that 'configure --help' isn't burdened by it and
60927         we don't have to worry about its formatting there.
60928         Reword the documentation so that it's more succinct
60929         and can be run together into a single paragraph.
60930         * m4/same.m4 (gl_SAME): Check for pathconf.
60931
60932 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60933
60934         Merge from coreutils.
60935
60936         * lib/posixver.c: Include posixver.h.
60937
60938         * lib/same.c: Include <stdbool.h>, <limits.h>.
60939         (_POSIX_NAME_MAX): Define if not defined.
60940         (MIN): New macro.
60941         (same_name): If file names are silently truncated, report
60942         that the file names are the same if they are the same after
60943         the silent truncation.
60944
60945         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60946         conversion function.
60947         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60948         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60949         longer needed.
60950
60951 2004-01-15  Jim Meyering  <jim@meyering.net>
60952
60953         Merge from coreutils.
60954
60955         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60956         if no library is required.
60957         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60958         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60959         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60960         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60961         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60962         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60963         value, $ac_cv_search_crypt, if it's "none required".
60964         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60965         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60966         not gl_FUNC_GETLOADAVG.
60967         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60968         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60969
60970 2004-01-15  Jim Meyering  <jim@meyering.net>
60971
60972         Merge from coreutils.
60973
60974         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60975         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60976         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60977
60978         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60979         optional configure-time default.
60980
60981         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60982
60983         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60984
60985 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60986
60987         Merge from coreutils.
60988
60989         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60990         value, $ac_cv_search_nanosleep, if it's "none required".
60991
60992 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60993
60994         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60995         with like-named macro in fnmatch.c.
60996         (EXT): Use an internal constant instead.
60997
60998         Merge fnmatch patches from glibc.
60999         * lib/fnmatch.c (mbsinit): Remove define.
61000         Add libc_hidden_ver (__fnmatch, fnmatch).
61001         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61002         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61003
61004 2004-01-14  Karl Berry  <karl@gnu.org>
61005
61006         * config/install-sh: update from automake.
61007
61008 2004-01-13  Karl Berry  <karl@gnu.org>
61009
61010         * config/install-sh: update from automake.
61011
61012 2004-01-09  Karl Berry  <karl@gnu.org>
61013
61014         * config/install-sh: update from automake.
61015
61016 2004-01-05  Karl Berry  <karl@gnu.org>
61017
61018         * config/config.{sub,guess}: update from config.
61019
61020 2003-12-31  Karl Berry  <karl@gnu.org>
61021
61022         * config/depcomp: update from automake.
61023
61024 2003-12-14  Karl Berry  <karl@gnu.org>
61025
61026         * lib/config.charset: update from gettext-runtime.
61027
61028 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61029
61030         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61031         Bug reported by Alfred M. Szmidt.
61032
61033 2003-12-03  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/gettext.m4: Upgrade from gettext-0.13.
61036         * m4/po.m4: Upgrade from gettext-0.13.
61037         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61038         * m4/intmax.m4: New file, from gettext-0.13.
61039         * m4/printf-posix.m4: New file, from gettext-0.13.
61040
61041 2003-11-29  Karl Berry  <karl@gnu.org>
61042
61043         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61044
61045 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61046             Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/printf-parse.h: Don't include sys/types.h.
61049         (ARG_NONE): New macro.
61050         (char_directive): Change type of *arg_index fields to size_t.
61051         * lib/printf-parse.c: Don't include sys/types.h.
61052         (SSIZE_MAX): Remove macro.
61053         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61054         Remove unnecessary overflow check.
61055         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61056         fields.
61057
61058 2003-11-25  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61061
61062 2003-11-25  Bruno Haible  <bruno@clisp.org>
61063
61064         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61065         gt_TYPE_SSIZE_T.
61066
61067 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61068
61069         * modules/alloca: Remove dependency on xalloc.
61070
61071 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61072
61073         * lib/alloca.c: Remove dependency on xalloc module.
61074         (xalloc_die): Remove.
61075         (memory_full) [!defined emacs]: New macro.
61076         [!defined emacs]: Don't include xalloc.h.
61077         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61078         address arithmetic overflows.  Change datatypes a bit to avoid
61079         unnecessary casts.
61080
61081 2003-11-22  Jim Meyering  <jim@meyering.net>
61082
61083         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61084         s/size/size_t/.
61085
61086 2003-11-21  Karl Berry  <karl@gnu.org>
61087
61088         * config/config.{sub,guess}: update from config.
61089
61090 2003-11-18  Karl Berry  <karl@gnu.org>
61091
61092         * config/config.{sub,guess}: update from config.
61093
61094         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61095
61096 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61097
61098         * README: Mention that S+T cannot overflow if S is the size of
61099         an existing object and T is sufficiently small.
61100
61101 2003-11-17  Jim Meyering  <jim@meyering.net>
61102
61103         On systems without utime and without a utimes function capable of
61104         dealing with a NULL struct utimbuf* argument, this utime replacement
61105         could -- in unusual circumstances -- leak a file descriptor.
61106         * lib/utime.c: Include <unistd.h> and <errno.h>.
61107         (utime_null): Be sure to close `fd' and to preserve errno.
61108         Reported by Geoff Collyer via Arnold Robbins.
61109
61110 2003-11-17  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61113         (Depends-on): Add xsize.
61114
61115 2003-11-17  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61118
61119 2003-11-17  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/vasnprintf.c (alloca): Remove fallback definition.
61122         (freea): Remove definition.
61123         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61124         Reported by Paul Eggert.
61125
61126 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61127             Bruno Haible  <bruno@clisp.org>
61128
61129         Protect against address arithmetic overflow.
61130         * lib/printf-args.h: Include stddef.h.
61131         (arguments): Change type of field 'count' to size_t.
61132         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61133         'unsigned int' where appropriate.
61134         * lib/printf-parse.h: Include sys/types.h.
61135         (char_directive): Change type of *arg_index fields to ssize_t.
61136         (char_directives): Change type of fields 'count', max_*_length to
61137         size_t.
61138         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61139         (SSIZE_MAX): Define fallback value.
61140         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61141         instead of 'int' where appropriate. Check a_allocated, d_allocated
61142         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61143         * lib/vasnprintf.c: Include xsize.h.
61144         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61145         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61146         overflow. Avoid wraparound when converting a width or precision from
61147         decimal to binary.
61148
61149 2003-11-16  Bruno Haible  <bruno@clisp.org>
61150
61151         Update from GNU gettext.
61152         * lib/printf-parse.c: Generalize to it can be compiled for wide
61153         strings.
61154         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61155         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61156         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61157         SNPRINTF): New macros.
61158         Don't include <alloca.h> if the file is used inside libintl.
61159         (local_wcslen): New function, for Solaris 2.5.1.
61160         (VASNPRINTF): Use it instead of wcslen.
61161
61162 2003-11-16  Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/xsize.h (xmax): New function.
61165         (xsum, xsum3, xsum4): Declare as "pure" functions.
61166
61167 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61168
61169         * modules/xalloc (Files): Undo latest change, since xalloc.h
61170         no longer needs SIZE_MAX or PTRDIFF_MAX.
61171
61172 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61173
61174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61175         gl_PTRDIFF_MAX.
61176
61177 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61178
61179         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61180         "return", to pacify some unknown compiler.  Problem reported
61181         by Joerg Schilling.
61182
61183 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61184
61185         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61186         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61187         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61188         heuristic is just as accurate as far as we know, and it removes a
61189         dependency on size_max.m4 and ptrdiff_max.m4.
61190
61191 2003-11-11  Bruno Haible  <bruno@clisp.org>
61192
61193         * modules/xsize (Files): Add m4/size_max.m4.
61194         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61195
61196 2003-11-11  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/size_max.m4: New file.
61199         * m4/ptrdiff_max.m4: New file.
61200         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61201         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61202         (gl_XALLOC): Invoke it.
61203
61204 2003-11-11  Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61207         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61208         defined.
61209
61210 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61211
61212         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61213         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61214         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61215         From Bruno Haible.
61216         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61217         not (size_t) -1, since it's defined here.
61218
61219 2003-11-09  Karl Berry  <karl@gnu.org>
61220
61221         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61222
61223 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61224
61225         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61226         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61227         Reject sizes of exactly SIZE_MAX bytes.
61228         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61229         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61230
61231 2003-11-05  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61234         SIZE_MAX defined in <limits.h> on Solaris.
61235
61236 2003-11-04  Jim Meyering  <jim@meyering.net>
61237
61238         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61239         variable names, rather than @VAR@.
61240         * modules/poll: Likewise.
61241
61242 2003-11-04  Bruno Haible  <bruno@clisp.org>
61243
61244         * modules/xsize: New file.
61245         * modules/linebreak: Depend on xsize.
61246         * MODULES.html.sh (func_all_modules): Add xsize.
61247
61248 2003-11-04  Bruno Haible  <bruno@clisp.org>
61249
61250         * m4/xsize.m4: New file.
61251
61252 2003-11-04  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/xsize.h: New file.
61255         * lib/linebreak.c: Include xsize.h.
61256         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61257         argument for overflow.
61258         Suggested by Paul Eggert.
61259
61260 2003-11-03  Karl Berry  <karl@gnu.org>
61261
61262         * config/config.{guess,sub}: update from config.
61263
61264 2003-11-03  Jim Meyering  <jim@meyering.net>
61265
61266         * modules/userspec (lib_SOURCES): Add userspec.h.
61267         (Include): Add "userspec.h".
61268         Improve description.
61269
61270 2003-11-03  Jim Meyering  <jim@meyering.net>
61271
61272         * lib/userspec.c: Include "userspec.h".
61273         * lib/userspec.h: New file.
61274
61275 2003-11-03  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61278
61279 2003-11-03  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61282         available, to avoid (extremely rare) race condition.
61283         Suggested by Paul Eggert.
61284
61285 2003-11-02  Karl Berry  <karl@gnu.org>
61286
61287         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61288
61289 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61290
61291         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61292         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61293         (read_filesystem_list): Set and use me_type_malloced.
61294         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61295         whatever the type happens to be), for brevity and consistency.
61296         Check for size calculation overflow on Alphas running OSF/1.
61297
61298 2003-10-31  Jim Meyering  <jim@meyering.net>
61299
61300         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61301
61302         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61303
61304 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61305             Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61308         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61309
61310 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61313         netbsd*-gnu*.  Suggested by Robert Millan.
61314
61315 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61316
61317         * modules/group-member: Depend on stdbool.
61318
61319 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61320
61321         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61322
61323 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61324
61325         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61326         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61327         after the 'gnu' in these cases.  This fixes some bugs in the
61328         previous change, and is based on suggestions by Robert Millan.
61329
61330 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61331
61332         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61333         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61334         no longer needed.
61335         * lib/quotearg.c (quotearg_n_options): Use it.
61336         * lib/group-member.c: Include <stdbool.h>.
61337         (free_group_info): Arg is now const *; don't free arg.
61338         (get_group_info): Now returns bool and accepts struct group_info *,
61339         rather than returning a malloc'ed struct group_info *.
61340         All uses changed.  Check for overflow in internal size calculation.
61341
61342         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61343         rather than xmalloc/xrealloc.
61344         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61345         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61346         conformance bug: the old code used a pointer after freeing the
61347         storage that it addressed.
61348         * lib/hash.c (hash_initialize): Simplify the code by using
61349         xalloc_oversized rather than doing it by hand.
61350         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61351         the buffer preserved.  Use free and xmalloc instead.
61352         * lib/quotearg.c (quotearg_n_options): Likewise.
61353         Use a simpler test for size overflow.  Don't use xalloc_oversized
61354         because unsigned int might be wider than size_t (!); this suggests
61355         that we should switch from unsigned int to size_t for slot numbers.
61356
61357 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61358
61359         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61360         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61361         NetBSD kernels.  Requested by Richard Stallman.
61362
61363 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61364
61365         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61366         to allocate the returned structure.  Do not allocate a subarray,
61367         as x2nrealloc will do that.
61368         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61369         instead of xnrealloc.
61370         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61371
61372 2003-10-27  Bruno Haible  <bruno@clisp.org>
61373
61374         * lib/stdbool_.h: Better support for BeOS.
61375
61376 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61377
61378         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61379         now uses inline.
61380
61381 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61382
61383         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61384         callers that want to do their own size-overflow checking.  Include
61385         <stdbool.h>, since xalloc_oversized returns bool.
61386         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61387         to use xalloc_oversized.
61388
61389         Add two functions x2realloc, x2nrealloc, for programs that grow
61390         arrays dynamically by doubling their sizes.
61391         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61392         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61393         New functions.
61394
61395         Port to C99 semantics for 'inline' of external functions.
61396         Bug reported by Bruno Haible.
61397         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61398         with the old contents of xnmalloc.
61399         (xnmalloc, xmalloc): Use it.
61400         (xnrealloc_inline): New static inline function,
61401         with the old contents of xnrealloc.
61402         (xnrealloc, xrealloc): Use it.
61403
61404         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61405         that.
61406
61407 2003-10-26  Karl Berry  <karl@gnu.org>
61408
61409         * config/srclist.txt (COPYING.DOC): no longer available from
61410         /gd/gnuorg; don't know where the ultimate source is.
61411
61412 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61413
61414         Fix several address-calculation bugs in the hash modules,
61415         plus some minor code cleanup.
61416
61417         * lib/hash.h: Include <stdbool.h>, for bool.
61418         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61419         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61420         hash_get_n_entries, hash_get_max_bucket_length,
61421         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61422         hash_rehash): Use size_t rather than unsigned.
61423         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61424         hash_get_n_buckets_used, hash_get_n_entries,
61425         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61426         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61427         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61428         Likewise.
61429         (SIZE_MAX): Define if not defined.
61430         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61431         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61432         hash_print):
61433         Use const * when possible.
61434         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61435         (check_tuning): Fix bug: if tuning parameters were very close to
61436         0 or 1, rounding errors could have caused subscript violations.
61437         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61438         (hash_initialize): Add 'fail:' label
61439         to free table and return NULL, and use it to simplify code.
61440         Use calloc rather than clearing the storage ourself.
61441         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61442         buffer size calculations.
61443         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61444         Include <stddef.h>, for size_t.
61445         * lib/hash-pjw.c (hash_pjw): Likewise.
61446         Switch to method described by Bruno Haible.
61447         Include <limits.h>, for CHAR_BIT.
61448         (SIZE_BITS): New macro.
61449
61450 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61451
61452         * m4/getline.m4 (AM_FUNC_GETLINE):
61453         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61454         hosts.  Problem reported by Derek Robert Price in
61455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61456         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61457         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61458
61459 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61460
61461         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61462         ceiling the allocation at NMAX bytes rather than silently
61463         discarding input bytes before NMAX is reached.  This makes
61464         a difference only if NMAX exceeds SIZE_MAX / 2.
61465
61466         * lib/obstack.c: Merge from glibc.
61467         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61468         Add libc_hidden_def (_obstack_newchunk).
61469         (_obstack_free) [! defined _LIBC]: Remove.
61470         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61471         a clone of the function body.
61472         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61473         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61474
61475         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61476         glibc.
61477         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61478         arg to memcpy.
61479
61480         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61481         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61482         Don't use lvalue casts, as GCC plans to remove support for them
61483         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61484         was also present in the non-GCC version, indicating that this
61485         code had always been buggy and had never been widely used.
61486         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61487         Use the fast variant of each macro, rather than copying the
61488         definiens of the fast variant; that way, we'll be more likely to
61489         catch future bugs in the fast variants.
61490
61491 2003-10-20  Bruno Haible  <bruno@clisp.org>
61492
61493         * modules/wait-process: New file.
61494         * MODULES.html.sh (func_all_modules): Add wait-process.
61495
61496 2003-10-20  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/wait-process.m4: New file.
61499
61500 2003-10-20  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/wait-process.h: New file, from GNU gettext.
61503         * lib/wait-process.c: New file, from GNU gettext.
61504
61505 2003-10-19  Jim Meyering  <jim@meyering.net>
61506
61507         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61508         HPUX 10.20.
61509
61510 2003-10-18  Karl Berry  <karl@gnu.org>
61511
61512         * config/config.guess: update from config.
61513
61514 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61515
61516         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61517         (getgroups): First arg is int, not size_t.
61518         Don't let 'free' mangle errno.
61519
61520 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61521
61522         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61523
61524 2003-10-16  Karl Berry  <karl@gnu.org>
61525
61526         * config/config.{guess,sub}: update from config.
61527
61528 2003-10-16  Jim Meyering  <jim@meyering.net>
61529
61530         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61531         memcpy.
61532
61533 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61534
61535         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61536         (SIZE_MAX): Remove.
61537         (new_exclude, add_exclude_file): Initial size no longer needs to
61538         be a power of 2.
61539         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61540         our own address arithmetic overflow checking.
61541
61542         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61543         (fnmatch): Do not alloca more than 2000 wide characters;
61544         instead, use malloc for large buffers.
61545         Check for address arithmetic overflow, and return -1
61546         with errno set to ENOMEM in that case.
61547         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61548         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61549         instead, return -1.  Check for address arithmetic overflow.
61550
61551 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61552
61553         Handle invalid suffixes and overflow independently, so that
61554         callers can treat them independently as needed.  Fix some bugs in
61555         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61556         suffix for a human-readable blocksize.  The major caller-visible
61557         change is the addition of a new
61558         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61559         that both overflow and suffix chars were found.
61560
61561         * lib/human.c (humblock): Don't check separately for invalid suffix
61562         char; that is xstrtoumax's job (now that its bug is fixed).
61563         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61564         INTMAX_MAX]: New macros.
61565         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61566         TYPE_MAXIMUM): New macros.
61567         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61568         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61569         if overflow occurs, as it's what __strtol does and it's more useful
61570         in practice.
61571         (__xstrtol): If __strtol reports some error other than ERANGE,
61572         reflect it to the caller as LONGINT_INVALID.  If it reports
61573         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61574         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61575         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61576         value.
61577         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61578         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61579         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61580         [defined UINTMAX_MAX]: New macros.
61581
61582 2003-10-14  Bruno Haible  <bruno@clisp.org>
61583
61584         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61585
61586 2003-10-14  Bruno Haible  <bruno@clisp.org>
61587
61588         * m4/sig_atomic_t: New file, from GNU gettext.
61589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61590
61591 2003-10-14  Bruno Haible  <bruno@clisp.org>
61592
61593         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61594         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61595         Also use volatile where needed.
61596
61597 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61598
61599         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61600         Change maintainer from Bruno Haible to 'all'.
61601
61602 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61603
61604         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61605
61606 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61607
61608         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61609         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61610         and define in terms of the other primitives.
61611         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61612         (SIZE_MAX): Define if not already defined.
61613         (array_size_overflow): New function.
61614         (xalloc_die): Abort instead of exiting if 'error' returns.
61615         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61616         (xmalloc, xrealloc): Use them.
61617         (xcalloc): Check for address arithmetic overflow.
61618         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61619         a bit faster than strcpy.
61620
61621 2003-10-10  Simon Josefsson  <jas@extundo.com>
61622
61623         * modules/argp (Depends-on): Add restrict and strcase.
61624
61625 2003-10-10  Simon Josefsson  <jas@extundo.com>
61626
61627         * m4/argp.m4: Add AC_C_INLINE.
61628
61629 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61630
61631         Merge getpass from libc, plus a few fixes.
61632
61633         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61634         Include <stdbool.h>.
61635         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61636         __fsetlocking to empty.
61637         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61638         do include <bits/libc-lock.h>.
61639         Do not include <fcntl.h>; not needed.
61640         [_LIBC]: Include <wchar.h>.
61641         (NOTCANCEL_MODE): New macro.
61642         (flockfile, funlockfile) [_LIBC]: New macros.
61643         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61644         [!_LIBC]: New macros.
61645         (call_fclose): New function.
61646         (getpass): Use it.  Save tty stream separately; this simplifies the
61647         code and makes it more reliable if stdin happens to equal stdout.
61648         Invoke __fsetlocking on tty.
61649         Handle thread cancellation if needed.
61650         Namespace cleanup (use __tcgetattr, __getline).
61651         Use bool for Booleans.
61652         [USE_IN_LIBIO]: Handle wide streams.
61653         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61654         stream might go where.
61655
61656         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61657         doesn't have to include <stdio.h> before us.
61658         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61659         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61660         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61661         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61662         if not declared, so that we can use getpass.c code from libc without
61663         rewriting it.
61664         (flockfile, ftrylockfile, funlockfile): New macros.
61665
61666 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61667
61668         * modules/getpass: Depend on stdbool.
61669
61670 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61671
61672         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61673
61674 2003-10-07  Karl Berry  <karl@gnu.org>
61675
61676         * config/config.{guess,sub}: update from config.
61677
61678 2003-10-06  Jim Meyering  <jim@meyering.net>
61679             Bruno Haible  <bruno@clisp.org>
61680
61681         This lets translators provide better translations for the
61682         "Written by ..." part of --version output.
61683         * lib/version-etc.h: Include stdarg.h.
61684         (version_etc_copyright): Declare as readonly.
61685         (version_etc): Make this function variadic with a NULL-terminated list
61686         of author name strings.
61687         (version_etc_va): New declaration.
61688         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61689         (version_etc_copyright): Declare as readonly.
61690         (version_etc_va): New function. Provide a different translatable string
61691         for each possible number of authors < 10. Abbreviate when there are 10
61692         authors or more.
61693         (version_etc): Make this function variadic. Call version_etc_va.
61694         Suggestion from Gary V. Vaughan.
61695
61696         * lib/long-options.h (parse_long_options): Change prototype: the
61697         authors string is moved to the end and becomes variadic.
61698         * lib/long-options.c: Include stdarg.h.
61699         (parse_long_options): Make this function variadic, too.
61700         Call version_etc_va, not version_etc.
61701
61702 2003-10-06  Bruno Haible  <bruno@clisp.org>
61703
61704         * modules/version-etc-2: Remove file.
61705         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61706
61707 2003-10-06  Bruno Haible  <bruno@clisp.org>
61708
61709         * modules/fatal-signal: New file.
61710         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61711
61712 2003-10-06  Bruno Haible  <bruno@clisp.org>
61713
61714         * m4/fatal-signal.m4: New file.
61715         * m4/signalblocking.m4: New file, from GNU gettext.
61716
61717 2003-10-06  Bruno Haible  <bruno@clisp.org>
61718
61719         * lib/version-etc-2.h: Remove file.
61720         * lib/version-etc-2.c: Remove file.
61721
61722 2003-10-06  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/fatal-signal.h: New file, from GNU gettext.
61725         * lib/fatal-signal.c: New file, from GNU gettext.
61726
61727 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61728
61729         * README: Rework advice for preventing empty .o files.
61730         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61731         not <sys/types.h>.
61732
61733 2003-10-04  Karl Berry  <karl@gnu.org>
61734
61735         * lib/argp*: update from libc.
61736
61737 2003-10-04  Karl Berry  <karl@gnu.org>
61738
61739         * config/config.{guess,sub}: update from config.
61740
61741 2003-10-02  Bruno Haible  <bruno@clisp.org>
61742
61743         * modules/lchown (Include): Add lchown.h.
61744         * modules/time_r (Include): Use "..." syntax.
61745         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61746
61747 2003-10-01  Simon Josefsson  <jas@extundo.com>
61748
61749         * MODULES.html.sh (func_all_modules): Move gethostname from section
61750         'based on' to section 'lacking' POSIX:2001.
61751
61752 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61753
61754         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61755         to output mode on the same stream.
61756
61757 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61758
61759         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61760         Fix arg typo in previous patch.
61761
61762 2003-09-28  Jim Meyering  <jim@meyering.net>
61763
61764         * lib/error.c: Correct cpp indentation.
61765
61766 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61767
61768         * modules/free: New file.
61769
61770 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61771
61772         * m4/free.m4: New file.
61773
61774 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61775
61776         * lib/minmax.h (MIN, MAX)
61777         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61778         Omit the special code that used __typeof__, since we worry that
61779         it could be more trouble than it's worth.  See:
61780         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61781         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61782
61783         * lib/free.c: New file.
61784
61785 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61786
61787         Trivial fixes to Makefile.am parts of module listings.
61788         * modules/strstr: Append strstr.h to lib_SOURCES.
61789         * modules/strcase: Likewise, for strcase.h.
61790
61791 2003-09-27  Karl Berry  <karl@gnu.org>
61792
61793         * config/mkinstalldirs: update from automake.
61794
61795 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61796
61797         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61798         (error_tail): Do not loop, reallocating temporary buffer, since
61799         the output cannot contain more wide characters than the input
61800         contains bytes, the size must be big enough already.  This avoids
61801         one potential size overflow calculation.  Check for size overflow
61802         when calculating temporary buffer size.  Free temporary buffer
61803         when done, if it was allocated with malloc; this plugs a memory
61804         leak.  Remove casts from void * to pointers, that are no longer
61805         needed now that we're assuming C89 or better.
61806
61807         Merge error changes from glibc.
61808
61809         * lib/error.c, error.h: Update copyright notice header to match glibc.
61810         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61811         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61812         Disable cancellation while printing error.
61813         * lib/error.h: Prepend __ to parameter names.
61814
61815 2003-09-26  Jim Meyering  <jim@meyering.net>
61816
61817         * lib/error.c (error_tail): Move some declarations
61818         into inner scope where the local variables are used.
61819
61820 2003-09-26  Bruno Haible  <bruno@clisp.org>
61821
61822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61823         stpncpy().
61824         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61825
61826 2003-09-26  Bruno Haible  <bruno@clisp.org>
61827
61828         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61829         (stpncpy): Define as alias for gnu_stpncpy.
61830         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61831
61832 2003-09-25  Simon Josefsson  <jas@extundo.com>
61833
61834         * lib/xgetdomainname.h: New file.
61835         * lib/xgetdomainname.c: New file.
61836
61837 2003-09-25  Simon Josefsson  <jas@extundo.com>
61838             Bruno Haible  <bruno@clisp.org>
61839
61840         * modules/getdomainname: New file.
61841         * modules/xgetdomainname: New file.
61842         * MODULES.html.sh (func_all_modules): Add getdomainname,
61843         xgetdomainname.
61844
61845 2003-09-25  Simon Josefsson  <jas@extundo.com>
61846             Bruno Haible  <bruno@clisp.org>
61847
61848         * m4/getdomainname.m4: New file.
61849
61850 2003-09-25  Simon Josefsson  <jas@extundo.com>
61851             Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/getdomainname.h: New file.
61854         * lib/getdomainname.c: New file.
61855
61856 2003-09-25  Karl Berry  <karl@gnu.org>
61857
61858         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61859
61860 2003-09-25  Karl Berry  <karl@gnu.org>
61861
61862         * config/install-sh: update from automake.
61863
61864 2003-09-25  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/version-etc-2: New file, from modules/version-etc with
61867         modifications.
61868         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61869
61870 2003-09-25  Bruno Haible  <bruno@clisp.org>
61871
61872         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61873         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61874
61875 2003-09-24  Simon Josefsson  <jas@extundo.com>
61876
61877         * modules/xgethostname: Add xgethostname.h.
61878
61879 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61880
61881         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61882         the buffer associated with the argument.  Bug reported by
61883         Simon Josefsson.
61884
61885 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61886
61887         * README: Document assumptions that 'int' is at least 32 bits
61888         wide, that integer arithmetic is 2's complement without overflow,
61889         that there are no holes in integer values, that adding sizes of
61890         two nonoverlapping objects can't overflow, and that all-bits-zero
61891         yields scalar zero.  Fix spelling and capitalization typos.
61892
61893 2003-09-19  Karl Berry  <karl@gnu.org>
61894
61895         * lib/argp.h: update from libc.
61896
61897 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61898
61899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61900         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61901         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61902
61903 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61904
61905         * gnulib-tool: Use "test -h", not "test -L", for portability
61906         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61907         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61908         (sed_extract_prog): Issue s commands one-by-one, rather than
61909         using \| in one s command.
61910
61911 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61912
61913         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61914         input error, instead of returning NULL the next time we are called
61915         (and therefore losing track of errno).
61916
61917 2003-09-16  Bruno Haible  <bruno@clisp.org>
61918
61919         * gnulib-tool (func_create_testdir): Warn about duplicated
61920         dependencies.
61921
61922 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61923
61924         * modules/argmatch, modules/fatal, modules/obstack,
61925         modules/xalloc, modules/xgethostname: Sort dependencies by
61926         importance, not alphabetically.
61927
61928 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61929
61930         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61931         fails, so that the caller gets the proper errno.
61932
61933         * lib/readutmp.c (read_utmp): Likewise.
61934         Check for fstat error.  Close stream and free storage
61935         when failing.
61936
61937 2003-09-14  Karl Berry  <karl@gnu.org>
61938
61939         * config/srclist.txt (strdup.c): disable for c89 changes.
61940
61941 2003-09-14  Jim Meyering  <jim@meyering.net>
61942
61943         * lib/getloadavg.c: Correct cpp indentation.
61944         * lib/strdup.c: Likewise.
61945         * lib/vasnprintf.c: Likewise.
61946
61947 2003-09-14  Bruno Haible  <bruno@clisp.org>
61948
61949         * modules/fwriteerror: New file.
61950         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61951
61952 2003-09-14  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/fwriteerror.h: New file.
61955         * lib/fwriteerror.c: New file.
61956
61957 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61958
61959         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61960         modules/xgethostname, modules/xalloc: Depend on exit.
61961
61962 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61963
61964         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61965
61966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61967         and AC_MINIX, too, so that their extensions are available.
61968
61969         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61970         This macro has been superseded by gl_BACKUPFILE.
61971
61972         More patches to assume C89 or better.
61973
61974         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61975
61976         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61977         unconditionally.
61978         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61979         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61980         Include <string.h>, <stdlib.h> unconditionally.
61981         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61982         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61983         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61984         headers or for string.h.
61985         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61986         or strtoul.
61987
61988         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61989         headers.
61990         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61991         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61992         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61993         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61996         memcpy, memset.
61997         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61998         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61999         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62000         strtol.
62001         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62002         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62003         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62004         strtoul.
62005
62006 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62007
62008         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62009         * lib/obstack.c [!defined _LIBC]: Likewise.
62010         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62011         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62012         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62013
62014         More changes to assume C89 or better.
62015
62016         * lib/error.c (error_tail): Assume vprintf.
62017
62018         * lib/argmatch.c (getenv): Remove decl.
62019         * lib/progreloc.c (get_full_program_name): Define via prototype.
62020         * lib/setenv.c (clearenv): Likewise.
62021         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62022         needed.
62023         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62024         (malloc, memcpy): Remove decls.
62025         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62026         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62027         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62028         (memcpy): Remove macro.
62029         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62030         (__P): Remove.  All uses removed.
62031         (PTR): Remove.  All uses changed to void *.
62032         (CHAR_BIT, NULL): Remove.
62033         (spaces, zeros, memset_space, memset_zero)
62034         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62035         Remove.
62036         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62037         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62038         Define with prototype.
62039         Remove now-unnecessary prototype decl.
62040         (extra_args_spec): Assume ANSI C.  All uses changed.
62041         (extra_args_spec_iso): Remove.
62042         (my_strftime, emacs_strftimeu): Define via prototype.
62043         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62044         unconditionally.
62045         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62046         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62047         (strtoul, strtol): Remove decls.
62048         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62049         LONG_MAX): Remove.
62050         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62051         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62052         (LOCALE_PARAM_PROTO): New macro.
62053         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62054         (INTERNAL (strtol), strtol): Define with a prototype.
62055         (PARAMS): Remove.  All uses removed.
62056         * lib/tempname.c: Include <string.h> unconditionally.
62057         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62058         * lib/xgethostname.c (main): Define with a prototype.
62059         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62060         Include <stdlib.h> unconditionally.
62061         (calloc, malloc, realloc, free): Remove decls.
62062         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62063         Include <stdlib.h> unconditionally.  Sort include file names.
62064         (strtod): Remove.
62065         (xstrtod): Define with a prototype.
62066         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62067         (strtol, strtoul): Remove decls.
62068
62069 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62070
62071         More patches to assume C89 or better.
62072         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62073         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62074         string.h, memchr, STDC_HEADERS.
62075
62076 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62077
62078         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62079         Include <stdlib.h>, <string.h> unconditionally.
62080         Remove now-unnecessary cast to char *.
62081         * lib/strnlen.c: Include <string.h> unconditionally.
62082         * lib/yesno.c (yesno): Define with a prototype.
62083
62084 2003-09-11  Bruno Haible  <bruno@clisp.org>
62085
62086         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62087
62088 2003-09-10  Jim Meyering  <jim@meyering.net>
62089
62090         * lib/error.c: Correct indentation of cpp directives.
62091
62092 2003-09-10  Bruno Haible  <bruno@clisp.org>
62093
62094         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62095         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62096         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62097         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62098         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62099         <stdlib.h> and <string.h> checks.
62100         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62101         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62102
62103 2003-09-10  Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/strcspn.c: Include <string.h> unconditionally.
62106         * lib/strpbrk.c: Include <string.h> unconditionally.
62107         * lib/strstr.c: Include <string.h> unconditionally.
62108         * lib/unicodeio.c: Include <string.h> unconditionally.
62109         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62110         * lib/unsetenv.c: Likewise.
62111         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62112         * lib/yesno.c: Include <stdlib.h> unconditionally.
62113         (rpmatch): Add prototype.
62114
62115 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62116
62117         More patches to assume C89 or better.
62118         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62119         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62120         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62121         or for string.h.
62122         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62123         stdlib.h.
62124         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62125         C headers.
62126         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62127         string.h.
62128         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62129         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62130         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62131         or for string.h.
62132         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62133         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62134         C headers.
62135         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62136         memcpy.
62137         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62138         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62139         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62140         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62141         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62142         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62143         string.h, free.
62144         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62145         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62146         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62147         C headers, or for string.h.
62148         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62149         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62150         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62151         headers, memory.h, stdlib.h, string.h, strings.h.
62152         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62153         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62154         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62155         strchr.
62156         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62157         headers, memory.h, string.h.
62158         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62159         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62160         free.
62161         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62162         headers.
62163         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62164         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62165         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62166         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62167         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62168
62169 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62170
62171         More K&R removal.
62172
62173         * lib/acosl.c (main): Use a prototype.
62174         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62175         tanl.c: Likewise.
62176
62177         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62178
62179         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62180         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62181         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62182         with a prototype.
62183         * lib/getopt.c (const): Remove macro.
62184         Include <string.h> unconditionally.
62185         (my_index): Remove; all uses changed to strchr.
62186         (strlen): Remove decl.
62187         (exchange): Remove forward decl; no longer needed.
62188         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62189         Define with prototype.
62190         * lib/getopt1.c (const): Remove macro.
62191         (getopt_long, getopt_long_only, main): Define with prototype.
62192
62193         * lib/getugroups.c: Include <string.h> unconditionally.
62194
62195         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62196         (getusershell, setusershell, endusershell, readname, main):
62197         Define with prototypes.
62198
62199         * lib/group-member.c: Include group-member.h first.
62200         Include <stdlib.h> unconditionally.
62201
62202         * lib/hard-locale.c: Include hard-locale.h first.
62203         Include <stdlib.h>, <string.h> unconditionally.
62204
62205         * lib/hash.c (free, malloc): Remove decls.
62206         Include <stdlib.h> unconditionally.
62207
62208         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62209         (getenv): Do not declare.
62210
62211         * lib/idcache.c: Include <string.h> unconditionally.
62212
62213         * lib/long-options.c: Include long-options.h first, to test interface.
62214         Include <stdlib.h> unconditionally.
62215
62216         * lib/makepath.c: Include makepath.h first, to test interface.
62217         Include <stdlib.h> and <string.h> unconditionally.
62218
62219         * lib/linebuffer.c: Include <stdlib.h>.
62220         (free): Remove decl.
62221
62222         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62223         stddef.h. rpl_malloc returns void *, not char *.
62224         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62225         prototype.
62226
62227         * lib/md5.h: Include <limits.h> unconditionally.
62228         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62229         (__P): Remove; all uses removed.
62230         * lib/md5.c: Include "md5.h" first.
62231         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62232         md5_buffer, md5_process_bytes, md5_process_block):
62233         Define with prototypes.
62234         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62235         * lib/sha.c: Include "sha.h" first.
62236         Include <stdlib.h>, <string.h> unconditionally.
62237
62238         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62239         * lib/memcmp.c (__ptr_t): Likewise.
62240         * lib/memrchr.c (__ptr_t): Likewise.
62241         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62242         Include <string.h> unconditionally.
62243         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62244         * lib/memchr.c: Include <stdlib.h> unconditionally.
62245         * lib/memchr.c (LONG_MAX): Remove.
62246         * lib/memrchr.c (LONG_MAX): Likewise.
62247         * lib/memchr.c (__memchr): Define via a prototype.
62248         * lib/memrchr.c (__memrchr): Likewise.
62249         * lib/memcmp.c (__P): Remove, and remove all uses.
62250         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62251         Remove forward decls; no longer needed.
62252         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62253         Use types required by C89 in prototype.
62254
62255         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62256         * lib/savedir.c: Likewise.
62257         * lib/mkdir.c (free): Remove decl.
62258         * lib/rmdir.c (rmdir): Define with a prototype.
62259         * lib/savedir.c: Include savedir.h first, to test interface.
62260
62261         * lib/mktime.c (STDC_HEADERS): Remove.
62262         Include <stdlib.h>, <string.h> unconditionally.
62263
62264         * lib/modechange.c: Include <stdlib.h> unconditionally.
62265         (malloc): Remove decl.
62266
62267         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62268         (free): Remove decl.
62269
62270         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62271         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62272         (This type really should be intptr_t, but that's a C99ism.)
62273         (_obstack_memcpy): Remove: all uses changed to memcpy.
62274         Include <string.h> unconditionally.
62275         (struct obstack): Assume __STDC__ for types of members
62276         chunkfun, freefun, extra_arg.
62277         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62278         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62279         obstack_begin, obstack_specify_allocation,
62280         obstack_specify_allocation_with_arg, obstack_chunkfun,
62281         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62282         Remove unprototyped decls and the macros that use them.
62283         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62284         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62285         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62286         (defined __STDC__ && __STDC__)]:
62287         Remove nonprototyped code.
62288         Include <stdlib.h> unconditionally.
62289         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62290         _obstack_allocated_p, _obstack_free, obstack_free,
62291         _obstack_memory_used, print_and_abort):
62292         Define using prototypes.
62293         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62294         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62295         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62296         obstack_next_free, obstack_object_size, obstack_room) [0]:
62297         Remove unused, unprototyped code.
62298
62299         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62300
62301         * lib/physmem.c (physmem_total, physmem_available, main): Define
62302         with prototypes.
62303
62304         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62305         (main): Define with a prototype.
62306
62307         * lib/posixver.c (getenv): Remove decl.
62308
62309         * lib/putenv.c (malloc): Returns void *, not char *.
62310         Include <string.h> unconditionally.
62311         (strchr, memcpy, NULL): Do not define.
62312
62313         * lib/readtokens.c: Include readtokens.h first, to test interface.
62314         Include <stdlib.h>, <string.h> unconditionally.
62315         (init_tokenbuffer): Define with a prototype.
62316
62317         * lib/regex.c (PARAMS): Remove.  All uses removed.
62318         All uses of _RE_ARGS removed, too.
62319         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62320         unconditionally.
62321         (bzero): Assume memset exists.
62322         (memcmp, memcpy, NULL): Remove.
62323         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62324         char, or assignments to local vars of type signed char.
62325         (init_syntax_once, PREFIX(extract_number_and_incr),
62326         PREFIX(print_partial_compiled_pattern),
62327         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62328         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62329         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62330         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62331         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62332         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62333         wcs_compile_range, byte_compile_range, truncate_wchar,
62334         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62335         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62336         count_mbs_length, wcs_re_match_2_internal,
62337         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62338         PREFIX(alt_match_null_string_p),
62339         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62340         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62341         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62342         now-unnecessary declaration, if any.
62343         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62344         regcomp, regexec):
62345         Remove now-unnecessary casts among pointer types.
62346         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62347
62348         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62349         (free): Remove decl.
62350
62351         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62352
62353         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62354         (free): Remove decl.
62355
62356         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62357         * lib/xgetcwd.c: Likewise.
62358
62359         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62360         (free): Remove decl.
62361
62362         * lib/strchrnul.c (strchrnul): Define with a prototype.
62363         Fix bug: c_in was not converted to char before searching.
62364
62365         The following changes are not K&R related:
62366
62367         * lib/group-member.h: Include <sys/types.h>, so that this file is
62368         self-contained.
62369         * lib/makepath.h: Likewise.
62370
62371         * lib/getusershell.c (readname, default_index, line_size, readname):
62372         Use size_t, not int, for sizes.
62373         (readname): If the size overflows, report an error instead of
62374         looping forever.
62375
62376 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62377
62378         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62379         libc.
62380
62381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62382
62383         * README: New section: portability guidelines.
62384
62385 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62386
62387         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62388         C89 spec.
62389
62390 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62391
62392         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62393
62394 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62395
62396         Assume C89 or better; remove K&R cruft.
62397         A few of these changes were first proposed by Derek Robert Price
62398         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62399
62400         * lib/addext.c: Include <string.h> unconditionally.
62401         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62402         Don't declare getenv or malloc.
62403
62404         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62405         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62406         (NULL): Remove.
62407         (find_stack_direction, alloca): Use prototypes.
62408
62409         * lib/atexit.c (atexit): Define using a prototype.
62410
62411         * lib/basename.c, dirname.c, stripslash.c:
62412         Include <string.h> unconditionally.
62413
62414         * lib/bcopy.c: Include <stddef.h>.
62415         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62416
62417         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62418
62419         * lib/error.h (error, error_at_line, error_print_progname)
62420         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62421         * lib/error.c: Include error.h first, to check interface.
62422         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62423         (VA_START): Remove; all uses changeed to va_start.
62424         (exit, strerror): Remove decls.
62425         (error_print_progname): Prototype uncondionally.
62426         Don't include <errno.h>; no longer needed.
62427         (private_strerror): Remove.
62428         (error_tail): Always define.
62429         (error, error_at_line): Assume C89 or better; always use prototypes.
62430         * lib/fatal.c: Include "fatal.h" first, to test interface.
62431         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62432         (VA_START): Remove; all uses changed to va_start.
62433         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62434         this case.
62435         (exit): Remove decl.
62436         (fatal): Prototype unconditionally.  Assume va_start works.
62437         Abort at end, to pacify gcc.
62438
62439         * lib/euidaccess.c (main): Define with a prototype.
62440
62441         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62442
62443         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62444
62445         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62446         prototypes.
62447         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62448         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62449         (getenv): Remove decl.
62450         (fnmatch): Define using a prototype.
62451         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62452         (FCT): Define using a prototype.
62453
62454         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62455
62456         * lib/gethostname.c: Include <stddef.h>.
62457         (gethostname): Define with prototype.  Length is size_t, not int.
62458
62459 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62460
62461         Assume C89 or better; remove K&R cruft.
62462         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62463         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62464         string.h, getenv, malloc.
62465         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62466         headers.
62467         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62468         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62469         do not check for strerror.
62470         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62471         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62472         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62473         do not check for doprnt or vprintf.
62474         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62475         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62476
62477 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62478
62479         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62480         getversion.c should have been removed then, but was accidentally
62481         preserved.
62482
62483         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62484         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62485
62486 2003-09-08  Karl Berry  <karl@gnu.org>
62487
62488         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62489                 config, forget about prep.
62490
62491         * config/depcomp, missing: update from automake.
62492
62493 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62494
62495         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62497
62498 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62499
62500         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62501         copy_tm_result.  Bug reported by Simon Josefsson in
62502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62503
62504 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62505
62506         * m4/time_r.m4: New file.
62507         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62509         is. Check for timegm declaration.
62510         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62511         Do not check for gmtime_r.
62512         Replace mktime if __mktime_internal does not exist and if mktime
62513         hasn't been replaced already.
62514
62515 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62516
62517         * lib/time_r.c, lib/time_r.h: New files.
62518
62519         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62520         __localtime_r.
62521         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62522         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62523
62524         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62525         __gmtime_r.
62526         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62527         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62528         Include <time_r.h>.
62529
62530         * lib/timegm.c: Switch to glibc implementation, with the following
62531         changes:
62532         [defined HAVE_CONFIG_H]: Include <config.h>.
62533         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62534         (__mktime_internal) [!defined _LIBC]: New decl.
62535         (__gmtime_r) [!defined _LIBC]: New macro and function.
62536         (timegm): Use a prototype, since gnulib assumes C89.
62537         Do not bother declaring tmp to be const, as it's not really usefu.
62538         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62539         (timegm): Declare only if HAVE_DECL_TIMEGM.
62540
62541 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62542
62543         * MODULES.html.sh (func_all_modules): Add time_r.
62544         * modules/time_r: New file.
62545         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62546         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62547
62548 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62549
62550         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62551         Bug reported by Lute Kamstra in
62552         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62553
62554         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62555         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62556         course with correspondingly smaller numbers for tomorrow and
62557         yesterday.  From Tadayoshi Funaba.  Originally installed into
62558         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62559         coreutils merge?).
62560
62561 2003-08-31  Simon Josefsson  <jas@extundo.com>
62562
62563         * modules/timegm: New file.
62564         * MODULES.html.sh (func_all_modules): Add timegm.
62565
62566 2003-08-31  Simon Josefsson  <jas@extundo.com>
62567
62568         * m4/timegm.m4: New file.
62569
62570 2003-08-31  Simon Josefsson  <jas@extundo.com>
62571
62572         * lib/timegm.h: New file.
62573         * lib/timegm.c: New file.  Based on
62574         wget-1.8.2/src/http.c:mktime_from_utc.
62575
62576 2003-08-31  Karl Berry  <karl@gnu.org>
62577
62578         * lib/argp.h: update from libc.
62579
62580 2003-08-28  Bruno Haible  <bruno@clisp.org>
62581
62582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62583         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62584         followed by '#define fnmatch fnmatch_posix' gives an error.
62585
62586 2003-08-28  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62589         warning on QNX, which defines O_BINARY to 000000.
62590
62591 2003-08-27  Jim Meyering  <jim@meyering.net>
62592
62593         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62594         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62595         would fail after 32.  Reported by Danny Levinson.  Details here:
62596         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62597
62598 2003-08-24  Bruno Haible  <bruno@clisp.org>
62599
62600         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62601         MSVC7 <stdio.h> is included later.
62602
62603 2003-08-22  Simon Josefsson  <jas@extundo.com>
62604
62605         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62606
62607 2003-08-20  Karl Berry  <karl@gnu.org>
62608
62609         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62610
62611 2003-08-20  Bruno Haible  <bruno@clisp.org>
62612
62613         * modules/progname: New file.
62614         * MODULES.html.sh (func_all_modules): Add progname.
62615
62616 2003-08-20  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/progname.h: New file, from GNU gettext.
62619         * lib/progname.c: New file, from GNU gettext.
62620         * lib/progreloc.c: New file, from GNU gettext.
62621
62622 2003-08-19  Jim Meyering  <jim@meyering.net>
62623
62624         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62625         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62626
62627 2003-08-19  Bruno Haible  <bruno@clisp.org>
62628
62629         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62630         more.
62631
62632 2003-08-19  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/xstrdup.c: Assume <string.h> exists.
62635
62636 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62637
62638         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62639         in makefile rules.
62640
62641 2003-08-18  Jim Meyering  <jim@meyering.net>
62642
62643         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62644         * m4/lib-ld.m4: Likewise.
62645
62646 2003-08-18  Jim Meyering  <jim@meyering.net>
62647
62648         * lib/setenv.h: Indent nested cpp directive.
62649         * lib/vasnprintf.c: Remove trailing blanks.
62650
62651 2003-08-17  Simon Josefsson  <jas@extundo.com>
62652
62653         * modules/xstrndup: New file.
62654         * MODULES.html.sh (func_all_modules): Add xstrndup.
62655
62656 2003-08-17  Simon Josefsson  <jas@extundo.com>
62657
62658         * modules/argp: Fix autoconf macro name. Add more dependencies.
62659
62660 2003-08-17  Simon Josefsson  <jas@extundo.com>
62661
62662         * m4/xstrndup.m4: New file.
62663
62664 2003-08-17  Simon Josefsson  <jas@extundo.com>
62665
62666         * m4/argp.m4: New file.
62667
62668 2003-08-17  Simon Josefsson  <jas@extundo.com>
62669             Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/xstrndup.h: New file.
62672         * lib/xstrndup.c: New file.
62673
62674 2003-08-17  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/strndup (Files, Include): Add lib/strndup.h.
62677
62678 2003-08-17  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/euidaccess (Files): Add lib/euidaccess.h.
62681
62682 2003-08-17  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/strndup.h: New file.
62685
62686 2003-08-17  Bruno Haible  <bruno@clisp.org>
62687
62688         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62689         like AC_GNU_SOURCE.
62690         * modules/extensions (configure.ac): Comment out the invocation of
62691         gl_USE_SYSTEM_EXTENSIONS.
62692
62693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62694
62695         Merges from coreutils, etc.
62696         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62697         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62698         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62699         fixing a typo.
62700         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62701         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62702
62703 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62704
62705         Document merge from coreutils.
62706         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62707         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62708         * modules/utime: Add m4/utimes-null.m4.
62709
62710 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62711
62712         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62713         space, undoing this 2003-08-12 change:
62714         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62715
62716 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62717
62718         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62719         strtoul.c from libc, undoing this 2003-08-12 change:
62720         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62721
62722 2003-08-16  Jim Meyering  <jim@meyering.net>
62723
62724         Merges from coreutils.
62725         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62726         prefix.  Adjust cache variables similarly.  Create 500 rather than
62727         just 300 files, to exercise bug on Darwin6.5, too.
62728         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62729         $missing_dir.
62730         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62731         AM_SYS_POSIX_TERMIOS.
62732         Reported by mkc@mathdogs.com.
62733         Also change use of $am_cv_sys_posix_termios
62734         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62735         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62736         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62737         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62738         in /proc/mounts until it finds one with matching device number.  This
62739         is unnecessary when the FILE argument *is* a mount point.  No stat call
62740         is necessary in that case.  So, disable the statvfs-testing code on
62741         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62742         as RedHat bug# 84846.
62743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62744         to 1MB, so as not to render systems with no stack size limit (e.g.,
62745         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62746         Include <unistd.h>.  On some systems,
62747         it is required for the definition of _SC_PAGESIZE.
62748
62749 2003-08-16  Jim Meyering  <jim@meyering.net>
62750
62751         Merge from coreutils.
62752         * lib/xstrtoimax.c: #else #if -> #elif.
62753         * lib/xstrtoumax.c: Likewise.
62754
62755 2003-08-16  Jim Meyering  <jim@meyering.net>
62756
62757         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62758         * m4/utimes.m4: Removed.
62759         * m4/utimes-null.m4: Renamed from utimes.m4.
62760
62761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62762         to 1MB, so as not to render systems with no stack size limit (e.g.,
62763         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62764         Include <unistd.h>.  On some systems,
62765         it is required for the definition of _SC_PAGESIZE.
62766
62767 2003-08-16  Jim Meyering  <jim@meyering.net>
62768         and Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         Merges from coreutils, etc.
62771
62772         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62773         using the latest version from cvs.  This avoids problems with #line
62774         directives using a vendor (Sun) compiler.
62775         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62776         Don't set GETGROUPS_LIB here; now it's
62777         done via getgroups.m4's wrapper function.
62778         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62779         rather than just in sh-util/configure.in, so that the
62780         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62781         same.
62782         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62783         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62784         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62785         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62786         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62787         Remove code that is now done by the newly-required macros.
62788         Append $(EXEEXT) to DF_PROG.
62789         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62790         Do not invoke or require the following here,
62791         since prereq.m4 or some gnulib .m4 now does this for us:
62792         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62793         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62794         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62795         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62796         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62797         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62798         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62799         AC_FUNC_OBSTACK.
62800         Do not replace the following functions, as this is now the job
62801         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62802         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62803         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62804         atexit getpass, strdup, getpagesize.
62805         Replace 'raise'.
62806         Do not check for the following functions, as this is now the job
62807         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62808         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62809         setregid.
62810         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62811         Check for sys/sysctl.h.
62812         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62813         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62814         of checking for ssize_t ourselves.
62815
62816         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62817         Require every macro that gnulib/modules/* suggests for us.
62818         (jm_PREREQ_ADDEXT): New macro.
62819         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62820         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62821
62822         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62823         (gl_PHYSMEM): Use it.
62824         Also check for `table' function.
62825         Check for new headers and functions.
62826         Add check for sys/sysmp.h.
62827         With suggestions from Kaveh Ghazi.
62828         Ignore headers that are present but cannot be compiled.  This
62829         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62830         C 5.4.
62831
62832 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62833
62834         Document merge from coreutils.
62835         * modules/userspec: Depend on posixver.
62836         * modules/strftime: Depend on tzset.
62837
62838 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62839
62840         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62841         rather than tab, after '#' in shell-script copyright notices.
62842         Suggested by Bruno Haible.
62843
62844 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62845
62846         * config/srclist-update: Use three spaces, rather than tab, after '#'
62847         in shell-script copyright notices.  Suggested by Bruno Haible.
62848         Remove unnecessary parenthesization in regular expression.
62849
62850 2003-08-15  Jim Meyering  <jim@meyering.net>
62851
62852         Merge from coreutils.
62853         * lib/xgethostname.c: Include <stdlib.h>.
62854         (xghostname): Don't exit for anything other than memory-related
62855         failure; just return NULL.
62856         * lib/userspec.c: Include "posixver.h".
62857         (parse_user_spec): Accept `.' as a separator only
62858         in pre-POSIX-200112 mode.
62859         * lib/strtoimax.c: Use #elif rather than #else #if.
62860         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62861         Remove function, now that we can rely on a working tzset function.
62862         [!_LIBC]: Ensure that the required autoconf test has been run.
62863         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62864         Use underlying_strftime for %r.
62865         * lib/sha.c: Merge in some clean-up and optimization changes from
62866         glibc.
62867         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62868         Ensure that it is a multiple of 64.
62869         Rearrange loop exit tests so as to avoid performing an
62870         additional fread after encountering an error or EOF.
62871         * lib/realloc.c: Update copyright date.
62872
62873 2003-08-15  Jim Meyering  <jim@meyering.net>
62874         and Paul Eggert  <eggert@twinsun.com>
62875
62876         Merge from coreutils.
62877         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62878         member but strut utmpx does not.  Needed for AIX 4.3.3.
62879         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62880
62881 2003-08-15  Jim Meyering  <jim@meyering.net>
62882         and Paul Eggert  <eggert@cs.ucla.edu>
62883
62884         Merges from coreutils, etc.
62885         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62886         Require gl_FUNC_TZSET_CLOBBER.
62887         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62888         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62889         members.
62890
62891 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62892
62893         Help the merge from coreutils.
62894         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62895         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62896         * m4/tzset.m4: Use it too.
62897
62898 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62899
62900         * modules/tzset: New file.
62901
62902 2003-08-14  Jim Meyering  <jim@meyering.net>
62903
62904         Merges from coreutils.
62905         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62906         variable names, rather than @FNMATCH_H@.
62907         * modules/alloca: Likewise for $(ALLOCA_H).
62908
62909         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62910         the three copies of the literal target, `fnmatch.h'.
62911         * modules/alloca (alloca.h): Likewise.
62912
62913 2003-08-14  Jim Meyering  <jim@meyering.net>
62914
62915         Merge from coreutils.
62916         * m4/tzset.m4: New file.
62917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62918         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62919         otherwise, AIX 5.1 systems would end up using the latter.
62920         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62921         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62922         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62923         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62924
62925 2003-08-14  Jim Meyering  <jim@meyering.net>
62926
62927         Merge from coreutils.
62928         * lib/obstack.h: Whitespace changes.
62929         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62930         and xcalloc return values.
62931         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62932         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62933         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62934         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62935         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62936         error from mntctl.
62937         Use mntctl's return value to drive the entry-processing loop, since
62938         we can't rely on the value of the vmt_length member in the last
62939         entry.  On some systems doing so could result in exhausting
62940         virtual memory.  Based in part on a patch from Mike Jetzer.
62941
62942 2003-08-14  Jim Meyering  <jim@meyering.net>
62943         and Paul Eggert  <eggert@twinsun.com>
62944
62945         Merges from coreutils, plus other fixes.
62946         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62947         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62948         for credits and details.  Thanks to Kaveh Ghazi for helping
62949         to keep these files in sync.
62950         (ARRAY_SIZE): Define it.
62951         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62952         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62953         (memcasecmp): Don't assume size_t fits in unsigned int.
62954         Remove casts and duplicate code.
62955         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62956         (memcpy): Remove definition.
62957         Merge in some clean-up and optimization changes from glibc.
62958         [BLOCKSIZE]: Move definition to top of file.
62959         Ensure that it is a multiple of 64.
62960         Rearrange loop exit tests so as to avoid performing an
62961         additional fread after encountering an error or EOF.
62962         * lib/md5.h (md5_uintptr): Define.
62963         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62964         return to the initial working directory.  Preserve errno
62965         for caller.
62966         * lib/idcache.c: Include "xalloc.h".
62967         (xmalloc, xrealloc): Remove decls.
62968         (getuser): Remove casts no longer required in C89.
62969         * lib/human.c: Include stdio.h, for sprintf.
62970         * lib/group-member.c: Include "xalloc.h".
62971         (xmalloc, xrealloc): Remove decls.
62972         (get_group_info): Remove casts no longer required in C89.
62973         * lib/getusershell.c (readname): Remove casts no longer required in
62974         C89.
62975         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62976         * lib/getline.c: Whitespace fix, from coreutils.
62977
62978 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62979
62980         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62981         Check for isascii.
62982
62983         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62984         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62985         Undo previous (whitespace-only) change.
62986
62987 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62988
62989         * lib/exclude.c: Include <ctype.h>
62990         (IN_CTYPE_DOMAIN): New macro.
62991         (is_space): New fn.
62992         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62993         and empty lines.
62994
62995         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62996         Undo previous (whitespace-only) change.
62997
62998 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62999
63000         * config/srclist-update: Change update back to the old behavior,
63001         leaving whitespace alone.  Use one 'sed' command rather than a
63002         pipeline.
63003         (fixlicense): Now a variable, not a function.
63004         (remove_trailing_blanks): Remove.
63005         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63006         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63007         Undo previous (whitespace-only) change.
63008
63009 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63010
63011         Merge from coreutils.
63012         * modules/euidaccess: Add lib_SOURCES, include for new
63013         file euidaccess.h
63014
63015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63016
63017         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63018         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63019         Normalize leading white space and remove trailing white space.
63020
63021         Merge from coreutils
63022         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63023
63024         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63025         0.12.1.  These files are now being upgraded automatically by
63026         ../config/srclist-update.
63027
63028 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63029
63030         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63031         Normalize leading white space and remove trailing white space.
63032         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63033         notice, as per ../config/srclist-update.
63034
63035         Merge from coreutils.
63036         * lib/euidaccess.h: New file.
63037         * lib/euidaccess.c: Include it.
63038         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63039         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63040         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63041
63042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63043
63044         * config/srclist-update: Add copyright notice.
63045         (remove_id_lines, remove_trailing_blanks): New constants.
63046         (fixfile): Use them to normalize spacing a bit in copied files.
63047         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63048         Normalize leading white space and remove trailing white space.
63049
63050         * config/texinfo.tex: Sync with texinfo.
63051
63052         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63053         strtoul.c from libc, to merge coreutils whitespace changes.
63054
63055         * config/srclist.txt: Get the following m4 files from gettext:
63056         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63057         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63058         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63059         wint_t.m4.
63060
63061 2003-08-12  Karl Berry  <karl@gnu.org>
63062
63063         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63064         been made.
63065
63066 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63067
63068         * modules/gnu-source, m4/gnu-source.m4:
63069         Remove; we're assuming Autoconf 2.54 or later now.
63070         Suggested by Bruno Haible.
63071         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63072
63073 2003-08-11  Bruno Haible  <bruno@clisp.org>
63074
63075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63076
63077 2003-08-11  Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63080         (vasnprintf): Use it instead of wcslen.
63081
63082 2003-08-11  Bruno Haible  <bruno@clisp.org>
63083
63084         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63085         value to ensure that _Bool promotes to int. Use #define for _Bool when
63086         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63087
63088 2003-08-10  Karl Berry  <karl@gnu.org>
63089
63090         * lib/regex.h: update from libc (whitespace fix).
63091
63092 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63093
63094         Merge some files from coreutils.  These changes were
63095         originally made by Jim Meyering.
63096         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63097         many older Unixes require this.
63098         * lib/alloca.c (alloca): Remove cast to argument of free;
63099         no longer needed in C89.
63100         * lib/alloca_.h, regex.h: Fix white space to match
63101         what GNU indent does.
63102
63103 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63104
63105         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63106         apparently Emacs's Unicode mode got confused before my 2003-08-05
63107         checkin.
63108
63109 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63110
63111         * m4/extensions.m4: New file.
63112         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63113         Require gl_USE_SYSTEM_EXTENSIONS.
63114         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63115         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63116
63117 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63118
63119         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63120         * modules/extensions, modules/gnu-source: New files.
63121         * modules/timespec, modules/unlocked-io: Depend on extensions.
63122
63123 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63124
63125         * modules/restrict: New file.
63126         * MODULES.html.sh (func_all_modules): Add restrict.
63127         * modules/regex: Depend on restrict.
63128
63129 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63130
63131         * m4/restrict.m4: New file.
63132         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63133
63134 2003-08-07  Bruno Haible  <bruno@clisp.org>
63135
63136         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63137         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63138
63139 2003-08-07  Bruno Haible  <bruno@clisp.org>
63140
63141         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63142         makes the module 'getndelim2' compatible with the module 'getline'.
63143
63144 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63145
63146         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63147         byte with "\201" to avoid glitches when editing that source file
63148         with multi-gnome-terminal.
63149
63150 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63151
63152         * lib/bumpalloc.h: Remove.
63153
63154 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63155
63156         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63157         * modules/bumpalloc: Remove.
63158
63159 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63160
63161         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63162         GNU coding style.
63163
63164         Merge from coreutils.
63165         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63166         1. From glibc.
63167         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63168         from Karl Berry, implemented by Jim Meyering.
63169         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63170         from Dmitry V. Levin.
63171         Remove anachronistic cast of xrealloc.
63172         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63173         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63174         type. Otherwise, it wouldn't compile with at least /bin/cc on
63175         ymp-cray-unicos9.0.2.X.
63176         Combine two mostly-identical uses of alloca into one.
63177         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63178
63179 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63180
63181         [From Emacs.]
63182
63183         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63184         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63185         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63186         obsolete NLIST_NAME_UNION.
63187         [__GNU__]: Undef BSD and FSCALE.
63188         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63189
63190 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63191
63192         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63193         an enum type, so that it's guaranteed to promote to int.  See:
63194         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63195
63196 2003-08-03  Karl Berry  <karl@gnu.org>
63197
63198         * config/depcomp: update from automake.
63199
63200 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63201
63202         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63203         (strerror): Don't assume that a printable int fits in 14 bytes.
63204
63205 2003-07-31  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/getpass-gnu: New file.
63208         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63209
63210 2003-07-31  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63213
63214 2003-07-24  Karl Berry  <karl@gnu.org>
63215
63216         * config/missing: update from automake.
63217
63218 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63219             Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63222         * lib/getline.c (getline, getdelim): Likewise.
63223         Remove _GNU_SOURCE define; now it's defined in config.h through
63224         m4/getline.m4.
63225
63226 2003-07-23  Karl Berry  <karl@gnu.org>
63227
63228         * config/config.sub: update from prep.
63229
63230 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63231
63232         * modules/xalloc (Depends-on): Add exitfail.
63233         * modules/xmemcoll: Likewise.
63234
63235 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63236
63237         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63238         over-parenthesization in macros.
63239
63240         Sync with coreutils.
63241
63242         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63243         required by C99.
63244
63245         Use `exit_failure' for xalloc and xmemcoll instead of their own
63246         private exit-failure variables.
63247         * lib/xalloc.h (xalloc_exit_failure): Remove.
63248         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63249         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63250         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63251         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63252         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63253
63254 2003-07-20  Jim Meyering  <jim@meyering.net>
63255
63256         * modules/closeout (Depends-on): Add exitfail.
63257         Suggestion from Bruno Haible.
63258
63259 2003-07-19  Karl Berry  <karl@gnu.org>
63260
63261         * config/config.sub: update from prep.
63262
63263 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63264
63265         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63266         Remove.
63267         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63268         to test that it can stand by itself.  Include "exitfail.h".
63269         Clients should set exit_failure instead.
63270         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63271
63272 2003-07-18  Bruno Haible  <bruno@clisp.org>
63273
63274         * modules/getndelim2: New file.
63275         * modules/getline: Share files with module getndelim2.
63276         * modules/getnline: Depend on getndelim2 instead of sharing files with
63277         it. Add getnline.c to lib_SOURCES.
63278         * MODULES.html.sh (func_all_modules): Add getndelim2.
63279
63280 2003-07-18  Bruno Haible  <bruno@clisp.org>
63281
63282         * m4/getndelim2.m4: New file.
63283         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63284         invoke gl_PREREQ_GETNDELIM2.
63285         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63286         gl_PREREQ_GETNDELIM2.
63287         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63288         gl_GETNDELIM2.
63289
63290 2003-07-18  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/getndelim2.h: New file.
63293         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63294         getndelim2.h.
63295         (getndelim2): Make non-static. Change return type to ssize_t.
63296         * lib/getline.h: Change argument names.
63297         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63298         * lib/getnline.c: Include getndelim2.h.
63299
63300 2003-07-18  Andreas Schwab  <schwab@suse.de>
63301
63302         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63303
63304 2003-07-17  Karl Berry  <karl@gnu.org>
63305
63306         * config/config.sub: update from prep.
63307
63308 2003-07-17  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/getnline: New file.
63311         * modules/getline: Add lib/getndelim2.c to source file list.
63312         * MODULES.html.sh (func_all_modules): Add getnline.
63313
63314 2003-07-17  Bruno Haible  <bruno@clisp.org>
63315
63316         * m4/getnline.m4: New file.
63317
63318 2003-07-17  Bruno Haible  <bruno@clisp.org>
63319
63320         * m4/Makefile.am.in: Remove file.
63321         * m4/Makefile.am: Remove file.
63322         * m4/Makefile.in: Remove file.
63323
63324 2003-07-17  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/getnline.h: New file.
63327         * lib/getnline.c: New file.
63328         * lib/getndelim2.c: New file, extracted from getline.c.
63329         (getndelim2): Renamed from getdelim2, with added nmax argument.
63330         * lib/getline.c: Include getndelim2.c.
63331         (getdelim2): Moved out to getndelim2.c.
63332         (getline, getdelim): Update.
63333
63334 2003-07-17  Bruno Haible  <bruno@clisp.org>
63335
63336         * lib/Makefile.am: Remove file.
63337         * lib/Makefile.in: Remove file.
63338
63339 2003-07-17  Bruno Haible  <bruno@clisp.org>
63340
63341         * configure.in: Remove file.
63342         * Makefile.in: Remove file.
63343
63344 2003-07-17  Bruno Haible  <bruno@clisp.org>
63345
63346         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63347
63348 2003-07-16  Karl Berry  <karl@gnu.org>
63349
63350         * config/srclist-update: was running fixlicense twice, which caused
63351                 texinfo.tex to be nullified for some reason.  Simplify,
63352                 $gplsrc is no longer needed as far as I can see?
63353
63354 2003-07-16  Jim Meyering  <jim@meyering.net>
63355
63356         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63357
63358 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63359
63360         * config/srclist.txt: Get the following files from gettext-runtime/intl
63361         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63362         ref-del.sin.  From Bruno Haible.
63363         * config/srclist-update (fixfile): Change grep pattern again, since the
63364         previous fix didn't work (there was another trailing $).  Use
63365         '[$]' to escape the $s.
63366
63367 2003-07-15  Karl Berry  <karl@gnu.org>
63368
63369         * lib/vasnprintf.c: update from gettext.
63370
63371 2003-07-15  Karl Berry  <karl@gnu.org>
63372
63373         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63374         gets expanded when surrounded by '$'.
63375
63376 2003-07-15  Jim Meyering  <jim@meyering.net>
63377
63378         * modules/save-cwd: Don't depend on error.  From Derek Price.
63379
63380 2003-07-15  Jim Meyering  <jim@meyering.net>
63381
63382         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63383
63384 2003-07-14  Simon Josefsson  <jas@extundo.com>
63385
63386         * modules/mempcpy: New file.
63387         * MODULES.html.sh (func_all_modules): Add mempcpy.
63388
63389 2003-07-14  Simon Josefsson  <jas@extundo.com>
63390
63391         * m4/mempcpy.m4: New file.
63392
63393 2003-07-14  Simon Josefsson  <jas@extundo.com>
63394
63395         * lib/mempcpy.h: New file.
63396         * lib/mempcpy.c: New file.
63397
63398 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63399
63400         * modules/getdate, modules/posixtm: Depend on mktime.
63401
63402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63403
63404         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63405         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63406         unicodeio.c, unicodeio.h, unlocked-io.h:
63407         Switch from LGPL to GPL.
63408
63409 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63410
63411         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63412         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63413         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63414         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63415         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63416         updated automatically by ../config/srclist-update.  This changes
63417         their license from LPGL to GPL.
63418
63419 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63420
63421         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63422         assumed to refer to the root of the most recent stable gettext version.
63423         * config/srclistvars.sh: Add defaults for eggert.
63424         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63425         Match "This program" as well as "The program".  This is needed
63426         for gettext.
63427
63428 2003-07-14  Jim Meyering  <jim@meyering.net>
63429
63430         Don't emit diagnostics.  Let callers do that.
63431         * lib/save-cwd.c: Don't include "error.h".
63432         (save_cwd): Don't call error.  Ensure that errno is valid
63433         when returning nonzero.
63434
63435         * lib/save-cwd.h (restore_cwd): Update prototype.
63436         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63437         Simplify.  Don't call error upon failure.  Let callers do that.
63438         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63439         when auditing is enabled.  But don't bother updating the #if.
63440
63441 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63442
63443         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63444         it breaks C++ compilation.
63445         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63446
63447 2003-07-10  Simon Josefsson  <jas@extundo.com>
63448
63449         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63450
63451 2003-07-10  Jim Meyering  <jim@meyering.net>
63452
63453         * m4/clock_time.m4: Remove trailing blank.
63454         * m4/intmax_t.m4: Likewise.
63455
63456 2003-07-10  Jim Meyering  <jim@meyering.net>
63457
63458         * lib/vasnprintf.c: Remove trailing blanks.
63459         Make cpp indentation consistent.
63460
63461 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63462
63463         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63464         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63465         Switch from LGPL to GPL.
63466
63467 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63468
63469         * config/srclist.txt: Sort sublists.  Add
63470         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63471         that differ from gnulib for one reason or another; we'd like this list
63472         to be smaller but for now let's document what we have.
63473
63474 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63475
63476         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63477         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63478         and sweeter "eval x=$x".
63479         * config/srclist.txt: Get lib/argp* from glibc.
63480
63481 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63482
63483         * lib/mktime.c: Fix some boundary cases and remove need for floating
63484         point.
63485
63486         Issue a compile-time diagnostic if time_t is floating point, or if
63487         two's complement arithmetic is not in effect, or if arithmetic
63488         right shift does not propagate the sign.  These assumptions were
63489         all in the original code but they weren't checked.
63490
63491         (TIME_T_MIDPOINT, verify): New macros.
63492         (__isleap): Remove; it has integer overflow problems.
63493         (leapyear): New function, without those problems.
63494         (ydhms_tm_diff): Remove; splitting into two parts.
63495         (ydhms_diff): New function, containing the arithmetic part of
63496         the old ydhms_tm_diff function.  Issue a compile-time
63497         diagnostic if we are not using C99 integer division.
63498         Avoid casts when possible.
63499         (guess_time_tm): New function, containing the checking part of
63500         the old ydhms_tm_diff function.  Return the new value, rather than
63501         the difference between it and the old.  Accept a new argument T
63502         so that *T specifies the old value.  Check for overflow in the result.
63503
63504         (__mktime_internal): Use a time_t offset, not a long int offset.
63505         This undoes the 2003-06-04 change, which is no longer needed now
63506         that we have better overflow checking.
63507         (localtime_offset): Likewise.
63508
63509         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63510         and long are 64-bit but int is only 32-bit.
63511         (ydhms_diff): Use long int to store year1 and yday1.
63512         Issue a compile-time diagnostic if long int is not wide enough.
63513
63514         (__mktime_internal): Use long int to store adjusted year and yday.
63515         Use plain C rather than preprocessor commands, if that doesn't
63516         affect efficiency.
63517         Check for overflow (and try to repair) after each probe
63518         rather than checking only at the very end.  This avoids some bugs
63519         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63520         does not equal GMT offset at maximum time).
63521         Use integer to check for overflow rather than floating point; this
63522         is more portable to non-IEEE hosts, and is a tad faster.
63523         When we detect that we are oscillating between two values,
63524         don't check whether tm_isdst has the requested value, since
63525         we already know the answer.  When tm_isdst has the wrong value,
63526         use a different heuristic to find the right one, based on the
63527         extreme values actually observed in practice in tz2003a,
63528         rather than the (overly optimistic) "previous 3 calendar quarters".
63529
63530         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63531         "T const" to accommodate glibc style.
63532         (check_result): Use less-confusing report format.  "long" -> "long int.
63533         (main): Likewise.
63534         Don't loop if the iteration overflows time_t.
63535         Allow a negative step in the iteration.
63536
63537 2003-07-06  Karl Berry  <karl@gnu.org>
63538
63539         * config/depcomp: update from automake.
63540         * config/config.sub: update from prep.
63541
63542 2003-07-03  Karl Berry  <karl@gnu.org>
63543
63544         * config/config.guess: update from prep.
63545
63546 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63547
63548         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63549         xreadlink.c now includes it unconditionally.
63550
63551 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63552
63553         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63554         having it depend on HAVE_SYS_TYPES_H.
63555
63556 2003-07-01  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63559         <sys/types.h> should be sufficient.
63560         Reported by Paul Eggert.
63561
63562 2003-06-26  Karl Berry  <karl@gnu.org>
63563
63564         * config/depcomp: update from automake.
63565
63566 2003-06-26  Bruno Haible  <bruno@clisp.org>
63567
63568         * modules/human: Depend on module stdbool.
63569
63570 2003-06-25  Bruno Haible  <bruno@clisp.org>
63571
63572         * modules/readlink: New file.
63573         * modules/xreadlink: Depend on it.
63574         * MODULES.html.sh (func_all_modules): Add readlink.
63575
63576 2003-06-25  Bruno Haible  <bruno@clisp.org>
63577
63578         * m4/readlink.m4: New file.
63579
63580 2003-06-25  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/readlink.c: New file.
63583
63584 2003-06-22  Karl Berry  <karl@gnu.org>
63585
63586         * config/srclist.txt: update mkinstalldirs from automake.
63587         * config/mkinstalldirs: update.
63588
63589 2003-06-22  Bruno Haible  <bruno@clisp.org>
63590
63591         Portability to mingw32.
63592         * m4/ssize_t.m4: New file, from GNU gettext.
63593         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63594         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63595
63596 2003-06-22  Bruno Haible  <bruno@clisp.org>
63597
63598         * modules/safe-read: Add m4/ssize_t.m4.
63599         * modules/xreadlink: Add m4/ssize_t.m4.
63600
63601 2003-06-20  Bruno Haible  <bruno@clisp.org>
63602
63603         Assume C89, so PARAMS isn't needed.
63604         * lib/unicodeio.h (PARAMS): Remove.
63605         * lib/unicodeio.c: Don't use PARAMS.
63606
63607 2003-06-18  Karl Berry  <karl@gnu.org>
63608
63609         * config/config.{guess,sub}: update from prep.
63610
63611 2003-06-18  Jim Meyering  <jim@meyering.net>
63612
63613         Merge changes from coreutils.
63614         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63615         Remove explicit declarations of xmalloc and realloc.
63616         Include xalloc.h.
63617         (read_utmp): Remove anachronistic cast of xmalloc.
63618
63619 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63620
63621         Assume C89, so PARAMS isn't needed.
63622         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63623         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63624         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63625         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63626         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63627         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63628         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63629         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63630         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63631         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63632         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63633         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63634         no longer needed. Anyway, config.h should always be included before any
63635         other file.
63636
63637 2003-06-11  Simon Josefsson  <jas@extundo.com>
63638
63639         * modules/sysexits: New file.
63640         * MODULES.html.sh (func_all_modules): Add sysexits.
63641
63642 2003-06-11  Simon Josefsson  <jas@extundo.com>
63643
63644         * lib/sysexit_.h: New file.
63645
63646 2003-06-11  Derek Price  <derek@ximbiot.com>
63647
63648         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63649         necessary.
63650
63651 2003-06-11  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/sysexits.m4: New file.
63654
63655 2003-06-10  Simon Josefsson  <jas@extundo.com>
63656
63657         * lib/argp.h: New file, from glibc.
63658         * lib/argp-ba.c: New file, from glibc.
63659         * lib/argp-eexst.c: New file, from glibc.
63660         * lib/argp-fmtstream.c: New file, from glibc.
63661         * lib/argp-fmtstream.h: New file, from glibc.
63662         * lib/argp-fs-xinl.c: New file, from glibc.
63663         * lib/argp-help.c: New file, from glibc.
63664         * lib/argp-namefrob.h: New file, from glibc.
63665         * lib/argp-parse.c: New file, from glibc.
63666         * lib/argp-pv.c: New file, from glibc.
63667         * lib/argp-pvh.c: New file, from glibc.
63668         * lib/argp-xinl.c: New file, from glibc.
63669
63670 2003-06-10  Simon Josefsson  <jas@extundo.com>
63671
63672         * modules/strchrnul: New file.
63673
63674 2003-06-10  Simon Josefsson  <jas@extundo.com>
63675
63676         * modules/argp: New file.
63677
63678 2003-06-10  Simon Josefsson  <jas@extundo.com>
63679
63680         * m4/strchrnul.m4: New file.
63681
63682 2003-06-10  Simon Josefsson  <jas@extundo.com>
63683
63684         * lib/strchrnul.h: New file.
63685         * lib/strchrnul.c: New file.
63686
63687 2003-06-10  Bruno Haible  <bruno@clisp.org>
63688
63689         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63690
63691 2003-06-07  Karl Berry  <karl@gnu.org>
63692
63693         * config/config.{guess,sub}: update from prep.
63694
63695 2003-06-07  Jim Meyering  <jim@meyering.net>
63696
63697         * modules/strtod: Use $(...) notation, not @...@ for
63698         AC_REPLACE'd variables.
63699         * modules/localcharset: Likewise.
63700
63701 2003-06-07  Jim Meyering  <jim@meyering.net>
63702
63703         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63704         in place of my name in the copyright comment.
63705         Remove definition and uses of __P.
63706
63707         From coreutils.
63708         * lib/stat.c: Don't declare xmalloc explicitly.
63709         Instead, include "xalloc.h".
63710         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63711         xrealloc, and xcalloc return values.
63712         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63713         Improve comment.
63714         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63715
63716 2003-06-07  Bruno Haible  <bruno@clisp.org>
63717
63718         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63719         avoid AC_CONFIG_LINKS.
63720         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63721         fnmatch.h, to avoid AC_CONFIG_LINKS.
63722         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63723
63724 2003-06-07  Bruno Haible  <bruno@clisp.org>
63725
63726         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63727         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63728         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63729         directory.
63730         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63731         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63732         directory.
63733
63734 2003-06-06  Jim Meyering  <jim@meyering.net>
63735
63736         Merge from coreutils.
63737         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63738         Consolidate declarations and initializations of *_base* locals.
63739
63740         Merge from coreutils.
63741         This avoids a core dump on systems without GNU putenv,
63742         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63743         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63744         (unsetenv): New static function, from GNU libc.
63745         (rpl_putenv): Use it.
63746
63747         * lib/modechange.c: Remove trailing blanks.
63748
63749         Merge from coreutils.
63750         * lib/fsusage.c: Remove declaration of statfs.
63751         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63752
63753         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63754
63755 2003-06-06  Jim Meyering  <jim@meyering.net>
63756
63757         * lib/stdbool_.h: Renamed from stdbool.h.in.
63758
63759 2003-06-06  Jim Meyering  <jim@meyering.net>
63760             Bruno Haible  <bruno@clisp.org>
63761
63762         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63763         Adjust Makefile.am snippet not to redirect directly to target.
63764         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63765
63766 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63767
63768         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63769         mismatch, look in future quarters as well as past.  This fixes a
63770         bug when processing fall-backwards gaps immediately after a long
63771         period of daylight-saving time.
63772
63773         * lib/mktime.c: Assume freestanding C89 or better.
63774         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63775         (__P): Remove; not used.
63776         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63777         (mktime, not_equal_tm, print_tm, check_result,
63778         main): Use prototypes.  Use const * where appropriate.
63779         (main): Fix typo in testing code that uncovered by above changes.
63780         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63781
63782 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63783
63784         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63785         locale.h, localeconv.  This merges changes from coreutils.
63786
63787         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63788         It can be removed after the next Autoconf is released.
63789         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63790         needed.
63791
63792 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63793
63794         * lib/mktime.c: Fix Debian bug 177940
63795         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63796         (localtime_offset): Now long int, not time_t, because we want it
63797         to be guaranteed to be signed.  All uses changed.
63798         (__mktime_internal): If overflow would occur when adding offset,
63799         don't add it.
63800
63801         Merge 'human' changes from coreutils.  Rewrite to support
63802         locale-specific notations like thousands separators.
63803         * lib/human.c: Simplify authorship notice.
63804         Include human.h immediately after config.h.
63805         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63806         <limits.h>: Do not include, since human.h does.
63807         (SIZE_MAX, UINTMAX_MAX): New macros.
63808         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63809         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63810         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63811         (power_letter): Renamed from suffixes.
63812         (generate_suffix_backwards): Remove.
63813         (adjust_value): Now takes int style (because of human.h changes)
63814         and long double value (for greater precision on some platforms).
63815         (group_number): New function.
63816         (human_readable): Use it.  Use integer options, not enum.
63817         Put the options before the sizes in the arg list.
63818         Support all the new options.
63819         The old human_readable function has been removed;
63820         use inttostr.h instead.
63821         (human_readable, default_block_size, humblock):
63822         Use uintmax_t, not int, for block sizes.
63823         (human_readable_inexact, block_size_types): Remove.
63824         (block_size_opts): New constant.
63825         (human_options): Renamed from human_block_size, with new signature
63826         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63827         * lib/human.h: Add copyright and authorship notice.
63828         Include <limits.h> and <stdbool.h> unconditionally.
63829         (PARAMS): Remove.  All uses removed.
63830         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63831         (enum human_inexact_style): Remove tag; now a nameless enum.
63832         (human_floor, human_ceiling, human_round_to_even): Now have
63833         values 2, 0, 1 rather than -1, 1, 0.
63834         (human_group_digits, human_suppress_point_zero, human_autoscale,
63835         human_base_1024, human_SI, human_B): New constants.
63836         (human_readable_inexact, human_block_size): Remove.
63837         (human_readable): Size args are now uintmax_t, not int.
63838         (human_options): New decl.
63839
63840         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63841         unnecessary now that we assume C89 or better.  This change
63842         imported from coreutils.
63843
63844         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63845         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63846         in the 2003-05-30 sync from glibc.
63847
63848         .h files should stand alone, but we shouldn't include <sys/types.h>
63849         if we can get away with just <stddef.h>.
63850
63851         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63852         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63853         rather than <sys/types.h>, as we merely need size_t.
63854         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63855         to get size_t.
63856         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63857         Include <stdio.h>, to get FILE.
63858         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63859         memcasecmp.h has included <stddef.h> and all we need is size_t.
63860         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63861         our interface, instead of including <sys/types.h>
63862
63863 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63864
63865         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63866         now, as glibc mktime is buggy on non-glibc systems.
63867
63868 2003-06-03  Karl Berry  <karl@gnu.org>
63869
63870         * config/config.sub: update from prep.
63871
63872 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63873
63874         [from coreutils]
63875         Fix some minor time-related bugs with POSIX time arguments.
63876         Some valid time stamps were being rejected (notably -1, and
63877         time stamps before 1900 on 64-bit hosts).  And some invalid
63878         time stamps were being accepted, e.g. September 31.
63879
63880         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63881         that we can return (time_t) -1 successfully.
63882         * lib/posixtm.c: Likewise.
63883         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63884         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63885         (t): Remove static var.
63886         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63887         of static var.  All uses changed.
63888         (year): Do not reject years before 1900; they can occur with
63889         64-bit time_t.
63890         (posix_time_parse): Do not check for out-of-range components;
63891         that is now the caller's responsibility, since our checks were
63892         only approximations.
63893         (posixtime): Use mktime to check for out-of-range components,
63894         since it knows them exactly.
63895         If mktime returns (time_t) -1, check whether an error actually occurred
63896         by invoking localtime on -1.
63897         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63898         posixtime failures better.
63899         Improve the test data (in comments only).
63900
63901 2003-06-02  Karl Berry  <karl@gnu.org>
63902
63903         * config/mkinstalldirs (version): new variable.
63904         (--version): new option.
63905         (usage): improve message.
63906
63907 2003-05-30  Karl Berry  <karl@gnu.org>
63908
63909         * lib/mktime.c: update from libc.
63910
63911 2003-05-30  Bruno Haible  <bruno@clisp.org>
63912
63913         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63914         * config/config.rpath: Upgrade to gettext-0.12.1.
63915
63916 2003-05-30  Bruno Haible  <bruno@clisp.org>
63917
63918         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63919         * m4/nls.m4: New file, from gettext-0.12.1.
63920         * m4/po.m4: New file, from gettext-0.12.1.
63921         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63922
63923 2003-05-30  Bruno Haible  <bruno@clisp.org>
63924
63925         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63926         * lib/localcharset.h: Likewise.
63927         * lib/localcharset.c: Likewise.
63928
63929 2003-05-29  Karl Berry  <karl@gnu.org>
63930
63931         * config/config.rpath: update from gettext.
63932
63933 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63934
63935         Assume the headers required for C89 freestanding compilers.
63936         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63937         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63938         * m4/human.m4 (gl_HUMAN): Likewise.
63939         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63940         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63941         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63942         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63943         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63944         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63945
63946 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63947
63948         Assume the headers required for C89 freestanding compilers.
63949         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63950         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63951         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63952         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63953         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63954         define, since <limits.h> is guaranteed to do that.
63955         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63956         * lib/exclude.c: Include <stdbool.h> unconditionally.
63957         * lib/tempname.c: Include <stddef.h> unconditionally.
63958         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63959         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63960         <stddef.h> does that.
63961         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63962         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63963         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63964         needed.
63965         * lib/xstrtol.c: Likewise.
63966         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63967         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63968
63969         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63970         warnings on some platforms.
63971
63972         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63973         arbitrarily.
63974
63975 2003-05-26  Jim Meyering  <jim@meyering.net>
63976
63977         Merge in a change from coreutils:
63978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63979         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63980         that condition, rather than `-1' which is slightly misleading.
63981         Change the name of the cache variable to have the gl_ prefix.
63982         Prompted by a patch from Richard Dawe for DJGPP.
63983
63984 2003-05-24  Karl Berry  <karl@gnu.org>
63985
63986         * config/config.guess: update from prep.
63987
63988 2003-05-22  Karl Berry  <karl@gnu.org>
63989
63990         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63991
63992 2003-05-20  Karl Berry  <karl@gnu.org>
63993
63994         * config/config.guess: update from prep.
63995
63996 2003-05-18  Karl Berry  <karl@gnu.org>
63997
63998         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63999         might actually be set by the user.
64000
64001         * config/depcomp, install-sh, mdate-sh: update from automake.
64002
64003 2003-05-17  Bruno Haible  <bruno@clisp.org>
64004
64005         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64006         invalid expansion for AC_EGREP_CPP.
64007         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64008         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64009         Suggested by Akim Demaille <akim@epita.fr> in
64010         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64011
64012 2003-05-12  Jim Meyering  <jim@meyering.net>
64013
64014         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64015         the space-padded-by-default conversion specifiers, %e, %k, %l.
64016
64017 2003-05-12  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64020         the string is longer than 4 KB.
64021
64022 2003-05-11  Karl Berry  <karl@gnu.org>
64023
64024         * config/config.{guess,sub}: update from prep.
64025
64026 2003-05-09  Bruno Haible  <bruno@clisp.org>
64027
64028         * modules/error: Add m4/strerror_r.m4 to file list.
64029
64030 2003-05-03  Bruno Haible  <bruno@clisp.org>
64031
64032         Upgrade to Unicode-4.0.
64033         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64034         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64035         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64036         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64037         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64038         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64039         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64040         Change width of U+E0100..U+E01EF from 1 to 0.
64041
64042 2003-04-25  Jim Meyering  <jim@meyering.net>
64043
64044         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64045         of type size_t, not int.
64046
64047 2003-04-25  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/copy-file.c: Include <stddef.h>, for size_t.
64050
64051 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64052
64053         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64054         code which expansion is under static control.  Patch imported from
64055         Akim Demaille's patch to Bison; see
64056         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64057
64058 2003-04-14  Bruno Haible  <bruno@clisp.org>
64059
64060         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64061
64062 2003-04-11  Jim Meyering  <jim@meyering.net>
64063
64064         Merge changes from Coreutils.
64065
64066         2003-03-22  Jim Meyering  <jim@meyering.net>
64067
64068         * lib/strftime.c (widen): Cast alloca return value to proper type.
64069
64070         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64071
64072         From GNU libc.
64073         * lib/strftime.c (my_strftime): Handle very large width
64074         specifications for numeric values correctly.  Improve checks for
64075         overflow.
64076
64077         2003-01-19  Jim Meyering  <jim@meyering.net>
64078
64079         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64080         definitions.
64081         (nl_get_alt_digit) [! defined my_strftime]: Define.
64082         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64083         _nl_get_alt_digit and _nl_get_walt_digit.
64084
64085         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64086         libc. These changes have no effect outside of _LIBC.
64087
64088 2003-04-10  Bruno Haible  <bruno@clisp.org>
64089
64090         * modules/findprog: New file.
64091         * MODULES.html.sh (func_all_modules): Add it.
64092
64093 2003-04-10  Bruno Haible  <bruno@clisp.org>
64094
64095         * m4/findprog.m4: New file.
64096         * m4/eaccess.m4: New file.
64097
64098 2003-04-10  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/findprog.h: New file, from GNU gettext.
64101         * lib/findprog.c: New file, from GNU gettext.
64102
64103 2003-04-05  Jim Meyering  <jim@meyering.net>
64104
64105         Merge changes from Coreutils.
64106
64107         * lib/exclude.h (PARAMS): Remove definition and uses.
64108         * lib/exclude.c: Remove uses of `PARAMS'.
64109
64110         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64111         Add test-cases for DOS filenames. Declare program_name.
64112         (main): Set up program_name.  Patch by Rich Dawe.
64113
64114         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64115         error from mntctl.
64116         Use mntctl's return value to drive the entry-processing loop, since
64117         we can't rely on the value of the vmt_length member in the last
64118         entry.  On some systems doing so could result in exhausting
64119         virtual memory.  Based in part on a patch from Mike Jetzer.
64120
64121 2003-04-04  Bruno Haible  <bruno@clisp.org>
64122
64123         * modules/linebreak: New file.
64124         * MODULES.html.sh (func_all_modules): Add it.
64125
64126 2003-04-04  Bruno Haible  <bruno@clisp.org>
64127
64128         * m4/linebreak.m4: New file.
64129
64130 2003-04-04  Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/linebreak.h: New file, from GNU gettext.
64133         * lib/linebreak.c: New file, from GNU gettext with slight
64134         modifications.
64135         * lib/lbrkprop.h: New file, from GNU gettext.
64136
64137 2003-04-03  Bruno Haible  <bruno@clisp.org>
64138
64139         * modules/utf8-ucs4: New file.
64140         * modules/utf16-ucs4: New file.
64141         * modules/ucs4-utf8: New file.
64142         * modules/ucs4-utf16: New file.
64143         * MODULES.html.sh (func_all_modules): Add them.
64144
64145 2003-04-03  Bruno Haible  <bruno@clisp.org>
64146
64147         * m4/utf-ucs4.m4: New file.
64148         * m4/ucs4-utf.m4: New file.
64149
64150 2003-04-03  Bruno Haible  <bruno@clisp.org>
64151
64152         * lib/utf8-ucs4.h: New file, from GNU gettext.
64153         * lib/utf16-ucs4.h: New file, from GNU gettext.
64154         * lib/ucs4-utf8.h: New file, from GNU gettext.
64155         * lib/ucs4-utf16.h: New file, from GNU gettext.
64156
64157 2003-04-02  Bruno Haible  <bruno@clisp.org>
64158
64159         * modules/binary-io: New file.
64160         * MODULES.html.sh (func_all_modules): Add it.
64161
64162 2003-04-02  Bruno Haible  <bruno@clisp.org>
64163
64164         * lib/binary-io.h: New file, from GNU gettext.
64165
64166 2003-04-01  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/pathname: New file.
64169         * MODULES.html.sh (func_all_modules): Add it.
64170
64171 2003-04-01  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/pathname.h: New file, from GNU gettext.
64174         * lib/concatpath.c: New file, from GNU gettext.
64175
64176 2003-03-30  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64179
64180 2003-03-30  Bruno Haible  <bruno@clisp.org>
64181
64182         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64183         function chown() doesn't exist.
64184
64185 2003-03-28  Bruno Haible  <bruno@clisp.org>
64186
64187         * modules/copy-file: New file.
64188         * MODULES.html.sh (func_all_modules): Add it.
64189
64190 2003-03-28  Bruno Haible  <bruno@clisp.org>
64191
64192         * m4/copy-file.m4: New file.
64193
64194 2003-03-28  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/copy-file.h: New file, from GNU gettext.
64197         * lib/copy-file.c: New file, from GNU gettext.
64198
64199 2003-03-18  Jim Meyering  <jim@meyering.net>
64200
64201         * lib/quote.c (quote_n): Fix typo in comment.
64202
64203 2003-03-18  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64206         checking.
64207         * m4/onceonly_2_57.m4: Likewise.
64208
64209 2003-03-17  Bruno Haible  <bruno@clisp.org>
64210
64211         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64212         (m4_quote): Remove macro.
64213         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64214
64215 2003-03-14  Jim Meyering  <jim@meyering.net>
64216
64217         Merge changes from Coreutils.
64218         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64219         to be const, in order to avoid warnings.
64220         (obstack_room): Likewise.
64221         (obstack_empty_p): Likewise.
64222
64223 2003-03-14  Bruno Haible  <bruno@clisp.org>
64224
64225         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64226         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64227
64228 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64229
64230         Merge changes from Bison.
64231         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64232         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64233         when compiling Bison 1.875's `bitset bset = obstack_alloc
64234         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64235         * lib/hash.c: Include <stdbool.h> unconditionally.
64236
64237 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64238
64239         * m4/onceonly.m4 (m4_quote): New macro.
64240         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64241         Quote AC_FOREACH variable-expansions properly.
64242
64243 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64244
64245         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64246
64247 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64248
64249         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64250         Reported by Bruce Becker; see:
64251         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64252
64253 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64254             Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64257         Reported by John Hughes, see
64258         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64259
64260 2003-02-20  Bruno Haible  <bruno@clisp.org>
64261
64262         * MODULES.html.sh (func_all_modules): Add poll.
64263
64264 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64265
64266         * modules/poll: New file.
64267
64268 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64269
64270         * lib/poll_.h: New file.
64271         * lib/poll.c: New file.
64272
64273 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64274
64275         * m4/poll.m4: New file.
64276
64277 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64278
64279         * modules/mathl: New file.
64280
64281 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64282
64283         * lib/mathl.h: New file.
64284         * lib/acosl.c: New file.
64285         * lib/asinl.c: New file.
64286         * lib/atanl.c: New file.
64287         * lib/ceill.c: New file.
64288         * lib/cosl.c: New file.
64289         * lib/expl.c: New file.
64290         * lib/floorl.c: New file.
64291         * lib/frexpl.c: New file.
64292         * lib/ldexpl.c: New file.
64293         * lib/logl.c: New file.
64294         * lib/sincosl.c: New file.
64295         * lib/sinl.c: New file.
64296         * lib/sqrtl.c: New file.
64297         * lib/tanl.c: New file.
64298         * lib/trigl.c: New file.
64299         * lib/trigl.h: New file.
64300
64301 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64302
64303         * m4/mathl.m4: New file.
64304
64305 2003-02-18  Bruno Haible  <bruno@clisp.org>
64306
64307         * MODULES.html.sh (func_all_modules): Add mathl.
64308
64309 2003-02-17  Bruno Haible  <bruno@clisp.org>
64310
64311         * modules/mkdtemp: New module.
64312         * MODULES.html.sh (func_all_modules): Add it.
64313
64314 2003-02-17  Bruno Haible  <bruno@clisp.org>
64315
64316         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64317
64318 2003-02-17  Bruno Haible  <bruno@clisp.org>
64319
64320         * lib/mkdtemp.h: New file, from GNU gettext.
64321         * lib/mkdtemp.c: New file, from GNU gettext.
64322
64323 2003-02-02  Jim Meyering  <jim@meyering.net>
64324
64325         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64326         e.g. glibc-2.2.93.
64327
64328 2003-01-31  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64331         'rpl_rename'.
64332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64333         'rpl_strnlen'.
64334         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64335         'rpl_strtod'.
64336         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64337         'rpl_utime'.
64338
64339 2003-01-31  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/rename.c: #undef rename before defining rpl_rename.
64342         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64343
64344 2003-01-30  Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/vasnprintf, modules/vasprintf: New modules.
64347         * MODULES.html.sh (func_all_modules): Add them.
64348
64349 2003-01-30  Bruno Haible  <bruno@clisp.org>
64350
64351         * m4/signed.m4: New file, from GNU gettext.
64352         * m4/longdouble.m4: New file, from GNU gettext.
64353         * m4/wchar_t.m4: New file, from GNU gettext.
64354         * m4/wint_t.m4: New file, from GNU gettext.
64355         * m4/vasnprintf.m4: New file.
64356         * m4/vasprintf.m4: New file.
64357
64358 2003-01-30  Bruno Haible  <bruno@clisp.org>
64359
64360         * lib/printf-args.h: New file, from GNU gettext.
64361         * lib/printf-args.c: New file, from GNU gettext.
64362         * lib/printf-parse.h: New file, from GNU gettext.
64363         * lib/printf-parse.c: New file, from GNU gettext.
64364         * lib/vasnprintf.h: New file, from GNU gettext.
64365         * lib/vasnprintf.c: New file, from GNU gettext.
64366         * lib/asnprintf.c: New file, from GNU gettext.
64367         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64368         * lib/vasprintf.c: New file, from GNU gettext.
64369         * lib/asprintf.c: New file, from GNU gettext.
64370
64371 2003-01-29  Bruno Haible  <bruno@clisp.org>
64372
64373         * modules/stpncpy: New module.
64374         * MODULES.html.sh (func_all_modules): Add it.
64375
64376 2003-01-29  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/stpncpy.m4: New file.
64379
64380 2003-01-29  Bruno Haible  <bruno@clisp.org>
64381
64382         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64383         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64384
64385 2003-01-28  Bruno Haible  <bruno@clisp.org>
64386
64387         * modules/c-ctype: New module.
64388         * MODULES.html.sh (func_all_modules): Add it.
64389
64390 2003-01-28  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64393         Paul Eggert.
64394         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64395         Paul Eggert.
64396
64397 2003-01-27  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/xsetenv: New module.
64400         * MODULES.html.sh (func_all_modules): Add it.
64401
64402 2003-01-27  Bruno Haible  <bruno@clisp.org>
64403
64404         * lib/xsetenv.h: New file, from GNU gettext.
64405         * lib/xsetenv.c: New file, from GNU gettext.
64406
64407 2003-01-23  Jim Meyering  <jim@meyering.net>
64408
64409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64410         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64411
64412 2003-01-23  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/minmax: New module.
64415         * MODULES.html.sh (func_all_modules): Add it.
64416
64417 2003-01-23  Bruno Haible  <bruno@clisp.org>
64418
64419         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64420         Eggert.
64421
64422 2003-01-22  Bruno Haible  <bruno@clisp.org>
64423
64424         * modules/exit: New module.
64425         * MODULES.html.sh (func_all_modules): Add it.
64426
64427 2003-01-22  Bruno Haible  <bruno@clisp.org>
64428
64429         * lib/exit.h: New file, from GNU gettext.
64430
64431 2003-01-19  Bruno Haible  <bruno@clisp.org>
64432
64433         * gnulib-tool: Recognize option --extract-maintainer.
64434         (func_get_maintainer): New function.
64435         * modules/*: Add Maintainer entry.
64436
64437 2003-01-16  Jim Meyering  <jim@meyering.net>
64438
64439         * m4/regex.m4: The `regex' struct is both input and output.
64440         Initialize it before each use.  Patch by Tim Waugh.
64441
64442 2003-01-16  Bruno Haible  <bruno@clisp.org>
64443
64444         * MODULES.html.sh: Add a table of contents. Add the module name as
64445         leftmost column. Add hyperlinks.
64446
64447 2003-01-15  Bruno Haible  <bruno@clisp.org>
64448
64449         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64450
64451 2003-01-15  Bruno Haible  <bruno@clisp.org>
64452
64453         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64454         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64455         suffix.
64456
64457 2003-01-15  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64460
64461 2003-01-15  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64464         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64465
64466 2003-01-14  Jim Meyering  <jim@meyering.net>
64467
64468         * lib/same.c (same_name): Tweak a comment.
64469
64470 2003-01-14  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64473         when a string comparison is sufficient.
64474
64475 2003-01-14  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64478         'unsigned int'.
64479
64480 2003-01-14  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/hash-pjw.c: Add comment about low quality of this function.
64483
64484 2003-01-13  Bruno Haible  <bruno@clisp.org>
64485
64486         * modules/stpcpy: Distribute lib/stpcpy.h.
64487         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64488
64489 2003-01-13  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/*: Add a description.
64492         * modules/strpbrk: Fix Makefile.am snippet.
64493         * modules/strtoimax: Fix dependencies.
64494         * modules/strtoumax: Likewise.
64495
64496 2003-01-13  Bruno Haible  <bruno@clisp.org>
64497
64498         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64499         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64500         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64501
64502 2003-01-13  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool (func_create_testdir): Store config/* files in the main
64505         directory.
64506         * config.rpath: Move to ...
64507         * config/config.rpath: ... here.
64508         * modules/gettext: Contains config/config.rpath, not config.rpath.
64509         * modules/iconv: Likewise.
64510
64511 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64512
64513         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64514         to avoid collisions with libcurses and libreadline.
64515
64516         * m4/getstr.m4: Remove.
64517         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64518
64519 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64520
64521         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64522         to avoid collisions with libcurses and libreadline.
64523
64524         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64525         * lib/getstr.h, getstr.c: Remove.
64526         * lib/getline.c: Include "getline.h", to check interface.
64527         Move body of old getstr.c here: this defines MIN_CHUNK and
64528         declares getdelim2, which is renamed from getstr.
64529         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64530
64531         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64532         All uses changed.
64533         * lib/linebuffer.h: Likewise.
64534         (readline): Remove backward-compatibility macro.
64535
64536 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64537
64538         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64539         to avoid collisions with libcurses and libreadline.
64540         * getstr: Remove.
64541         * MODULES.html.sh: Remove getstr.
64542         * modules/getline: Depend on unlocked-io, not getstr.
64543
64544 2003-01-12  Jim Meyering  <jim@meyering.net>
64545
64546         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64547
64548 2003-01-10  Bruno Haible  <bruno@clisp.org>
64549
64550         * modules/alloca: Change Makefile.am requirements. Simplify Include
64551         requirements. Add lib/alloca_.h to file list.
64552
64553 2003-01-10  Bruno Haible  <bruno@clisp.org>
64554
64555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64556
64557 2003-01-10  Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/alloca_.h: New file.
64560         * lib/getdate.y: Unconditionally include alloca.h.
64561         * lib/makepath.c: Likewise.
64562         * lib/setenv.c: Likewise.
64563         * lib/userspec.c: Likewise.
64564
64565 2003-01-09  Karl Berry  <karl@gnu.org>
64566
64567         * MODULES.html.sh: include `dirname $0` in PATH, to find
64568         gnulib-tool.
64569
64570 2003-01-09  Bruno Haible  <bruno@clisp.org>
64571
64572         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64573         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64574
64575 2003-01-09  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64578
64579 2003-01-09  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/stdbool.h.in: New file.
64582
64583 2003-01-09  Bruno Haible  <bruno@clisp.org>
64584
64585         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64586         * MODULES.html.sh: Likewise.
64587
64588 2003-01-08  Jim Meyering  <jim@meyering.net>
64589
64590         * lib/full-write.c: Undefine and define-away `const' after inclusion
64591         of errno.h, not before.  Suggestion from Bruno Haible.
64592
64593 2003-01-08  Bruno Haible  <bruno@clisp.org>
64594
64595         * modules/full-read: Depend on full-write.
64596
64597 2003-01-08  Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/safe-read.c: Include specification header first, to ensure its
64600         selfcontainedness.
64601         * lib/full-write.c: Likewise.
64602
64603 2003-01-07  Jim Meyering  <jim@meyering.net>
64604
64605         * lib/full-write.c: Rework so that it may serve to define full_read,
64606         too.
64607         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64608
64609 2003-01-07  Bruno Haible  <bruno@clisp.org>
64610
64611         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64612         <inttypes.h>.
64613         * lib/xstrtol.h: Likewise.
64614         * lib/xstrtoimax.c: Likewise.
64615         * lib/xstrtoumax.c: Likewise.
64616         * lib/human.h: Likewise.
64617
64618         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64619         on systems that have <inttypes.h> but not <stdint.h>.
64620
64621 2003-01-07  Bruno Haible  <bruno@clisp.org>
64622
64623         * MODULES.html.sh: Add copyright notice.
64624         (missed_files): Omit CVS directory entries.
64625         (func_module): Make it work with sed-3.02.
64626         * MODULES.txt: Remove file.
64627
64628 2003-01-06  Jim Meyering  <jim@meyering.net>
64629
64630         * lib/version-etc.c: Update year in translatable copyright string.
64631
64632 2003-01-03  Karl Berry  <karl@gnu.org>
64633
64634         * config/config.{guess,sub}: update from prep.
64635
64636 2003-01-02  Karl Berry  <karl@gnu.org>
64637
64638         * doc/COPYING.DOC: belatedly updated to 1.2.
64639
64640 2003-01-01  Karl Berry  <karl@gnu.org>
64641
64642         * gnulib-tool (func_verify_module): report module name $module in
64643         error message, not $1.
64644         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64645         be created, only if it doesn't exist.
64646         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64647
64648 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64649
64650         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64651
64652 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64653
64654         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64655         memcmp if strcoll doesn't work.
64656
64657 2002-12-31  Bruno Haible  <bruno@clisp.org>
64658
64659         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64660         nonempty.
64661
64662 2002-12-31  Bruno Haible  <bruno@clisp.org>
64663
64664         * lib/memcoll.c (STRCOLL): New macro.
64665         (memcoll): Use it.
64666
64667 2002-12-31  Bruno Haible  <bruno@clisp.org>
64668
64669         * lib/localcharset.h: New file.
64670         * lib/localcharset.c: Include it.
64671         * lib/unicodeio.c: Likewise.
64672
64673 2002-12-31  Bruno Haible  <bruno@clisp.org>
64674
64675         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64676         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64677
64678 2002-12-31  Bruno Haible  <bruno@clisp.org>
64679
64680         * lib/getline.h: Include <stddef.h>, for size_t.
64681
64682         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64683         * lib/unicodeio.c: Don't include <stddef.h>.
64684
64685 2002-12-31  Bruno Haible  <bruno@clisp.org>
64686
64687         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64688         HAVE_TM_ZONE.
64689
64690 2002-12-24  Karl Berry  <karl@gnu.org>
64691
64692         * config/config.guess: update from prep.
64693
64694 2002-12-24  Bruno Haible  <bruno@clisp.org>
64695
64696         General infrasructure.
64697         * m4/README: Rewritten.
64698         * m4/onceonly.m4: New file.
64699         * m4/onceonly_2_57.m4: New file.
64700
64701         Module atexit.
64702         * m4/atexit.m4: New file.
64703
64704         Module strtod.
64705         * m4/strtod.m4: New file.
64706
64707         Module strtol.
64708         * m4/strtol.m4: New file.
64709
64710         Module strtoul.
64711         * m4/strtoul.m4: New file.
64712
64713         Module memchr.
64714         * m4/memchr.m4: New file.
64715
64716         Module memcmp.
64717         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64718         (jm_FUNC_MEMCMP): Invoke it.
64719
64720         Module memcpy.
64721         * m4/memcpy.m4: New file.
64722
64723         Module memmove.
64724         * m4/memmove.m4: New file.
64725
64726         Module memset.
64727         * m4/memset.m4: New file.
64728
64729         Module strcspn.
64730         * m4/strcspn.m4: New file.
64731
64732         Module strpbrk.
64733         * m4/strpbrk.m4: New file.
64734
64735         Module strstr.
64736         * m4/strstr.m4: New file.
64737
64738         Module strerror.
64739         * m4/strerror.m4: New file.
64740
64741         Module mktime.
64742         * m4/mktime.m4: Renamed from jm-mktime.m4.
64743         (gl_PREREQ_MKTIME): New macro.
64744         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64745
64746         Module malloc.
64747         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64748         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64749         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64750
64751         Module realloc.
64752         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64753         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64754         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64755
64756         Module strftime.
64757         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64759         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64760         gl_TM_GMTOFF.
64761         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64762
64763         Module xalloc.
64764         * m4/xalloc.m4: New file.
64765
64766         Module alloca.
64767         * m4/alloca.m4: New file.
64768
64769         Module putenv.
64770         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64771         (jm_FUNC_PUTENV): Invoke it.
64772
64773         Module setenv.
64774         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64775         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64776         when invoked twice.
64777         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64778         gt_FUNC_SETENV.
64779
64780         Module memrchr.
64781         * m4/memrchr.m4: New file.
64782
64783         Module stpcpy.
64784         * m4/stpcpy.m4: New file.
64785
64786         Module strcase.
64787         * m4/strcase.m4: New file.
64788
64789         Module strdup.
64790         * m4/strdup.m4: New file.
64791
64792         Module strnlen.
64793         * m4/strnlen.m4: New file.
64794
64795         Module strndup.
64796         * m4/strndup.m4: New file.
64797
64798         Module xstrtod.
64799         * m4/xstrtod.m4: New file.
64800
64801         Module xstrtol.
64802         * m4/xstrtol.m4: New file.
64803
64804         Module getdate.
64805         * m4/getdate.m4: New file.
64806
64807         Module unlocked-io.
64808         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64809         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64810         * m4/jm-glibc-io.m4n: Remove file.
64811
64812         Module long-options.
64813         * m4/long-options.m4: New file.
64814
64815         Module md5.
64816         * m4/md5.m4: New file.
64817
64818         Module sha.
64819         * m4/sha.m4: New file.
64820
64821         Module getstr.
64822         * m4/getstr.m4: New file.
64823
64824         Module getline.
64825         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64826         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64827         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64828         simply getline. Infoke gl_PREREQ_GETLINE.
64829
64830         Module obstack.
64831         * m4/obstack.m4: New file.
64832
64833         Module hash.
64834         * m4/hash.m4: New file.
64835
64836         Module readtokens.
64837         * m4/readtokens.m4: New file.
64838
64839         Module strverscmp.
64840         * m4/strverscmp.m4: New file.
64841
64842         Module stdbool.
64843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64844         OSF/1.
64845
64846         Module strtoll.
64847         * m4/strtoll.m4: New file.
64848
64849         Module strtoull.
64850         * m4/strtoull.m4: New file.
64851
64852         Module strtoimax.
64853         * m4/strtoimax.m4: New file.
64854
64855         Module strtoumax.
64856         * m4/strtoumax.m4: New file.
64857
64858         Module xstrtoimax.
64859         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64860         jm_AC_PREREQ_XSTRTOIMAX.
64861         Moved the strtol prerequisites to strtol.m4.
64862         Moved the strtoll prerequisites to strtoll.m4.
64863         Moved the strtoimax prerequisites to strtoimax.m4.
64864
64865         Module xstrtoumax.
64866         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64867         jm_AC_PREREQ_XSTRTOUMAX.
64868         Moved the strtoul prerequisites to strtoul.m4.
64869         Moved the strtoull prerequisites to strtoull.m4.
64870         Moved the strtoumax prerequisites to strtoumax.m4.
64871
64872         Module chown.
64873         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64874         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64875
64876         Module dup2.
64877         * m4/dup2.m4: New file.
64878
64879         Module ftruncate.
64880         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64881         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64882
64883         Module getgroups.
64884         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64885         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64886
64887         Module gettimeofday.
64888         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64889         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64890         gl_PREREQ_GETTIMEOFDAY.
64891
64892         Module mkdir.
64893         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64894         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64895
64896         Module mkstemp.
64897         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64898         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64899         jm_AC_TYPE_UINTMAX_T.
64900         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64901
64902         Module stat.
64903         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64904         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64905
64906         Module lstat.
64907         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64908         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64909
64910         Module timespec.
64911         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64912         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64913         * m4/st_mtim.m4: Indentation.
64914
64915         Module nanosleep.
64916         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64917         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64918         gl_PREREQ_NANOSLEEP.
64919
64920         Module regex.
64921         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64922         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64923         (gl_REGEX): New macro.
64924
64925         Module rename.
64926         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64927         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64928
64929         Module rmdir.
64930         * m4/rmdir.m4: New file.
64931
64932         Module utime.
64933         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64934         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64935         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64936
64937         Module dirname.
64938         * m4/dirname.m4: New file.
64939
64940         Module getopt.
64941         * m4/getopt.m4: New file.
64942
64943         Module unistd-safer.
64944         * m4/unistd-safer.m4: New file.
64945
64946         Module fnmatch.
64947         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64948         declaration.
64949         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64950         (gl_FUNC_FNMATCH_POSIX): New macro.
64951         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64952         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64953         simply fnmatch.
64954
64955         Module exclude.
64956         * m4/exclude.m4: New file.
64957
64958         Module human.
64959         * m4/human.m4: New file.
64960
64961         Module acl.
64962         * m4/acl.m4: Nop.
64963
64964         Module backupfile.
64965         * m4/backupfile.m4: New file.
64966         * m4/d-ino.m4: Indentation.
64967
64968         Module fsusage.
64969         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64970         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64971         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64972
64973         Module dirfd.
64974         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64975         requirements.
64976
64977         Module euidaccess.
64978         * m4/euidaccess.m4: New file.
64979
64980         Module file-type.
64981         * m4/file-type.m4: New file.
64982
64983         Module fileblocks.
64984         * m4/fileblocks.m4: New file.
64985
64986         Module filemode.
64987         * m4/filemode.m4: New file.
64988
64989         Module isdir.
64990         * m4/isdir.m4: New file.
64991
64992         Module lchown.
64993         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64994         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64995
64996         Module makepath.
64997         * m4/makepath.m4: New file.
64998
64999         Module modechange.
65000         * m4/modechange.m4: New file.
65001
65002         Module mountlist.
65003         * m4/mountlist.m4: New file.
65004         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65005         Indentation.
65006
65007         Module path-concat.
65008         * m4/path-concat.m4: New file.
65009
65010         Module pathmax.
65011         * m4/pathmax.m4: New file.
65012
65013         Module same.
65014         * m4/same.m4: New file.
65015
65016         Module save-cwd.
65017         * m4/save-cwd.m4: New file.
65018
65019         Module savedir.
65020         * m4/savedir.m4: New file.
65021
65022         Module xgetcwd.
65023         * m4/xgetcwd.m4: New file.
65024         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65025
65026         Module xreadlink.
65027         * m4/xreadlink.m4: New file.
65028
65029         Module safe-read.
65030         * m4/safe-read.m4: New file.
65031
65032         Module safe-write.
65033         * m4/safe-write.m4: New file.
65034
65035         Module closeout.
65036         * m4/closeout.m4: New file.
65037
65038         Module stdio-safer.
65039         * m4/stdio-safer.m4: New file.
65040
65041         Module getpass.
65042         * m4/getpass.m4: New file.
65043
65044         Module getugroups.
65045         * m4/getugroups.m4: New file.
65046
65047         Module group-member.
65048         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65049         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65050
65051         Module idcache.
65052         * m4/idcache.m4: New file.
65053
65054         Module userspec.
65055         * m4/userspec.m4: New file.
65056
65057         Module gettime.
65058         * m4/clock_time.m4: New file.
65059         * m4/gettime.m4: New file.
65060
65061         Module settime.
65062         * m4/settime.m4: New file.
65063
65064         Module posixtm.
65065         * m4/posixtm.m4: New file.
65066
65067         Module gethostname.
65068         * m4/gethostname.m4: New file.
65069
65070         Module canon-host.
65071         * m4/canon-host.m4: New file.
65072
65073         Module gettext.
65074         * m4/codeset.m4: New file, from gettext-0.11.5.
65075         * m4/gettext.m4: New file, from gettext-0.11.5.
65076         * m4/glibc21.m4: New file, from gettext-0.11.5.
65077         * m4/iconv.m4: New file, from gettext-0.11.5.
65078         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65079         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65080         * m4/inttypes.m4: New file, from gettext-0.11.5.
65081         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65082         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65083         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65084         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65085         * m4/lib-link.m4: New file, from gettext-0.11.5.
65086         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65087         * m4/progtest.m4: New file, from gettext-0.11.5.
65088         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65089         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65090         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65091
65092         Module localcharset.
65093         * m4/localcharset.m4: New file.
65094
65095         Module hard-locale.
65096         * m4/hard-locale.m4: New file.
65097
65098         Module mbswidth.
65099         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65100         onceonly macros.
65101         * m4/mbrtowc.m4: Add comment.
65102
65103         Module memcasecmp.
65104         * m4/memcasecmp.m4: New file.
65105
65106         Module memcoll.
65107         * m4/memcoll.m4: New file.
65108
65109         Module unicodeio.
65110         * m4/unicodeio.m4: New file.
65111
65112         Module rpmatch.
65113         * m4/rpmatch.m4: New file.
65114
65115         Module yesno.
65116         * m4/yesno.m4: New file.
65117
65118         Module exitfail.
65119         * m4/exitfail.m4: New file.
65120
65121         Module c-stack.
65122         * m4/c-stack.m4 (gl_C_STACK): New macro.
65123         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65124
65125         Module error.
65126         * m4/error.m4 (gl_ERROR): New macro.
65127         (jm_PREREQ_ERROR): Use onceonly macros.
65128
65129         Module fatal.
65130         * m4/fatal.m4: New file.
65131
65132         Module getloadavg.
65133         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65134         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65135
65136         Module getpagesize.
65137         * m4/getpagesize.m4: New file.
65138
65139         Module getusershell.
65140         * m4/getusershell.m4: New file.
65141
65142         Module physmem.
65143         * m4/physmem.m4: New file.
65144
65145         Module posixver.
65146         * m4/posixver.m4: New file.
65147
65148         Module quotearg.
65149         * m4/quotearg.m4: New file.
65150
65151         Module quote.
65152         * m4/quote.m4: New file.
65153
65154         Module readutmp.
65155         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65156
65157         Module sig2str.
65158         * m4/sig2str.m4: New file.
65159
65160         Other.
65161         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65162         ulonglong.m4.
65163         * m4/intmax_t.m4: New file.
65164         * m4/d-type.m4: Indentation.
65165         * m4/jm-macros.m4: Update.
65166         * m4/prereq.m4 (jm_PREREQ): Update.
65167         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65168         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65169         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65170         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65171         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65172         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65173         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65174         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65175         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65176         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65177         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65178         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65179         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65180         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65181         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65182         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65183         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65184         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65185         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65186
65187 2002-12-24  Bruno Haible  <bruno@clisp.org>
65188
65189         * MODULES.txt: Update according to m4/ changes.
65190
65191         Module gettext.
65192         * config.rpath: New file, from gettext-0.11.5.
65193
65194         * modules/*: New module descriptions.
65195         * gnulib-tool: New file.
65196         * MODULES.html.sh: New file.
65197
65198 2002-12-21  Karl Berry  <karl@gnu.org>
65199
65200         * doc/fdl.texi: update to version 1.2.
65201
65202 2002-12-19  Karl Berry  <karl@gnu.org>
65203
65204         * config/config.guess: update from prep.
65205
65206 2002-12-18  Bruno Haible  <bruno@clisp.org>
65207
65208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65209         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65210
65211 2002-12-17  Bruno Haible  <bruno@clisp.org>
65212
65213         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65214         stdlib.h, string.h.
65215
65216 2002-12-17  Bruno Haible  <bruno@clisp.org>
65217
65218         * lib/canon-host.c (strdup): Remove unused declaration.
65219
65220         * lib/fsusage.c: Include full_read.h.
65221         (get_fs_usage): Use full_read instead of safe_read.
65222
65223         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65224
65225 2002-12-12  Karl Berry  <karl@gnu.org>
65226
65227         * config/config.guess: update from prep.
65228
65229 2002-12-11  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/setenv.m4: New file, from gettext-0.11.5.
65232
65233 2002-12-11  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65236         not unsetenv().
65237         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65238         modifications:
65239
65240         2002-12-11  Bruno Haible  <bruno@clisp.org>
65241
65242                 * setenv.c (alloca): Fall back to malloc.
65243                 (freea): New macro.
65244                 (setenv): Use freea() to free memory allocated with alloca().
65245
65246         2002-11-13  Bruno Haible  <bruno@clisp.org>
65247
65248                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65249                 function declarations.
65250                 * unsetenv.c (unsetenv): Likewise.
65251
65252         2002-03-04  Bruno Haible  <bruno@clisp.org>
65253
65254                 Portability to AIX 4.3.3.
65255                 * unsetenv.c: New file, extracted from setenv.c.
65256                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65257
65258         2001-12-20  Bruno Haible  <bruno@clisp.org>
65259
65260                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65261                 use malloc instead. For SunOS 4.
65262
65263         2001-12-11  Bruno Haible  <bruno@clisp.org>
65264
65265                 * setenv.c: Declare alloca.
65266                 (compar_fn_t): New typedef.
65267                 (KNOWN_VALUE, STORE_VALUE): Use it.
65268
65269         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65270         setenv.h.
65271
65272 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65273
65274         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65275         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65276         Choose values that are less likely to collide with system fnmatch
65277         options.
65278         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65279         defined (e.g., a pure POSIX system).
65280         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65281         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65282
65283 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65284
65285         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65286         a pain in practice to deal with generated m4 files.  This change
65287         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65288
65289         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65290         and jm-glibc-io.m4, as they are no longer a special case.
65291         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65292         kludge and the auto-generation stuff.  Check only whether the
65293         functions are declared, not whether they exist, since older hosts
65294         that don't declare the functions can't use the optimization anyway.
65295
65296 2002-12-06  Jim Meyering  <jim@meyering.net>
65297
65298         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65299
65300         Merge in changes from libc's misc/error.c, in preparation
65301         for the merge of gnulib's changes back into libc.
65302
65303         * lib/error.c (_): Define only if not already defined.
65304         Move definition to follow all #include directives.
65305         Include unlocked-io.h only if !_LIBC.
65306         [_LIBC]: Include <libio/libioP.h>.
65307         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65308         (fflush): Tweak definition to use INTUSE.
65309         (putc): Define.
65310
65311 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65312
65313         * lib/alloca.c [defined emacs]: Include "lisp.h".
65314         (xalloc_die) [defined emacs]: New macro.
65315         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65316         [! defined emacs]: Include <xalloc.h>.
65317         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65318         (pointer): Typedef to POINTER_TYPE *.
65319         (malloc): Remove decl; we now always use xmalloc.
65320         (alloca): Use old-style definition, since Emacs needs this.
65321         Check for arithmetic overflow when computing combined size.
65322
65323 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65324
65325         Do not generate unlocked-io.h automatically, since it's easier to
65326         maintain it by hand.
65327
65328         * lib/unlocked-io.h: New file, from GNU diffutils,
65329         but with proper copyright notice and attribution.
65330         * lib/gen-uio: Remove.
65331         * lib/Makefile.am: Add copyright notice.
65332         (libfetish_a_SOURCES): Add unlocked-io.h.
65333         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65334         (DISTCLEANFILES, io_functions): Remove macros.
65335         (EXTRA_DIST): Remove gen_uio.
65336         (unlocked-io.h): Remove rule.
65337
65338 2002-12-04  Jim Meyering  <jim@meyering.net>
65339
65340         Reflect the fact that stat.c and lstat.c are no longer generated.
65341         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65342         (DISTCLEANFILES): Likewise.
65343         (EXTRA_DIST): Likewise.
65344         (all_local): Don't depend on stat.c or lstat.c.
65345         (stat.c, lstat.c): Remove rules.
65346         (EXTRA_DIST): Remove xstat.in.
65347
65348         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65349         * lib/stat.c: New file.  Contents mostly from xstat.in.
65350         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65351         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65352
65353         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65354         too.
65355         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65356
65357 2002-12-03  Jim Meyering  <jim@meyering.net>
65358
65359         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65360         but not semantics, to minimize the differences between these two files.
65361         (safe_read): Change comment to mention SAFE_READ_ERROR.
65362
65363         * lib/safe-read.c (IS_EINTR): Define.
65364         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65365
65366 2002-12-02  Jim Meyering  <jim@meyering.net>
65367
65368         * lib/safe-read.c (EINTR): Define.
65369         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65370         (INT_MAX): Provide fallback.
65371         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65372
65373         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65374
65375 2002-12-02  Bruno Haible  <bruno@clisp.org>
65376
65377         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65378         Define, taken from safe-read.c.
65379         (INT_MAX): Provide fallback.
65380         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65381         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65382
65383         * lib/safe-read.c (EINTR): Remove definition.
65384         (safe_read): Don't use EINTR if it is absent.
65385
65386 2002-12-01  Jim Meyering  <jim@meyering.net>
65387
65388         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65389         zero.
65390         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65391
65392 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65393
65394         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65395         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65396         with `if (! (value < limit)) abort ();', for readability.
65397
65398 2002-11-26  Karl Berry  <karl@gnu.org>
65399
65400         * lib/strdup.c: copy from libc again, with jim's ok.
65401         * lib/.cppi-disable: re-add strdup.c
65402
65403 2002-11-25  Karl Berry  <karl@gnu.org>
65404
65405         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65406         instead of "strtol.c".
65407
65408 2002-11-25  Karl Berry  <karl@gnu.org>
65409
65410         * config/install-sh: update from automake for variable quoting, $0 in
65411         error msgs, etc.
65412
65413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65414         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65415         entry.
65416
65417 2002-11-25  Jim Meyering  <jim@meyering.net>
65418
65419         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65420
65421 2002-11-24  Karl Berry  <karl@gnu.org>
65422
65423         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65424         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65425
65426 2002-11-24  Jim Meyering  <jim@meyering.net>
65427
65428         Update from coreutils:
65429
65430         * lib/mktime.c: Merge in changes from libc.
65431
65432         Avoid a link-time failure on some Linux systems.
65433         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65434         (otherwise).
65435         (__mon_yday): Declare with the STATIC attribute.
65436         (__mktime_internal): Likewise.
65437         Based on a report from Greg Schafer.
65438
65439 2002-11-23  Jim Meyering  <jim@meyering.net>
65440
65441         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65442         Use `unsigned', not `int', as type of index.
65443
65444         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65445
65446         * lib/fsusage.c: Remove unneeded parentheses around operands of
65447         `defined'.
65448
65449 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65450
65451         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65452         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65453         so that we can be included first.
65454         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65455         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65456         No need to include stddef.h or sys/types.h any more.
65457         Surround local include files with "", not "<>".
65458         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65459         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65460         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65461         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65462         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65463         (ISPRINT): Remove; no longer needed now that we assume C89.
65464
65465         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65466         Preserve errno.
65467
65468         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65469         quotearg_char): Use SIZE_MAX rather than
65470         (size_t) -1 when we are talking about "infinity".
65471
65472         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65473
65474 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65475
65476         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65477         hint that one should use `if (! x) abort ();' rather than `assert
65478         (x);', and anyway it's one less thing to worry about configuring.
65479         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65480         hash_rehash, hash_insert): Use abort rather than assert.
65481
65482 2002-11-22  Bruno Haible  <bruno@clisp.org>
65483
65484         * lib/safe-read.h: Assume C89. Add comments.
65485         (safe_read): Change return type to size_t.
65486         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65487         byte counts > SSIZE_MAX correctly.
65488         * lib/safe-write.h: New file.
65489         * lib/safe-write.c: New file.
65490         * lib/full-read.h: New file.
65491         * lib/full-read.c: New file.
65492         * lib/full-write.h: Assume C89. Add comments.
65493         * lib/full-write.c: Include safe-write.h.
65494         (full_write): Rewritten to use safe_write.
65495         Suggested by Jim Meyering and Paul Eggert.
65496
65497 2002-11-21  Jim Meyering  <jim@meyering.net>
65498
65499         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65500
65501         Merge in changes from the coreutils.
65502
65503         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65504         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65505         <stdint.h>.
65506         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65507         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65508         int.  Work more efficiently if X is the same width as uintmax_t.
65509         Do not compare X to -1, to avoid bogus compiler warning.
65510         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65511         Don't assume that f_frsize and f_bsize are the same type.
65512
65513         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65514         warning on FreeBSD.
65515
65516         * lib/makepath.c (make_path): Restore umask *before* creating the final
65517         component.
65518         (make_path): Minor reformatting.
65519
65520         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65521         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65522         HAVE_MALLOC/HAVE_REALLOC.
65523
65524         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65525         dummy ones.  At least on GNU/Linux systems, `auto' means something
65526         else.
65527         From Michael Stone.
65528
65529 2002-11-21  Bruno Haible  <bruno@clisp.org>
65530
65531         Remove case insensitive option matching.
65532         * lib/argmatch.h (argcasematch): Remove declaration.
65533         (ARGCASEMATCH): Remove macro.
65534         (__xargmatch_internal): Remove case_sensitive argument.
65535         (XARGMATCH): Update.
65536         (XARGCASEMATCH): Remove macro.
65537         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65538         case_sensitive argument.
65539         (argcasematch): Remove function.
65540         (__xargmatch_internal): Remove case_sensitive argument.
65541         (main): Use XARGMATCH instead of XARGCASEMATCH.
65542
65543         * lib/xmalloc.c: Change compile-time error message. Add comment about
65544         required autoconf version.
65545
65546 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65547
65548         Merge argmatch cleanups from Bison.  Assume C89.
65549
65550         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65551         Include stdlib.h, for EXIT_FAILURE.
65552         Always include <string.h>, since we assume C89.
65553         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65554         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65555         Include <stddef.h> instead, since it's all we need for size_t.
65556         (PARAMS): Remove.  All uses removed.
65557         (ARRAY_CARDINALITY): Do not bother to #undef.
65558         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65559         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65560         Remove unnecessary parentheses.
65561         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65562         Insert necessary parentheses.
65563         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65564         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65565
65566 2002-11-19  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65569         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65570
65571         * lib/mbswidth.h (PARAMS): Remove macro.
65572         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65573         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65574
65575         * lib/gcd.h (PARAMS): Remove macro.
65576         (gcd): Use ANSI C function declarations.
65577         * lib/gcd.c (gcd): Likewise.
65578
65579 2002-11-15  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/strcspn.c: Include <stddef.h>.
65582         (strcspn): Use ANSI C function declaration. Change return type to
65583         size_t. Use NULL.
65584         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65585         (strpbrk): Use NULL.
65586         * lib/strpbrk.h (PARAMS): Remove macro.
65587         (strpbrk): Use ANSI C function declaration.
65588         * lib/strstr.c: Don't include <sys/types.h>.
65589         * lib/strstr.h (PARAMS): Remove macro.
65590         (strstr): Use ANSI C function declarations.
65591
65592 2002-11-14  Karl Berry  <karl@gnu.org>
65593
65594         * config/mkinstalldirs: `do' on separate line, instead of
65595         `for var; do'.
65596
65597 2002-11-06  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65600         * lib/gcd.c (gcd): Likewise.
65601
65602 2002-11-05  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/gcd.h: New file, from gettext-0.11.5.
65605         * lib/gcd.c: New file, from gettext-0.11.5.
65606
65607 2002-11-05  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65610         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65611         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65612         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65613
65614         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65615         <libintl.h>.
65616         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65617         <libintl.h>.
65618
65619         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65620         * lib/human.c: Include gettext.h instead of <libintl.h>.
65621         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65622         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65623         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65624         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65625         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65626         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65627         (textdomain): Remove definition.
65628         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65629
65630         * lib/long-options.c: Remove include of <libintl.h> and definition of
65631         _.
65632         * lib/same.c: Remove include of <libintl.h> and definition of _.
65633
65634 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65635
65636         * lib/config.charset: A few additions for Solaris.
65637
65638 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65639
65640         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65641         * lib/localcharset.c (locale_charset): Declare as extern "C".
65642
65643 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65644
65645         * lib/config.charset: msdos in uk_UA uses CP1125.
65646
65647 2002-11-04  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65650         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65651         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65652         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65653         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65654
65655 2002-11-04  Bruno Haible  <bruno@clisp.org>
65656
65657         * lib/localcharset.c (locale_charset): Don't return an empty string.
65658
65659 2002-11-04  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65662         aliases.
65663
65664 2002-11-04  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/config.charset: Update for newest glibc. Add canonical names
65667         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65668
65669 2002-11-04  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/config.charset: Add support for NetBSD.
65672
65673 2002-11-04  Bruno Haible  <bruno@clisp.org>
65674
65675         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65676
65677 2002-11-01  Bruno Haible  <bruno@clisp.org>
65678
65679         * configure.in: Add AC_CONFIG_AUX_DIR call.
65680         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65681         test/Makefile.
65682         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65683
65684 2002-09-28  Karl Berry  <karl@gnu.org>
65685
65686         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65687         installed automake until the next release, since changes have been
65688         made.
65689
65690 2002-09-25  Karl Berry  <karl@gnu.org>
65691
65692         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65693         * lib/getopt*: copy from libc/posix.
65694         * lib/gettext.h: copy from gettext.
65695         * lib/.cppi-disable: add strdup.c, gettext.h.
65696
65697 2002-09-25  Karl Berry  <karl@gnu.org>
65698
65699         * config/srclist.txt: enable gettext.h check.
65700         * config/config.{guess,sub}: update from prep.
65701         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65702                 from automake 1.6.3.
65703         See srclist*.
65704
65705 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65706
65707         * regex.c (PATFETCH): Remove the translating fetch.
65708         (PATFETCH_RAW): Rename to PATFETCH.
65709         (set_image_of_range): New fun.
65710         (SET_RANGE_TABLE_WORK_AREA): Use it.
65711         (regex_compile): Don't translate the pattern chars so eagerly.
65712         Only do it when inserting an `exactn' bytecode or when handling
65713         a char-range.
65714         (mutually_exclusive_p): Avoid empty statement.
65715
65716 2002-07-06  Jim Meyering  <meyering@lucent.com>
65717
65718         * m4/README: Don't mention Makefile.am.in.
65719         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65720
65721 2002-07-01  Jim Meyering  <meyering@lucent.com>
65722
65723         * lib/c-stack.c: Include sys/time.h.
65724         From Volker Borchert.
65725
65726 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65727
65728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65729
65730 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65731
65732         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65733         New macro.  Use it uniformly instead of
65734         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65735         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65736         reported by Vin Shelton.
65737
65738 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65739
65740         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65741         Do not assume SA_SIGINFO behavior.
65742         Bug reported by Jim Meyering on NetBSD 1.5.2.
65743
65744 2002-06-22  Jim Meyering  <meyering@lucent.com>
65745
65746         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65748
65749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65750         now that configure.ac uses AC_GNU_SOURCE.
65751         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65752         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65753
65754         Update to latest tools.  Suggestions from Paul Eggert.
65755         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65756         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65757         * m4/fnmatch.m4: Likewise.
65758         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65759         to AC_HEADER_STDBOOL
65760
65761 2002-06-22  Jim Meyering  <meyering@lucent.com>
65762
65763         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65764         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65765
65766 2002-06-22  Jim Meyering  <meyering@lucent.com>
65767
65768         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65769
65770         * lib/exitfail.c, exitfail.h: Likewise.
65771         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65772
65773         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65774         of fnmatch.h.
65775         (EXTRA_DIST): Add fnmatch_loop.c.
65776         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65777
65778         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65779         * lib/fnmatch.c: Update from diffutils-2.8.2.
65780         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65781         * lib/fnmatch.h: Remove file.
65782
65783 2002-06-21  Jim Meyering  <meyering@lucent.com>
65784
65785         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65786         * m4/mbrtowc.m4: Likewise.
65787
65788         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65789         * m4/mbswidth.m4: Reflect name change:
65790         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65792
65793         * m4/lib-link.m4: Update from gettext-0.11.2.
65794         * m4/gettext.m4: Likewise.
65795
65796         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65797         From Alfred M. Szmidt.
65798
65799 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65800
65801         * lib/file-type.h: Report an error if neither S_ISREG nor
65802         S_IFREG is defined, instead of using a test specific to glibc
65803         2.2.  This should be safe, since POSIX requires S_ISREG and
65804         Unix Version 7 had S_IFREG.  We don't need to check for
65805         <sys/types.h> since we don't use any symbols that it defines.
65806
65807 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65808
65809         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65810         $@-t, so that each temporary file name is unique and valid in the first
65811         8 characters, for operation under DOS.
65812
65813 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65814
65815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65816
65817 2002-06-15  Jim Meyering  <meyering@lucent.com>
65818
65819         Work even with DJGPP 2.03, which lacks support for symlinks.
65820         From Richard Dawe.
65821         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65822         is defined.
65823         * lib/lchown.c (S_ISLNK): Likewise.
65824
65825 2002-06-15  Jim Meyering  <meyering@lucent.com>
65826
65827         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65828         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65829         have been included before this file.
65830
65831 2002-06-14  Jim Meyering  <meyering@lucent.com>
65832
65833         * lib/file-type.h: Use the version from diffutils-2.8.2.
65834         * lib/file-type.c: Likewise.
65835
65836 2002-06-07  Jim Meyering  <meyering@lucent.com>
65837
65838         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65839         They're needed at least for NetBSD 1.5.2.
65840         ($statxfs_includes): Include those same headers.
65841         ($statxfs_includes): Include sys/vfs.h if available.
65842         ($statxfs_includes): Likewise for sys/statvfs.h.
65843         Check for the following members in both structs statfs and statvfs:
65844         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65845
65846 2002-06-01  Jim Meyering  <meyering@lucent.com>
65847
65848         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65849         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65850
65851 2002-05-28  Jim Meyering  <meyering@lucent.com>
65852
65853         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65854         Reported by Volker Borchert.
65855
65856 2002-05-27  Jim Meyering  <meyering@lucent.com>
65857
65858         Fix a problem seen only on nonconforming systems whereby ls.c's
65859         use of localtime, and then of gettimeofday would cause trouble:
65860         the localtime call used to initialize rpl_gettimeofday's save
65861         mechanism would clobber ls's current local time information so
65862         that in any long listing the first file would always be listed
65863         with date 1970-01-01.  Analysis by Volker Borchert.
65864
65865         * lib/gettimeofday.c (localtime): Undefine.
65866         (rpl_localtime): New function.
65867
65868 2002-05-27  Jim Meyering  <meyering@lucent.com>
65869
65870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65871         localtime.
65872
65873         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65874         use the replacement function; it wouldn't resolve at link time.
65875         Reported by Volker Borchert.
65876
65877 2002-05-22  Jim Meyering  <meyering@lucent.com>
65878
65879         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65880         file-type.h.
65881         * lib/file-type.h: New file.
65882         * lib/file-type.c (file_type): New file/function.  Extracted from
65883         diffutils.
65884
65885 2002-04-30  Jim Meyering  <meyering@lucent.com>
65886
65887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65888
65889 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65890
65891         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65892
65893 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65894
65895         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65896         Do not check for alloca.h (no longer used) or stdbool.h (was never
65897         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65898
65899 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65900
65901         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65902
65903 2002-04-29  Jim Meyering  <meyering@lucent.com>
65904
65905         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65906         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65907         Use AC_FUNC_STRNLEN here instead.
65908
65909         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65910         With autoconf-2.53a, it's part of AC_PROG_CC.
65911
65912 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65913
65914         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65916
65917 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65918
65919         * lib/sig2str.h, lib/sig2str.c: New files.
65920         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65921
65922 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65923
65924         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65925         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65926         of 127, since 64 is the largest conceivable number for ancient
65927         nonstandard hosts.
65928         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65929
65930 2002-04-28  Jim Meyering  <meyering@lucent.com>
65931
65932         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65933
65934 2002-04-24  Jim Meyering  <meyering@lucent.com>
65935
65936         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65937         (jm_PREREQ): Use it.
65938
65939         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65940         mach/mach.h fcntl.h.
65941         Check for this function: setlocale.
65942
65943 2002-04-24  Jim Meyering  <meyering@lucent.com>
65944
65945         * lib/gettext.h: New file, from Gettext.
65946         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65947         (libfetish_a_SOURCES): Add gettext.h.
65948
65949 2002-04-16  Jim Meyering  <meyering@lucent.com>
65950
65951         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65952         ut_pid, ut_id, ut_exit.
65953
65954 2002-04-16  Jim Meyering  <meyering@lucent.com>
65955
65956         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65957         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65958         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65959
65960 2002-04-12  Jim Meyering  <meyering@lucent.com>
65961
65962         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65963         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65964         existence of the getmntinfo function.  Needed for Darwin 5.3.
65965
65966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65967         This is necessary at least on Darwin 5.3.
65968
65969         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65970         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65971         strnlen.o in the library, and that makes some versions of ranlib
65972         object.
65973
65974 2002-04-12  Jim Meyering  <meyering@lucent.com>
65975
65976         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65977
65978 2002-04-09  Jim Meyering  <meyering@lucent.com>
65979
65980         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65981         to be more precise.  Rather than saying we're checking whether the
65982         function `works', say what we're testing.
65983         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65984         Reported by Bruno Haible.
65985
65986 2002-03-10  Jim Meyering  <meyering@lucent.com>
65987
65988         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65989         Suggestion from Santiago Vila.
65990
65991 2002-03-08  Jim Meyering  <meyering@lucent.com>
65992
65993         * lib/rename.c: Mention that this wrapper is needed also on
65994         mips-dec-ultrix4.4 systems.
65995
65996 2002-03-02  Jim Meyering  <meyering@lucent.com>
65997
65998         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65999         not HAVE_CLOCK_SETTIME.
66000
66001 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66002
66003         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66004         Check for clock_settime.
66005
66006 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66007
66008         * lib/nanosleep.h: Rename to....
66009         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66010
66011         * lib/gettime.c: New file.
66012         * lib/settime.c: New file.
66013         * lib/stime.c: Remove.
66014
66015         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66016         timespec.h.  Remove nanosleep.h.
66017
66018 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66019
66020         * m4/acl.m4: New file.
66021         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66022         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66023
66024 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66025
66026         * lib/acl.c, lib/acl.h: New files.
66027         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66028
66029 2002-02-24  Jim Meyering  <meyering@lucent.com>
66030
66031         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66032         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66033         cause trouble.  Reported by Nelson Beebe.
66034
66035 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66036
66037         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66038         compilers that don't know that xalloc_die never returns.
66039
66040 2002-02-20  Jim Meyering  <meyering@lucent.com>
66041
66042         * lib/getdate.c: Regenerate using bison-1.33.
66043
66044 2002-02-17  Jim Meyering  <meyering@lucent.com>
66045
66046         * config/config.guess (main): Don't use `head -1'; it's no longer
66047         portable. Use `sed 1q' instead.
66048
66049 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66050
66051         * m4/codeset.m4: Upgrade to gettext-0.11.
66052         * m4/gettext.m4: Upgrade to gettext-0.11.
66053         * m4/glibc21.m4: Upgrade to gettext-0.11.
66054         * m4/iconv.m4: Upgrade to gettext-0.11.
66055         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66056         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66057         * m4/lib-ld.m4: New file, from gettext-0.11.
66058         * m4/lib-link.m4: New file, from gettext-0.11.
66059         * m4/lib-prefix.m4: New file, from gettext-0.11.
66060         * m4/progtest.m4: Upgrade to gettext-0.11.
66061
66062 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66063
66064         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66065         (jm_PREREQ): Use it.
66066
66067 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66068
66069         * lib/posixver.c, lib/posixver.h: New files.
66070         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66071
66072 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66073             Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66076         (fwrite_success_callback): New declaration.
66077         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66078         print_unicode_char. Call failure callback instead of error.
66079         (fwrite_success_callback): New function.
66080         (exit_failure_callback): New function.
66081         (fallback_failure_callback): New function.
66082         (print_unicode_char): Call unicode_to_mb.
66083
66084 2002-01-26  Jim Meyering  <meyering@lucent.com>
66085
66086         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66087         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66088
66089 2002-01-26  Jim Meyering  <meyering@lucent.com>
66090
66091         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66092
66093 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66094
66095         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66096
66097 2002-01-22  Jim Meyering  <meyering@lucent.com>
66098
66099         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66100         Otherwise, some versions of automake would omit the rule that makes
66101         Makefile from Makefile.in.
66102
66103 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66104
66105         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66106         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66107         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66108         (memcoll): Set errno to zero if there is no error.
66109
66110         * lib/quotearg.c (quotearg_buffer_restyled):
66111         Fix bug with quoting buffers containing NUL when backslashing escapes.
66112         This bug was exposed by the other changes in this patch.
66113         (quotearg_n_options): New arg ARGSIZE.
66114         All callers changed.
66115         (quoting_options_from_style): New function.
66116         (quotearg_n_style): Use it.
66117         (quotearg_n_style_mem): New function.
66118
66119         * lib/quotearg.h (quotearg_n_style_mem): New function.
66120
66121 2002-01-19  Jim Meyering  <meyering@lucent.com>
66122
66123         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66124         Remove useless quotes: DF_PROG="df".
66125         * m4/strnlen.m4: New file.
66126
66127 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66128
66129         * lib/backupfile.c (ISDIGIT): Comment fix.
66130         * lib/getdate.y (ISDIGIT): Likewise.
66131         * lib/posixtm.c (ISDIGIT, year): Likewise.
66132         * lib/strverscmp.c (ISDIGIT): Likewise.
66133         * lib/userspec.c (ISDIGIT): Likewise.
66134
66135 2002-01-16  Jim Meyering  <meyering@lucent.com>
66136
66137         * lib/getdate.y: Add three semicolons, each just before a closing
66138         brace. Bison (as of version 1.31) no longer papers over that mistake.
66139
66140 2002-01-05  Jim Meyering  <meyering@lucent.com>
66141
66142         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66143
66144 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66145
66146         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66147         not silently exit merely because the output buffer happens to
66148         have nothing pending.
66149
66150 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66151
66152         See the big note in ../ChangeLog.
66153         * lib/human.c (suffixes): Prefer K to k for 1024.
66154         (generate_suffix_backwards): New function.
66155         (human_readable_inexact): Use it.
66156         * lib/xstrtol.c (__xstrtol): If there is no number but there
66157         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66158         Accept 'K' as well as 'k'.
66159
66160 2001-12-15  Jim Meyering  <meyering@lucent.com>
66161
66162         * lib/regex.h (__restrict_arr): Update from libc.
66163
66164         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66165         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66166         (STREQ): Define.
66167
66168 2001-12-14  Jim Meyering  <meyering@lucent.com>
66169
66170         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66171         Suggestion from Bruno Haible.
66172
66173 2001-12-10  Jim Meyering  <meyering@lucent.com>
66174
66175         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66176         xrealloc, Instead, include "xalloc.h".
66177         (initbuffer): Don't cast xmalloc return value to char*.
66178         (readline): Reword comment.
66179         Don't cast xrealloc return value to char*
66180         Return NULL, not 0.
66181
66182 2001-12-09  Jim Meyering  <meyering@lucent.com>
66183
66184         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66185         about `signed and unsigned type in conditional expression'.
66186         * lib/posixtm.c (posix_time_parse): Likewise.
66187
66188         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66189
66190         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66191         to avoid a pedantic warning.
66192
66193         * lib/getstr.c: Don't include assert.h.
66194         (getstr): Remove warning-evoking assertions.
66195         Return -1 if offset parameter is out of bounds.
66196         Change the type of a local from int to size_t.
66197
66198         * lib/strftime.c (my_strftime_localtime_r): Include this function
66199         definition in the `#if ! HAVE_TM_GMTOFF' block.
66200
66201         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66202         Include xalloc.h instead.
66203
66204 2001-12-02  Jim Meyering  <meyering@lucent.com>
66205
66206         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66207         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66208         included.
66209
66210         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66211         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66212
66213 2001-11-30  Akim Demaille  <akim@epita.fr>
66214
66215         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66216         before being defined.
66217
66218 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66219
66220         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66221         First arg is int, not unsigned.
66222         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66223         (SIZE_MAX, UINT_MAX): New macros.
66224         (quotearg_n_options): Abort if N is negative.
66225         Avoid overflow check on hosts where size_t is 64 bits and int
66226         is 32 bits, as overflow is impossible there.
66227         Fix off-by-one typo that caused unnecessary reallocation.
66228
66229 2001-11-27  Jim Meyering  <meyering@lucent.com>
66230
66231         * lib/tempname.c: Merge with version from libc.
66232         * lib/regex.c: Likewise.
66233
66234         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66235         systems for which STDC_HEADERS is 0, it was not included, resulting in
66236         a warning about an integer-to-pointer conversion problem with getenv.
66237         Reported by Volker Borchert.
66238
66239 2001-11-26  Jim Meyering  <meyering@lucent.com>
66240
66241         * lib/gtod.h: Remove file.
66242         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66243         * lib/gettimeofday.c: Don't include gtod.h.
66244         (GTOD_init): Remove function.
66245         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66246         Suggestion from Volker Borchert.
66247
66248 2001-11-23  Jim Meyering  <meyering@lucent.com>
66249
66250         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66251         it.
66252         * lib/hash.c (struct hash_table): Define it here instead.
66253
66254 2001-11-22  Jim Meyering  <meyering@lucent.com>
66255
66256         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66257
66258 2001-11-20  Jim Meyering  <meyering@lucent.com>
66259
66260         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66261         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66262
66263 2001-11-19  Jim Meyering  <meyering@lucent.com>
66264
66265         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66266         directory.  Use "conftestXXXXXX" as the template.
66267         Suggestion from Paul Eggert.
66268
66269         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66270         immediately, so the test doesn't mistakenly hit the max-open-files
66271         limit.
66272
66273 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66274
66275         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66276         (TEMPORARIES): New macro.
66277         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66278         removes an artificial limitation (e.g. HP-UX 10.20, where
66279         TMP_MAX is 17576).
66280
66281 2001-11-18  Jim Meyering  <meyering@lucent.com>
66282
66283         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66284
66285 2001-11-18  Jim Meyering  <meyering@lucent.com>
66286
66287         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66288         on SunOS 4.
66289
66290         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66291         files will be created before anything else.
66292
66293 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66294
66295         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66296         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66297
66298 2001-11-17  Jim Meyering  <meyering@lucent.com>
66299
66300         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66301         Prompted by a report from Bob Proulx.
66302
66303         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66304         Instead, require UTILS_FUNC_MKSTEMP.
66305
66306 2001-11-17  Jim Meyering  <meyering@lucent.com>
66307
66308         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66309         Now, that's done as part of AC_FUNC_STRTOD.
66310
66311 2001-11-17  Jim Meyering  <meyering@lucent.com>
66312
66313         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66314         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66315         rather than group writable.  Patch by Juan F. Codagnone.
66316
66317         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66318         xrealloc, Instead, include "xalloc.h".
66319
66320         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66321         Remove explicit declarations of xmalloc, xrealloc,
66322         and xstrdup.  Instead, include "xalloc.h".
66323
66324         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66325         unlocked-io.h.
66326         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66327         Likewise.
66328         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66329
66330         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66331         Reported by Padraig Brady.
66332
66333         * lib/mkstemp.c: #undef mkstemp.
66334         Include config.h.
66335         (rpl_mkstemp): Rename from mkstemp.
66336         Protoize.
66337
66338 2001-11-16  Jim Meyering  <meyering@lucent.com>
66339
66340         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66341         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66342         determine the amount of total physical memory, use pstat_getstatic.
66343         HPUX-11 doesn't define _SC_PHYS_PAGES.
66344         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66345         If sysconf couldn't be used to determine the amount of available
66346         physical memory, use both pstat_getstatic and pstat_getdynamic.
66347         Based on a patch from Bob Proulx.
66348
66349 2001-11-10  Jim Meyering  <meyering@lucent.com>
66350
66351         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66352         (jm_PREREQ): Use it.
66353
66354 2001-11-09  Jim Meyering  <meyering@lucent.com>
66355
66356         * m4/jm-macros.m4: Require autoconf-2.52f.
66357         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66358         Use these AC_-prefixed names, not the AM_-prefixed ones.
66359
66360         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66361
66362 2001-11-05  Jim Meyering  <meyering@lucent.com>
66363
66364         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66365
66366 2001-11-04  Jim Meyering  <meyering@lucent.com>
66367
66368         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66369         $DEFS.
66370
66371 2001-11-03  Jim Meyering  <meyering@lucent.com>
66372
66373         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66374         of AC_DEFUN.
66375
66376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66377         know the name of the variable in the macro definition.
66378
66379 2001-11-03  Jim Meyering  <meyering@lucent.com>
66380
66381         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66382         in argmatch_to_argument call.
66383
66384         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66385         argument.
66386
66387         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66388         e.g., a fault due to an attempt to free a NULL pointer.
66389
66390 2001-11-01  Jim Meyering  <meyering@lucent.com>
66391
66392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66393         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66394
66395 2001-11-01  Jim Meyering  <meyering@lucent.com>
66396
66397         * lib/dirfd.c, lib/dirfd.h: New files.
66398         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66399
66400         * lib/hash.c (hash_print) [TESTING]: Clean up.
66401
66402 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66403
66404         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66405         to avoid a warning if -Wall.
66406
66407 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66408
66409         * README: New file
66410         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66411         (per RMS's instructions, this is now the canonical source)
66412         * lgpl/, gpl/: New directories.
66413
66414 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66415
66416         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66417
66418 2001-10-21  Jim Meyering  <meyering@lucent.com>
66419
66420         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66421         this code would end up calling gettext even in packages built
66422         with --disable-nls.
66423         * lib/getopt.c (_): Likewise.
66424         * lib/regex.c (_): Likewise.
66425
66426 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66427
66428         * m4/error.m4 (jm_PREREQ_ERROR):
66429         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66430         AC_FUNC_STRERROR_R does that.
66431         Check for strerror declaration.
66432
66433         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66434         are supposed to have them these days.
66435         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66436         Merge changes from latest Autoconf CVS.
66437         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66438         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66439         POSIX decided to standardize on the int flavor of strerror_r.
66440
66441 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66442
66443         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66444         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66445         Use strerror_r that is only a macro, even if it is not a function.
66446         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66447         (private_strerror): Use prototypes, not old-style function definition.
66448         (print_errno_message): New function.
66449         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66450         char*-flavored one.
66451         (error_tail, error, error_at_line): Use it.
66452
66453 2001-10-11  Jim Meyering  <meyering@lucent.com>
66454
66455         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66456         and quote_n (1, ... to avoid clobbering a buffer.
66457
66458 2001-10-05  Jim Meyering  <meyering@lucent.com>
66459
66460         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66461         hash-pjw.h.
66462         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66463         * lib/hash-pjw.h: New file.
66464
66465 2001-09-30  Jim Meyering  <meyering@lucent.com>
66466
66467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66468         `struct fsstat' has the `f_fstypename' member.
66469         Use that to define FS_TYPE, which is now used to make
66470         the getfsstat link test tighter.
66471
66472 2001-09-30  Jim Meyering  <meyering@lucent.com>
66473
66474         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66475         Include <sys/ucred.h>, for Apple Darwin.
66476         Include sys/mount.h and sys/fs_types.h only if available.
66477         (FS_TYPE): Define.
66478         (read_filesystem_list): Use FS_TYPE.
66479
66480 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66481
66482         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66483         a boolean context.
66484
66485 2001-09-29  Jim Meyering  <meyering@lucent.com>
66486
66487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66488         [one-argument getmntent function]): Include stdio.h before mntent.h.
66489         SunOS 4.1.x needs it for the declaration of `FILE'.
66490         Patch by Volker Borchert.
66491
66492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66493         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66494         sys/fs_types.h, and make the link-test for getfsstat guard #include
66495         directives with appropriate #if HAVE_*_H tests so that we can
66496         detect getfsstat on Apple Darwin1.3.7 systems.
66497         Reported by Nelson Beebe.
66498         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66499
66500 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66501
66502         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66503         #defines strtoimax.  Also treat the other strto* functions
66504         like strtoimax.
66505
66506         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66507         Check for strtoul and strtoumax,
66508         as those declarations are made even in the signed case.
66509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66510         Likewise, for strtol and strtoimax.
66511
66512 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66513
66514         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66515         #defines strtoimax.  Also treat the other strto* functions
66516         like strtoimax.
66517
66518         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66519         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66520         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66521
66522 2001-09-26  Jim Meyering  <meyering@lucent.com>
66523
66524         Most macros in unlocked-io.h had the wrong number of arguments.
66525         * lib/gen-uio: New script.
66526         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66527         * lib/unlocked-io.hin: Remove file.
66528         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66529         rather than trying to embed it here.
66530         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66531         Reported by Padraig Brady.
66532
66533 2001-09-25  Volker Borchert  <bt@teknon.de>
66534
66535         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66536         `result'.
66537
66538 2001-09-24  Jim Meyering  <meyering@lucent.com>
66539
66540         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66541
66542 2001-09-23  Jim Meyering  <meyering@lucent.com>
66543
66544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66545         instead of the mere test for existence of mntent.h.  The latter
66546         would get a false-positive on AIX 3.4 systems.
66547         In the outer getmntent if-block, don't die if neither of the getmntent
66548         tests succeeds.  Instead, just fall through and continue with the
66549         remaining tests.
66550
66551 2001-09-23  Jim Meyering  <meyering@lucent.com>
66552
66553         * lib/mountlist.c: Remove useless parentheses in #if directives.
66554         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66555         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66556
66557 2001-09-22  Jim Meyering  <meyering@lucent.com>
66558
66559         * m4/gettext.m4: New file.  From gettext.
66560         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66561         * m4/progtest.m4: Likewise
66562         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66563         * m4/glibc21.m4: Likewise.
66564
66565         * m4/libintl.m4: Remove.  No longer used.
66566
66567 2001-09-22  Jim Meyering  <meyering@lucent.com>
66568
66569         * lib/localcharset.c: Update from latest gettext.
66570         * lib/config.charset: Likewise.
66571
66572 2001-09-20  Jim Meyering  <meyering@lucent.com>
66573
66574         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66575         strtoimax.
66576         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66577         strtoumax.
66578
66579 2001-09-20  Jim Meyering  <meyering@lucent.com>
66580
66581         * lib/xstrtol.c (strtoimax): Guard declaration with
66582         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66583         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66584         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66585         (strtoumax): Likewise, for completeness (it wasn't necessary).
66586
66587 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66588
66589         * lib/strtoimax.c (HAVE_LONG_LONG):
66590         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66591         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66592         to work around bug in IBM C compiler.
66593
66594 2001-09-17  Jim Meyering  <meyering@lucent.com>
66595
66596         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66597         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66598         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66599         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66600         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66601         whenever the right hand side need not be expanded by the shell.
66602
66603 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66604
66605         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66606         library.  It's not correct, as some older glibcs are buggy.
66607         fnmatch wasn't fixed until glibc 2.2.
66608
66609         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66610         special shell magic here.
66611
66612 2001-09-16  Jim Meyering  <meyering@lucent.com>
66613
66614         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66615         * m4/jm-macros.m4: Require it.
66616
66617 2001-09-16  Jim Meyering  <meyering@lucent.com>
66618
66619         * lib/mkdir.c: New file.
66620
66621 2001-09-15  Jim Meyering  <meyering@lucent.com>
66622
66623         * m4/jm-macros.m4: Check for help2man.
66624
66625 2001-09-11  Jim Meyering  <meyering@lucent.com>
66626
66627         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66628         The body, by Paul Eggert, was moved here from configure.in.
66629         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66630
66631 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66632
66633         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66634         (jm_PREREQ): Use it.
66635
66636 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66637
66638         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66639         Use ssize_t, not int, to store result of readlink.
66640         Check for ssize_t overflow as well as size_t overflow,
66641         as POSIX says the result of readlink is implementation-defined
66642         when ssize_t overflows.
66643         Remove unnecessary cast to char*.
66644         Use free+malloc instead of realloc, as the storage doesn't need
66645         to be preserved and it's clearer and can be more efficient that way.
66646         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66647         * lib/xreadlink.h (xreadlink): Update prototype.
66648
66649 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66650
66651         * lib/xgetcwd.c: Revert some of the previous change; intead,
66652         fix the HAVE_GETCWD_NULL code to behave more like the
66653         !HAVE_GETCWD_NULL code used to.
66654
66655         Include "xalloc.h".
66656         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66657         invoke xalloc_die.
66658
66659 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66660
66661         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66662         sys/param.h, as pathmax.h includes them.
66663
66664 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66665
66666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66667         (jm_PREREQ_XGETCWD): New macro.
66668
66669         * m4/getcwd.m4: New file.
66670
66671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66672
66673         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66674         like the HAVE_GETCWD_NULL code.
66675         Include pathmax.h if not HAVE_GETCWD.
66676         Do not include xalloc.h.
66677         (INITIAL_BUFFER_SIZE): New symbol.
66678         Do not use xmalloc / xrealloc, since the caller is responsible for
66679         handling errors.  Preserve errno around `free' during failure.
66680         Do not overrun buffer when using getwd.
66681
66682 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66683
66684         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66685         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66686         getcwd (NULL, 0).
66687
66688 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66689
66690         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66691         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66692         spotted by Jim Meyering.
66693
66694 2001-09-03  Jim Meyering  <meyering@lucent.com>
66695
66696         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66697         failure.
66698
66699 2001-09-02  Jim Meyering  <meyering@lucent.com>
66700
66701         * lib/error.c: Update from GNU libc.
66702
66703 2001-09-01  Jim Meyering  <meyering@lucent.com>
66704
66705         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66706         Used by df.
66707
66708 2001-09-01  Jim Meyering  <meyering@lucent.com>
66709
66710         * lib/xreadlink.c: New file.
66711         * lib/xreadlink.h: New file.
66712         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66713         xreadlink.h.
66714
66715         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66716         doesn't conflict with sparc Solaris 7's definition in
66717         /usr/include/sys/int_types.h.
66718
66719         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66720         files.
66721         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66722         and strncasecmp as r-values.  Unixware didn't have declarations.
66723
66724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66725
66726         * lib/xstrtol.h: Add copyright notice.
66727         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66728         LONGINT_INVALID_SUFFIX_CHAR.
66729
66730 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66731
66732         * lib/xstrtol.c (strtoimax): New decl.
66733
66734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66735
66736         * lib/xgetcwd.c: Don't include pathmax.h.
66737         Include stdlib.h and unistd.h if available.
66738         Include xalloc.h.
66739         (xmalloc, xstrdup, free): Remove decls.
66740         (xgetcwd): Don't assume sizes fit in unsigned.
66741         Check for overflow when computing sizes.
66742         Simplify reallocation code.
66743
66744 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66745
66746         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66747         a directory's st_size can have an arbitrary value, so the old
66748         usage could waste an arbitrary amount of memory.  All uses
66749         changed.
66750         * lib/savedir.h: Update prototype.
66751
66752 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66753
66754         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66755
66756         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66757         old strtoimax.c.
66758
66759         Also, make the following further changes to make this file's
66760         configuration more similar to that of strtol.c:
66761         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66762         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66763         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66764         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66765         changed to signed values.
66766
66767         And make the following changes as well:
66768         Fix copyright notice, as 1999 was missing.
66769         (verify): New macro.
66770         (strtoimax): Check sizes at compile-time, not run-time.
66771         Prefer strtol to strtoll if both work.
66772         (main): Remove; it was not that useful and was a pain to maintain.
66773
66774         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66775
66776 2001-08-31  Jim Meyering  <meyering@lucent.com>
66777
66778         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66779         Use an initial, malloc'd, buffer of length 128 rather than
66780         a statically allocated one of length 1024.
66781
66782 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66783
66784         Simplify code, partly by assuming autoconf 2.52 semantics.
66785
66786         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66787
66788         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66789         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66790         All uses removed.
66791         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66792         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66793         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66794         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66795         jm_AC_HEADER_INTTYPES_H.
66796         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66797
66798         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66799
66800         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66801         Quote first arg of AC_DEFUN.
66802         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66803         since they are needed to parse the include file even if we need
66804         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66805         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66806         but with opposite signedness.
66807
66808 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66809
66810         Merge 'exclude' changes from tar 1.13.22.
66811         This fixes one or two unlikely storage allocation overflow bugs,
66812         but doesn't change user-visible behavior otherwise.
66813
66814 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66815
66816         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66817         (jm_PREREQ_EXCLUDE): New macro.
66818
66819 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66820
66821         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66822         tm to be declared.
66823
66824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66825
66826         * lib/hash.c: Remove '2001' from copyright notice.
66827
66828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66829
66830         * lib/full-write.h: New file.
66831         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66832         * lib/full-write.c: Correct credits, as cccp.c no longer
66833         exists and anyway it was so heavily changed from the old cccp
66834         code as to be unrecognizable.  Include full-write.h.
66835         (full_write) Return size_t, with short writes meaning failure.
66836         All callers changed.  This fixes a bug with large buffers
66837         on 64-bit hosts.
66838         * lib/utime.c: Include full-write.h.
66839
66840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66841
66842         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66843         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66844         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66845         Include if available.
66846         (<xalloc.h>): Include
66847         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66848         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66849         collide with FNM macros.
66850         (struct patopts): New struct.
66851         (struct exclude): Use it, as exclude patterns now come with options.
66852         (new_exclude): Support above changes.
66853         (new_exclude, add_exclude_file):
66854         Initial size must now be a power of two to simplify overflow checking.
66855         (free_exclude, fnmatch_no_wildcards): New function.
66856         (excluded_filename): No longer requires options arg, as the options
66857         are determined by add_exclude.  Now returns bool, not int.
66858         (excluded_filename, add_exclude):
66859         Add support for the fancy new exclusion options.
66860         (add_exclude, add_exclude_file): Now takes int options arg.
66861         Check for arithmetic overflow when computing sizes.
66862         (add_exclude_file): xrealloc might modify errno, so don't
66863         realloc until after errno might be used.
66864
66865         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66866         New macros.
66867         (free_exclude): New decl.
66868         (add_exclude, add_exclude_file): Now takes int options arg.
66869         (excluded_filename): No longer requires options arg, as the options
66870         are determined by add_exclude.  Now returns bool, not int.
66871
66872 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66873
66874         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66875
66876 2001-08-27  Jim Meyering  <meyering@lucent.com>
66877
66878         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66879
66880         * lib/version-etc.c (N_): Remove definition.
66881         Revert most of last change.
66882         Instead, simply don't mark the `Copyright...' string for translation.
66883         Based on advice from Paul Eggert.
66884
66885         * lib/strtoxmax.c: Tweak comment.
66886
66887 2001-08-26  Jim Meyering  <meyering@lucent.com>
66888
66889         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66890
66891         * m4/xstrtoimax.m4: New file.
66892         * m4/xstrtoumax.m4: Add comments explaining why we
66893         AC_REPLACE_FUNCS(strtol).
66894
66895 2001-08-26  Jim Meyering  <meyering@lucent.com>
66896
66897         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66898         of copyright with `%s' so translators don't get an untranslated
66899         message in 2002.
66900         (COPYRIGHT_YEAR): Define.
66901         (version_etc): Use fprintf rather than fputs.
66902         Suggestion from Ulrich Drepper.
66903
66904         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66905
66906         * lib/strtoll.c: New file, from GNU libc.
66907         * lib/xstrtoimax.c: New file.
66908
66909         * lib/xstrtol.h: Add xstrtoimax.
66910         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66911         * lib/strtoimax.c: New file.  Likewise, but first define
66912         STRTOUXMAX_SIGNED.
66913
66914         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66915         ...
66916         * lib/strtoxmax.c: ... then renamed to this.
66917
66918 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66919
66920         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66921         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66922         (jm_AC_TYPE_INTMAX_T): New macro.
66923         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66924
66925         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66926
66927         * m4/longlong.m4: Renamed from ulonglong.m4.
66928         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66929         * m4/uintmax_t.m4: Removed.
66930
66931 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66932
66933         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66934         Port to Solaris 8, where 'sed' requires a space after the 'r'
66935         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66936         Redirect output to $tmp just once.
66937
66938 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66939
66940         * lib/addext.c (<errno.h>): Include.
66941         (errno): Declare if not defined.
66942         (addext): Work correctly when pathconf returns -1 and leaves
66943         errno alone because there is no limit.  Also, work even if
66944         pathconf returns a value greater than SIZE_MAX.
66945
66946 2001-08-12  Jim Meyering  <meyering@lucent.com>
66947
66948         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66949         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66950         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66951         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66952         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66953         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66954         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66955         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66956         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66957         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66958         utime.m4, utimes.m4, xstrtoumax.m4:
66959         Quote the first argument in each use of AC_DEFUN.
66960
66961 2001-08-12  Jim Meyering  <meyering@lucent.com>
66962
66963         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66964         Simply `return getcwd (NULL, 0);'.
66965         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66966         Use 1300 as initial value for length, not PATH_MAX.
66967
66968         * lib/pathmax.h: Clean up cpp syntax.
66969
66970 2001-08-12  Jim Meyering  <meyering@lucent.com>
66971
66972         * lib/gettimeofday.c: New file.
66973         * lib/gtod.h: New file.
66974         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66975
66976 2001-08-05  Jim Meyering  <meyering@lucent.com>
66977
66978         * m4/jm-macros.m4: Require autoconf-2.52.
66979
66980 2001-08-04  Jim Meyering  <meyering@lucent.com>
66981
66982         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66983         stmt, to get in sync with glibc.
66984
66985 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66986
66987         The following changes are from gettext 0.10.39 as maintained by
66988         Bruno Haible.
66989
66990         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66991         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66992         with inverted sense.  All uses changed.
66993
66994         * lib/mbswidth.c: Don't include <limits.h>.
66995         Include <stdlib.h> and <string.h> unconditionally.
66996         (iswcntrl, mbsinit, ISCNTRL): New macros.
66997         (mbsnwidth): Use K&R style function declarations.
66998         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66999         can optimize it when MB_CUR_MAX == 1.
67000         The width of control characters is zero, not 1.
67001
67002 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67003
67004         The following changes are from gettext 0.10.39 as maintained by
67005         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67006
67007         * m4/codeset.m4: Upgrade to serial AM1.
67008         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67009         all uses changed.  Quote first arg of AC_DEFUN.
67010         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67011
67012         * m4/iconv.m4: Upgrade to serial AM2.
67013         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67014         Add --with-libconv-prefix.
67015         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67016         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67017         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67018         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67019         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67020
67021         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67022         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67023         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67024         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67025         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67026         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67027         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67028         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67029         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67030
67031         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67032         string.h any more.
67033
67034         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67035         not the default value.
67036
67037         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67038         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67039         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67040         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67041         Also check for iswcntrl, used for wcwidth fallback.
67042         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67043         to Autoconf 2.13.
67044
67045 2001-08-03  Jim Meyering  <meyering@lucent.com>
67046
67047         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67048         as it was in the original.  Reported by Paul Eggert.
67049
67050 2001-07-16  Jim Meyering  <meyering@lucent.com>
67051
67052         * m4/gettimeofday.m4: New file.
67053         Prompted by a report from Bernhard Baehr.
67054
67055 2001-07-15  Jim Meyering  <meyering@lucent.com>
67056
67057         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67058         stuff. Now it's in ../Makefile.cfg.
67059
67060 2001-07-15  Jim Meyering  <meyering@lucent.com>
67061
67062         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67063         (BUILT_SOURCES): Add unlocked-io.h.
67064         (io_functions): Define.
67065         (unlocked-io.h): New rule.
67066         (DISTCLEANFILES): Add unlocked-io.h.
67067         (all-local): Depend on unlocked-io.h, to ensure it is created.
67068
67069         * lib/unlocked-io.hin: New file
67070
67071         * lib/regex.c: Update from glibc.
67072
67073 2001-07-05  Jim Meyering  <meyering@lucent.com>
67074
67075         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67076         recommendation.
67077         (libfetish_a_SOURCES): Put all .h files here instead.
67078         Remove a thus-exposed (better checks in automake) duplicate and
67079         two unnecessary .h files.
67080
67081 2001-07-04  Jim Meyering  <meyering@lucent.com>
67082
67083         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67084         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67085         distcheck failure.
67086
67087 2001-07-02  Jim Meyering  <meyering@lucent.com>
67088
67089         The following changes were prompted by suggestions from Bruno Haible.
67090
67091         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67092         is now generated.
67093         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67094         definition of EXTRA_DIST.
67095         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67096         ensure that the generated file is created/updated whenever the list
67097         of $(unlocked_functions) is changed.
67098         (jm-glibc-io.m4): New rule.
67099         (unlocked-io.h): New rule -- currently unused.
67100
67101 2001-06-24  Jim Meyering  <meyering@lucent.com>
67102
67103         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67104         unmatched right bracket, rather than kludging it with an extra,
67105         falsely-matching quote in a comment.  Patch by Akim Demaille.
67106
67107 2001-06-11  Jim Meyering  <meyering@lucent.com>
67108
67109         * lib/regex.c: Update from GNU libc.
67110
67111 2001-05-27  Jim Meyering  <meyering@lucent.com>
67112
67113         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67114         Check for ut_type in struct utmp.
67115
67116 2001-05-27  Jim Meyering  <meyering@lucent.com>
67117
67118         * lib/readutmp.h (UT_TYPE): Define.
67119
67120 2001-05-24  Jim Meyering  <meyering@lucent.com>
67121
67122         * lib/argmatch.c: Include "quote.h".
67123         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67124         quote function.  Reported by Göran Uddeborg.
67125
67126 2001-05-22  Jim Meyering  <meyering@lucent.com>
67127
67128         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67129         now that we use the package-supplied version unconditionally.
67130         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67131
67132 2001-05-21  Jim Meyering  <meyering@lucent.com>
67133
67134         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67135         shell syntax errors.
67136
67137 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67138
67139         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67140
67141 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67142
67143         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67144         Don't bother to check library strftime, since
67145         we'll be using our own my_strftime function anyway.
67146         Define my_strftime instead of strftime.
67147
67148 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67149
67150         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67151         which is not yet declared.
67152
67153 2001-05-15  Jim Meyering  <meyering@lucent.com>
67154
67155         * m4/regex.m4: Use proper quoting so brackets appear in the test
67156         program.
67157         Reported by, and with help from, Bruno Haible.
67158
67159 2001-05-13  Jim Meyering  <meyering@lucent.com>
67160
67161         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67162         undefined.
67163
67164 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67165
67166         dirname code cleanup.  base_name now behaves more compatibly
67167         with POSIX basename when given file names that have trailing
67168         slashes, and similarly for dir_name.  Add new primitives
67169         base_len and dir_len.  Put the directory-name-related decls
67170         into dirname.h.
67171
67172         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67173         * lib/backupfile.c (base_name): Likewise.
67174         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67175         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67176         * lib/makepath.c (strip_trailing_slashes): Likewise.
67177         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67178         ISSLASH): Likewise.
67179         * lib/rename.c (strip_trailing_slashes): Likewise.
67180         * lib/same.c (base_name): Likewise.
67181         * lib/stripslash.c (ISSLASH): Likewise.
67182
67183         * lib/addext.c: Include <dirname.h> after size_t is defined.
67184         * lib/backupfile.c: Likewise.
67185
67186         * lib/addext.c (addext): Use base_len to trim redundant
67187         trailing slashes instead of doing it ourselves.
67188         But do not trim the last slash if it is not redundant.
67189
67190         * lib/backupfile.c (find_backup_file_name,
67191         max_backup_version): Use base_len instead of rolling it ourselves.
67192         Handle the case of "" and (on DOS) "C:" correctly.
67193
67194         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67195         needed. Include <string.h>, <dirname.h>.
67196         (base_name): Allow file names ending in slashes, other than names
67197         that are all slashes.  In this case, return the basename followed
67198         by the slashes.  This is more general, and can be used in places
67199         where the original base_name purposely had an assertion failure.
67200         (base_len): New function.
67201
67202         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67203         Do not include <assert.h>; no longer needed.
67204         Include xalloc.h.
67205         (memrchr): Remove decl.
67206         (dir_name_r): Remove.
67207         (dir_len): Renamed from dirlen.  All callers changed.
67208         Rewrite in terms of base_name, for simplicity and consistency.
67209         (dir_name): Never return NULL.  All callers changed.
67210         Do not include <stdlib.h> in test program; no longer needed.
67211         return 0; is fine for test program.
67212
67213         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67214         New macros.
67215         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67216
67217         * lib/path-concat.c (path_concat): Use base_len to compute
67218         base length, not strlen; this means we cannot rely on memcpy
67219         to null-terminate.
67220
67221         * lib/same.c (STREQ): Remove.
67222         (same_name): Handle the case where the basename ends in trailing '/'.
67223
67224         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67225         a slash was stripped.  Do not strip the last slash after a
67226         file system prefix.
67227
67228 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67229
67230         * lib/Makefile.am (libfetish_a_SOURCES):
67231         Add strftime.c, since we now compile it on all hosts.
67232
67233         * lib/strftime.c (my_strftime):
67234         Define to nstrftime if emacs, but only if my_strftime is not defined.
67235         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67236         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67237         Add one more extra argument: a nanoseconds value.
67238         All uses changed.
67239         (ns): New macro.
67240         (my_strftime function): Add %N format.
67241         (emacs_strftimeu): Renamed from emacs_strftime,
67242         with extra ut argument.
67243
67244 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67245
67246         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67247
67248 2001-04-21  Jim Meyering  <meyering@lucent.com>
67249
67250         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67251         doesn't interfere.
67252
67253 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67254
67255         * m4/ftruncate.m4: Check for chsize.
67256         Link with ftruncate.o unconditionally if ftruncate is missing.
67257         This was required when cross-compiling to i586-mingw32msvc.
67258
67259 2001-04-08  Jim Meyering  <meyering@lucent.com>
67260
67261         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67262         recomputed; that's necessary when the offset spans a DST transition.
67263         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67264
67265 2001-04-02  Jim Meyering  <meyering@lucent.com>
67266
67267         * lib/regex.h, regex.c: Update from GNU libc.
67268
67269 2001-03-24  Jim Meyering  <meyering@lucent.com>
67270
67271         * m4/jm-macros.m4: Require autoconf-2.49d.
67272
67273 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67274
67275         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67276
67277 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67278
67279         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67280
67281 2001-03-17  Jim Meyering  <meyering@lucent.com>
67282
67283         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67284         now that the version in autoconf is equivalent.
67285         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67286
67287         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67288         Suggestion from Akim Demaille.
67289
67290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67291         (jm_PREREQ_TEMPNAME): New function.
67292
67293 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67294
67295         * lib/tempname.c (uint64_t): Define to uintmax_t if
67296         not defined, and if UINT64_MAX is not defined.
67297         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67298         Reported by John David Anglin.
67299
67300 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67301
67302         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67303         resolve alias if codeset is empty.
67304         * lib/config.charset (BeOS): Use wildcard syntax.
67305
67306 2001-03-13  Jim Meyering  <meyering@lucent.com>
67307
67308         * lib/path-concat.c (path_concat)
67309         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67310         concatenating e.g., `C:' and `foo'.
67311         From Bruno Haible.
67312
67313 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67314
67315         * lib/localcharset.c (locale_charset): Don't use
67316         setlocale(LC_CTYPE,NULL). Don't return NULL.
67317         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67318
67319 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67320
67321         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67322         support for DOS/DJGPP.
67323
67324 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67325
67326         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67327         lacks mkstemp.  Compile our own tempname.c if we compile our own
67328         mkstemp.c, as mkstemp relies on tempname.
67329
67330 2001-03-01  Jim Meyering  <meyering@lucent.com>
67331
67332         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67333         AH_VERBATIM really does output its argument verbatim.
67334
67335 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67336
67337         * lib/Makefile.am (libfetish_a_SOURCES):
67338         Add dup-safer.c, fopen-safer.c.
67339         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67340
67341         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67342         * lib/unistd-safer.h: New files.
67343
67344 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67345
67346         The mkstemp replacement is taken from glibc 2.2.2, with some
67347         portability fixes for use outside glibc, as follows:
67348
67349         * lib/tempname.c (struct_stat64): New macro.
67350         (direxists, __gen_tempname): Use it.
67351         This avoids a portability problem with Solaris 8.
67352
67353         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67354         (<stddef.h>, <stdint.h>, <string.h>):
67355         Include only if STDC_HEADERS || _LIBC.
67356         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67357         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67358         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67359         (__set_errno): Define this macro if <errno.h> doesn't.
67360         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67361         Define these macros if <stdio.h> doesn't.
67362         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67363         Define these macros if <sys/stat.h>
67364         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67365         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67366         __xstat64): Define if not _LIBC.
67367         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67368         (__gen_tempname): Invoke gettimeofday only if
67369         HAVE_GETTIMEOFDAY || _LIBC;
67370         otherwise, fall back on plain "time".
67371         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67372
67373         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67374
67375         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67376
67377 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67378
67379         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67380
67381 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67382
67383         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67384         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67385         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67386         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67387
67388 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67389
67390         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67391         Remove workaround macros for hosts that have mbrtowc but not
67392         mbstate_t, as we now insist on proper declarations for both
67393         before using mbrtowc.
67394
67395 2001-02-17  Jim Meyering  <meyering@lucent.com>
67396
67397         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67398         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67399         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67400         UnixWare 7.1.1.
67401
67402         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67403         rather than AC_CACHE_VAL.
67404
67405 2001-02-17  Jim Meyering  <meyering@lucent.com>
67406
67407         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67408         around included file name.
67409
67410         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67411
67412         * lib/strftime.c: Update from GNU libc (the only changes were to
67413         comments).
67414
67415 2001-02-17  Jim Meyering  <meyering@lucent.com>
67416
67417         * lib/regex.c: Update from libc.
67418
67419 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67420
67421         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67422         clash.
67423
67424 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67425
67426         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67427         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67428         Reported by Mark Hounschell via Paul Eggert.
67429
67430 2001-02-07  Jim Meyering  <meyering@lucent.com>
67431
67432         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67433
67434 2001-02-05  Jim Meyering  <meyering@lucent.com>
67435
67436         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67437         it includes the patch required for `large file' support with at least
67438         HP-UX's 10.20 /bin/cc.
67439
67440 2001-02-03  Jim Meyering  <meyering@lucent.com>
67441
67442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67443         AS_IF, now that it works once again (mysteriously).
67444         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67445
67446 2001-01-30  Jim Meyering  <meyering@lucent.com>
67447
67448         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67449         * m4/chown.m4: Rename conftestchown to conftest.chown.
67450         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67451         s/conftestdir2/conftest.d2/.
67452         * m4/utimes.m4: s/conftestdata/conftest.data/
67453         Inspired by Pavel Roskin's change in autoconf.
67454
67455 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67456
67457         * lib/config.charset: Update for FreeBSD 4.2.
67458
67459 2001-01-27  Jim Meyering  <meyering@lucent.com>
67460
67461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67462         a use of AS_IF.
67463         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67464
67465 2001-01-26  Jim Meyering  <meyering@lucent.com>
67466
67467         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67468         quotearg.c includes it.
67469
67470 2001-01-26  Jim Meyering  <meyering@lucent.com>
67471
67472         * lib/quotearg.c: Include stddef.h.
67473         * lib/quote.c: Include stddef.h.
67474         Reported by Axel Kittenberger.
67475
67476         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67477         line in double quotes so that it evokes a better diagnostic.
67478         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67479         Reported by Axel Kittenberger.
67480
67481 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67482
67483         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67484         as if it was a `charset'.
67485
67486 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67487
67488         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67489         has const.
67490
67491 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67492
67493         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67494         to avoid a warning.  Add back 'const' to inptr.
67495
67496 2001-01-20  Jim Meyering  <meyering@lucent.com>
67497
67498         Be sure that headers are checked before used in code compiled
67499         for the type checks.
67500         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67501         In place of that, invoke jm_CHECK_ALL_TYPES.
67502         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67503         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67504         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67505         The check for ssize_t was mistakenly run before the test for unistd.h.
67506
67507         The configure-time check for stdbool.h was missing.
67508         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67509         (jm_PREREQ_HASH): New function.
67510
67511 2001-01-17  Jim Meyering  <meyering@lucent.com>
67512
67513         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67514         for autoconf-2.49c.
67515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67516
67517 2001-01-16  Jim Meyering  <meyering@lucent.com>
67518
67519         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67520         From Bruno Haible.
67521
67522 2001-01-14  Jim Meyering  <meyering@lucent.com>
67523
67524         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67525         foo and bar.  Create conftestdir/ in the script, not in the C code.
67526         Remove directories in the script, not in the C code.
67527         Remove conftestdir{,2} before trying to create the directory.
67528         Make the entire configure script fail if the mkdir fails.
67529
67530 2001-01-14  Jim Meyering  <meyering@lucent.com>
67531
67532         * lib/rename.c: New file.  From Volker Borchert.
67533         Include stdlib.h, string.h or strings.h, and xalloc.h.
67534         Use strip_trailing_slashes rather than open-coding it.
67535
67536 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67537
67538         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67539
67540 2001-01-03  Jim Meyering  <meyering@lucent.com>
67541
67542         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67543         of local `inptr' to avoid warning with some system declarations of
67544         iconv.
67545
67546 2001-01-02  Volker Borchert  <bt@teknon.de>
67547
67548         * m4/rename.m4: New file.
67549         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67550
67551 2001-01-01  Jim Meyering  <meyering@lucent.com>
67552
67553         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67554         even on systems with utmpx.h.  It's necessary for the declaration of
67555         utmp's ut_user member.  Reported by Andreas Jaeger.
67556
67557         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67558         available. They are required for the declarations of getgrgid and
67559         getpwuid resp.
67560         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67561         Reported by Andreas Jaeger.
67562
67563 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67564
67565         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67566         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67567         so `make install' also works in VPATH builds.
67568
67569 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67570
67571         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67572         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67573         can be used in subdirectories.
67574
67575 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67576
67577         * lib/modechange.c: Do not assume that mode_t uses the
67578         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67579         the other-execute bit of FOO even if S_IXOTH != 1.
67580
67581         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67582         WOTH, XOTH, ALLM): New macros.
67583         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67584          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67585         Use them.
67586         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67587         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67588         (mode_compile):
67589         No need to use uintmax_t; unsigned long is long enough.
67590         Don't bother to get suffix since we don't use it.
67591
67592 2000-12-26  Jim Meyering  <meyering@lucent.com>
67593
67594         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67595         better with autoheader.
67596
67597 2000-12-24  Jim Meyering  <meyering@lucent.com>
67598
67599         * lib/hash.c (is_prime): Return explicit boolean values.
67600         (hash_get_first): Return NULL to appease Irix5.6's 89.
67601         Reported by Nelson Beebe.
67602
67603 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67604
67605         * lib/localcharset.c (locale_charset): Add support for Win32.
67606
67607 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67608
67609         * lib/physmem.h, lib/physmem.c: New files.
67610
67611         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67612         (noinst_HEADERS): Add physmem.h.
67613
67614         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67615         't' for compatibility with Solaris 8 sort.
67616
67617 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67618
67619         * lib/config.charset: Add support for BeOS.
67620
67621 2000-12-17  Jim Meyering  <meyering@lucent.com>
67622
67623         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67624         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67625
67626 2000-12-16  Jim Meyering  <meyering@lucent.com>
67627
67628         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67629         N and M) would have treated it like `chown N:N FILE'.
67630
67631         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67632
67633 2000-12-16  Jim Meyering  <meyering@lucent.com>
67634
67635         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67636         SHELLS_FILE to a file name that's useful on djgpp systems.
67637         Include stdlib.h.
67638         (ADDITIONAL_DEFAULT_SHELLS): Define.
67639         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67640         Based mostly on a patch from Prashant TR.
67641
67642 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67643
67644         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67645         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67646         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67647
67648 2000-12-08  Andreas Schwab  <schwab@suse.de>
67649
67650         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67651         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67652
67653 2000-12-07  Jim Meyering  <meyering@lucent.com>
67654
67655         * lib/stripslash.c (ISSLASH): Define.
67656         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67657         `/'.
67658         From Prashant TR.
67659
67660         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67661         (dir_name_r): Declare this function as static.
67662         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67663         manifest itself on a name containing a mix of slashes and
67664         backslashes.
67665         Make this function work with names starting with a DOS-style
67666         drive letter and colon prefix.
67667         (dir_name): Append `.' if necessary.
67668         Based mostly on patches from Prashant TR and Eli Zaretskii.
67669
67670         * lib/dirname.h (dir_name_r): Remove prototype.
67671
67672 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67673
67674         * m4/off_t-format.m4: Remove this file.
67675         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67676
67677 2000-12-06  Jim Meyering  <meyering@lucent.com>
67678
67679         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67680         replacement strtoull, we may well need the replacement strtoul, too.
67681         Check for declarations of strtoul and strtoull.
67682         Check for strtol.  Mainly as a cue to cause automake to include
67683         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67684         Check for limits.h -- strtol.c needs it.
67685
67686 2000-12-05  Jim Meyering  <meyering@lucent.com>
67687
67688         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67689
67690 2000-12-04  Jim Meyering  <meyering@lucent.com>
67691
67692         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67693         Also include memory.h, stdlib.h, unistd.h if appropriate.
67694         Reported by Andreas Jaeger (conflicting declaration of malloc).
67695
67696 2000-12-02  Jim Meyering  <meyering@lucent.com>
67697
67698         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67699         * m4/jm-macros.m4 (jm_MACROS): require it.
67700
67701 2000-12-02  Jim Meyering  <meyering@lucent.com>
67702
67703         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67704
67705 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67706
67707         * lib/memrchr.c: Include <config.h> before any system include file.
67708
67709 2000-11-30  Jim Meyering  <meyering@lucent.com>
67710
67711         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67712
67713 2000-11-30  Jim Meyering  <meyering@lucent.com>
67714
67715         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67716
67717 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67718
67719         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67720
67721 2000-11-26  Jim Meyering  <meyering@lucent.com>
67722
67723         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67724
67725 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67726
67727         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67728         size of (size_t) -1; it's not portable.
67729
67730 2000-11-17  Jim Meyering  <meyering@lucent.com>
67731
67732         * lib/strstr.c: Update from GNU libc.
67733
67734 2000-11-17  Akim Demaille  <akim@epita.fr>
67735
67736         * lib/obstack.h: Formatting changes.
67737         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67738         prevent type checking.
67739         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67740         cast the value to (void *): assigning a `foo *' to a `void *'
67741         variable is valid.
67742         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67743
67744 2000-11-16  Jim Meyering  <meyering@lucent.com>
67745
67746         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67747
67748 2000-11-11  Jim Meyering  <meyering@lucent.com>
67749
67750         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67751
67752 2000-11-10  Jim Meyering  <meyering@lucent.com>
67753
67754         * lib/obstack.h: Update from GNU libc.
67755         * lib/obstack.c: Likewise.
67756
67757 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67758
67759         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67760
67761 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67762
67763         * lib/getusershell.c (setusershell): Use rewind rather than
67764         fseek/fseeko, to avoid configuration hassles with fseeko.
67765         Don't bother opening SHELLS_FILE if shellstream is NULL;
67766         it's not necessary.
67767
67768 2000-11-05  Jim Meyering  <meyering@lucent.com>
67769
67770         * lib/makepath.h (make_dir): Declare.
67771         * lib/makepath.c (make_dir): Remove `static' attribute.
67772         Tweak a comment.
67773
67774 2000-11-04  Jim Meyering  <meyering@lucent.com>
67775
67776         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67777
67778 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67779
67780         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67781         last one in a bucket, advance to the next bucket.
67782
67783 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67784
67785         * lib/fnmatch.c: Do not comment out all the code if we are using
67786         the GNU C library, because in some cases we are replacing buggy
67787         code in the GNU C library itself.
67788
67789 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67790
67791         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67792         (regex_compile): Catch bogus \(\1\).
67793
67794 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67795
67796         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67797         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67798         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67799
67800 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67801
67802         * lib/error.h, getline.h, modechange.h:
67803         Remove "2000" from Copyright line, as the file hasn't been
67804         changed this year other than in the copyright notice.
67805
67806         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67807         was changed this year.
67808
67809 2000-10-29  Jim Meyering  <meyering@lucent.com>
67810
67811         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67812         renaming.
67813         * m4/ls-mntd-fs.m4: Likewise
67814
67815 2000-10-29  Jim Meyering  <meyering@lucent.com>
67816
67817         * lib/xstat.in: Fix grammar in comment.
67818
67819 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67820
67821         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67822         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67823         doesn't define __restrict_arr.
67824
67825 2000-10-28  Jim Meyering  <meyering@lucent.com>
67826
67827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67828         (jm_PREREQ_MEMCHR): New function.
67829
67830 2000-10-28  Jim Meyering  <meyering@lucent.com>
67831
67832         * lib/memchr.c: Update from libc.
67833         Adjust for portability:
67834         [HAVE_STDLIB_H]: Include stdlib.h.
67835         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67836         Undef __memchr, too.
67837         [!weak_alias]: Define __memchr to memchr.
67838
67839         * lib/regex.c: Update from libc.
67840         * lib/regex.h: Likewise.
67841         * lib/getopt1.c: Likewise.
67842         * lib/memcmp.c: Likewise.
67843
67844         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67845         Avoid using fseek, when possible -- it's broken by design.
67846         Patch by Ulrich Drepper.
67847
67848 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67849
67850         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67851         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67852         Giving in to popular pressure to shut up the compiler with casts.
67853
67854 2000-10-26  Jim Meyering  <meyering@lucent.com>
67855
67856         * lib/strftime.c: Update from libc.
67857
67858 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67859
67860         * regex.c: More `unsigned char' -> `re_char' changes.
67861         Also change several `int' into `re_wchar_t'.
67862         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67863         (PUSH_FAILURE_POINTER): Don't cast any more.
67864         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67865         We want GCC to complain, since this piece of code makes
67866         re_match non-reentrant, which *should* be fixed.
67867         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67868         (EXTEND_BUFFER): Use RETALLOC.
67869         (SET_LIST_BIT): Don't cast.
67870         (re_wchar_t): New type.
67871         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67872         that those two functions will always properly return.
67873         (IMMEDIATE_QUIT_CHECK): Cast to void.
67874         (analyse_first): Use recursion rather than an explicit stack.
67875         (re_compile_fastmap): Can't fail anymore.
67876         (re_search_2): Don't check re_compile_fastmap for failure.
67877         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67878         Now also sets the new value (passed in a new argument).
67879         (re_match_2_internal): Use it.
67880         Also, use a new var `reg' of type size_t when looping through regs
67881         rather than reuse the inappropriate `mcnt'.
67882
67883 2000-10-25  Jim Meyering  <meyering@lucent.com>
67884
67885         * lib/obstack.c: Update from libc.
67886
67887 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67888
67889         * regex.c (regex_compile): Change the way of handling a range from
67890         a char less than 256 to a char not less than 256.
67891
67892 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67893
67894         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67895         NT-Emacs only.
67896         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67897         so that re_search functions only quit when callers expect them to.
67898
67899 2000-10-23  Jim Meyering  <meyering@lucent.com>
67900
67901         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67902         wrong.  That set_locale call must not have any side effects.
67903         From Paul Eggert.
67904
67905 2000-10-22  Jim Meyering  <meyering@lucent.com>
67906
67907         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67908         [CYCLIC]: Remove now-unused definition.
67909
67910         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67911         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67912         Suggestion from Ulrich Drepper.
67913
67914 2000-10-21  Jim Meyering  <meyering@lucent.com>
67915
67916         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67917         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67919
67920 2000-10-21  Jim Meyering  <meyering@lucent.com>
67921
67922         * lib/dirname.c (memrchr): Declare if necessary.
67923         (dir_name): Remove the restriction that there be no
67924         trailing slashes.  Now, this code skips past them, effectively
67925         ignoring them.
67926         [TEST_DIRNAME] (main): New unit tests.
67927
67928         * lib/memrchr.c: New file from GNU libc.
67929         Undef __memrchr, too.
67930         [!weak_alias]: Define __memrchr to memrchr.
67931         Guard weak_alias use with `#ifdef weak_alias'.
67932
67933 2000-10-21  Jim Meyering  <meyering@lucent.com>
67934
67935         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67936         (dir_name): Use dir_name_r.
67937         * lib/dirname.h (dir_name_r): Declare it.
67938
67939 2000-10-17  Jim Meyering  <meyering@lucent.com>
67940
67941         * lib/quote.h (PARAMS): Define and use.
67942         Reported by Akim Demaille.
67943
67944         * lib/getopt.c: Update from libc.
67945
67946 2000-10-16  Jim Meyering  <meyering@lucent.com>
67947
67948         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67949         setlocale.
67950         From Jan Fedak.
67951
67952 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67953
67954         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67955
67956 2000-09-25  Jim Meyering  <meyering@lucent.com>
67957
67958         * lib/md5.h (rol): Define (from GnuPG).
67959
67960         * lib/sha.c: Give credit (GnuPG) where due.
67961         (M): Use rol rather than open-coding it.
67962         Add a FIXME comment.
67963
67964 2000-09-21  Jim Meyering  <meyering@lucent.com>
67965
67966         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67967         Reported by Michael Stone.
67968
67969 2000-09-20  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67972         (noinst_HEADERS): Add sha.h.
67973         Based on code from Scott G. Miller and from GnuPG.
67974
67975 2000-09-18  Jim Meyering  <meyering@lucent.com>
67976
67977         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67978         LIBS. Otherwise, everyone ends up linking with -lelf for some
67979         configurations.
67980         Reported by Mike Stone.
67981
67982 2000-09-15  Jim Meyering  <meyering@lucent.com>
67983
67984         * lib/regex.c: Update from libc.
67985
67986 2000-09-10  Jim Meyering  <meyering@lucent.com>
67987
67988         * lib/getopt.c (_getopt_internal): Update from glibc.
67989
67990 2000-09-09  Jim Meyering  <meyering@lucent.com>
67991
67992         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67993         think it should be used as a general replacement for isascii.
67994         * lib/fnmatch.c: Likewise.
67995         * lib/mbswidth.c: Likewise
67996         * lib/regex.c: Likewise.
67997
67998         Don't use atoi.
67999         * lib/userspec.c: Include sys/param.h and limits.h.
68000         Include xstrtol.h.
68001         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68002         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68003         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68004         UID, GID.  Check range.
68005
68006 2000-09-06  Jim Meyering  <meyering@lucent.com>
68007
68008         * lib/getopt.c (_getopt_internal): Update from glibc.
68009
68010 2000-08-30  Jim Meyering  <meyering@lucent.com>
68011
68012         * lib/strftime.c: Merge in changes from GNU libc.
68013
68014 2000-08-26  Jim Meyering  <meyering@lucent.com>
68015
68016         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68017         * m4/fpending.m4: New file.
68018
68019 2000-08-26  Jim Meyering  <meyering@lucent.com>
68020
68021         * lib/closeout.c: Include "__fpending.h".
68022         (close_stdout_status): Return right away if there's nothing to flush.
68023
68024         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68025         * lib/__fpending.c: New file.
68026         * lib/__fpending.h: New file.
68027
68028 2000-08-20  Jim Meyering  <meyering@lucent.com>
68029
68030         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68031         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68032         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68033
68034 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68035
68036         Improve fileutils installation on systems where running
68037         programs (like install) can't be unlinked.
68038         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68039         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68040
68041 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68042
68043         Standardize on "memory exhausted" instead of "Memory exhausted"
68044         or "virtual memory exhausted".
68045         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68046         "virtual memory exhausted".
68047         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68048         our own message.
68049         * lib/userspec.c (parse_user_spec): Likewise.
68050         * lib/bumpalloc.h: comment fix
68051         * lib/same.c, userspec.c: Include xalloc.h.
68052
68053         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68054         not char *const and pointing to a constant array.
68055         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68056         (xrealloc): Comment fix.
68057
68058         * lib/userspec.c (parse_user_spec):
68059         Don't translate a message until just before returning,
68060         to avoid unnecessary translation.
68061
68062 2000-08-07  Jim Meyering  <meyering@lucent.com>
68063
68064         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68065         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68066         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68067         getgroups.c, gethostname.c, getopt.h, group-member.c,
68068         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68069         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68070         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68071         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68072         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68073         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68074         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68075         yesno.c: Back out Copyright date changes for each file with no change
68076         this year.  This eases coordination with other programs using the same
68077         source code modules.  From Paul Eggert.
68078
68079 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68080
68081         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68082         not char, for compatibility with glibc 2.1.3 strftime.c.
68083
68084 2000-08-03  Greg McGary  <greg@mcgary.org>
68085
68086         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68087         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68088         (EXTEND_BUFFER): Use them.
68089
68090 2000-08-01  Jim Meyering  <meyering@lucent.com>
68091
68092         * lib/dirname.c (ISSLASH): Define.
68093         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68094         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68095         both `\' and `/' may be use as path separators.
68096         Based on a patch from Prashant TR.
68097
68098 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68099
68100         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68101         slot vector a constant, since it might get modified.
68102
68103 2000-07-31  Jim Meyering  <meyering@lucent.com>
68104
68105         * lib/xmalloc.c: Use `virtual memory exhausted', not
68106         `Memory exhausted'.
68107         * lib/obstack.c (print_and_abort): Likewise.
68108
68109 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68110
68111         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68112         buffer, so that the caller can always quote one small
68113         component of a "memory exhausted" message in slot 0.
68114         From a suggestion by Jim Meyering.
68115
68116 2000-07-30  Jim Meyering  <meyering@lucent.com>
68117
68118         * lib/makepath.c (make_path): Quote the other instance, too.
68119
68120         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68121         (STATIC_BUF_SIZE): Define.
68122         (quotearg_n_options): Use only statically allocated storage when
68123         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68124         than STATIC_BUF_SIZE.
68125
68126 2000-07-29  Jim Meyering  <meyering@lucent.com>
68127
68128         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68129         * lib/dirname.c (dir_name): Likewise.
68130
68131         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68132         `/'.
68133
68134         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68135         (dir_name): Assert that there are no trailing slashes.
68136
68137 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68138
68139         * lib/mbswidth.h (mbswidth): Add a flags argument.
68140         (mbswidth): New declaration.
68141         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68142         * lib/mbswidth.c (mbswidth): Add a flags argument.
68143         (mbsnwidth): New function.
68144
68145 2000-07-24  Jim Meyering  <meyering@lucent.com>
68146
68147         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68148
68149 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68150
68151         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68152
68153 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68154
68155         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68156         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68157         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68158         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68159         invoke multibyte primitives.
68160
68161 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68162
68163         * lib/quotearg.c:
68164         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68165         so that mbstate_t is always defined.
68166
68167         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68168         be 1 in at least one GCC installation, and this configuration
68169         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68170         performance on hosts that have mbrtowc but have only unibyte
68171         locales, but I assume these hosts are rare.
68172
68173 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68174
68175         * lib/mbswidth.c (_XOPEN_SOURCE):
68176         Don't define; this causes problems on Solaris 7.
68177         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68178
68179 2000-07-23  Jim Meyering  <meyering@lucent.com>
68180
68181         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68182         too: getgrgid, getpwuid, getuid.
68183
68184 2000-07-23  Jim Meyering  <meyering@lucent.com>
68185
68186         * lib/basename.c (base_name): Add an assertion.
68187
68188 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68189
68190         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68191         shadow its mbsinit function.
68192
68193 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68194
68195         * lib/mbswidth.h: New file.
68196         * lib/mbswidth.c: New file.
68197         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68198         (noinst_HEADERS): Add mbswidth.h.
68199
68200 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68201
68202         * lib/config.charset: Add support for FreeBSD. Improve support for
68203         HP-UX and IRIX 6.
68204
68205 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68206
68207         * m4/mbswidth.m4: New file.
68208         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68209
68210 2000-07-15  Jim Meyering  <meyering@lucent.com>
68211
68212         * lib/makepath.c: Include quote.h.
68213         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68214         corresponding argument in a `quote (...)' call.
68215         Give better diagnostics.
68216
68217         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68218         (noinst_HEADERS): Add quote.h.
68219
68220         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68221         from tar's src/misc.c.
68222         * lib/quote.h: New file.  Prototypes for same.
68223
68224 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68225
68226         From a suggestion by Bruno Haible.
68227         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68228         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68229         to decide whether to define the BeOS workaround macro;
68230         this adjusts to the change to AC_MBSTATE_T.
68231
68232 2000-07-14  Jim Meyering  <meyering@lucent.com>
68233
68234         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68235         jm_AC_TYPE_UINTMAX_T.
68236
68237 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68238
68239         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68240
68241         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68242         quotearg_buffer_restyled): Add support for
68243         clocale_quoting_style.  Undo previous change to
68244         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68245         and "{RIGHT QUOTATION MARK}" msgids.
68246
68247 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68248
68249         From a suggestion by Bruno Haible.
68250         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68251         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68252         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68253         and mbstate_t, to a single-part test that simply defines mbstate_t.
68254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68255         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68256
68257 2000-07-10  Jim Meyering  <meyering@lucent.com>
68258
68259         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68260
68261         * m4/gnu-source.m4: Output to confdefs.h directly.
68262         Suggestion from Akim Demaille.
68263
68264 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68265
68266         The old behavior of quoting `like this' doesn't look good with
68267         newer, ISO-style fonts.  See:
68268         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68269
68270         Instead, quote "like this" by default.  Let the translator
68271         tailor the locale-specific quoting behavior by providing
68272         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68273
68274         * lib/quotearg.c (N_): New macro.
68275         (gettext_default): New function.
68276         (quotearg_buffer_restyled): Use
68277         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68278         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68279
68280 2000-07-09  Jim Meyering  <meyering@lucent.com>
68281
68282         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68283         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68284
68285         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68287
68288 2000-07-09  Jim Meyering  <meyering@lucent.com>
68289
68290         * lib/Most files: Update copyright dates to include 2000.
68291
68292 2000-07-08  Jim Meyering  <meyering@lucent.com>
68293
68294         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68295         if not defined.
68296         (xgethostname): Remove now-unnecessary #ifdef.
68297         Move declaration of `err' into loop where it's used.
68298
68299 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68300         and Bruno Haible  <haible@clisp.cons.org>
68301
68302         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68303         only if the test for an object-type mbstate_t fails.  This
68304         prevents us from mistakenly reporting that mbstate_t is a
68305         system object type after we "#define mbstate_t int" to work
68306         around its lack.
68307
68308 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68309         and Bruno Haible  <haible@clisp.cons.org>
68310
68311         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68312
68313 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68314
68315         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68316         to strerror_r.
68317         Include <ctype.h> for use of isalpha.
68318
68319 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68320
68321         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68322         by allocating a larger buffer. Test the gethostname return value for
68323         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68324         returns an error and ENAMETOOLONG isn't defined.
68325
68326 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68327
68328         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68329         dimension.
68330
68331 2000-07-04  Jim Meyering  <meyering@lucent.com>
68332
68333         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68334         of the deprecated AC_CHECKING.
68335
68336 2000-07-04  Jim Meyering  <meyering@lucent.com>
68337
68338         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68339         Reported by Bruno Haible.
68340
68341 2000-07-04  Jim Meyering  <meyering@lucent.com>
68342
68343         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68344         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68345         lacks mbrtowc.
68346
68347 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68348
68349         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68350         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68351
68352 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68353         and Bruno Haible  <haible@clisp.cons.org>
68354
68355         * lib/quotearg.c (mbrtowc):
68356         Assign to *pwc, and return 1 only if result is nonzero.
68357         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68358
68359 2000-07-03  Jim Meyering  <meyering@lucent.com>
68360
68361         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68362
68363 2000-07-03  Jim Meyering  <meyering@lucent.com>
68364
68365         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68366         This is necessary to get a definition of e.g., UTMP_FILE on
68367         HP-UX 10.20.
68368         From Bob Proulx.
68369
68370 2000-07-02  Jim Meyering  <meyering@lucent.com>
68371
68372         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68373
68374         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68375         AC_LIBOBJ(function_name).
68376         * m4/chown.m4: Likewise.
68377         * m4/fnmatch.m4: Likewise.
68378         * m4/ftruncate.m4: Likewise.
68379         * m4/getgroups.m4: Likewise.
68380         * m4/getline.m4: Likewise.
68381         * m4/group-member.m4: Likewise.
68382         * m4/jm-macros.m4: Likewise.
68383         * m4/lstat.m4: Likewise.
68384         * m4/malloc.m4: Likewise.
68385         * m4/memcmp.m4: Likewise.
68386         * m4/nanosleep.m4: Likewise.
68387         * m4/putenv.m4: Likewise.
68388         * m4/realloc.m4: Likewise.
68389         * m4/regex.m4: Likewise.
68390         * m4/stat.m4: Likewise.
68391         * m4/strftime.m4: Likewise.
68392
68393 2000-07-02  Jim Meyering  <meyering@lucent.com>
68394
68395         * lib/quotearg.c (mbstate_t): Don't define here.
68396
68397 2000-07-02  Jim Meyering  <meyering@lucent.com>
68398
68399         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68400
68401 2000-07-01  Jim Meyering  <meyering@lucent.com>
68402
68403         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68404
68405 2000-07-01  Jim Meyering  <meyering@lucent.com>
68406
68407         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68408         problem.
68409
68410 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68411
68412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68413         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68414
68415 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68416
68417         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68418         per change in ../m4/ls-mntd-fs.m4.
68419         (read_filesystem_list): Ignore symbolic links.
68420
68421 2000-06-29  Jim Meyering  <meyering@lucent.com>
68422
68423         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68424         for declaration of strcmp.
68425
68426         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68427
68428         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68429         Avoid warning by casting result to `char *' to remove `const'.
68430
68431 2000-06-28  Jim Meyering  <meyering@lucent.com>
68432
68433         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68434         included by quotearg.c, for which we perform this test.  From
68435         Bruno Haible.
68436
68437 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68438
68439         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68440         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68441         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68442
68443 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68444
68445         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68446
68447 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68448
68449         savedir now sets errno on failure and invokes xmalloc to get memory.
68450         Fix a couple of other minor bugs while we're at it.
68451
68452         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68453         (NAMLEN): Remove macro.
68454         (malloc, realloc): Remove decls.
68455         (stpcpy): Likewise.
68456         ("xalloc.h"): Include.
68457         (NAME_SIZE_DEFAULT): New macro.
68458         (savedir): Use xmalloc / xrealloc to allocate memory.
68459         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68460         Skip "" directory entries.
68461         Use strlen to calculate directory entry length, since the old method
68462         is rarely used these days and isn't worth supporting.
68463         Don't use a pointer after freeing it.
68464         Check for integer overflow when calculating allocation size.
68465         Use memcpy to copy entries, instead of stpcpy.
68466         Set errno properly when returning NULL.
68467         Check for readdir error.
68468
68469 2000-06-26  Jim Meyering  <meyering@lucent.com>
68470
68471         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68472
68473 2000-06-25  Jim Meyering  <meyering@lucent.com>
68474
68475         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68476         Linux header bug when _XOPEN_SOURCE is defined to 500.
68477
68478 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68479
68480         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68481         deficiency.
68482
68483 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68484
68485         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68486         Include xalloc.h.
68487         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68488
68489 2000-06-24  Jim Meyering  <meyering@lucent.com>
68490
68491         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68492         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68493         for which strerror does return char*, but which lacks a conveniently
68494         accessible declaration of the function.  If the compile-test says
68495         strerror_r doesn't work, then resort to a `run'-test that works on
68496         BeOS and segfaults on DEC Unix.
68497
68498 2000-06-24  Jim Meyering  <meyering@lucent.com>
68499
68500         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68501
68502 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68503
68504         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68506
68507 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68508
68509         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68510         (mbrtowc, mbstate_t): Define substitutes if
68511         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68512         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68513         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68514
68515 2000-06-23  Jim Meyering  <meyering@lucent.com>
68516
68517         * m4/afs.m4: Add missing AC_MSG_RESULT.
68518         Reported by Bruno Haible.
68519
68520         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68521         Suggestion from Bruno Haible.
68522
68523 2000-06-23  Jim Meyering  <meyering@lucent.com>
68524
68525         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68526
68527 2000-06-21  Jim Meyering  <meyering@lucent.com>
68528
68529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68530
68531 2000-06-21  Jim Meyering  <meyering@lucent.com>
68532
68533         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68534         (noinst_HEADERS): Add getstr.h.
68535
68536         * lib/getline.c (getstr): Move into a separate file.
68537         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68538         the following changes: new parameter, delim2; both delim[12]
68539         parameters have type `int', not `char'.  The latter would lose
68540         with 8-bit delimiters.
68541         * lib/getstr.h: New file.
68542
68543 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68544
68545         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68546         than 1024, return a memory chunk of least possible size, instead
68547         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68548         Use free/xmalloc instead of xrealloc to avoid copying for very long
68549         paths.
68550
68551 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68552
68553         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68554         the empty string.
68555
68556 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68557
68558         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68559         address, not strdup.  Include <stdlib.h> and don't declare free().
68560
68561 2000-06-19  Jim Meyering  <meyering@lucent.com>
68562
68563         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68564
68565 2000-06-18  Jim Meyering  <meyering@lucent.com>
68566
68567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68568
68569         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68570         `checking whether...' message to be consistent with that of the
68571         lstat test.
68572
68573 2000-06-18  Jim Meyering  <meyering@lucent.com>
68574
68575         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68576         Besides, these days every porting target provides a mkdir function.
68577
68578         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68579         needed. (this snippet comes from src/system.h).
68580
68581 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68582
68583         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68584
68585 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68586
68587         * lib/human.c (adjust_value): New function.
68588         (human_readable_inexact): Apply rounding style even when
68589         printing approximate values.
68590
68591 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68592
68593         * lib/human.c (human_readable_inexact): Allow an input block
68594         size that is not a multiple of the output block size, and vice versa.
68595         Reported by Piergiorgio Sartor.
68596
68597 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68598
68599         * lib/getdate.y (get_date): Apply relative times after time
68600         zone indicator, not before.  Reported by Todd A. Jacobs.
68601
68602 2000-06-13  Jim Meyering  <meyering@lucent.com>
68603
68604         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68605
68606         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68607
68608 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68609
68610         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68611
68612 2000-06-12  Jim Meyering  <meyering@lucent.com>
68613
68614         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68615         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68616         optional argument.
68617         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68618         the optional argument, `lib'.
68619
68620 2000-06-08  Jim Meyering  <meyering@lucent.com>
68621
68622         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68623
68624 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68625
68626         Rewrite largefile configuration so that we don't need to run
68627         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68628         AC_CANONICAL_HOST in configure.in -- jmm]
68629
68630         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68631         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68632         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68633         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68634         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68635         All uses changed.
68636         Instead of inspecting the output of getconf, try to compile the
68637         test program without and with the macro definition.
68638         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68639         for getconf.  Instead, check for the needed flags by compiling
68640         test programs.
68641
68642 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68643
68644         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68645
68646 2000-06-04  Jim Meyering  <meyering@lucent.com>
68647
68648         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68649         SunOS 4.1.4 for which gid_t is an unsigned type.
68650
68651 2000-06-03  Jim Meyering  <meyering@lucent.com>
68652
68653         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68654         now that autoconf requires that.
68655
68656         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68657         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68658         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68659
68660 2000-06-03  Jim Meyering  <meyering@lucent.com>
68661
68662         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68663
68664 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68665
68666         * m4/glibc21.m4: New file.
68667         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68668
68669 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68670
68671         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68672         newer, don't install charset.alias.
68673         * lib/config.charset: Change the Linux/glibc rules so they become empty
68674         on glibc-2.1 or newer.
68675
68676 2000-06-02  Jim Meyering  <meyering@lucent.com>
68677
68678         * lib/mountlist.c: Back out last change.  Instead, do this...
68679         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68680         me_dummy member using the same `ignore'-testing code.
68681         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68682         fs_type strings.
68683         From Mark D. Roth.
68684
68685 2000-05-29  Jim Meyering  <meyering@lucent.com>
68686
68687         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68688         mounts with the `ignore' attribute.  Based on a patch from
68689         Mark D. Roth.
68690
68691 2000-05-28  Jim Meyering  <meyering@lucent.com>
68692
68693         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68694         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68695         * m4/stat.m4: Likewise.
68696         * m4/lstat.m4: Likewise.
68697         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68698
68699         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68700         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68701
68702 2000-05-26  Jim Meyering  <meyering@lucent.com>
68703
68704         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68705
68706 2000-05-24  Jim Meyering  <meyering@lucent.com>
68707
68708         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68709         autoconf requires that.
68710         * m4/lib-check.m4: Likewise.
68711         * m4/jm-macros.m4: Likewise.
68712         * m4/strftime.m4: Likewise.
68713
68714         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68715         AC_CHECK_DECLS, now that autoconf requires that.
68716
68717 2000-05-22  Jim Meyering  <meyering@lucent.com>
68718
68719         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68720         * m4/lstat.m4: Likewise.
68721
68722 2000-05-22  Jim Meyering  <meyering@lucent.com>
68723
68724         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68725
68726 2000-05-20  Jim Meyering  <meyering@lucent.com>
68727
68728         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68729         (jm_PREREQ): Use it.
68730
68731 2000-05-18  Jim Meyering  <meyering@lucent.com>
68732
68733         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68734         back, too, since it may have been modified by allocate_entry.
68735         (hash_delete): Rewrite to use neither the assignment operator
68736         nor the comma operator in an if-expression.
68737
68738 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68739
68740         * lib/closeout.c:
68741         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68742         Remove; no longer needed.
68743         "quotearg.h": Add include.
68744         (file_name): Do not bother to explicitly initialize to NULL; it's less
68745         efficient on some hosts.
68746         (close_stdout_status): Remove test as to whether stdout was already
68747         closed; it breaks for the case "echo x | sort >&-".
68748         Quote file name colons.
68749         Do not assume that _("write error") lacks format strings.
68750
68751 2000-05-15  Jim Meyering  <meyering@lucent.com>
68752
68753         * lib/version-etc.c (version_etc_copyright): Update the copyright
68754         string used in all --version output.
68755
68756 2000-05-14  Jim Meyering  <meyering@lucent.com>
68757
68758         * lib/closeout.c (close_stdout_set_file_name): New function.
68759         (close_stdout_status): Use new file-scoped global.
68760         Return right away if fstat says the stdout file descriptor is invalid.
68761         * lib/closeout.h (close_stdout_set_file_name): Declare.
68762
68763 2000-05-10  Jim Meyering  <meyering@lucent.com>
68764
68765         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68766         (close_stdout_set_status): New function.
68767         * lib/closeout.h (close_stdout_set_status): Declare.
68768
68769 2000-05-09  Jim Meyering  <meyering@lucent.com>
68770
68771         * m4/gettext.m4: Rename this...
68772         * m4/libintl.m4: ...to this.
68773
68774 2000-05-08  Jim Meyering  <meyering@lucent.com>
68775
68776         * lib/long-options.c: Don't include closeout.h.
68777         (parse_long_options): Don't call close_stdout for --version.
68778
68779 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68780
68781         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68782         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68783         2.1.3 bug.  This avoids a clash when files like regex.c define
68784         _GNU_SOURCE.
68785
68786 2000-05-06  Jim Meyering  <meyering@lucent.com>
68787
68788         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68789         (AC_REPLACE_FUNCS): Add strnlen.
68790
68791         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68792         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68793
68794         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68795         AC_SEARCH_LIBS call for nanosleep.
68796         (LIB_NANOSLEEP): Set and AC_SUBST.
68797
68798 2000-05-06  Jim Meyering  <meyering@lucent.com>
68799
68800         * lib/strnlen.c: Undefine __strnlen and strnlen.
68801         [!weak_alias]: Define __strnlen to strnlen.
68802
68803         * lib/atexit.c: New file, from libiberty.
68804
68805 2000-05-06  Jim Meyering  <meyering@lucent.com>
68806
68807         * lib/closeout.c (close_stdout_status): Also check for errors on the
68808         stderr stream.
68809
68810 2000-05-05  Jim Meyering  <meyering@lucent.com>
68811
68812         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68813         AC_SEARCH_LIBS call for clock_gettime.
68814         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68815
68816         * m4/search-libs.m4: Update from autoconf.
68817
68818         su doesn't work on Solaris 2.6.
68819         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68820         <shadow.h>.  Reported by Dragos Harabor.
68821
68822 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68823
68824         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68825         memcpy instead of xmalloc, xrealloc, path_concat.
68826         (locale_charset): Treat empty environment variables as absent.
68827         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68828
68829 2000-05-04  Jim Meyering  <meyering@lucent.com>
68830
68831         * lib/getopt.c: Update from glibc.
68832         * lib/obstack.c: Likewise.
68833         * lib/obstack.h: Likewise.
68834         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68835         file
68836
68837         * lib/regex.h: Likewise.
68838         * lib/strndup.c: Likewise.
68839         * lib/strnlen.c: New file, from glibc.
68840
68841 2000-05-03  Jim Meyering  <meyering@lucent.com>
68842
68843         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68844
68845 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68846
68847         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68848         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68849         compile-time test, rather than inspecting host and OS, to
68850         decide whether to define _LARGEFILE_SOURCE.
68851
68852 2000-05-01  Jim Meyering  <meyering@lucent.com>
68853
68854         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68855
68856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68857         Based on a patch from Bruno Haible.
68858
68859 2000-05-01  Jim Meyering  <meyering@lucent.com>
68860
68861         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68862
68863 2000-04-29  Jim Meyering  <meyering@lucent.com>
68864
68865         * lib/path-concat.c: Declare strdup only if it's not defined.
68866         * lib/canon-host.c: Likewise.
68867
68868 2000-04-28  Jim Meyering  <meyering@lucent.com>
68869
68870         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68871         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68872         is included first, then limits.h is included by locale.h by libintl.h.
68873         From John David Anglin.
68874
68875 2000-04-25  Jim Meyering  <meyering@lucent.com>
68876
68877         * lib/makepath.c (S_IRWXUGO): Define.
68878         (make_path): Always perform explicit chmod if MODE specifies any
68879         of the `special' permission bits.  Prompted by a bug report against
68880         install from Mate Wierdl and Joost van Baal.
68881
68882 2000-04-18  Jim Meyering  <meyering@lucent.com>
68883
68884         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68885         (jm_PREREQ): Use it.
68886
68887 2000-04-18  Jim Meyering  <meyering@lucent.com>
68888
68889         * lib/README: New file.
68890
68891         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68892         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68893
68894 2000-04-17  Jim Meyering  <meyering@lucent.com>
68895
68896         Get it right :-)
68897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68898         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68899         Suggestion from Akim Demaille.
68900
68901 2000-04-17  Jim Meyering  <meyering@lucent.com>
68902
68903         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68904         the definition of it to rpl_strftime also defined-away the system's
68905         declaration.
68906
68907 2000-04-15  Jim Meyering  <meyering@lucent.com>
68908
68909         Use `C' to denote so-called `contiguous' files, the same way
68910         that tar does.
68911         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68912         (ftypelet): Use S_ISCTG.
68913         From Michael Deutschmann.
68914
68915 2000-04-14  Jim Meyering  <meyering@lucent.com>
68916
68917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68918         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68919         clobbered.
68920
68921 2000-04-14  Jim Meyering  <meyering@lucent.com>
68922
68923         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68924
68925 2000-04-13  Jim Meyering  <meyering@lucent.com>
68926
68927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68928         AH_VERBATIM to insert required #ifndef into config.h.in.
68929         Suggestion from Akim Demaille.
68930
68931 2000-04-12  Jim Meyering  <meyering@lucent.com>
68932
68933         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68934         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68935         Christian Krackowizer.
68936
68937         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68938         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68939         (AC_SYS_LARGEFILE): Require.
68940         (AM_C_PROTOTYPES): Require.
68941
68942 2000-04-08  Jim Meyering  <meyering@lucent.com>
68943
68944         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68945         names don't conflict.  Reported by Eli Zaretskii.
68946
68947 2000-04-07  Jim Meyering  <meyering@lucent.com>
68948
68949         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68950         sys/types.h, to work around system header problems on AIX 3.2.5.
68951         From Bruno Haible.
68952
68953 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68954
68955         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68956         bug.  Deal with the different error behavior of Irix iconv.
68957
68958 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68959
68960         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68961         IRIX if the installer said otherwise.
68962
68963 2000-04-05  Jim Meyering  <meyering@lucent.com>
68964
68965         Portability tweaks required for ultrix4.3.
68966         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68967         (jm_CHECK_DECLS): Add getutent to the list of functions.
68968         (_jm_DECL_HEADERS): Add utmpx.h.
68969         From John David Anglin.
68970
68971         * m4/strftime.m4: Back out the 2000-04-02 change.
68972         Instead of that change, simply undefine putenv in the test program.
68973
68974 2000-04-05  Jim Meyering  <meyering@lucent.com>
68975
68976         Portability tweaks required for ultrix4.3.
68977         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68978         getutent.
68979         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68980         * lib/canon-host.c: Declare strdup.
68981         * lib/path-concat.c: Likewise.
68982         From John David Anglin.
68983
68984 2000-04-04  Jim Meyering  <meyering@lucent.com>
68985
68986         Be more DOS 8.3-friendly.
68987         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68988         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68989         * lib/Makefile.am: Reflect renaming.
68990         Reported by Eli Zaretskii.
68991
68992         Use a temporary file name that won't clash with `charset.alias'
68993         in the DOS 8.3 name space.
68994         * lib/Makefile.am (charset_tmp): Define.
68995         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68996         (uninstall-local): Likewise.
68997         Reported by Eli Zaretskii.
68998
68999 2000-04-03  Jim Meyering  <meyering@lucent.com>
69000
69001         * m4/gettext.m4: Fix typo in comment.
69002
69003         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69004         textutils/configure.in).  Suggestion from Paul Eggert.
69005         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69006
69007 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69008
69009         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69010         variable in the shell rather than using putenv, which isn't
69011         portable.  This avoids the configure-time inter-test dependency
69012         on the potentially-renamed putenv function.
69013
69014 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69015
69016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69017         before checking struct stat.st_blksize, so that
69018         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69019
69020 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69021
69022         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69023         since strftime.c uses HAVE_STRFTIME to decide whether to use
69024         the underlying strftime.
69025
69026 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69027
69028         * lib/time/strftime.c (my_strftime): Make sure we call the system
69029         strftime, not ourselves, when invoking the underlying strftime.
69030
69031 2000-03-24  Jim Meyering  <meyering@lucent.com>
69032
69033         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69034         (charset_alias): Define.
69035         (install-exec-local): Factor out common code.
69036         (uninstall-local): Split lines longer than 80.
69037         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69038         (SUFFIXES): Define.
69039         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69040         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69041
69042 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69043
69044         * lib/config.charset: Output a line containing "Packages using this
69045         file".
69046         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69047         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69048         ref-del.sed): New rules.
69049
69050 2000-03-17  Jim Meyering  <meyering@lucent.com>
69051
69052         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69053         Otherwise, include <strings.h>
69054
69055 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69056
69057         * lib/unicodeio.c (utf8_wctomb): New function.
69058         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69059         format instead of in UCS-4 with platform dependent endianness.
69060
69061 2000-03-10  Jim Meyering  <meyering@lucent.com>
69062
69063         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69064         From Marco Franzen.
69065
69066 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69067
69068         * lib/savedir.c (savedir): Work even if directory size is
69069         negative; this can happen with some screwy NFS configurations.
69070
69071 2000-03-06  Jim Meyering  <meyering@lucent.com>
69072
69073         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69074         if it's NULL (because we ran out of memory).  From Bruno Haible.
69075
69076 2000-03-05  Jim Meyering  <meyering@lucent.com>
69077
69078         * lib/localcharset.c ("path-concat.h"): Include.
69079         (get_charset_aliases): Use path_concat instead of ANSI string
69080         concatenation.
69081
69082         * lib/unicodeio.h (PARAMS): Define.
69083         Use it to guard prototype.
69084
69085 2000-03-04  Jim Meyering  <meyering@lucent.com>
69086
69087         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69088         for lib/localcharset.c.
69089
69090 2000-03-04  Jim Meyering  <meyering@lucent.com>
69091
69092         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69093         installing into it.
69094         (uninstall-local): Uncomment this rule so `make distcheck' works
69095         once again.
69096
69097         * lib/unicodeio.c (<errno.h>): Include it.
69098         (errno): Declare if not defined.
69099
69100         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69101
69102         * lib/config.charset: New version, incorporating remarks from a linux
69103         i18n mailing list.  From Bruno Haible.
69104
69105 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69106
69107         * m4/codeset.m4: New file.
69108         * m4/iconv.m4: New file.
69109         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69110
69111 2000-03-03  Jim Meyering  <meyering@lucent.com>
69112
69113         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69114
69115 2000-03-02  Jim Meyering  <meyering@lucent.com>
69116
69117         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69118         the messages come out on separate lines.
69119
69120         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69121         rather than jm_CHECK_DECLARATIONS.
69122         * m4/decl.m4: Remove now-unused file.
69123
69124         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69125         geteuid.
69126
69127 2000-03-02  Jim Meyering  <meyering@lucent.com>
69128
69129         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69130
69131 2000-03-01  Jim Meyering  <meyering@lucent.com>
69132
69133         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69134         * lib/unicodeio.c: Likewise.
69135
69136 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69137
69138         * lib/config.charset: New file.
69139         * lib/localcharset.c: New file.
69140         * lib/unicodeio.h, lib/unicodeio.c: New files.
69141         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69142         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69143         (noinst_HEADERS): Add unicodeio.h.
69144         (all-local, install-exec-local, charset.alias): New targets.
69145
69146 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69147
69148         * lib/quotearg.c (ALERT_CHAR): New macro.
69149         (quotearg_buffer_restyled): Use it.
69150
69151 2000-02-27  Jim Meyering  <meyering@lucent.com>
69152
69153         * m4/check-decl.m4: Add getenv to the list.
69154
69155 2000-02-27  Jim Meyering  <meyering@lucent.com>
69156
69157         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69158         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69159
69160         * lib/backupfile.c: Guard inclusion of stdlib.h with
69161         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69162         Declare malloc if needed.
69163
69164         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69165         `#ifndef HAVE_DECL..'
69166         now that autoconf always defines the HAVE_DECL_ symbols.
69167         * lib/human.c: Likewise.
69168         * lib/same.c: Likewise.
69169         * lib/strtoumax.c: Likewise.
69170
69171         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69172         declaration check was not run.
69173         * lib/hash.c: Likewise.
69174         * lib/human.c: Likewise.
69175         * lib/same.c: Likewise.
69176         * lib/strtoumax.c: Likewise.
69177
69178         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69179         `.', then first look up the entire `.'-containing string as a login
69180         name.
69181
69182 2000-02-23  Jim Meyering  <meyering@lucent.com>
69183
69184         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69185         in place of my hack.
69186
69187 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69188
69189         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69190         (textint): New typedef.
69191         (parser_control): Member year changed from int to textint.
69192         All uses changed.
69193         (YYSTYPE): Removed; replaced by %union with int and textint members.
69194         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69195         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69196         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69197         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69198         (date, number, to_year): Use width of number in digits, not its value,
69199         to determine whether it's a 2-digit year, or a 2-digit time.
69200         (yylex): Store number of digits of numeric tokens.
69201         Reported by John Kendall.
69202
69203         (parser_control): Changed from struct parser_control to typedef (for
69204         consistency).  All uses changed.
69205
69206         (tID): Removed; not used.
69207         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69208
69209 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69210
69211         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69212         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69213
69214 2000-02-12  Jim Meyering  <meyering@lucent.com>
69215
69216         * lib/userspec.c (ISDIGIT): Define it.
69217         (isdigit): Remove definition.
69218         (is_number): Use ISDIGIT, not isdigit.
69219         <libintl.h>: Include.
69220         (_ and N_): Define.
69221         (parse_user_spec): Mark translatable strings.
69222
69223 2000-02-10  Jim Meyering  <meyering@lucent.com>
69224
69225         With these changes, nanosleep.[ch] are finally enough like the other
69226         lib/* replacement files to compile on a few more losing systems.
69227
69228         * lib/nanosleep.h: Don't include config.h.
69229         Remove prototype from declaration of nanosleep.
69230         (PARAMS): Remove now-unneeded definition.
69231         * lib/nanosleep.c: #undef nanosleep.
69232         (rpl_nanosleep): Rename from nanosleep.
69233
69234 2000-02-10  Jim Meyering  <meyering@lucent.com>
69235
69236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69237         gnu_nanosleep to rpl_nanosleep.
69238
69239 2000-02-09  Jim Meyering  <meyering@lucent.com>
69240
69241         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69242         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69243
69244 2000-02-08  Akim Demaille  <akim@epita.fr>
69245
69246         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69247         `[' and `]' and remove uses of `changequote'.
69248         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69249         (AC_SYS_LARGEFILE): Likewise.
69250         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69251         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69252         of changequote.
69253         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69254         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69255         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69256         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69257
69258 2000-02-05  Jim Meyering  <meyering@lucent.com>
69259
69260         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69261         Remove explicit use of AC_HEADER_TIME.  It is required by
69262         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69263         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69264         in autoconf whereby the expansion of the latter ended up preceding
69265         the expansion of its prerequisite, AC_HEADER_TIME.
69266         Reported by Volker Borchert.
69267
69268 2000-02-03  Jim Meyering  <meyering@lucent.com>
69269
69270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69271
69272 2000-02-03  Jim Meyering  <meyering@lucent.com>
69273
69274         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69275         rather than with `#if HAVE_UTMPNAME'.
69276
69277 2000-02-02  Jim Meyering  <meyering@lucent.com>
69278
69279         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69280         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69281         Reported by Eli Zaretskii.
69282
69283 2000-02-01  Jim Meyering  <meyering@lucent.com>
69284
69285         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69286
69287 2000-01-31  Jim Meyering  <meyering@lucent.com>
69288
69289         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69290         functions.  Add the time.h and sys/time.h headers along with the
69291         AC_REQUIRE'ment of AC_HEADER_TIME.
69292
69293 2000-01-31  Jim Meyering  <meyering@lucent.com>
69294
69295         * lib/nanosleep.h (nanosleep): Guard declaration with
69296         `#if ! HAVE_DECL_NANOSLEEP'.
69297         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69298         the declaration in that vendor's sys/timers.h.
69299         Reported by Christian Krackowizer.
69300
69301         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69302         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69303         (ISPRINT): Likewise.
69304         Reported by Tom Tromey.
69305
69306 2000-01-30  Jim Meyering  <meyering@lucent.com>
69307
69308         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69309
69310         * m4/prereq.m4 (utmp_includes): Define.
69311         Check for ut_user and ut_name members in both struct utmpx
69312         and struct utmp.
69313
69314 2000-01-30  Jim Meyering  <meyering@lucent.com>
69315
69316         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69317         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69318         header files where only utmpx.ut_user is declared.
69319
69320         * lib/readutmp.h (UT_USER): Define.
69321
69322 2000-01-29  Jim Meyering  <meyering@lucent.com>
69323
69324         * m4/lib-check.m4: New file containing library-related checks from
69325         fileutils and sh-utils (textutils had none).
69326
69327 2000-01-28  Jim Meyering  <meyering@lucent.com>
69328
69329         * m4/perl.m4: Change format of warning message to look more like that
69330         from the missing script.  Suggestion from François Pinard.
69331
69332 2000-01-25  Jim Meyering  <meyering@lucent.com>
69333
69334         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69335         well as time.h in the compile check.
69336         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69337         Fix typo in cross-compiling case: s/yes/no/.
69338
69339 2000-01-23  Jim Meyering  <meyering@lucent.com>
69340
69341         * m4/jm-macros.m4: Move df-related tests here from
69342         fileutils/configure.in
69343
69344         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69345         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69346
69347         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69348         s/space/ac_fsusage_space/.
69349         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69350
69351         * m4/ftruncate.m4: New file (derived from part of
69352         fileutils/configure.in).
69353         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69354         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69355
69356         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69357         AC_SUBST these here, rather than just in sh-util/configure.in, so
69358         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69359         all the same.
69360         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69361         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69362         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69363         (AC_SUBST(POW_LIBM)): Likewise.
69364         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69365
69366 2000-01-23  Jim Meyering  <meyering@lucent.com>
69367
69368         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69369         obstack.c.
69370
69371 2000-01-22  Jim Meyering  <meyering@lucent.com>
69372
69373         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69374
69375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69376
69377         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69378         configure.in
69379         (AC_CHECK_HEADERS): Likewise for sh-utils.
69380         (AC_CHECK_HEADERS): Likewise for textutils.
69381         Merge the three lists of headers.
69382
69383         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69384         from fileutils' configure.in.
69385
69386         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69387         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69388         check-decl.m4.
69389
69390         * m4/check-decl.m4: Use #if rather than #ifdef.
69391         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69392         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69393         (_jm_DECL_HEADERS): Define new function.
69394         (jm_CHECK_DECLARATIONS): Require it.
69395
69396 2000-01-22  Jim Meyering  <meyering@lucent.com>
69397
69398         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69399         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69400         Required for some AIX systems.  Reported by Christian Krackowizer.
69401         [TESTING] (main): New function.
69402
69403         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69404         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69405         letters.
69406
69407         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69408         iswprint.
69409
69410         * lib/strverscmp.c (ISDIGIT): Define.
69411         (strverscmp): Use ISDIGIT, not isdigit.
69412
69413 2000-01-19  Jim Meyering  <meyering@lucent.com>
69414
69415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69416         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69417         defines `struct timespec' in <sys/time.h>
69418
69419         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69420         Thanks to Akim for explaining.
69421
69422 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69423
69424         * lib/nanosleep.c (nanosleep):
69425         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69426         POSIX.1 doesn't require SA_INTERRUPT and some systems
69427         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69428         it's been part of POSIX.1 since day 1 (in 1988).
69429
69430 2000-01-17  Jim Meyering  <meyering@lucent.com>
69431
69432         * lib/interlock: Remove unused file.  Reported by François Pinard.
69433
69434 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69435
69436         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69437         alert, backslash, formfeed, and vertical tab unnecessarily in
69438         shell quoting style.
69439
69440 2000-01-16  Jim Meyering  <meyering@lucent.com>
69441
69442         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69443         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69444         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69445         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69446
69447 2000-01-16  Jim Meyering  <meyering@lucent.com>
69448
69449         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69450         because the latter didn't work.
69451
69452 2000-01-15  Jim Meyering  <meyering@lucent.com>
69453
69454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69455         (AC_REPLACE_FUNCS): Add memcpy and memset.
69456         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69457         Add strpbrk.
69458         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69459
69460 2000-01-12  Jim Meyering  <meyering@lucent.com>
69461
69462         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69463         (jm_PREREQ): Use it.
69464         (jm_PREREQ_READUTMP): New macro.
69465         (jm_PREREQ): Use it.
69466
69467 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69468
69469         Quote multibyte characters correctly.
69470         * m4/c-bs-a.m4: New file.
69471         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69472         (jm_PREREQ): Use it.
69473
69474 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69475
69476         * m4/uintmax_t.m4: Port to autoconf 2.13.
69477
69478 2000-01-08  Jim Meyering  <meyering@ascend.com>
69479
69480         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69481         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69482
69483 2000-01-04  Jim Meyering  <meyering@ascend.com>
69484
69485         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69486         jm_STRUCT_DIRENT_D_TYPE.
69487         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69488         jm_STRUCT_DIRENT_D_INO.
69489         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69490         jm_STRUCT_UTIMBUF.
69491         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69492         renamings.
69493         * m4/utime.m4: Likewise.
69494
69495         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69496         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69497
69498 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69499
69500         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69501         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69502
69503 2000-01-02  Jim Meyering  <meyering@ascend.com>
69504
69505         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69506         remember if this is necessary.
69507
69508 1999-12-26  Jim Meyering  <meyering@ascend.com>
69509
69510         * m4/jm-macros.m4: Use it here.
69511         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69512
69513 1999-12-23  Jim Meyering  <meyering@ascend.com>
69514
69515         * m4/jm-macros.m4: Check for clock_gettime (moved from
69516         fileutils/configure.in)
69517         Check for gettimeofday.
69518
69519 1999-12-20  Jim Meyering  <meyering@ascend.com>
69520
69521         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69522         autoconf-2.14a-1999-12-20.
69523
69524 1999-12-19  Jim Meyering  <meyering@ascend.com>
69525
69526         * m4/lstat-slash.m4: New file.
69527         * m4/jm-macros.m4: Use the new macro:
69528         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69529
69530 1999-12-07  Jim Meyering  <meyering@ascend.com>
69531
69532         * m4/perl.m4: Require that File::Compare be available, too.
69533         Too many systems seem to lack it.
69534
69535         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69536         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69537
69538 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69539
69540         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69541         problem with the QNX 4.25 shell, which doesn't propagate exit
69542         status of failed commands inside shell assignments.
69543
69544 1999-11-17  Jim Meyering  <meyering@ascend.com>
69545
69546         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69547
69548 1999-11-07  Jim Meyering  <meyering@ascend.com>
69549
69550         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69551
69552 1999-11-06  Jim Meyering  <meyering@ascend.com>
69553
69554         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69555         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69556
69557 1999-11-05  Jim Meyering  <meyering@ascend.com>
69558
69559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69560         configure.in of textutils, fileutils, and sh-utils into this one
69561         (shared between those packages) file.
69562         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69563         AC_STRUCT_ST_BLKSIZE.
69564
69565 1999-11-03  Jim Meyering  <meyering@ascend.com>
69566
69567         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69568         of AC_CHECK_TYPE checks includes unistd.h.
69569         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69570         Suggestion from Akim Demaille.
69571
69572 1999-10-30  Jim Meyering  <meyering@ascend.com>
69573
69574         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69575         m4-quoted string.
69576         * m4/ls-mntd-fs.m4: Likewise.
69577         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69578         * m4/jm-winsz1.m4: Likewise.
69579
69580         * m4/const.m4: Remove file, since the fix made it into the experimental
69581         version of autoconf.
69582         * m4/mktime.m4: Likewise.
69583
69584         * m4/check-type.m4: Remove file, now that the latest version of
69585         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69586
69587         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69588         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69589         AC_CHECK_TYPE.
69590
69591 1999-10-04  Jim Meyering  <meyering@ascend.com>
69592
69593         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69594
69595 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69596
69597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69598         2.95.1 bug with HP-UX 10.20.
69599
69600 1999-09-17  Jim Meyering  <meyering@ascend.com>
69601
69602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69603         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69604         due to missing strdup (against sh-utils-2.0).
69605
69606 1999-08-29  Jim Meyering  <meyering@ascend.com>
69607
69608         * m4/jm-macros.m4: Require jm_BISON.
69609         * m4/bison.m4: New file.
69610
69611 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69612
69613         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69614         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69615
69616 1999-08-05  Jim Meyering  <meyering@ascend.com>
69617
69618         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69619         to avoid conflicts with `conftest' on 8+3 filesystems.
69620         Suggestion from Eli Zaretskii.
69621
69622 1999-08-04  Jim Meyering  <meyering@ascend.com>
69623
69624         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69625         fileutils and sh-utils (textutils's getline test was inadequate).
69626         (AM_FUNC_GETLINE): Run this test.
69627         (AC_CHECK_FUNCS): Check for getdelim.
69628         Reported by Bob Proulx.
69629
69630 1999-08-02  Jim Meyering  <meyering@ascend.com>
69631
69632         * m4/jm-macros.m4: Add a comment.
69633
69634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69635
69636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69637         <inttypes.h> defines strtoumax as a macro (and not as a
69638         function).
69639
69640 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69641
69642         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69643         that we can shift, multiply and divide unsigned long long
69644         values; Ultrix cc can't do it.
69645
69646 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69647
69648         * m4/mktime.m4: New file, which is a preview of what should appear
69649         in the next public autoconf release.
69650
69651 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69652
69653         * m4/lfs.m4: Remove this file.
69654         * m4/largefile.m4: New file.  It contains the old contents of
69655         lfs.m4, except that all names with prefix AC_LFS have been
69656         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69657         compatible with future autoconf versions.  Also, some minor m4
69658         quoting problems have been fixed.
69659
69660 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69661
69662         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69663         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69664         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69665         and simplify the shell code.
69666
69667 1999-08-01  Jim Meyering  <meyering@ascend.com>
69668
69669         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69670         m4.
69671
69672 1999-07-20  Jim Meyering  <meyering@ascend.com>
69673
69674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69675
69676 1999-07-15  Jim Meyering  <meyering@ascend.com>
69677
69678         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69679
69680 1999-05-22  Jim Meyering  <meyering@ascend.com>
69681
69682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69683
69684 1999-05-20  Jim Meyering  <meyering@ascend.com>
69685
69686         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69687         Add a colon after each `then' in case $4 is empty.
69688
69689 1999-05-16  Jim Meyering  <meyering@ascend.com>
69690
69691         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69692
69693 1999-05-10  Jim Meyering  <meyering@ascend.com>
69694
69695         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69696
69697         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69698         AC_FUNC_MKTIME.
69699
69700 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69701
69702         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69703
69704 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69705
69706         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69707         not CPPFLAGS, so that linking works correctly in IRIX.
69708
69709 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69710
69711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69712
69713 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69714
69715         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69716         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69718         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69719         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69720
69721         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69722
69723 1999-04-20  Jim Meyering  <meyering@ascend.com>
69724
69725         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69726         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69727         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69728
69729 1999-04-18  Jim Meyering  <meyering@ascend.com>
69730
69731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69732         * m4/jm-macros.m4: Use it.
69733
69734 1999-04-06  Jim Meyering  <meyering@ascend.com>
69735
69736         * m4/strftime.m4: Remove test for %f.
69737
69738 1999-03-29  Jim Meyering  <meyering@ascend.com>
69739
69740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69741         superset of the AC_TYPE_* checks in the textutils, fileutils,
69742         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69743         AC_TYPE_PID_T.
69744
69745 1999-03-28  Jim Meyering  <meyering@ascend.com>
69746
69747         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69748         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69749         replaced e.g., in the *.sh files of the sh-utils.
69750
69751 1999-03-20  Jim Meyering  <meyering@ascend.com>
69752
69753         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69754         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69755         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69756
69757 1999-03-19  Jim Meyering  <meyering@ascend.com>
69758
69759         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69760
69761 1999-03-12  Jim Meyering  <meyering@ascend.com>
69762
69763         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69764
69765 1999-03-07  Jim Meyering  <meyering@ascend.com>
69766
69767         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69768         declared.
69769
69770 1999-02-17  Jim Meyering  <meyering@ascend.com>
69771
69772         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69773         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69774
69775 1999-02-07  Jim Meyering  <meyering@ascend.com>
69776
69777         * m4/group-member.m4: New file -- extracted from sh-utils'
69778         configure.in.
69779
69780         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69781         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69782
69783 1999-02-06  Jim Meyering  <meyering@ascend.com>
69784
69785         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69786         * m4/fnmatch.m4: Likewise.
69787         * m4/getgroups.m4: Likewise.
69788         * m4/lstat.m4: Likewise.
69789         * m4/malloc.m4: Likewise.
69790         * m4/putenv.m4: Likewise.
69791         * m4/realloc.m4: Likewise.
69792         * m4/regex.m4: Likewise.
69793         * m4/stat.m4: Likewise.
69794         * m4/strftime.m4: Likewise.
69795         Suggestion from Alain Magloire.
69796
69797         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69798         * m4/fnmatch.m4: Likewise.
69799         * m4/getgroups.m4: Likewise.
69800         * m4/getline.m4: Likewise.
69801         * m4/lstat.m4: Likewise.
69802         * m4/malloc.m4: Likewise.
69803         * m4/memcmp.m4: Likewise.
69804         * m4/putenv.m4: Likewise.
69805         * m4/realloc.m4: Likewise.
69806         * m4/regex.m4: Likewise.
69807         * m4/stat.m4: Likewise.
69808         * m4/strftime.m4: Likewise.
69809         Suggestion from Alain Magloire.
69810
69811         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69812         an argument.
69813
69814         * m4/regex.m4: Add a run-time Test for proper operation of
69815         re_compile_pattern.
69816
69817 1999-01-31  Jim Meyering  <meyering@ascend.com>
69818
69819         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69820
69821 1999-01-30  Jim Meyering  <meyering@ascend.com>
69822
69823         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69824
69825         * m4/jm-mktime.m4: Make this a wrapper around the official
69826         AM_FUNC_MKTIME rather than my private copy, now that the official one
69827         is up to date.
69828         * m4/mktime.m4: Remove file.
69829
69830         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69831         * m4/uptime.m4: Likewise.
69832         * m4/uintmax_t.m4: Likewise.
69833
69834 1999-01-28  Jim Meyering  <meyering@ascend.com>
69835
69836         * m4/jm-macros.m4: Use jm_AFS.
69837         * m4/afs.m4: New file (from fileutils' configure.in).
69838
69839         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69840         * m4/chown.m4: Likewise.
69841         * m4/d-ino.m4: Likewise.
69842         * m4/d-type.m4: Likewise.
69843         * m4/fnmatch.m4: Likewise.
69844         * m4/getgroups.m4: Likewise.
69845         * m4/gettext.m4: Likewise.
69846         * m4/jm-mktime.m4: Likewise.
69847         * m4/jm-winsz2.m4: Likewise.
69848         * m4/lcmessage.m4: Likewise.
69849         * m4/ls-mntd-fs.m4: Likewise.
69850         * m4/malloc.m4: Likewise.
69851         * m4/memcmp.m4: Likewise.
69852         * m4/putenv.m4: Likewise.
69853         * m4/realloc.m4: Likewise.
69854         * m4/st_mtim.m4: Likewise.
69855         * m4/strftime.m4: Likewise.
69856
69857 1999-01-16  Jim Meyering  <meyering@ascend.com>
69858
69859         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69860         (ARGMATCH_DIE_DECL): Define.
69861
69862 1999-01-12  Jim Meyering  <meyering@ascend.com>
69863
69864         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69865         Reported by Lars Hecking.
69866
69867 1999-01-10  Jim Meyering  <meyering@ascend.com>
69868
69869         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69870         gross kludge.
69871         * m4/inttypes_h.m4: Likewise.
69872         * m4/lstat.m4: Likewise.
69873         * m4/malloc.m4: Likewise.
69874         * m4/readdir.m4: Likewise.
69875         * m4/realloc.m4: Likewise.
69876         * m4/st_dm_mode.m4: Likewise.
69877         * m4/stat.m4: Likewise.
69878         * m4/utimbuf.m4: Likewise.
69879         * m4/utimes.m4: Likewise.
69880
69881         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69882         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69883         comments in config.h.in are meaningful.
69884
69885         * m4/jm-macros.m4: Require autoconf-2.13 here.
69886
69887         * m4/regex.m4: By default, don't use the included regex.c on systems
69888         with glibc 2.  Suggestion from Uli Drepper.
69889
69890 1999-01-02  Jim Meyering  <meyering@ascend.com>
69891
69892         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69893
69894 1998-12-18  Jim Meyering  <meyering@ascend.com>
69895
69896         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69897         Based on a suggestion from Lars Hecking.
69898
69899 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69900
69901         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69902
69903 1998-11-16  Jim Meyering  <meyering@ascend.com>
69904
69905         * m4/lfs.m4: Double-quote the `uname...` expression.
69906
69907 1998-11-14  Jim Meyering  <meyering@ascend.com>
69908
69909         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69910         * m4/stat.m4: Likewise.
69911
69912 1998-11-03  Jim Meyering  <meyering@ascend.com>
69913
69914         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69915         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69916
69917 1998-10-18  Jim Meyering  <meyering@ascend.com>
69918
69919         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69920
69921 1998-10-17  Jim Meyering  <meyering@ascend.com>
69922
69923         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69924         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69925         calls for those previously hard-coded headers.  Instead, take a new
69926         parameter.
69927         (jm_CHECK_DECLARATIONS): Reflect interface change.
69928         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69929         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69930
69931         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69932
69933 1998-10-14  Jim Meyering  <meyering@ascend.com>
69934
69935         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69936         instead of "TZ=America/Vancouver".  From Paul Eggert.
69937
69938 1998-10-11  Jim Meyering  <meyering@ascend.com>
69939
69940         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69941         This adds a test for a recently added compatibility fix for mktime.c.
69942         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69943
69944 1998-09-27  Jim Meyering  <meyering@ascend.com>
69945
69946         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69947
69948         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69949         ../configure.in, including a change from Gordon Matzigkeit to allow
69950         cross-compiling for the Hurd.
69951
69952         * m4/glibc.m4: New file/macro to test for the GNU C Library
69953         versions 1 and 2.  From Gordon Matzigkeit.
69954         Indent.
69955
69956 1998-09-21  Jim Meyering  <meyering@ascend.com>
69957
69958         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69959
69960 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69961
69962         Port nanosecond-resolution times to UnixWare 2.1.2 and
69963         pedantic Solaris 2.6.
69964
69965         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69966         AC_STRUCT_ST_MTIM.
69967         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69968         Generate name of ns member, instead of just 1 or undef.
69969         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69970
69971 1998-08-15  Jim Meyering  <meyering@ascend.com>
69972
69973         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69974         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69975         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69976         instead of jm_TYPE_SSIZE_T.
69977
69978 1998-08-12  Jim Meyering  <meyering@ascend.com>
69979
69980         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69981
69982 1998-08-02  Jim Meyering  <meyering@ascend.com>
69983
69984         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69985         in acconfig.h manually.
69986
69987 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69988
69989         * m4/st_mtim.m4: New file.
69990
69991 1998-07-28  Jim Meyering  <meyering@ascend.com>
69992
69993         * m4/utimes.m4: Undef stat.
69994
69995 1998-07-25  Jim Meyering  <meyering@ascend.com>
69996
69997         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69998         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69999
70000 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70001
70002         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70003         uid and gid actually remain unchanged.
70004
70005 1998-07-07  Jim Meyering  <meyering@ascend.com>
70006
70007         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70008
70009 1998-07-04  Jim Meyering  <meyering@ascend.com>
70010
70011         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70012         to prove that this macro can be used in packages without regex.c.
70013
70014 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70015
70016         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70017         is to be used.
70018
70019 1998-07-03  Jim Meyering  <meyering@ascend.com>
70020
70021         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70022
70023         * m4/gettext.m4: New file -- from gettext-0.10.35.
70024         * m4/lcmessage.m4: Likewise.
70025         * m4/progtest.m4: Likewise.
70026
70027         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70028         * m4/jm-macros.m4: Require the new macro.
70029
70030 1998-06-29  Jim Meyering  <meyering@ascend.com>
70031
70032         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70033         for the definition of NGROUPS (used in a system header included
70034         by sys/mount.h).
70035
70036 1998-06-28  Jim Meyering  <meyering@ascend.com>
70037
70038         * m4/ls-mntd-fs.m4: New file.
70039         * m4/fstypename.m4: New file.
70040
70041         * m4/jm-macros.m4: Require the new macro.
70042         * m4/jm-glibc-io.m4: New file.
70043
70044 1998-05-19  Jim Meyering  <meyering@ascend.com>
70045
70046         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70047         * m4/lchown.m4: New file.
70048
70049         * m4/Makefile.am.in: New file.
70050         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70051
70052 1998-05-14  Jim Meyering  <meyering@ascend.com>
70053
70054         * m4/Makefile.am (EXTRA_DIST): Add them.
70055         * m4/jm-macros.m4: New file.
70056         * m4/utimbuf.m4: New file.
70057
70058 1998-05-12  Jim Meyering  <meyering@ascend.com>
70059
70060         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70061
70062 1998-05-11  Jim Meyering  <meyering@ascend.com>
70063
70064         * m4/isc-posix.m4: New file.
70065
70066 1998-05-10  Jim Meyering  <meyering@ascend.com>
70067
70068         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70069
70070 1998-05-09  Jim Meyering  <meyering@ascend.com>
70071
70072         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70073         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70074         with automake.
70075
70076         * m4/ssize_t.m4: New file.
70077         * m4/mktime.m4: Remove file -- the new automake has this now.
70078
70079 1998-04-26  Jim Meyering  <meyering@ascend.com>
70080
70081         * m4/assert.m4: New file.
70082         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70083
70084 1998-04-05  Jim Meyering  <meyering@ascend.com>
70085
70086         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70087         (jm_PREREQ): Use it here.
70088
70089 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70090
70091         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70092         in acconfig.h.
70093
70094 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70095
70096         * m4/prereq.m4: New file.
70097         * m4/error.m4: New file.
70098         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70099
70100 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70101
70102         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70103         cache-check for the same variable -- that defeated the purpose of
70104         the test; the test program was never run.  This was a problem only
70105         on systems with losing getline functions -- HP-UX 10.20 is one.
70106         Reported by Bjorn Helgaas.
70107
70108 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70109
70110         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70111
70112 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70113
70114         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70115
70116         * m4/const.m4: New file.  Use an initializer in this declaration
70117         typedef int charset[2]; const charset x;
70118         Reported by Bob Glickstein.
70119
70120 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70121
70122         * m4/chown.m4: Fix reversed types on -1 args to chown.
70123         From Kaveh Ghazi.
70124
70125 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70126
70127         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70128         Add lseek and memchr.
70129
70130         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70131         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70132         have a 20-character limit on names.
70133
70134 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70135
70136         * m4/inttypes_h.m4: New file.
70137         * m4/uintmax_t.m4: New file.
70138         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70139
70140
70141         -----
70142
70143         Local Variables:
70144         coding: utf-8
70145         End:
70146
70147         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70148
70149         Copying and distribution of this file, with or without
70150         modification, are permitted provided the copyright notice
70151         and this notice are preserved.