Use src/ not lib/ as root of source in example Makefile.am code.
[gnulib.git] / ChangeLog
1 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2
3         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4         for Emacs.
5         * build-aux/pmccabe2html: Make Makefile.am example code more
6         cut-and-paste friendly.
7
8 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9
10         * tests/test-net_if.c: New file.
11         * modules/net_if-tests: New file.
12
13 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14
15         pthread: add pthread_spin_destroy
16         * lib/pthread.in.h (pthread_spin_destroy): New function.
17
18 2010-09-19  Bruno Haible  <bruno@clisp.org>
19
20         gnulib-tool: Fix --help output.
21         * gnulib-tool (func_usage): Fix help message.
22         Reported by Reuben Thomas <rrt@sc3d.org>.
23
24 2010-09-18  Jim Meyering  <meyering@redhat.com>
25
26         maint.mk: avoid unexpanded \n in two diagnostics
27         * top/maint.mk (sc_prohibit_always_true_header_tests):
28         Don't use a literal \n in a halt=... assignment.  It would not be
29         expanded, and the two \n bytes would appear in the diagnostic output
30         rather than the desired newline.  Use halt=$$(printf ... instead.
31         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32
33 2010-09-18  Bruno Haible  <bruno@clisp.org>
34
35         netinet_in: Doc tweak.
36         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
37         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
38
39 2010-09-18  Jim Meyering  <meyering@redhat.com>
40
41         init.sh: correct an outdated comment
42         * tests/init.sh (create_exe_shims_):  s/function/alias/
43
44         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
45         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46         a file named "*.exe" is removed between the glob expansion and the
47         processing of that oddly named file.
48
49 2010-09-17  Eric Blake  <eblake@redhat.com>
50
51         mirbsd: add some more support
52         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
53         in BSD family.
54         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
55         devices as OpenBSD.
56         * m4/host-os.m4 (mirbsd): Add MirBSD.
57
58         tests: fix unportable assumption on sys/wait.h
59         * tests/test-sys_wait.c (main): Relax test.
60         * tests/test-stdlib.c (main): Likewise.
61
62         init.sh: accomodate directory with no .exes
63         * tests/init.sh: Accomodate directory containing only scripts.
64
65         tests: avoid compiler warning
66         * tests/test-stdlib.c (main): Use the variable.
67
68         fdutimens, fdutimensat: update signature, again
69         * lib/utimens.h (gl_futimens): Delete, and move signature...
70         (fdutimens): ...here.
71         (fdutimensat): Rearrange signature.
72         (lutimensat): Rename variable for clarity.
73         * lib/fdutimensat.c (fdutimensat): Update signature.
74         * lib/utimens.c (fdutimens): Likewise.
75         (gl_futimens): Delete.
76         (utimens, lutimens): Update callers.
77         * lib/futimens.c (futimens): Likewise.
78         * tests/test-fdutimensat.c: Likewise.
79         * tests/test-utimens.c: Likewise.
80         * tests/test-futimens.h: Update comment.
81         * NEWS: Mention this.
82         Suggested by Paul Eggert.
83
84 2010-09-17  Bruno Haible  <bruno@clisp.org>
85
86         Take over the maintenance of some older macros from Autoconf.
87         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
88         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
89         GNU Autoconf.
90         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
91         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
92
93 2010-09-17  Eric Blake  <eblake@redhat.com>
94
95         fdutimensat: drop atflag validation
96         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
97         with valid fd, to close a race scenario where futimens is
98         unsupported and FILE was replaced by a symlink.
99         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
100         accordingly.
101         Suggested by Paul Eggert.
102
103 2010-09-16  Bruno Haible  <bruno@clisp.org>
104
105         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
106         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
107
108 2010-09-16  Bruno Haible  <bruno@clisp.org>
109
110         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
111         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
112         login_tty exists.
113         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
114
115 2010-09-16  Bruno Haible  <bruno@clisp.org>
116
117         login_tty: Make the replacement code work on BSD systems.
118         * lib/login_tty.c: Include <sys/ioctl.h>.
119         (login_tty): Use ioctl TIOCSCTTY when available.
120         * modules/login_tty (Depends-on): Add sys_ioctl.
121         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
122
123 2010-09-16  Bruno Haible  <bruno@clisp.org>
124
125         login_tty: Stricter unit test.
126         * modules/login_tty-tests (Depends-on): Add tcgetsid.
127         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
128         and tcgetsid() after login_tty.
129         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
130
131 2010-09-16  Bruno Haible  <bruno@clisp.org>
132
133         New module 'tcgetsid'.
134         * lib/tcgetsid.c: New file.
135         * m4/tcgetsid.m4: New file.
136         * modules/tcgetsid: New file.
137         * modules/termios (Depends-on): Add c++defs, warn-on-use.
138         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
139         GNULIB_TCGETSID, HAVE_TCGETSID.
140         * lib/termios.in.h: Include <sys/types.h>.
141         (tcgetsid): New declaration.
142         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
143         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
144         * doc/posix-functions/tcgetsid.texi: Mention the new module.
145         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
146
147 2010-09-16  Bruno Haible  <bruno@clisp.org>
148
149         Tests for module 'termios'.
150         * modules/termios-c++-tests: New file.
151         * modules/termios-tests: New file.
152         * tests/test-termios-c++.cc: New file.
153         * tests/test-termios.c: New file.
154
155         New module 'termios'.
156         * modules/termios: New file.
157         * lib/termios.in.h: New file.
158         * m4/termios_h.m4: New file.
159         * doc/posix-headers/termios.texi: Mention the new module.
160
161 2010-09-16  Eric Blake  <eblake@redhat.com>
162
163         fdutimensat: add an atflag parameter
164         * lib/fdutimensat.c (fdutimensat): Add new parameter.
165         * lib/utimens.h (fdutimensat): Update prototype.
166         * tests/test-fdutimensat.c: Adjust test to match.
167         * NEWS: Document the change.
168         Suggested by Paul Eggert.
169
170 2010-09-16  Bruno Haible  <bruno@clisp.org>
171
172         Fix typos in comments.
173         * lib/striconveh.h: Fix typo in comment.
174         * lib/login_tty.c (login_tty): Likewise.
175
176 2010-09-15  Bruno Haible  <bruno@clisp.org>
177
178         stdlib: clarify MirBSD WEXITSTATUS bug
179         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
180         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
181
182 2010-09-15  Eric Blake  <eblake@redhat.com>
183
184         stdlib: work around MirBSD WEXITSTATUS bug
185         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
186         * modules/stdlib (Depends-on): Add sys_wait.
187         * tests/test-sys_wait.c (main): Enhance test.
188         * tests/test-stdlib.c (main): Likewise.
189         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
190
191         docs: mention MacOS issue with WEXITSTATUS(constant)
192         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
193         issue.
194         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
195
196         strnlen: add tests
197         * modules/strnlen-tests: New file.
198         * tests/test-strnlen.c: Likewise.
199
200 2010-09-14  Bruno Haible  <bruno@clisp.org>
201
202         unistr/base: Avoid link errors when module 'libunistring' is also used.
203         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
204         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
205         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
206         Declare also when HAVE_LIBUNISTRING is set.
207         Reported by Pádraig Brady <P@draigbrady.com>.
208
209 2010-09-14  Eric Blake  <eblake@redhat.com>
210
211         test-rawmemchr: make more robust
212         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
213         (Depends-on, configure.ac): Add needed prerequisites to use it.
214         * modules/memchr-tests (Files, Depends-on, configure.ac):
215         Likewise, to avoid implicit reliance on memchr module prereqs.
216         * tests/test-memchr.c (main): Ensure proper masking.
217         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
218         reads.
219
220         memchr: detect glibc Alpha bug
221         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
222         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
223         Alpha.
224         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
225         * tests/test-memchr.c (main): Enhance test.
226         Reported by Nelson H. F. Beebe.
227
228 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
229
230         fts, getcwd, glob: audit for dirfd returning -1
231         * lib/fts.c (opendir): Remove #define; no longer used.
232         (opendirat): New arg PDIR_FD.  All callers changed.
233         (fts_build, _opendir2): Use new opendirat to avoid the need for
234         dirfd, or for checking whether dirfd returns a negative value.
235         Don't use opendir; always use openat followed by fdopendir.
236         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
237         it.
238         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
239         returns -1 here.
240         * modules/fts (Depends-on): Remove dirfd.
241         * modules/getcwd (Depends-on): Likewise.
242
243 2010-09-13  Eric Blake  <eblake@redhat.com>
244
245         float: fix broken MirBSD header
246         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
247         * doc/posix-headers/float.texi (float.h): Document it.
248
249 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
250
251         fts: use O_NOFOLLOW to avoid race condition when opening a directory
252         * lib/fts.c (opendirat): New arg extra_flags.
253         (__opendir2): Use it to avoid following symlinks when opening
254         a directory, if symlinks are not supposed to be followed.  See
255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
256
257         fdopendir: preserve argument fd before returning
258         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
259         (fdopendir_with_dup, fd_clone_opendir): New static functions.
260         (fdopendir): Use them, arranging for FD to be open to the same
261         directory that it was when it started.  (It might be temporarily
262         closed while fdopendir is running, so this not thread- or
263         signal-safe.)  Be careful to do the right thing even when file
264         descriptors are scarce and dup fails with errno == EMFILE.  See
265         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
266
267 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
268
269         regex: Pass the system regex if its only problem is 32-bit regoff_t.
270         * NEWS: Document change.
271         * m4/regex.m4: Disable test for regoff_t size.
272
273 2010-09-13  Jim Meyering  <meyering@redhat.com>
274
275         fts: don't operate on an invalid file descriptor after failed dup
276         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
277         negative file descriptor.
278
279 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
280
281         savedir: add streamsavedir, deprecate fdsavedir
282         * NEWS: Mention deprecation of fdsavedir.
283         * lib/savedir.c (streamsavedir): New extern function, whose name
284         ends in "savedir" to be consistent with the others.  This differs
285         from savedirstream in that it doesn't close its argument.  The
286         next version of GNU tar will use this instead of fdsavedir, to
287         avoid some race conditions and conserve file descriptors.
288         (savedirstream): Reimplement as a wrapper around streamsavedir.
289         (fdsavedir): Add a comment deprecating this function.  As far as
290         I know, only GNU tar used it, and GNU tar doesn't need it any more.
291         * lib/savedir.h (streamsavedir): New decl.
292         (fdsavedir): Add a comment deprecating this.
293
294 2010-09-10  Bruno Haible  <bruno@clisp.org>
295
296         langinfo: Fix last commit.
297         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
298         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
300
301 2010-09-10  Bruno Haible  <bruno@clisp.org>
302
303         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
304         * lib/progreloc.c (O_EXEC): Define fallback.
305
306 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
307
308         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
309         * NEWS: Document recent changes to fcntl-h.
310         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
311         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
312         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
313         Similarly for O_SEARCH; this last was already true, but not documented.
314         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
315         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
316         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
317         Likewise.
318         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
319         is zero, not whether it is defined.
320         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
321         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
322         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
323
324 2010-09-10  Bruno Haible  <bruno@clisp.org>
325
326         langinfo, nl_langinfo: Fix for IRIX 5.3.
327         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
328         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
329         HAVE_LANGINFO_YESEXPR.
330         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
331         HAVE_LANGINFO_YESEXPR.
332         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
333         HAVE_LANGINFO_T_FMT_AMPM is 0.
334         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
335         HAVE_LANGINFO_YESEXPR is 0.
336         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
337         NOEXPR.
338         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
339         * doc/posix-functions/nl_langinfo.texi: Likewise.
340         Reported by Eric Blake.
341
342 2010-09-10  Bruno Haible  <bruno@clisp.org>
343
344         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
345         * doc/glibc-functions/login_tty.texi: Mention the include file problem
346         on FreeBSD 8.0 and OpenBSD 4.6.
347         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
348         * m4/pty_h.m4 (gl_PTY_H): Likewise.
349         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
350         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
351         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
352         ac_includes_default.
353         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
354
355 2010-09-09  Eric Blake  <eblake@redhat.com>
356
357         strsignal: work around NetBSD bug
358         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
359         * lib/string.in.h (includes): Likewise.
360         * doc/posix-functions/strsignal.texi (strsignal): Document the
361         bug.
362         Reported by Nelson H. F. Beebe.
363
364         gnulib-tool: work with NetBSD /bin/sh
365         * gnulib-tool (func_cache_var, func_cache_lookup_module)
366         (func_get_description, func_get_comment, func_get_status)
367         (func_get_notice, func_get_applicability, func_get_filelist)
368         (func_get_dependencies, func_get_autoconf_early_snippet)
369         (func_get_autoconf_snippet, func_get_automake_snippet)
370         (func_get_include_directive, func_get_link_directive)
371         (func_get_license, func_get_maintainer, func_import): Avoid
372         shell syntax errors from parsing syntax extensions.
373
374 2010-09-09  Bruno Haible  <bruno@clisp.org>
375
376         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
377         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
378         a reliable way to determine whether the 'alias' command works.
379
380 2010-09-08  Jim Meyering  <meyering@redhat.com>
381
382         init.sh: penalize a set-x-impaired shell; don't disqualify it
383         * tests/init.sh: Too many shells corrupt application stderr when
384         you set -x, so we can't afford to disqualify them, since at least
385         on Irix-6.5, that would disqualify all bourne shells.
386         Instead, use a two-pass approach.
387         On the first pass, try to find a shell that meets the stricter
388         condition that set -x does not corrupt stderr.
389         If no shell meets the stricter condition, retest each candidate
390         shell, but without that extra condition.  Finally, when
391         VERBOSE=yes is requested and set -x might cause trouble, simply
392         issue a warning and refrain from enabling debug output.
393
394 2010-09-08  Eric Blake  <eblake@redhat.com>
395
396         unsetenv: fix OpenBSD bug
397         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
398         * doc/posix-functions/unsetenv.texi (unsetenv): Update
399         documentation.
400         Reported by Jim Meyering.
401
402         strtod: work around IRIX 6.5 bug
403         * lib/strtod.c (strtod): Reparse number on shorter string if
404         exponent parse was invalid.
405         * tests/test-strtod.c (main): Add check for "0x1p 2".
406         Reported by Tom G. Christensen.
407
408         getopt: optimize previous patch
409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
410         empty variable.  Speed up awk script.
411         Reported by Paolo Bonzini.
412
413 2010-09-08  Jim Meyering  <meyering@redhat.com>
414
415         test.sh: disqualify shells for which set -x corrupts stderr
416         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
417         and OpenBSD 4.7.  They make it so with "set -x", environment settings
418         appear in stderr output.  For example, this command:
419             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
420         prints "P=1" on those two systems:
421
422 2010-09-08  Bruno Haible  <bruno@clisp.org>
423
424         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
425         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
426         commands, because some shells ignore redirections when there is an
427         error in the command lookup.
428         Reported by Eric Blake.
429
430 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
431
432         * lib/regex.h: Fix a mention of `regex_compile' (should be
433         `re_compile_pattern').
434         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
435         (re_set_registers): Correct name of parameter in comment.
436
437         * doc/regex.texi: Add documentation for missing syntax flags.
438         Remove commented-out documentation of defunct syntax option
439         RE_NO_EMPTY_ALTS.
440         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
441         Add documentation of re_set_registers.
442         Document trick to re-use a pattern buffer by setting fastmap manually.
443         Update documentation of struct re_pattern_buffer per public members.
444         Uncomment documentation of equivalence class operators and
445         collating symbol operators, since they are now implemented,
446         Explain leftmost-longest matching in relation to alternatives.
447         Tidy documentation of substring matching.
448         Remove POSIX documentation, which is done better in
449         glibc, and refer the reader there. Keep BSD API documentation, as
450         that is not readily available elsewhere.
451
452 2010-09-07  Eric Blake  <eblake@redhat.com>
453
454         getopt: handle POSIXLY_CORRECT set but not exported
455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
456         export state of POSIXLY_CORRECT, due to bash set -o posix.
457         Reported by Dustin J. Mitchell.
458
459 2010-09-05  Bruno Haible  <bruno@clisp.org>
460
461         gnulib-tool: Highlight the changed options.
462         * gnulib-tool (func_usage): Display the --import, --add-import,
463         --remove-import explanations in bold font.
464
465 2010-09-06  Karl Berry  <karl@gnu.org>
466
467         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
468
469 2010-09-05  Bruno Haible  <bruno@clisp.org>
470
471         uniwidth/width: Update comment.
472         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
473         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
474
475 2010-09-05  Bruno Haible  <bruno@clisp.org>
476
477         isinf, isnan: Relax license.
478         * modules/isinf (License): Change from GPL to LGPL, with consent from
479         Ben Pfaff.
480         * modules/isnan (License): Likewise.
481         Requested by Ludovic Courtès.
482
483 2010-09-04  Bruno Haible  <bruno@clisp.org>
484
485         gnulib-tool: Help migration from --import to --add-import or --update.
486         * gnulib-tool: Emit a verbose error message when --import is used
487         without any module name.
488
489 2010-09-04  Bruno Haible  <bruno@clisp.org>
490
491         Update doc about gnulib-tool.
492         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
493         'gnulib-tool --update' in more detail.
494         Reported by Eric Blake.
495
496 2010-09-04  Bruno Haible  <bruno@clisp.org>
497
498         gnulib-tool: Change --import. New options --add/remove-import.
499         * gnulib-tool: New options --add-import, --remove-import.
500         (func_usage): Document them.
501         (have_associative): Define always.
502         (func_import): In import mode, don't merge the specified settings with
503         the cached settings. Implement remove-import mode.
504         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
505         Explain when to use them versus --import.
506         (Simple update): Use --add-import instead of --import.
507         * NEWS: Mention the change.
508
509 2010-09-04  Bruno Haible  <bruno@clisp.org>
510
511         * doc/gnulib-tool.texi (Initial import): Update paragraph about
512         separate gnulib.mk.
513
514 2010-09-04  Bruno Haible  <bruno@clisp.org>
515
516         gnulib-tool: Don't talk about CVS any more.
517         * gnulib-tool (func_usage, func_import): Write "version control"
518         instead of CVS.
519
520 2010-09-04  Jim Meyering  <meyering@redhat.com>
521
522         maint.mk: avoid obscure sc_copyright_check failure in coreutils
523         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
524         false positives (whose names may be ill-chosen) when searching
525         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
526         would cause a false-positive.
527
528         avoid coreutils "make distcheck" failure
529         Coreutils tests with an absolute build directory name that contains
530         a space.  Not quoting this directory name caused a failure.
531         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
532         * tests/test-vc-list-files-cvs.sh: Likewise.
533
534 2010-09-04  Bruno Haible  <bruno@clisp.org>
535
536         gnulib-tool: Avoid error when run in a package without Makefile.am.
537         * gnulib-tool: When collecting the m4dirs in a package that does not
538         have a Makefile.am, eliminate those directories that contain no
539         gnulib-cache.m4. Fix expression that counts these directories.
540
541 2010-09-04  Bruno Haible  <bruno@clisp.org>
542
543         update-copyright test: Improve output when perl is missing or too old.
544         * tests/test-update-copyright.sh: Move test of Perl version down after
545         the test whether Perl exists. Provide an explanation relating Perl's
546         error message to Automake's SKIP: message.
547
548 2010-09-04  Bruno Haible  <bruno@clisp.org>
549
550         Don't augment PATH in TESTS_ENVIRONMENT.
551         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
552         set abs_aux_dir instead of augmenting PATH.
553         * modules/vc-list-files-tests (Makefile.am): Likewise.
554         * tests/test-update-copyright.sh: Augment PATH here.
555         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
556         path_prepend_.
557         * tests/test-vc-list-files-git.sh: Likewise.
558
559 2010-09-04  Jim Meyering  <meyering@redhat.com>
560
561         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
562         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
563
564 2010-09-04  Bruno Haible  <bruno@clisp.org>
565
566         strdup: Fix compilation error in C++ mode.
567         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
568         the macro.
569
570 2010-09-04  Bruno Haible  <bruno@clisp.org>
571
572         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
573         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
574         macro into a function.
575         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
576
577 2010-09-04  Bruno Haible  <bruno@clisp.org>
578
579         Set PATH_SEPARATOR the same way autoconf does.
580         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
581         the value of PATH_SEPARATOR the same way autoconf-generated configure
582         scripts do.
583         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
584         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
585
586 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
587
588         Set PATH_SEPARATOR the same way autoconf does.
589         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
590         the same way autoconf-generated configure scripts do.
591         * posix-modules: Likewise.
592
593 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
594
595         hash: fix safe_hasher const typo
596         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
597         const; otherwise, there is a type error later.
598
599 2010-09-02  Jim Meyering  <meyering@redhat.com>
600
601         test-update-copyright.sh: require perl 5.8.0
602         * tests/test-update-copyright.sh: Require 5.8.0,
603         which Tom G. Christensen has confirmed is adequate,
604         while 5.6.1 is not.
605
606 2010-09-02  Eric Blake  <eblake@redhat.com>
607
608         tests: init.sh improvements for re-exec'ing with zsh
609         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
610         -vx through shell re-exec.
611         Reported by Tom G. Christensen.
612
613         wctype: fix typo in previous commit
614         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
615         Reported by Ludovic Courtès.
616
617 2010-09-02  Jim Meyering  <meyering@redhat.com>
618
619         test-update-copyright.sh: skip test if Perl is too old
620         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
621         Reported by Tom G. Christensen.
622
623 2010-09-02  Bruno Haible  <bruno@clisp.org>
624
625         wctype: Avoid compilation error on IRIX 6.5.30.
626         * lib/wctype.in.h (iswblank): Declare with a replacement if
627         REPLACE_ISWBLANK is set.
628         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
629         declared. Set REPLACE_ISWBLANK.
630         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
631         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
632         * doc/posix-headers/wctype.texi: Likewise.
633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
634
635 2010-09-01  Bruno Haible  <bruno@clisp.org>
636
637         New module 'socketlib'.
638         * modules/socketlib: New file.
639         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
640         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
641         * modules/sockets (Depends-on): Add socketlib.
642         Suggested by Sam Steingold <sds@gnu.org>.
643
644 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
645
646         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
647
648         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
649         when one needs search access to a directory but not read access.
650         On systems where it is available, it works in some cases where
651         O_RDONLY does not, namely on directories that are searchable but
652         not readable, and which need only to be searchable.  If O_SEARCH
653         is not available, fall back to the traditional method of using
654         O_RDONLY.
655
656         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
657         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
658         when opening a directory that needs only to be searchable.
659         * lib/chdir-safer.c (chdir_no_follow): Likewise.
660         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
661         * lib/openat-proc.c (openat_proc_name): Likewise.
662         * lib/openat.c (openat_needs_fchdir): Likewise.
663         * lib/save-cwd.c (save_cwd): Likewise.
664         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
665
666 2010-08-28  Bruno Haible  <bruno@clisp.org>
667
668         New module 'host-cpu-c-abi'.
669         * modules/host-cpu-c-abi: New file.
670         * m4/host-cpu-c-abi.m4: New file, based on part of
671         clisp/src/m4/general.m4.
672         Requested by Sam Steingold <sds@gnu.org>.
673
674 2010-08-31  Eric Blake  <eblake@redhat.com>
675         and Jim Meyering  <meyering@redhat.com>
676
677         hash: factor, and guard against misbehaving hasher function
678         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
679         of table->hasher's return value.  Also protect against a hash value
680         so large that adding it to table->bucket results in a NULL pointer.
681         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
682         Use it in place of open-coded check-and-abort.
683
684 2010-08-30  Bruno Haible  <bruno@clisp.org>
685
686         hash: silence spurious clang warning
687         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
688         Reported by Eric Blake.
689
690 2010-08-30  Eric Blake  <eblake@redhat.com>
691
692         strstr, memmem, strcasestr: avoid leaked shell message
693         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
694         FreeBSD.
695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
696         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
697
698         tests: silence clang warning
699         * tests/test-malloca.c (do_allocation): Avoid dead store.
700
701 2010-08-29  Bruno Haible  <bruno@clisp.org>
702
703         gettext: Fix recent mistake.
704         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
705
706 2010-08-29  Bruno Haible  <bruno@clisp.org>
707
708         selinux-h: Offer a --without-selinux option.
709         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
710         --without-selinux was specified, skip all tests and define
711         HAVE_SELINUX_SELINUX_H to 0.
712         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
713         set LIB_SELINUX to empty.
714         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
715         gl_LIBSELINUX. If --without-selinux was specified, replace
716         selinux/context.h.
717         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
718
719 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
720             Bruno Haible  <bruno@clisp.org>
721
722         Make the module 'realloc-gnu' work again on AIX and OSF/1.
723         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
724         of HAVE_REALLOC.
725         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
726         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
727         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
728         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
729
730 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
731             Bruno Haible  <bruno@clisp.org>
732
733         Make the module 'calloc-gnu' work again on AIX and OSF/1.
734         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
735         HAVE_CALLOC.
736         * lib/xmalloc.c: Update accordingly.
737         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
738         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
739         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
740
741 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
742             Bruno Haible  <bruno@clisp.org>
743
744         Make the module 'malloc-gnu' work again on AIX and OSF/1.
745         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
746         HAVE_MALLOC.
747         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
748         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
749         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
750
751 2010-08-29  Bruno Haible  <bruno@clisp.org>
752
753         Update modules list.
754         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
755         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
756         (String handling <string.h>): Add astrxfrm.
757         (File system functions): Add readlinkat.
758
759 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
760
761         Tests for module 'realloc-gnu'.
762         * modules/realloc-gnu-tests: New file.
763         * tests/test-realloc-gnu.c: New file.
764
765         Tests for module 'calloc-gnu'.
766         * modules/calloc-gnu-tests: New file.
767         * tests/test-calloc-gnu.c: New file.
768
769         Tests for module 'malloc-gnu'.
770         * modules/malloc-gnu-tests: New file.
771         * tests/test-malloc-gnu.c: New file.
772
773 2010-08-28  Bruno Haible  <bruno@clisp.org>
774
775         Rename module 'realloc' -> 'realloc-gnu'.
776         * modules/realloc-gnu: New file, copied from modules/realloc.
777         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
778         obsolete.
779         * modules/mgetgroups (Depends-on): Update.
780         * doc/posix-functions/realloc.texi: Update.
781         * NEWS: Mention the change.
782
783         Rename module 'calloc' -> 'calloc-gnu'.
784         * modules/calloc-gnu: New file, copied from modules/calloc.
785         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
786         obsolete.
787         * doc/posix-functions/calloc.texi: Update.
788         * NEWS: Mention the change.
789
790         Rename module 'malloc' -> 'malloc-gnu'.
791         * modules/malloc-gnu: New file, copied from modules/malloc.
792         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
793         obsolete.
794         * modules/argp (Depends-on): Update.
795         * modules/regex (Depends-on): Update.
796         * doc/posix-functions/malloc.texi: Update.
797         * NEWS: Mention the change.
798
799 2010-08-28  Eric Blake  <eblake@redhat.com>
800
801         pread, pwrite: add missing dependency
802         * modules/pread (Depends-on): Add extensions.
803         * modules/pwrite (Depends-on): Likewise.
804
805 2010-08-28  Bruno Haible  <bruno@clisp.org>
806
807         unistr/u*-strchr: Fix tests dependencies.
808         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
809         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
810         Reported by Ian Beckwith <ianb@erislabs.net>.
811
812 2010-08-28  Bruno Haible  <bruno@clisp.org>
813
814         read-file: Don't occupy too much unused memory.
815         * lib/read-file.c (fread_file): Shrink the buffer at the end.
816
817 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
818             Eric Blake  <eblake@redhat.com>
819             Bruno Haible  <bruno@clisp.org>
820
821         read-file: Avoid memory reallocations with regular files.
822         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
823         (fread_file): With regular files, use the remaining length as the
824         initial buffer size.  Check against overflow.
825         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
826         sys_stat.
827
828 2010-08-28  Bruno Haible  <bruno@clisp.org>
829
830         ftello: Relax license.
831         * modules/ftello (License): Relax to LGPLv2+.
832         Reported by Eric Blake.
833
834 2010-08-28  Bruno Haible  <bruno@clisp.org>
835
836         Avoid relocwrapper link errors due to gnulib replacement functions.
837         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
838         function.
839         Reported by Ben Pfaff <blp@cs.stanford.edu>.
840
841 2010-08-28  Bruno Haible  <bruno@clisp.org>
842
843         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
844         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
845         defined.
846         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
847         Suggested by Eric Blake.
848
849 2010-08-28  Bruno Haible  <bruno@clisp.org>
850
851         sys_socket, netdb: Ensure socklen_t gets defined.
852         * modules/sys_socket (Depends-on): Add socklen.
853         * modules/netdb (Depends-on): Likewise.
854         * modules/getaddrinfo (Depends-on): Remove socklen.
855         * modules/getsockopt (Depends-on): Likewise.
856         * modules/setsockopt (Depends-on): Likewise.
857         * tests/test-sys_socket.c: Check that socklen_t is defined.
858         * tests/test-netdb.c: Likewise.
859         * m4/socklen.m4: Update comments.
860         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
861
862 2010-08-27  Eric Blake  <eblake@redhat.com>
863
864         login_tty: add missing dependency
865         * modules/login_tty (Depends-on): Add pty.
866
867 2010-08-26  Eric Blake  <eblake@redhat.com>
868
869         lib-symbol-versions: fix m4 quoting
870         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
871         format for AC_LINK_IFELSE.
872
873         glob: fix compile test
874         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
875
876         btowc: fix missing file
877         * modules/btowc (Files): Also ship locale-fr.m4.
878
879         lseek: fix link test
880         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
881         AC_LINK_IFELSE.
882
883         include_next: silence autoconf 2.68 warning
884         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
885         AC_COMPILE_IFELSE as special.
886         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
887         autoconf < 2.68.
888
889         acl: fix compilation test
890         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
891         AC_COMPILE_IFELSE.
892
893 2010-08-26  Bruno Haible  <bruno@clisp.org>
894
895         Modernize AC_TRY_RUN invocations.
896         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
897         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
898         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
899         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
900         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
901         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
902         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
904         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
905         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
907         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
908         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
909         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
911         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
912         gl_MBRLEN_NUL_RETVAL): Likewise.
913         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
914         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
915         Likewise.
916         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
917         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
918         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
919         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
920         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
921         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
922         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
923         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
924         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
925         Likewise.
926         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
927         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
929         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
931         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
932         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
933         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
934         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
936
937 2010-08-26  Bruno Haible  <bruno@clisp.org>
938
939         Modernize AC_TRY_LINK invocations.
940         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
941         AC_TRY_LINK.
942         * m4/argp.m4 (gl_ARGP): Likewise.
943         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
944         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
945         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
946         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
947         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
948         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
949         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
950         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
951         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
952         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
953         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
954         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
955         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
956         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
957         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
958         * m4/hostent.m4 (gl_HOSTENT): Likewise.
959         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
960         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
961         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
962         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
963         Likewise.
964         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
965         Likewise.
966         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
967         Likewise.
968         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
970         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
971         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
972         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
973         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
974         * m4/servent.m4 (gl_SERVENT): Likewise.
975         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
976         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
977         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
978         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
979         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
980         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
981         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
983         * modules/tsearch-tests (configure.ac): Likewise.
984
985 2010-08-26  Bruno Haible  <bruno@clisp.org>
986
987         Modernize AC_TRY_COMPILE invocations.
988         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
989         AC_TRY_COMPILE.
990         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
991         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
992         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
993         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
994         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
995         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
996         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
997         * m4/lock.m4 (gl_LOCK): Likewise.
998         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
999         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1000         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1001         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1002         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1003         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1004         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1005         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1006         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1007         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1008         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1009         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1010         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1011         extraneous semicolon.
1012
1013 2010-08-26  Jim Meyering  <meyering@redhat.com>
1014
1015         stat-time: relax license LGPL
1016         * modules/stat-time (License): Change from GPL to LGPL,
1017         with consent from all contributors, for use in libguile.
1018         Requested by Ludovic Courtès.
1019
1020 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1021
1022         poll: return immediately on POLLHUP.
1023         * lib/poll.c (poll): Always set timeout before wait_timeout is
1024         computed.
1025
1026 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1027
1028         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1029         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1030         rmdir ("dir/.//"), unlinkat.
1031
1032 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1033
1034         stdbool: avoid spurious failure with modern xlc
1035         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1036
1037 2010-08-24  Bruno Haible  <bruno@clisp.org>
1038
1039         getloadavg: simplify code
1040         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1041         gl_have_func. Update comments.
1042
1043 2010-08-24  Eric Blake  <eblake@redhat.com>
1044
1045         getloadavg: don't define SVR4 on cygwin
1046         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1047         only define SVR4 when -lkvm is required.
1048         Reported by Yaakov Selkowitz.
1049
1050 2010-08-24  Bruno Haible  <bruno@clisp.org>
1051
1052         priv-set: fix comment
1053         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1054
1055 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         priv-set: fix comments
1058         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1059         to match code, as suggested by David Bartley in:
1060         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1061
1062 2010-08-23  Eric Blake  <eblake@redhat.com>
1063
1064         stdbool: avoid rejecting clang
1065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1066         * tests/test-stdbool.c: Enable more tests if using the system
1067         <stdbool.h> instead of the gnulib replacement.
1068         (main): Move xlc bug test to a runtime test for all compilers.
1069         Reported by Anders Kaseorg.
1070
1071         argz: fix shell quoting issue
1072         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1073         Reported by Charles Wilson.
1074
1075 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1076             Erik Faye-Lund <kusmabite@gmail.com>
1077
1078         poll, select: handle ERROR_BROKEN_PIPE.
1079         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1080         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1081         * lib/select.c (win32_compute_revents): Do not mark a pipe
1082         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1083
1084 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1085
1086         fts: allow compilation with C++
1087         * lib/fts_.h: Specify extern "C" linkage with C++.
1088
1089 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1090
1091         Fix gnulib-tool sed script de-commentation for AIX sed.
1092         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1093         sed.
1094
1095 2010-08-17  Eric Blake  <eblake@redhat.com>
1096
1097         test-stddef: test for (some) offsetof bugs
1098         * tests/test-stddef.c: Enhance test to ensure correct type of
1099         offsetof.
1100         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1101         that we are not fixing at this time.
1102
1103 2010-08-15  Bruno Haible  <bruno@clisp.org>
1104
1105         stpncpy: Allow stpncpy to be defined as a macro.
1106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1107         if it's already correctly declared.
1108         * lib/string.in.h (stpncpy): Undefine before redefining.
1109         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1110
1111 2010-08-14  Bruno Haible  <bruno@clisp.org>
1112
1113         Rename module 'memxfrm' to 'amemxfrm'.
1114         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1115         (amemxfrm): Renamed from memxfrm.
1116         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1117         (amemxfrm): Renamed from memxfrm.
1118         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1119         * NEWS: Mention the change.
1120         * MODULES.html.sh (String handling <string.h>): Update.
1121         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1122         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1123         * lib/unicase/u16-casexfrm.c: Likewise.
1124         * lib/unicase/u32-casexfrm.c: Likewise.
1125         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1126         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1127         * lib/uninorm/u16-normxfrm.c: Likewise.
1128         * lib/uninorm/u32-normxfrm.c: Likewise.
1129         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1130         memxfrm.
1131         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1132         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1133         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1134         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1135         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1136         Suggested by Paul Eggert.
1137
1138 2010-08-14  Bruno Haible  <bruno@clisp.org>
1139
1140         Tests for module 'astrxfrm'.
1141         * modules/astrxfrm-tests: New file.
1142         * tests/test-astrxfrm.c: New file.
1143
1144         New module 'astrxfrm'.
1145         * lib/astrxfrm.h: New file.
1146         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1147         * modules/astrxfrm: New file.
1148
1149 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1150
1151         regex: Tweak doc.
1152         * doc/regex.texi (Overview): Don't mention regex.c.
1153         (GNU Regular Expression Compiling): Likewise.
1154         (Match-end-of-line Operator): Mention 'not_eol'.
1155
1156 2010-08-14  Brian Gough  <bjg@gnu.org>
1157             Bruno Haible  <bruno@clisp.org>
1158
1159         git-merge-changelog: add doc relating to use with bzr and hg.
1160         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1161
1162 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1163
1164         pthread: fix pthread.h creation for srcdir != builddir
1165         * modules/pthread (Makefile.am): Fix the rule to work also in a
1166         non-srcdir build.
1167
1168 2010-08-13  Karl Berry  <karl@gnu.org>
1169
1170         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1171         * doc/posix-*/*: force line break before @url of POSIX
1172         specifications.
1173         Suggested by Werner Lemberg.
1174
1175 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1176
1177         strtod: fix const diagnostic
1178         * lib/strtod.c (strtod): Don't assign const char * to char *,
1179         as this elicits a warning from GCC when warnings are enabled.
1180
1181 2010-08-10  Pádraig Brady <P@draigbrady.com>
1182         and Eric Blake  <eblake@redhat.com>
1183
1184         copy-acl: ignore ENOTSUP on HP-UX
1185         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1186         so that it is available for HP-UX.
1187         * lib/copy-acl.c (qcopy_acl): Use it.
1188         Reported by Patrick M. Callahan.
1189
1190 2010-08-10  Eric Blake  <eblake@redhat.com>
1191
1192         open, chown: relax license
1193         * modules/open (License): Change to LGPLv2+, with consent by all
1194         authors, for use in augeas.
1195         * modules/chown (License): Likewise.
1196         * modules/lchown (Likewise): Likewise.
1197         Requested by Adam Stokes.
1198
1199 2010-08-09  Karl Berry  <karl@gnu.org>
1200
1201         * build-aux/ar-lib: new file, import from Automake.
1202         * config/srclist.txt: autocheck for updates.
1203
1204 2010-08-09  Eric Blake  <eblake@redhat.com>
1205
1206         readlinkat: adjust client modules
1207         * modules/areadlinkat (Depends-on): Use readlinkat, not
1208         symlinkat.
1209         * modules/areadlinkat-with-size (Depends-on): Likewise.
1210
1211         mknod: be more vocal about danger of running tests as root
1212         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1213         root, since that is just asking for problems.
1214         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1215
1216         readlinkat: split into its own module
1217         * modules/symlinkat: Split readlinkat...
1218         * modules/readlinkat: ...into separate module.
1219         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1220         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1221         * lib/symlinkat.c (readlinkat): Move...
1222         * lib/readlinkat.c: ...into new file.
1223         * modules/symlinkat-tests: Split readlinkat test...
1224         * modules/readlinkat-tests: ...into separate module.
1225         * tests/test-symlinkat.c: Split...
1226         * tests/test-readlinkat.c: ...into new file.
1227         * NEWS: Document the split.
1228         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1229         * lib/unistd.in.h (readlinkat): Likewise.
1230         Suggested by Bruno Haible.
1231
1232 2010-08-08  Bruno Haible  <bruno@clisp.org>
1233
1234         memxfrm: Speed up.
1235         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1236         that usually only one call to strxfrm is necessary for each string
1237         part.
1238         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1239
1240 2010-08-07  Karl Berry  <karl@gnu.org>
1241
1242         * doc/posix-headers/limits.texi,
1243         * doc/posix-functions/malloc.texi,
1244         * doc/posix-functions/strsignal.texi: missing @item.
1245         * doc/ld-version-script.texi: spurious leading i.
1246         * doc/regex.texi (Interval Operators): no commas inside @var.
1247
1248 2010-08-01  Bruno Haible  <bruno@clisp.org>
1249
1250         Integrate the regex documentation.
1251         * doc/gnulib.texi: Define 'cn' index.
1252         (Regular expressions): New a chapter that includes regex.texi and
1253         regexprops-generic.texi.
1254         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1255         syntax.
1256
1257         Whitespace cleanup.
1258         * doc/regex.texi: Remove trailing spaces.
1259
1260         Add regex documentation.
1261         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1262         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1263         Written by Kathy A. Hargreaves and Karl Berry.
1264
1265 2010-08-01  Bruno Haible  <bruno@clisp.org>
1266
1267         link: Update documentation.
1268         * doc/posix-functions/link.texi: Update regarding Solaris.
1269
1270 2010-07-31  Bruno Haible  <bruno@clisp.org>
1271
1272         Update modules list.
1273         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1274         (String handling <string.h>): Add memcmp2, memxfrm.
1275         (Container data structures): Add xlist, xsublist, xoset.
1276         (Core language properties): Add alignof, unused-parameter.
1277         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1278         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1279         (Unibyte characters <ctype.h>): New section.
1280         (String handling <string.h>): New section.
1281         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1282         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1283         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1284         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1285         tan, tanh, tanl, y0, y1, yn.
1286         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1287         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1288         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1289         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1290         unlockpt, vdprintf, vdprintf-posix.
1291         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1292         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1293         xconcat-filename.
1294         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1295         getdtablesize, pipe2, pipe2-safer.
1296         (Security): New section.
1297         (Networking functions): Add accept4.
1298         (Signal handling): Add sigpipe.
1299         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1300         mbmemcasecoll.
1301         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1302         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1303         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1304         pipe-filter-ii.
1305         (Misc): Add argp-version-etc, login_tty, parse-duration.
1306
1307 2010-07-31  Bruno Haible  <bruno@clisp.org>
1308
1309         Improve doc in MODULES.html.
1310         * modules/linkat (Description): Add the word "function".
1311         * modules/mkfifo (Description): Likewise.
1312         * modules/mknod (Description): Likewise.
1313         * modules/remove (Description): Likewise.
1314         * modules/renameat (Description): Likewise.
1315         * modules/stat (Description): Likewise.
1316         * modules/symlink (Description): Likewise.
1317         * modules/unlink (Description): Likewise.
1318
1319 2010-07-31  Bruno Haible  <bruno@clisp.org>
1320
1321         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1322         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1323         option --enable/disable-c++ instead of --enable/disable-cxx.
1324         * NEWS: Mention the change.
1325
1326 2010-07-31  Bruno Haible  <bruno@clisp.org>
1327
1328         readlink, areadlink: Relax test a bit.
1329         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1330         alternative to ENOTDIR.
1331         * tests/test-areadlink.h (test_areadlink): Likewise.
1332         Reported by Rainer Tammer.
1333
1334 2010-07-31  Bruno Haible  <bruno@clisp.org>
1335
1336         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1337         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1338         character, perform the search using U_STRCHR.
1339         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1340         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1341         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1342         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1343         Suggested by Paolo Bonzini.
1344
1345 2010-07-31  Bruno Haible  <bruno@clisp.org>
1346
1347         unistr/u*-strstr: Fix dependencies.
1348         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1349         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1350         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1351
1352 2010-07-31  Bruno Haible  <bruno@clisp.org>
1353
1354         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1355         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1356         the beginning of the loop.
1357         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1358         cases in 'switch' statement.
1359
1360         unistr/u8-strchr: Fix several bugs.
1361         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1362         the string. When not found, return NULL, not a pointer near the end.
1363
1364         More tests for unistr/u8-strchr.
1365         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1366         that the function does not read past the first occurrence of the byte
1367         being searched.
1368         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1369         * tests/unistr/test-u16-strchr.c (main): New function.
1370         * tests/unistr/test-u32-strchr.c (main): New function.
1371
1372 2010-07-31  Bruno Haible  <bruno@clisp.org>
1373
1374         posix-modules: Ignore backup files of documentation files.
1375         * posix-modules: grep only through files named *.texi.
1376
1377 2010-07-31  Bruno Haible  <bruno@clisp.org>
1378
1379         symlinkat: Fix documentation.
1380         * doc/posix-functions/readlinkat.texi: Fix module name.
1381
1382 2010-07-31  Bruno Haible  <bruno@clisp.org>
1383
1384         fchownat: Replace also when chown has the trailing slash bug.
1385         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1386         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1387         introduced on 2010-04-10.
1388         Reported by Rainer Tammer.
1389
1390 2010-07-31  Bruno Haible  <bruno@clisp.org>
1391
1392         linkat: Work around AIX 7.1 bug.
1393         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1394         whether linkat handles trailing slash correctly. If not, replace linkat
1395         and define LINKAT_TRAILING_SLASH_BUG.
1396         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1397         check whether (fd1,file1) points to a directory if file1 or file2 ends
1398         in a slash. Code taken from lib/link.c.
1399         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1400         Reported by Rainer Tammer.
1401
1402 2010-07-31  Bruno Haible  <bruno@clisp.org>
1403
1404         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1405         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1406         This disables an xlc optimization that was causing wrong test results.
1407         Reported by Rainer Tammer.
1408
1409 2010-07-31  Bruno Haible  <bruno@clisp.org>
1410
1411         iconv: Work around AIX 6.1..7.1 bug.
1412         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1413         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1414         cross-compiling, guess no on all versions of AIX.
1415         Reported by Rainer Tammer.
1416
1417 2010-07-31  Bruno Haible  <bruno@clisp.org>
1418
1419         readlink: Relax test a bit.
1420         * tests/test-readlink.h (test_readlink): Allow different errno value
1421         when readlink is called with a file name that ends in / and refers to
1422         a file.
1423         Suggested by Eric Blake.
1424         Reported by Rainer Tammer.
1425
1426 2010-07-31  Bruno Haible  <bruno@clisp.org>
1427
1428         copysign: Does not require -lm on glibc systems.
1429         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1430         gl_COMMON_DOUBLE_MATHFUNC.
1431         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1432
1433 2010-07-31  Bruno Haible  <bruno@clisp.org>
1434
1435         duplocale: Work around AIX 7.1 bug.
1436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1437         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1438         * lib/duplocale.c (rpl_duplocale): Update comment.
1439         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1440         Reported by Rainer Tammer.
1441
1442 2010-07-30  Bruno Haible  <bruno@clisp.org>
1443
1444         dirfd: Avoid link error on AIX 7.1.
1445         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1446         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1447         exist, set REPLACE_DIRFD.
1448         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1449         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1450         * doc/posix-functions/dirfd.texi: Update.
1451         Reported by Rainer Tammer.
1452
1453 2010-07-30  Eric Blake  <eblake@redhat.com>
1454
1455         strtod: next round of AIX fixes
1456         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1457         exponent.
1458         * tests/test-strtod.c (main): Enhance tests.
1459         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1460         Reported by Rainer Tammer.
1461
1462         futimens: fix configure check
1463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1464         Reported by Bruno Haible.
1465
1466 2010-07-30  Bruno Haible  <bruno@clisp.org>
1467
1468         getline: Update regarding AIX.
1469         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1470         Reported by Rainer Tammer.
1471
1472 2010-07-30  Bruno Haible  <bruno@clisp.org>
1473
1474         wcwidth: Drop replacement on AIX 7.
1475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1476         AIX 7.
1477         Reported by Rainer Tammer.
1478
1479 2010-07-30  Bruno Haible  <bruno@clisp.org>
1480
1481         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1482         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1483         a 'char *'.
1484         Reported by Rainer Tammer.
1485
1486 2010-07-30  Bruno Haible  <bruno@clisp.org>
1487
1488         unlink: Update regarding AIX.
1489         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1490         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1491         Reported by Rainer Tammer.
1492
1493 2010-07-30  Bruno Haible  <bruno@clisp.org>
1494
1495         symlink: Update regarding AIX.
1496         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1497         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1498         Reported by Rainer Tammer.
1499
1500 2010-07-30  Bruno Haible  <bruno@clisp.org>
1501
1502         strndup: Update regarding AIX.
1503         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1504         AIX 7.
1505         Reported by Rainer Tammer.
1506
1507 2010-07-30  Bruno Haible  <bruno@clisp.org>
1508
1509         stat: Update regarding AIX.
1510         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1511         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1512         Reported by Rainer Tammer.
1513
1514 2010-07-30  Bruno Haible  <bruno@clisp.org>
1515
1516         truncl: Fix autoconf test.
1517         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1518         whether truncl works.
1519         Reported by Rainer Tammer.
1520
1521 2010-07-30  Bruno Haible  <bruno@clisp.org>
1522
1523         round: Update regarding AIX.
1524         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1525         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1526         Reported by Rainer Tammer.
1527
1528 2010-07-30  Bruno Haible  <bruno@clisp.org>
1529
1530         rename: Update regarding AIX.
1531         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1532         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1533         Reported by Rainer Tammer.
1534
1535 2010-07-30  Bruno Haible  <bruno@clisp.org>
1536
1537         printf.m4: Update regarding AIX.
1538         * m4/printf.m4: Update comments regarding AIX.
1539         Reported by Rainer Tammer.
1540
1541 2010-07-30  Bruno Haible  <bruno@clisp.org>
1542
1543         iconv: Update regarding AIX.
1544         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1545         AIX 7.
1546         Reported by Rainer Tammer.
1547
1548 2010-07-30  Bruno Haible  <bruno@clisp.org>
1549
1550         getopt: Update regarding AIX.
1551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1552         no on AIX.
1553         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1554         Reported by Rainer Tammer.
1555
1556 2010-07-30  Bruno Haible  <bruno@clisp.org>
1557
1558         ldexpl; Update regarding AIX.
1559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1560         on AIX 7.
1561         Reported by Rainer Tammer.
1562
1563 2010-07-30  Bruno Haible  <bruno@clisp.org>
1564
1565         frexpl: Update regarding AIX.
1566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1567         on AIX 7.
1568         Reported by Rainer Tammer.
1569
1570 2010-07-30  Bruno Haible  <bruno@clisp.org>
1571
1572         open, fopen: Update regarding AIX.
1573         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1574         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1575         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1576         * doc/posix-functions/fopen.texi: Likewise.
1577         Reported by Rainer Tammer.
1578
1579 2010-07-30  Bruno Haible  <bruno@clisp.org>
1580
1581         chown: Update doc regarding AIX.
1582         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1583         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1584         Reported by Rainer Tammer.
1585
1586 2010-07-30  Eric Blake  <eblake@redhat.com>
1587
1588         strtod: fix bug in replacement function on AIX
1589         * lib/strtod.c (strtod): Special case broken "0x" parse in
1590         underlying strtod.
1591         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1592         * doc/posix-functions/strtod.texi (strtod): Likewise.
1593         Reported by Rainer Tammer.
1594
1595 2010-07-30  Bruno Haible  <bruno@clisp.org>
1596
1597         mbrlen: Fix cross-compilation guess for AIX.
1598         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1599         guess. Leftover from 2008-12-22.
1600
1601 2010-07-30  Bruno Haible  <bruno@clisp.org>
1602
1603         mbrtowc: Fix cross-compilation guess for AIX.
1604         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1605         guess. Leftover from 2008-12-21.
1606
1607 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1608
1609         init.sh: work around trap limitation of some shells
1610         * tests/init.sh (setup_): Move exit trap outside of shell function.
1611
1612 2010-07-29  Eric Blake  <eblake@redhat.com>
1613
1614         strtod: aid debugging
1615         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1616         understanding why strtod is rejected.
1617
1618 2010-07-28  Bruno Haible  <bruno@clisp.org>
1619
1620         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1621         * lib/unistr/u8-chr.c: Include <string.h>.
1622         * tests/unistr/test-u8-chr.c: Likewise.
1623         * tests/unistr/test-u16-chr.c: Likewise.
1624         * tests/unistr/test-u32-chr.c: Likewise.
1625         * tests/unistr/test-u8-strchr.c: Likewise.
1626         * tests/unistr/test-u16-strchr.c: Likewise.
1627         * tests/unistr/test-u32-strchr.c: Likewise.
1628         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1629         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1630         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1631         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1632
1633 2010-07-28  Bruno Haible  <bruno@clisp.org>
1634
1635         Use spaces for indentation, not tabs.
1636         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1637
1638 2010-07-27  Bruno Haible  <bruno@clisp.org>
1639
1640         mbspcasecmp: Fix function specification.
1641         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1642         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1643         Reported by Eric Blake <eblake@redhat.com>.
1644
1645 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1646
1647         timespec: use cast and not conditional, as truncation isn't possible
1648         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1649         instead of a conditional.  Comment about the situation in more detail.
1650         This undoes most of the 2009-10-29 patch.
1651
1652 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1653
1654         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1655         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1656         * lib/unistr/u8-strchr.c: Likewise.
1657         * modules/unistr/u8-chr: Depend on memchr.
1658
1659         unistr/u*-strchr: add tests
1660         * modules/unistr/u8-strchr-tests: New file.
1661         * modules/unistr/u16-strchr-tests: New file.
1662         * modules/unistr/u32-strchr-tests: New file.
1663         * tests/unistr/test-strchr.h: New file.
1664         * tests/unistr/test-u8-strchr.c: New file.
1665         * tests/unistr/test-u16-strchr.c: New file.
1666         * tests/unistr/test-u32-strchr.c: New file.
1667
1668         unistr/u*-chr: test multibyte sequences more
1669         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1670         test vector.
1671         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1672         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1673         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1674
1675         unistr/u*-chr: test multibyte sequences
1676         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1677
1678         unistr/u*-chr: prepare for multibyte tests
1679         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1680         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1681         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1682         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1683         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1684         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1685
1686 2010-07-18  Bruno Haible  <bruno@clisp.org>
1687
1688         unistr/u8-strchr: Optimize non-ASCII argument case.
1689         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1690         because the first byte often matches anyway.
1691         Reported by Pádraig Brady <P@draigbrady.com>.
1692
1693 2010-07-15  Karl Berry  <karl@gnu.org>
1694
1695         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1696
1697 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1698
1699         getcwd: on Solaris, work better if ancestors are inaccessible
1700         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1701         buffer and size, try again with a large buffer.  This works better
1702         on Solaris, since its getcwd succeeds even if the path to the root
1703         is inaccessible, and this is helpful in common cases such as .zfs
1704         hidden directories.  Problem reported by J Chapman Flack in
1705         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1706         Use system getcwd if it's declared, not merely if it's partly
1707         working; use the partly-working test only to avoid needless effort
1708         if the system getcwd fails.
1709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1710         comment that was already obsolete and is now even more obsolete.
1711         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1712         now might call strdup.
1713
1714 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1715
1716         pthread: Add enough so that coreutils/src/sort.c compiles.
1717         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1718         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1719         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1720         Include <sys/types.h>, in case it defines pthread_t.
1721         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1722         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1723         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1724         (pthread_rwlockattr_t, pthread_spinlock_t):
1725         New typedefs, if HAVE_PTHREAD_T is not defined.
1726         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1727         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1728         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1729         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1730         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1731         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1732         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1733         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1734         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1735         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1736         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1737         New macros.
1738         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1739         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1740         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1741         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1742         (pthread_spin_unlock): New dummy functions.
1743         (pthread_create): Return EAGAIN; don't set errno.
1744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1745         require AC_C_INLINE.
1746         * modules/pthread (Depends-on): Add sched, time.
1747         (pthread.h): Use AM_V_GEN.
1748
1749 2010-07-13  Bruno Haible  <bruno@clisp.org>
1750
1751         striconveh: Don't malloc memory if the result buffer is sufficient.
1752         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1753         buffer if its size is sufficient.
1754         Reported by Ludovic Courtès <ludo@gnu.org>.
1755
1756 2010-07-13  Bruno Haible  <bruno@clisp.org>
1757
1758         strtod: Add safety check.
1759         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1760
1761 2010-07-12  Bruno Haible  <bruno@clisp.org>
1762
1763         Unify tests that set gl_cv_func_ldexpl_no_libm.
1764         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1765         gl_FUNC_LDEXPL.
1766         (gl_FUNC_LDEXPL): Invoke it.
1767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1768
1769 2010-07-12  Bruno Haible  <bruno@clisp.org>
1770
1771         Unify tests that set gl_cv_func_ldexp_no_libm.
1772         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1773         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1774         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1775         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1776         * modules/strtod (Files): Add m4/ldexp.m4.
1777
1778 2010-07-12  Bruno Haible  <bruno@clisp.org>
1779
1780         Unify tests that set gl_cv_func_frexpl_no_libm.
1781         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1782         gl_FUNC_FREXPL_NO_LIBM.
1783         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1784         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1785
1786 2010-07-12  Bruno Haible  <bruno@clisp.org>
1787
1788         Unify tests that set gl_cv_func_frexp_no_libm.
1789         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1790         gl_FUNC_FREXP_NO_LIBM.
1791         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1792         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1793
1794 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1795
1796         memcoll: clarify sizes versus lengths, document better, and tweak perf
1797         * lib/memcoll.c (strcoll_loop, memcoll0):
1798         Improve quality of descriptive comments.  Name variables
1799         consistently as to whether they are lengths (which do not include
1800         terminating null) versus sizes (which do).
1801         * lib/xmemcoll.c (xmemcoll0): Likewise.
1802         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1803         returned when s1size == 0; this is easier to compile and saves
1804         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1805
1806 2010-07-12  Bruno Haible  <bruno@clisp.org>
1807
1808         Tests for module '_Exit'.
1809         * modules/_Exit-tests: New file.
1810         * tests/test-_Exit.sh: New file.
1811         * tests/test-_Exit.c: New file.
1812
1813         New module '_Exit'.
1814         * lib/stdlib.in.h (__attribute__): New macro.
1815         (_Exit): New declaration.
1816         * lib/_Exit.c: New file.
1817         * m4/_Exit.m4: New file.
1818         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1819         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1820         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1821         * modules/_Exit: New file.
1822         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1823         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1824
1825 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1826
1827         strtod: make it more-accurate typically, and don't require libm
1828         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1829         Include limits.h.  Don't include string.h.
1830         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1831         (locale_isspace): New function, so that no casts are needed to
1832         check whether *s is a space.
1833         (ldexp): Provide an unused dummy if not available.
1834         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1835         (strtod): Use them.  This implementation prefers to use the
1836         underlying strtod if available, falling back on our own code
1837         only to fix known bugs.  This is more likely to produce an
1838         accurate result.  Also, it avoids the use of libm functions.
1839         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1840         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1841         was absent, but it caused a test failure with coreutils.
1842         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1843         with libm.
1844         * modules/strtod (Makefile.am, Link): libm is no longer needed.
1845         * modules/strtod-tests (Makefile.am): Likewise.
1846
1847 2010-07-11  Pádraig Brady  <P@draigBrady.com>
1848             Bruno Haible  <bruno@clisp.org>
1849
1850         unistr/u8-strchr: Optimize ASCII argument case.
1851         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
1852
1853 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         (x)memcoll: minor tweaks
1856         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
1857         is after the type that it qualifies.
1858         (memcoll0): Likewise.
1859         * lib/memcoll.h (memcoll0): Likewise.
1860         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
1861         * lib/xmemcoll.h (xmemcoll0): Likewise.
1862         * lib/memcoll.c (memcoll0): Correct the comment.  This function
1863         differs from memcoll in that the NUL byte is part of the argument.
1864         Omit the abort-checks, as performance is a real issue here.  Plus,
1865         the checks were wrong anyway (an off-by-one error).  Omit local
1866         variable 'diff', as it's a bit clearer that way.
1867         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
1868         no longer needed.
1869
1870 2010-07-08  Chen Guo <chenguo4@yahoo.com>
1871
1872         (x)memcoll: speedup when input is known to be NUL delimited
1873         * lib/memcoll.c: Include stdlib.
1874         (memcoll0) New function.
1875         (strcoll_loop) New function, refactored for use in both memcoll
1876         and memcoll0.
1877         * lib/memcoll.h: Add prototype for memcoll0.
1878         * lib/xmemcoll.c: (xmemcoll0) New function.
1879         (collate_error) New function, refactored for use in both xmemcoll
1880         and xmemcoll0.
1881         * lib/xmemcoll.h: Add prototype for xmemcoll0.
1882         * m4/memcoll.m4: add inline invocation.
1883
1884 2010-07-06  Pádraig Brady  <P@draigBrady.com>
1885
1886         * build-aux/bootstrap: Remove any local translations
1887         from the translation project synchronization directory,
1888         so that local only translations are not distributed.
1889
1890 2010-07-04  Bruno Haible  <bruno@clisp.org>
1891
1892         fsusage: Clarify which code applies to which platforms.
1893         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
1894         platform.
1895         * lib/fsusage.c (get_fs_usage): Likewise.
1896
1897 2010-07-04  Bruno Haible  <bruno@clisp.org>
1898
1899         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
1900         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
1901         Reported by Martin Lambers <marlam@marlam.de>.
1902
1903 2010-07-04  Jim Meyering  <meyering@redhat.com>
1904
1905         hash: once again explicitly disallow insertion of NULL
1906         * lib/hash.c (hash_insert0): Reinstate just-removed test:
1907         inserting a NULL pointer cannot work with these functions.
1908         Add a comment with details.
1909         This reverts part of the 2010-07-01 commit, 5bef1a35
1910         "hash: extend module to deal with non-pointer keys".
1911
1912 2010-07-01  Bruno Haible  <bruno@clisp.org>
1913
1914         stdbool: Update doc.
1915         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
1916         Info from Christian Weisgerber <naddy@mips.inka.de>.
1917
1918 2010-07-01  Jim Meyering  <meyering@redhat.com>
1919
1920         hash: extend module to deal with non-pointer keys
1921         * lib/hash.c (hash_insert0): New interface, much like hash_insert
1922         but that allows insertion of non-pointer entries.
1923         Do not disallow an ENTRY value of NULL.
1924         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
1925         * lib/hash.h (hash_insert0): Declare.
1926
1927 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1928
1929         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
1930         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
1931         not present (i.e. with autoconf 2.59 and when using gettextize, not
1932         gnulib), require AC_GNU_SOURCE instead.
1933
1934 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
1935
1936         idpriv-drop: Fix tests.
1937         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
1938         not to the test-idpriv-droptemp program.
1939
1940 2010-06-29  Bruno Haible  <bruno@clisp.org>
1941
1942         string: Fix syntax error with g++ 2.96.
1943         * lib/string.in.h (__pure__): Remove definition.
1944         (_GL_ATTRIBUTE_PURE): New macro.
1945         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
1946         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
1947         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1948
1949 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
1950
1951         unitypes: Fix bug introduced on 2010-05-18.
1952         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
1953
1954 2010-06-22  Eric Blake  <eblake@redhat.com>
1955
1956         memmem: slight optimization
1957         * lib/str-two-way.h (critical_factorization): Update comments.
1958         Reduce work during factorization phase.
1959         Reported by Carlos Bueno <carlos@bueno.org>.
1960
1961 2010-06-21  Bruno Haible  <bruno@clisp.org>
1962
1963         Fix HAVE_CALLOC_POSIX misnomer.
1964         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
1965         !HAVE_CALLOC_POSIX.
1966         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
1967         HAVE_CALLOC_POSIX.
1968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
1969         instead of HAVE_CALLOC_POSIX.
1970         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
1971         HAVE_CALLOC_POSIX.
1972
1973         Use modern idiom for calloc() replacement.
1974         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
1975         AC_FUNC_CALLOC.
1976         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
1977         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
1978         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
1979         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
1980         (gl_REPLACE_CALLOC): New macro.
1981
1982 2010-06-21  Bruno Haible  <bruno@clisp.org>
1983
1984         Fix HAVE_REALLOC_POSIX misnomer.
1985         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
1986         !HAVE_REALLOC_POSIX.
1987         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
1988         HAVE_REALLOC_POSIX.
1989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
1990         instead of HAVE_REALLOC_POSIX.
1991         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
1992         HAVE_REALLOC_POSIX.
1993
1994         Use modern idiom for realloc() replacement.
1995         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
1996         AC_FUNC_REALLOC.
1997         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
1998         Autoconf's AC_FUNC_REALLOC.
1999         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2000         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2001         (gl_REPLACE_REALLOC): New macro.
2002         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2003
2004 2010-06-21  Bruno Haible  <bruno@clisp.org>
2005
2006         Fix HAVE_MALLOC_POSIX misnomer.
2007         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2008         !HAVE_MALLOC_POSIX.
2009         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2010         HAVE_MALLOC_POSIX.
2011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2012         instead of HAVE_MALLOC_POSIX.
2013         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2014         HAVE_MALLOC_POSIX.
2015
2016         Use modern idiom for malloc() replacement.
2017         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2018         AC_FUNC_MALLOC.
2019         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2020         Autoconf's AC_FUNC_MALLOC.
2021         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2022         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2023         (gl_REPLACE_MALLOC): New macro.
2024         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2025
2026 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2027
2028         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2029         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2030         This macro takes 3 arguments, not 4.
2031
2032 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2033
2034         ipv6: fix detection under mingw
2035         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2036         in6_addr.
2037
2038 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2039
2040         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2041         that strtod() works when cross-compiling to a glibc version known
2042         to work.
2043
2044 2010-06-15  Bruno Haible  <bruno@clisp.org>
2045
2046         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2047
2048 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2049
2050         select: Correct timeout.
2051         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2052
2053 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2054
2055         git-version-gen: init shell var to avoid env var influence
2056         * build-aux/git-version-gen (v): Init shell var to empty.
2057
2058 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         priv-set: Don't assume that priv.h exists merely because getppriv does.
2061         See Jan Andersen's bug report about AIX 5L in
2062         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2063         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2064         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2065         * lib/priv-set.h: Likewise.
2066         * tests/test-priv-set.c: Likewise.
2067
2068 2010-06-13  Bruno Haible  <bruno@clisp.org>
2069
2070         relocatable: Make it easier to test whether to install wrappers.
2071         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2072         RELOCATABLE_VIA_WRAPPER.
2073
2074 2010-06-13  Bruno Haible  <bruno@clisp.org>
2075
2076         gnulib-tool: Display specified modules and dependencies differently.
2077         * gnulib-tool (func_show_module_list): New function.
2078         (func_import, func_create_testdir): Invoke it.
2079         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2080
2081 2010-06-13  Bruno Haible  <bruno@clisp.org>
2082
2083         gnulib-tool: Align code of func_import and func_create_testdir.
2084         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2085         specified_modules.
2086
2087 2010-06-12  Jim Meyering  <meyering@redhat.com>
2088
2089         test-inttostr: avoid spurious failure on Solaris 9
2090         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2091         to accept "%ju".  Reported by Bruno Haible.
2092
2093 2010-06-11  Jim Meyering  <meyering@redhat.com>
2094
2095         test-sys_socket: mark variables as used more readably
2096         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2097         as "used" explicitly via (void) statement casts.  This is more
2098         readable than using them in an artificial return expression.
2099         Suggestion from Bruno Haible.
2100
2101 2010-06-11  Bruno Haible  <bruno@clisp.org>
2102
2103         Avoid some more warnings from "gcc -Wwrite-strings".
2104         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2105         to 'const char *'.
2106         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2107         * tests/test-c-strcasestr.c (main): Likewise.
2108         * tests/test-mbscasestr1.c (main): Likewise.
2109         * tests/test-mbscasestr2.c (main): Likewise.
2110         * tests/test-memmem.c (main): Likewise.
2111         * tests/test-strstr.c (main): Likewise.
2112         * tests/test-strcasestr.c (main): Likewise.
2113
2114 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2115
2116         init.sh: change framework_failure_ to fail with status 99, not 1
2117         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2118         automake's parallel-tests rule that this is an unexpected failure,
2119         even if the test is listed in XFAIL_TESTS.
2120
2121 2010-06-11  Jim Meyering  <meyering@redhat.com>
2122
2123         test-inttostr: avoid warnings about 4-6KB literal strings
2124         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2125         Include "macros.h", for its definition of ASSERT.
2126         (CK): s/assert/ASSERT/
2127         * modules/inttostr-tests (Files): Add macros.h.
2128
2129         init.sh: don't use $ME_ or skip_ before they are defined
2130         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2131         their first uses.  Also hoist their companions: warn_, fail_,
2132         framework_failure_, $stderr_fileno.  Prompted by a patch from
2133         Stefano Lattarini.
2134
2135         test-sys_socket: avoid set-but-not-used warnings from gcc
2136         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2137         avoid warning about set-but-not-used variables.
2138
2139         test-xvasprintf: avoid 'const' discard warnings
2140         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2141         "const" when assigning from literal strings.
2142         (test_xasprintf): Add "void" in function argument list to placate
2143         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2144
2145         tests: avoid compilation warnings in argmatch and exclude tests...
2146         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2147         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2148         Since it always exits, declare with the "noreturn" attribute.
2149         * tests/test-argmatch.c: Likewise.
2150
2151         tests: avoid 'const' discard warnings in mbsstr tests
2152         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2153         * tests/test-mbsstr2.c (main): Likewise.
2154
2155         test-verify: avoid warning from gcc's -Wmissing-declarations
2156         * tests/test-verify.c (function): Declare to be static.
2157
2158         test-inttostr.c: include <string.h> for use of strcmp
2159         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2160
2161         test-linkat: avoid failed assertion on "other" architectures
2162         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2163         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2164         sparc: https://bugs.launchpad.net/bugs/591968
2165
2166 2010-06-11  Jim Meyering  <meyering@redhat.com>
2167
2168         printf.m4: avoid autoconf's "Expanded Before Required" warning
2169         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2170         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2171         autoconf warning.
2172
2173 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2174
2175         Replacement header templates are now named with ".in", not "_".
2176         * doc/gnulib-intro.texi: Correct.
2177
2178 2010-06-10  Jim Meyering  <meyering@redhat.com>
2179
2180         inttostr-tests: depend on snprintf, not snprintf-posix
2181         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2182         snprintf-posix, to avoid this aclocal failure:
2183           missing file gnulib-tests/vasnprintf.c
2184           configure.ac:45: error: expected source file, required through \
2185           AC_LIBSOURCES, not found
2186
2187 2010-06-10  Jim Meyering  <meyering@redhat.com>
2188
2189         inttostr: add a new function, inttostr, and tests
2190         The namesake function was not available.  The existence of the
2191         template file, inttostr.c makes its addition nontrivial.
2192         * lib/anytostr.c: Rename from inttostr.c.
2193         (anytostr): Rename from inttostr.
2194         * lib/inttostr.c: New file.
2195         * modules/inttostr (Files): Add anytostr.c.
2196         (Makefile.am): Set lib_SOURCES instead of ...
2197         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2198         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2199         * lib/offtostr.c: Likewise.
2200         * lib/uinttostr.c: Likewise.
2201         * lib/umaxtostr.c: Likewise.
2202         * modules/inttostr-tests: New file.
2203         * tests/test-inttostr.c: New file.  Test these functions.
2204
2205 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2206             Bruno Haible  <bruno@clisp.org>
2207
2208         Add "Extending Gnulib" chapter to manual.
2209         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2210         chapter.
2211         (Extending Gnulib): New chapter.
2212         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2213         chapter.
2214
2215 2010-06-09  Bruno Haible  <bruno@clisp.org>
2216
2217         Avoid relocwrapper link errors due to gnulib replacement functions.
2218         * lib/areadlink.c: Use the system's malloc, realloc functions.
2219         (areadlink): Set errno to ENOMEM explicitly.
2220         * modules/areadlink (Depends-on): Remove malloc-posix.
2221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2222
2223 2010-06-09  Bruno Haible  <bruno@clisp.org>
2224
2225         Avoid relocwrapper link errors due to gnulib replacement functions.
2226         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2227         * lib/malloca.c: Likewise.
2228         * lib/relocatable.c: Likewise.
2229         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2230         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2231         * lib/setenv.c: Use the system's malloc, realloc functions.
2232         * lib/strerror.c: Use the system's sprintf function.
2233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2234
2235 2010-06-04  Bruno Haible  <bruno@clisp.org>
2236
2237         Prefer documented low-level autoconf macro names.
2238         * m4/lib-link.m4: Use m4_translit instead of translit.
2239         * m4/environ.m4: Likewise.
2240         * m4/mathfunc.m4: Likewise.
2241         * m4/onceonly.m4: Likewise.
2242         * m4/stdint.m4: Likewise.
2243         Suggested by Eric Blake.
2244
2245 2010-06-04  Martin Lambers  <marlam@marlam.de>
2246             Bruno Haible  <bruno@clisp.org>
2247
2248         havelib: Allow library names with '+' characters.
2249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2250         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2251
2252 2010-06-09  Bruno Haible  <bruno@clisp.org>
2253
2254         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2255         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2256         realloc failed.
2257
2258 2010-06-08  Peter Simons  <simons@cryp.to>
2259
2260         maint.mk: make the news-check rule more configurable
2261         * top/maint.mk (news-check-lines-spec) New variable.
2262         (news-check): Use "sed -n 1,10p" in place of "head".
2263
2264 2010-06-07  Jim Meyering  <meyering@redhat.com>
2265
2266         do-release-commit-and-tag: fix typo in --help
2267         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2268
2269         regex: avoid new dead-code warning with gcc-4.6.0
2270         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2271         if-block containing a while-loop.  It's been unused for at least
2272         5 years.
2273
2274 2010-06-05  Bruno Haible  <bruno@clisp.org>
2275
2276         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2277         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2278
2279 2010-06-04  Bruno Haible  <bruno@clisp.org>
2280
2281         Update to GNU gettext 0.18.1.
2282         * modules/gettext (configure.ac): Require gettext infrastructure from
2283         version 0.18.1.
2284
2285 2010-06-03  Bruno Haible  <bruno@clisp.org>
2286
2287         Don't use AC_LIBOBJ with file names in subdirectories.
2288         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2289         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2290         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2291         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2292         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2293         gl_LIBUNISTRING_LIBSOURCE.
2294         (Makefile.am): Augment lib_SOURCES here, conditionally.
2295         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2296
2297 2010-06-03  Bruno Haible  <bruno@clisp.org>
2298
2299         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2300         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2301         expansion does not end with a newline.
2302         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2303         unnecessary newline.
2304
2305 2010-06-03  Bruno Haible  <bruno@clisp.org>
2306
2307         Reduce dependencies.
2308         * tests/test-quotearg.h: New file, extracted from
2309         tests/test-quotearg.c.
2310         * tests/test-quotearg-simple.c: New file, extracted from
2311         tests/test-quotearg.c.
2312         * tests/test-quotearg.c: Don't include <ctype.h>.
2313         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2314         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2315         use_quote_double_quotes, use_quotearg_colon): Moved to
2316         tests/test-quotearg.h.
2317         (results_g, flag_results, custom_quotes, custom_results): Moved
2318         to tests/test-quotearg-simple.c.
2319         (main): Moved the part that does not depend on gettext to
2320         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2321         performed.
2322         * modules/quotearg-simple: New file.
2323         * modules/quotearg-simple-tests: New file.
2324         * modules/quotearg (Depends-on): Add quotearg-simple.
2325         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2326         (Files): Add tests/test-quotearg.h.
2327         Reported by Paolo Bonzini.
2328
2329 2010-06-03  Bruno Haible  <bruno@clisp.org>
2330
2331         Reduce dependencies.
2332         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2333
2334 2010-06-03  Bruno Haible  <bruno@clisp.org>
2335
2336         time: Undefine more broken macros.
2337         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2338         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2339         Reported by Eric Blake.
2340
2341 2010-06-03  Bruno Haible  <bruno@clisp.org>
2342
2343         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2344         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2345         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2346         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2347         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2348         Reported by Ludovic Courtès <ludo@gnu.org>.
2349
2350 2010-06-02  Eric Blake  <eblake@redhat.com>
2351
2352         time: work with mingw + pthreads-win32 library
2353         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2354         if timespec is defined only in pthread.h.
2355         * modules/time (Makefile.am): Substitute it.
2356         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2357         <pthread.h>, when needed.
2358         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2359         from the library.
2360
2361 2010-05-31  Bruno Haible  <bruno@clisp.org>
2362
2363         Avoid expanding two macros in the wrong order.
2364         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2365         gl_LIBUNISTRING if it is defined.
2366         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2367         autoconf >= 2.64.
2368         Reported by Ludovic Courtès <ludo@gnu.org>.
2369
2370 2010-05-27  Jim Meyering  <meyering@redhat.com>
2371
2372         maint.mk: also prohibit "#undef" of always-defined symbols
2373         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2374         Allow more than one space before the symbol name.
2375         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2376         the regexp uses alternation.
2377
2378 2010-05-26  Eric Blake  <eblake@redhat.com>
2379
2380         maint.mk: avoid echo -e
2381         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2382         Convert all uses of echo -* to printf.
2383         Reported by Matthias Bolte.
2384
2385 2010-05-25  Bruno Haible  <bruno@clisp.org>
2386
2387         Update to GNU gettext 0.18, part 2.
2388         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2389         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2390
2391 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2392
2393         Add missing include in test-pwrite.c.
2394         * tests/test-pwrite.c: Include string.h, for strcmp.
2395
2396 2010-05-24  Bruno Haible  <bruno@clisp.org>
2397
2398         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2399
2400 2010-05-24  Bruno Haible  <bruno@clisp.org>
2401
2402         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2403         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2404         iconveh_error argument.
2405         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2406         U_STRCONV_TO_LOCALE.
2407         * lib/unistr/u16-strcoll.c: Likewise.
2408         * lib/unistr/u32-strcoll.c: Likewise.
2409         * modules/unistr/u8-strcoll (Depends-on): Add
2410         uniconv/u8-strconv-to-enc, localcharset. Remove
2411         uniconv/u8-strconv-to-locale.
2412         (configure.ac): Bump version number.
2413         * modules/unistr/u16-strcoll (Depends-on): Add
2414         uniconv/u16-strconv-to-enc, localcharset. Remove
2415         uniconv/u16-strconv-to-locale.
2416         (configure.ac): Bump version number.
2417         * modules/unistr/u32-strcoll (Depends-on): Add
2418         uniconv/u32-strconv-to-enc, localcharset. Remove
2419         uniconv/u32-strconv-to-locale.
2420         (configure.ac): Bump version number.
2421
2422 2010-05-24  Bruno Haible  <bruno@clisp.org>
2423
2424         Avoid a test failure on NetBSD 5.0.
2425         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2426         an iconv() bug.
2427
2428 2010-05-24  Bruno Haible  <bruno@clisp.org>
2429
2430         Adjust #include directive style.
2431         * modules/regex (Includes): Recommend to write <regex.h>.
2432
2433 2010-05-24  Bruno Haible  <bruno@clisp.org>
2434
2435         regex: Don't require alloca.
2436         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2437         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2438         only inside if (0).
2439
2440 2010-05-23  Jim Meyering  <meyering@redhat.com>
2441
2442         test-renameat.c: include <sys/stat.h>
2443         * tests/test-renameat.c: Include <sys/stat.h>; required for
2444         definition of S_IS* macros.
2445
2446 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2447
2448         Update maintainer documentation for 'relocatable-prog' module.
2449         * doc/relocatable-maint.texi: Update.
2450         Comments by Bruno Haible.
2451
2452 2010-05-23  Bruno Haible  <bruno@clisp.org>
2453
2454         git-merge-changelog: Enable --split-merged-entry by default.
2455         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2456         (usage): Don't mention this option any more.
2457         Reported by Ralf Wildenhues.
2458
2459 2010-05-23  Jim Meyering  <meyering@redhat.com>
2460
2461         test-pwrite: do not leave behind a test file named "out"
2462         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2463         The trivial-looking use of init.sh is really necessary.
2464         It ensures that the temporary file, "out", is created in
2465         a temporary directory, and removed upon termination.
2466         * tests/test-pwrite.sh: Re-add file.
2467         * modules/pwrite-tests: Reference it.
2468
2469 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2470
2471         Fix output redirection buglet in init.sh.
2472         * tests/init.sh: Fix redirection of stderr.
2473
2474 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2475
2476         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2477
2478 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2479
2480         * modules/valgrind-tests: New file.
2481         * m4/valgrind-tests.m4: New file.
2482         * doc/valgrind-tests.texi: New file.
2483         * doc/gnulib.texi (Running self-tests under valgrind): New
2484         section.
2485
2486 2010-05-19  Bruno Haible  <bruno@clisp.org>
2487
2488         Clean up dead code in recent commit.
2489         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2490         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2491         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2492         Suggested by Paolo Bonzini.
2493
2494 2010-05-19  Bruno Haible  <bruno@clisp.org>
2495
2496         Avoid valgrind error reports from libunistring.
2497         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2498         * modules/libunistring (Files): Add it.
2499         * modules/libunistring-optional (Files): Likewise.
2500
2501 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2502             Bruno Haible  <bruno@clisp.org>
2503
2504         New module 'libunistring-optional'.
2505         * modules/libunistring-optional: New file.
2506         * m4/libunistring-base.m4: New file.
2507         * m4/libunistring-optional.m4: New file.
2508         * lib/unicase.in.h: Renamed from lib/unicase.h.
2509         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2510         * lib/unictype.in.h: Renamed from lib/unictype.h.
2511         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2512         * lib/uniname.in.h: Renamed from lib/uniname.h.
2513         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2514         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2515         * lib/unistr.in.h: Renamed from lib/unistr.h.
2516         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2517         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2518         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2519         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2520         gl_LIBUNISTRING. If the library was found, determine the installed
2521         version and set LIBUNISTRING_VERSION.
2522         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2523         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2524         handle a configuration option --with-included-libunistring.
2525         * modules/libunistring (Files): Add m4/absolute-header.m4.
2526         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2527         Add m4/libunistring-base.m4.
2528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2529         (Makefile.am): Build unicase.h from unicase.in.h.
2530         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2531         Add m4/libunistring-base.m4.
2532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2533         (Makefile.am): Build uniconv.h from uniconv.in.h.
2534         * modules/unictype/base (Files): Use unictype.in.h instead of
2535         unictype.h. Add m4/libunistring-base.m4.
2536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2537         (Makefile.am): Build unictype.h from unictype.in.h.
2538         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2539         Add m4/libunistring-base.m4.
2540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2541         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2542         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2543         Add m4/libunistring-base.m4.
2544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2545         (Makefile.am): Build uniname.h from uniname.in.h.
2546         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2547         Add m4/libunistring-base.m4.
2548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2549         (Makefile.am): Build uninorm.h from uninorm.in.h.
2550         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2551         unistdio.h. Add m4/libunistring-base.m4.
2552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2553         (Makefile.am): Build unistdio.h from unistdio.in.h.
2554         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2555         Add m4/libunistring-base.m4.
2556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2557         (Makefile.am): Build unistr.h from unistr.in.h.
2558         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2559         Add m4/libunistring-base.m4.
2560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2561         (Makefile.am): Build unitypes.h from unitypes.in.h.
2562         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2563         Add m4/libunistring-base.m4.
2564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2565         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2566         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2567         uniwidth.h. Add m4/libunistring-base.m4.
2568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2569         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2570         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2571         instead of augmenting lib_SOURCES.
2572         * modules/unicase/empty-suffix-context: Likewise.
2573         * modules/unicase/locale-language: Likewise.
2574         * modules/unicase/tolower: Likewise.
2575         * modules/unicase/totitle: Likewise.
2576         * modules/unicase/toupper: Likewise.
2577         * modules/unicase/u8-casecmp: Likewise.
2578         * modules/unicase/u8-casecoll: Likewise.
2579         * modules/unicase/u8-casefold: Likewise.
2580         * modules/unicase/u8-casexfrm: Likewise.
2581         * modules/unicase/u8-ct-casefold: Likewise.
2582         * modules/unicase/u8-ct-tolower: Likewise.
2583         * modules/unicase/u8-ct-totitle: Likewise.
2584         * modules/unicase/u8-ct-toupper: Likewise.
2585         * modules/unicase/u8-is-cased: Likewise.
2586         * modules/unicase/u8-is-casefolded: Likewise.
2587         * modules/unicase/u8-is-lowercase: Likewise.
2588         * modules/unicase/u8-is-titlecase: Likewise.
2589         * modules/unicase/u8-is-uppercase: Likewise.
2590         * modules/unicase/u8-prefix-context: Likewise.
2591         * modules/unicase/u8-suffix-context: Likewise.
2592         * modules/unicase/u8-tolower: Likewise.
2593         * modules/unicase/u8-totitle: Likewise.
2594         * modules/unicase/u8-toupper: Likewise.
2595         * modules/unicase/u16-casecmp: Likewise.
2596         * modules/unicase/u16-casecoll: Likewise.
2597         * modules/unicase/u16-casefold: Likewise.
2598         * modules/unicase/u16-casexfrm: Likewise.
2599         * modules/unicase/u16-ct-casefold: Likewise.
2600         * modules/unicase/u16-ct-tolower: Likewise.
2601         * modules/unicase/u16-ct-totitle: Likewise.
2602         * modules/unicase/u16-ct-toupper: Likewise.
2603         * modules/unicase/u16-is-cased: Likewise.
2604         * modules/unicase/u16-is-casefolded: Likewise.
2605         * modules/unicase/u16-is-lowercase: Likewise.
2606         * modules/unicase/u16-is-titlecase: Likewise.
2607         * modules/unicase/u16-is-uppercase: Likewise.
2608         * modules/unicase/u16-prefix-context: Likewise.
2609         * modules/unicase/u16-suffix-context: Likewise.
2610         * modules/unicase/u16-tolower: Likewise.
2611         * modules/unicase/u16-totitle: Likewise.
2612         * modules/unicase/u16-toupper: Likewise.
2613         * modules/unicase/u32-casecmp: Likewise.
2614         * modules/unicase/u32-casecoll: Likewise.
2615         * modules/unicase/u32-casefold: Likewise.
2616         * modules/unicase/u32-casexfrm: Likewise.
2617         * modules/unicase/u32-ct-casefold: Likewise.
2618         * modules/unicase/u32-ct-tolower: Likewise.
2619         * modules/unicase/u32-ct-totitle: Likewise.
2620         * modules/unicase/u32-ct-toupper: Likewise.
2621         * modules/unicase/u32-is-cased: Likewise.
2622         * modules/unicase/u32-is-casefolded: Likewise.
2623         * modules/unicase/u32-is-lowercase: Likewise.
2624         * modules/unicase/u32-is-titlecase: Likewise.
2625         * modules/unicase/u32-is-uppercase: Likewise.
2626         * modules/unicase/u32-prefix-context: Likewise.
2627         * modules/unicase/u32-suffix-context: Likewise.
2628         * modules/unicase/u32-tolower: Likewise.
2629         * modules/unicase/u32-totitle: Likewise.
2630         * modules/unicase/u32-toupper: Likewise.
2631         * modules/unicase/ulc-casecmp: Likewise.
2632         * modules/unicase/ulc-casecoll: Likewise.
2633         * modules/unicase/ulc-casexfrm: Likewise.
2634         * modules/uniconv/u8-conv-from-enc: Likewise.
2635         * modules/uniconv/u8-conv-to-enc: Likewise.
2636         * modules/uniconv/u8-strconv-from-enc: Likewise.
2637         * modules/uniconv/u8-strconv-from-locale: Likewise.
2638         * modules/uniconv/u8-strconv-to-enc: Likewise.
2639         * modules/uniconv/u8-strconv-to-locale: Likewise.
2640         * modules/uniconv/u16-conv-from-enc: Likewise.
2641         * modules/uniconv/u16-conv-to-enc: Likewise.
2642         * modules/uniconv/u16-strconv-from-enc: Likewise.
2643         * modules/uniconv/u16-strconv-from-locale: Likewise.
2644         * modules/uniconv/u16-strconv-to-enc: Likewise.
2645         * modules/uniconv/u16-strconv-to-locale: Likewise.
2646         * modules/uniconv/u32-conv-from-enc: Likewise.
2647         * modules/uniconv/u32-conv-to-enc: Likewise.
2648         * modules/uniconv/u32-strconv-from-enc: Likewise.
2649         * modules/uniconv/u32-strconv-from-locale: Likewise.
2650         * modules/uniconv/u32-strconv-to-enc: Likewise.
2651         * modules/uniconv/u32-strconv-to-locale: Likewise.
2652         * modules/unictype/bidicategory-byname: Likewise.
2653         * modules/unictype/bidicategory-name: Likewise.
2654         * modules/unictype/bidicategory-of: Likewise.
2655         * modules/unictype/bidicategory-test: Likewise.
2656         * modules/unictype/block-list: Likewise.
2657         * modules/unictype/block-test: Likewise.
2658         * modules/unictype/category-C: Likewise.
2659         * modules/unictype/category-Cc: Likewise.
2660         * modules/unictype/category-Cf: Likewise.
2661         * modules/unictype/category-Cn: Likewise.
2662         * modules/unictype/category-Co: Likewise.
2663         * modules/unictype/category-Cs: Likewise.
2664         * modules/unictype/category-L: Likewise.
2665         * modules/unictype/category-Ll: Likewise.
2666         * modules/unictype/category-Lm: Likewise.
2667         * modules/unictype/category-Lo: Likewise.
2668         * modules/unictype/category-Lt: Likewise.
2669         * modules/unictype/category-Lu: Likewise.
2670         * modules/unictype/category-M: Likewise.
2671         * modules/unictype/category-Mc: Likewise.
2672         * modules/unictype/category-Me: Likewise.
2673         * modules/unictype/category-Mn: Likewise.
2674         * modules/unictype/category-N: Likewise.
2675         * modules/unictype/category-Nd: Likewise.
2676         * modules/unictype/category-Nl: Likewise.
2677         * modules/unictype/category-No: Likewise.
2678         * modules/unictype/category-P: Likewise.
2679         * modules/unictype/category-Pc: Likewise.
2680         * modules/unictype/category-Pd: Likewise.
2681         * modules/unictype/category-Pe: Likewise.
2682         * modules/unictype/category-Pf: Likewise.
2683         * modules/unictype/category-Pi: Likewise.
2684         * modules/unictype/category-Po: Likewise.
2685         * modules/unictype/category-Ps: Likewise.
2686         * modules/unictype/category-S: Likewise.
2687         * modules/unictype/category-Sc: Likewise.
2688         * modules/unictype/category-Sk: Likewise.
2689         * modules/unictype/category-Sm: Likewise.
2690         * modules/unictype/category-So: Likewise.
2691         * modules/unictype/category-Z: Likewise.
2692         * modules/unictype/category-Zl: Likewise.
2693         * modules/unictype/category-Zp: Likewise.
2694         * modules/unictype/category-Zs: Likewise.
2695         * modules/unictype/category-and: Likewise.
2696         * modules/unictype/category-and-not: Likewise.
2697         * modules/unictype/category-byname: Likewise.
2698         * modules/unictype/category-name: Likewise.
2699         * modules/unictype/category-none: Likewise.
2700         * modules/unictype/category-of: Likewise.
2701         * modules/unictype/category-or: Likewise.
2702         * modules/unictype/category-test: Likewise.
2703         * modules/unictype/combining-class: Likewise.
2704         * modules/unictype/ctype-alnum: Likewise.
2705         * modules/unictype/ctype-alpha: Likewise.
2706         * modules/unictype/ctype-blank: Likewise.
2707         * modules/unictype/ctype-cntrl: Likewise.
2708         * modules/unictype/ctype-digit: Likewise.
2709         * modules/unictype/ctype-graph: Likewise.
2710         * modules/unictype/ctype-lower: Likewise.
2711         * modules/unictype/ctype-print: Likewise.
2712         * modules/unictype/ctype-punct: Likewise.
2713         * modules/unictype/ctype-space: Likewise.
2714         * modules/unictype/ctype-upper: Likewise.
2715         * modules/unictype/ctype-xdigit: Likewise.
2716         * modules/unictype/decimal-digit: Likewise.
2717         * modules/unictype/digit: Likewise.
2718         * modules/unictype/mirror: Likewise.
2719         * modules/unictype/numeric: Likewise.
2720         * modules/unictype/property-alphabetic: Likewise.
2721         * modules/unictype/property-ascii-hex-digit: Likewise.
2722         * modules/unictype/property-bidi-arabic-digit: Likewise.
2723         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2724         * modules/unictype/property-bidi-block-separator: Likewise.
2725         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2726         * modules/unictype/property-bidi-common-separator: Likewise.
2727         * modules/unictype/property-bidi-control: Likewise.
2728         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2729         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2730         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2731         * modules/unictype/property-bidi-european-digit: Likewise.
2732         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2733         * modules/unictype/property-bidi-left-to-right: Likewise.
2734         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2735         * modules/unictype/property-bidi-other-neutral: Likewise.
2736         * modules/unictype/property-bidi-pdf: Likewise.
2737         * modules/unictype/property-bidi-segment-separator: Likewise.
2738         * modules/unictype/property-bidi-whitespace: Likewise.
2739         * modules/unictype/property-byname: Likewise.
2740         * modules/unictype/property-combining: Likewise.
2741         * modules/unictype/property-composite: Likewise.
2742         * modules/unictype/property-currency-symbol: Likewise.
2743         * modules/unictype/property-dash: Likewise.
2744         * modules/unictype/property-decimal-digit: Likewise.
2745         * modules/unictype/property-default-ignorable-code-point: Likewise.
2746         * modules/unictype/property-deprecated: Likewise.
2747         * modules/unictype/property-diacritic: Likewise.
2748         * modules/unictype/property-extender: Likewise.
2749         * modules/unictype/property-format-control: Likewise.
2750         * modules/unictype/property-grapheme-base: Likewise.
2751         * modules/unictype/property-grapheme-extend: Likewise.
2752         * modules/unictype/property-grapheme-link: Likewise.
2753         * modules/unictype/property-hex-digit: Likewise.
2754         * modules/unictype/property-hyphen: Likewise.
2755         * modules/unictype/property-id-continue: Likewise.
2756         * modules/unictype/property-id-start: Likewise.
2757         * modules/unictype/property-ideographic: Likewise.
2758         * modules/unictype/property-ids-binary-operator: Likewise.
2759         * modules/unictype/property-ids-trinary-operator: Likewise.
2760         * modules/unictype/property-ignorable-control: Likewise.
2761         * modules/unictype/property-iso-control: Likewise.
2762         * modules/unictype/property-join-control: Likewise.
2763         * modules/unictype/property-left-of-pair: Likewise.
2764         * modules/unictype/property-line-separator: Likewise.
2765         * modules/unictype/property-logical-order-exception: Likewise.
2766         * modules/unictype/property-lowercase: Likewise.
2767         * modules/unictype/property-math: Likewise.
2768         * modules/unictype/property-non-break: Likewise.
2769         * modules/unictype/property-not-a-character: Likewise.
2770         * modules/unictype/property-numeric: Likewise.
2771         * modules/unictype/property-other-alphabetic: Likewise.
2772         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2773         * modules/unictype/property-other-grapheme-extend: Likewise.
2774         * modules/unictype/property-other-id-continue: Likewise.
2775         * modules/unictype/property-other-id-start: Likewise.
2776         * modules/unictype/property-other-lowercase: Likewise.
2777         * modules/unictype/property-other-math: Likewise.
2778         * modules/unictype/property-other-uppercase: Likewise.
2779         * modules/unictype/property-paired-punctuation: Likewise.
2780         * modules/unictype/property-paragraph-separator: Likewise.
2781         * modules/unictype/property-pattern-syntax: Likewise.
2782         * modules/unictype/property-pattern-white-space: Likewise.
2783         * modules/unictype/property-private-use: Likewise.
2784         * modules/unictype/property-punctuation: Likewise.
2785         * modules/unictype/property-quotation-mark: Likewise.
2786         * modules/unictype/property-radical: Likewise.
2787         * modules/unictype/property-sentence-terminal: Likewise.
2788         * modules/unictype/property-soft-dotted: Likewise.
2789         * modules/unictype/property-space: Likewise.
2790         * modules/unictype/property-terminal-punctuation: Likewise.
2791         * modules/unictype/property-test: Likewise.
2792         * modules/unictype/property-titlecase: Likewise.
2793         * modules/unictype/property-unassigned-code-value: Likewise.
2794         * modules/unictype/property-unified-ideograph: Likewise.
2795         * modules/unictype/property-uppercase: Likewise.
2796         * modules/unictype/property-variation-selector: Likewise.
2797         * modules/unictype/property-white-space: Likewise.
2798         * modules/unictype/property-xid-continue: Likewise.
2799         * modules/unictype/property-xid-start: Likewise.
2800         * modules/unictype/property-zero-width: Likewise.
2801         * modules/unictype/scripts: Likewise.
2802         * modules/unictype/syntax-c-ident: Likewise.
2803         * modules/unictype/syntax-c-whitespace: Likewise.
2804         * modules/unictype/syntax-java-ident: Likewise.
2805         * modules/unictype/syntax-java-whitespace: Likewise.
2806         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2807         * modules/unilbrk/u8-width-linebreaks: Likewise.
2808         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2809         * modules/unilbrk/u16-width-linebreaks: Likewise.
2810         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2811         * modules/unilbrk/u32-width-linebreaks: Likewise.
2812         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2813         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2814         * modules/uniname/uniname: Likewise.
2815         * modules/uninorm/canonical-decomposition: Likewise.
2816         * modules/uninorm/composition: Likewise.
2817         * modules/uninorm/decomposing-form: Likewise.
2818         * modules/uninorm/decomposition: Likewise.
2819         * modules/uninorm/filter: Likewise.
2820         * modules/uninorm/nfc: Likewise.
2821         * modules/uninorm/nfd: Likewise.
2822         * modules/uninorm/nfkc: Likewise.
2823         * modules/uninorm/nfkd: Likewise.
2824         * modules/uninorm/u8-normalize: Likewise.
2825         * modules/uninorm/u8-normcmp: Likewise.
2826         * modules/uninorm/u8-normcoll: Likewise.
2827         * modules/uninorm/u8-normxfrm: Likewise.
2828         * modules/uninorm/u16-normalize: Likewise.
2829         * modules/uninorm/u16-normcmp: Likewise.
2830         * modules/uninorm/u16-normcoll: Likewise.
2831         * modules/uninorm/u16-normxfrm: Likewise.
2832         * modules/uninorm/u32-normalize: Likewise.
2833         * modules/uninorm/u32-normcmp: Likewise.
2834         * modules/uninorm/u32-normcoll: Likewise.
2835         * modules/uninorm/u32-normxfrm: Likewise.
2836         * modules/unistdio/u8-asnprintf: Likewise.
2837         * modules/unistdio/u8-asprintf: Likewise.
2838         * modules/unistdio/u8-snprintf: Likewise.
2839         * modules/unistdio/u8-sprintf: Likewise.
2840         * modules/unistdio/u8-u8-asnprintf: Likewise.
2841         * modules/unistdio/u8-u8-asprintf: Likewise.
2842         * modules/unistdio/u8-u8-snprintf: Likewise.
2843         * modules/unistdio/u8-u8-sprintf: Likewise.
2844         * modules/unistdio/u8-u8-vasnprintf: Likewise.
2845         * modules/unistdio/u8-u8-vasprintf: Likewise.
2846         * modules/unistdio/u8-u8-vsnprintf: Likewise.
2847         * modules/unistdio/u8-u8-vsprintf: Likewise.
2848         * modules/unistdio/u8-vasnprintf: Likewise.
2849         * modules/unistdio/u8-vasprintf: Likewise.
2850         * modules/unistdio/u8-vsnprintf: Likewise.
2851         * modules/unistdio/u8-vsprintf: Likewise.
2852         * modules/unistdio/u16-asnprintf: Likewise.
2853         * modules/unistdio/u16-asprintf: Likewise.
2854         * modules/unistdio/u16-snprintf: Likewise.
2855         * modules/unistdio/u16-sprintf: Likewise.
2856         * modules/unistdio/u16-u16-asnprintf: Likewise.
2857         * modules/unistdio/u16-u16-asprintf: Likewise.
2858         * modules/unistdio/u16-u16-snprintf: Likewise.
2859         * modules/unistdio/u16-u16-sprintf: Likewise.
2860         * modules/unistdio/u16-u16-vasnprintf: Likewise.
2861         * modules/unistdio/u16-u16-vasprintf: Likewise.
2862         * modules/unistdio/u16-u16-vsnprintf: Likewise.
2863         * modules/unistdio/u16-u16-vsprintf: Likewise.
2864         * modules/unistdio/u16-vasnprintf: Likewise.
2865         * modules/unistdio/u16-vasprintf: Likewise.
2866         * modules/unistdio/u16-vsnprintf: Likewise.
2867         * modules/unistdio/u16-vsprintf: Likewise.
2868         * modules/unistdio/u32-asnprintf: Likewise.
2869         * modules/unistdio/u32-asprintf: Likewise.
2870         * modules/unistdio/u32-snprintf: Likewise.
2871         * modules/unistdio/u32-sprintf: Likewise.
2872         * modules/unistdio/u32-u32-asnprintf: Likewise.
2873         * modules/unistdio/u32-u32-asprintf: Likewise.
2874         * modules/unistdio/u32-u32-snprintf: Likewise.
2875         * modules/unistdio/u32-u32-sprintf: Likewise.
2876         * modules/unistdio/u32-u32-vasnprintf: Likewise.
2877         * modules/unistdio/u32-u32-vasprintf: Likewise.
2878         * modules/unistdio/u32-u32-vsnprintf: Likewise.
2879         * modules/unistdio/u32-u32-vsprintf: Likewise.
2880         * modules/unistdio/u32-vasnprintf: Likewise.
2881         * modules/unistdio/u32-vasprintf: Likewise.
2882         * modules/unistdio/u32-vsnprintf: Likewise.
2883         * modules/unistdio/u32-vsprintf: Likewise.
2884         * modules/unistdio/ulc-asnprintf: Likewise.
2885         * modules/unistdio/ulc-asprintf: Likewise.
2886         * modules/unistdio/ulc-fprintf: Likewise.
2887         * modules/unistdio/ulc-snprintf: Likewise.
2888         * modules/unistdio/ulc-sprintf: Likewise.
2889         * modules/unistdio/ulc-vasnprintf: Likewise.
2890         * modules/unistdio/ulc-vasprintf: Likewise.
2891         * modules/unistdio/ulc-vfprintf: Likewise.
2892         * modules/unistdio/ulc-vsnprintf: Likewise.
2893         * modules/unistdio/ulc-vsprintf: Likewise.
2894         * modules/unistr/u8-check: Likewise.
2895         * modules/unistr/u8-chr: Likewise.
2896         * modules/unistr/u8-cmp: Likewise.
2897         * modules/unistr/u8-cmp2: Likewise.
2898         * modules/unistr/u8-cpy: Likewise.
2899         * modules/unistr/u8-cpy-alloc: Likewise.
2900         * modules/unistr/u8-endswith: Likewise.
2901         * modules/unistr/u8-mblen: Likewise.
2902         * modules/unistr/u8-mbsnlen: Likewise.
2903         * modules/unistr/u8-mbtouc: Likewise.
2904         * modules/unistr/u8-mbtouc-unsafe: Likewise.
2905         * modules/unistr/u8-mbtoucr: Likewise.
2906         * modules/unistr/u8-move: Likewise.
2907         * modules/unistr/u8-next: Likewise.
2908         * modules/unistr/u8-prev: Likewise.
2909         * modules/unistr/u8-set: Likewise.
2910         * modules/unistr/u8-startswith: Likewise.
2911         * modules/unistr/u8-stpcpy: Likewise.
2912         * modules/unistr/u8-stpncpy: Likewise.
2913         * modules/unistr/u8-strcat: Likewise.
2914         * modules/unistr/u8-strchr: Likewise.
2915         * modules/unistr/u8-strcmp: Likewise.
2916         * modules/unistr/u8-strcoll: Likewise.
2917         * modules/unistr/u8-strcpy: Likewise.
2918         * modules/unistr/u8-strcspn: Likewise.
2919         * modules/unistr/u8-strdup: Likewise.
2920         * modules/unistr/u8-strlen: Likewise.
2921         * modules/unistr/u8-strmblen: Likewise.
2922         * modules/unistr/u8-strmbtouc: Likewise.
2923         * modules/unistr/u8-strncat: Likewise.
2924         * modules/unistr/u8-strncmp: Likewise.
2925         * modules/unistr/u8-strncpy: Likewise.
2926         * modules/unistr/u8-strnlen: Likewise.
2927         * modules/unistr/u8-strpbrk: Likewise.
2928         * modules/unistr/u8-strrchr: Likewise.
2929         * modules/unistr/u8-strspn: Likewise.
2930         * modules/unistr/u8-strstr: Likewise.
2931         * modules/unistr/u8-strtok: Likewise.
2932         * modules/unistr/u8-to-u16: Likewise.
2933         * modules/unistr/u8-to-u32: Likewise.
2934         * modules/unistr/u8-uctomb: Likewise.
2935         * modules/unistr/u16-check: Likewise.
2936         * modules/unistr/u16-chr: Likewise.
2937         * modules/unistr/u16-cmp: Likewise.
2938         * modules/unistr/u16-cmp2: Likewise.
2939         * modules/unistr/u16-cpy: Likewise.
2940         * modules/unistr/u16-cpy-alloc: Likewise.
2941         * modules/unistr/u16-endswith: Likewise.
2942         * modules/unistr/u16-mblen: Likewise.
2943         * modules/unistr/u16-mbsnlen: Likewise.
2944         * modules/unistr/u16-mbtouc: Likewise.
2945         * modules/unistr/u16-mbtouc-unsafe: Likewise.
2946         * modules/unistr/u16-mbtoucr: Likewise.
2947         * modules/unistr/u16-move: Likewise.
2948         * modules/unistr/u16-next: Likewise.
2949         * modules/unistr/u16-prev: Likewise.
2950         * modules/unistr/u16-set: Likewise.
2951         * modules/unistr/u16-startswith: Likewise.
2952         * modules/unistr/u16-stpcpy: Likewise.
2953         * modules/unistr/u16-stpncpy: Likewise.
2954         * modules/unistr/u16-strcat: Likewise.
2955         * modules/unistr/u16-strchr: Likewise.
2956         * modules/unistr/u16-strcmp: Likewise.
2957         * modules/unistr/u16-strcoll: Likewise.
2958         * modules/unistr/u16-strcpy: Likewise.
2959         * modules/unistr/u16-strcspn: Likewise.
2960         * modules/unistr/u16-strdup: Likewise.
2961         * modules/unistr/u16-strlen: Likewise.
2962         * modules/unistr/u16-strmblen: Likewise.
2963         * modules/unistr/u16-strmbtouc: Likewise.
2964         * modules/unistr/u16-strncat: Likewise.
2965         * modules/unistr/u16-strncmp: Likewise.
2966         * modules/unistr/u16-strncpy: Likewise.
2967         * modules/unistr/u16-strnlen: Likewise.
2968         * modules/unistr/u16-strpbrk: Likewise.
2969         * modules/unistr/u16-strrchr: Likewise.
2970         * modules/unistr/u16-strspn: Likewise.
2971         * modules/unistr/u16-strstr: Likewise.
2972         * modules/unistr/u16-strtok: Likewise.
2973         * modules/unistr/u16-to-u32: Likewise.
2974         * modules/unistr/u16-to-u8: Likewise.
2975         * modules/unistr/u16-uctomb: Likewise.
2976         * modules/unistr/u32-check: Likewise.
2977         * modules/unistr/u32-chr: Likewise.
2978         * modules/unistr/u32-cmp: Likewise.
2979         * modules/unistr/u32-cmp2: Likewise.
2980         * modules/unistr/u32-cpy: Likewise.
2981         * modules/unistr/u32-cpy-alloc: Likewise.
2982         * modules/unistr/u32-endswith: Likewise.
2983         * modules/unistr/u32-mblen: Likewise.
2984         * modules/unistr/u32-mbsnlen: Likewise.
2985         * modules/unistr/u32-mbtouc: Likewise.
2986         * modules/unistr/u32-mbtouc-unsafe: Likewise.
2987         * modules/unistr/u32-mbtoucr: Likewise.
2988         * modules/unistr/u32-move: Likewise.
2989         * modules/unistr/u32-next: Likewise.
2990         * modules/unistr/u32-prev: Likewise.
2991         * modules/unistr/u32-set: Likewise.
2992         * modules/unistr/u32-startswith: Likewise.
2993         * modules/unistr/u32-stpcpy: Likewise.
2994         * modules/unistr/u32-stpncpy: Likewise.
2995         * modules/unistr/u32-strcat: Likewise.
2996         * modules/unistr/u32-strchr: Likewise.
2997         * modules/unistr/u32-strcmp: Likewise.
2998         * modules/unistr/u32-strcoll: Likewise.
2999         * modules/unistr/u32-strcpy: Likewise.
3000         * modules/unistr/u32-strcspn: Likewise.
3001         * modules/unistr/u32-strdup: Likewise.
3002         * modules/unistr/u32-strlen: Likewise.
3003         * modules/unistr/u32-strmblen: Likewise.
3004         * modules/unistr/u32-strmbtouc: Likewise.
3005         * modules/unistr/u32-strncat: Likewise.
3006         * modules/unistr/u32-strncmp: Likewise.
3007         * modules/unistr/u32-strncpy: Likewise.
3008         * modules/unistr/u32-strnlen: Likewise.
3009         * modules/unistr/u32-strpbrk: Likewise.
3010         * modules/unistr/u32-strrchr: Likewise.
3011         * modules/unistr/u32-strspn: Likewise.
3012         * modules/unistr/u32-strstr: Likewise.
3013         * modules/unistr/u32-strtok: Likewise.
3014         * modules/unistr/u32-to-u16: Likewise.
3015         * modules/unistr/u32-to-u8: Likewise.
3016         * modules/unistr/u32-uctomb: Likewise.
3017         * modules/uniwbrk/u8-wordbreaks: Likewise.
3018         * modules/uniwbrk/u16-wordbreaks: Likewise.
3019         * modules/uniwbrk/u32-wordbreaks: Likewise.
3020         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3021         * modules/uniwbrk/wordbreak-property: Likewise.
3022         * modules/uniwidth/u8-strwidth: Likewise.
3023         * modules/uniwidth/u8-width: Likewise.
3024         * modules/uniwidth/u16-strwidth: Likewise.
3025         * modules/uniwidth/u16-width: Likewise.
3026         * modules/uniwidth/u32-strwidth: Likewise.
3027         * modules/uniwidth/u32-width: Likewise.
3028         * modules/uniwidth/width: Likewise.
3029         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3030         with $(LIBUNISTRING).
3031         * modules/unicase/ignorable-tests: Likewise.
3032         * modules/unicase/locale-language-tests: Likewise.
3033         * modules/unicase/tolower-tests: Likewise.
3034         * modules/unicase/totitle-tests: Likewise.
3035         * modules/unicase/toupper-tests: Likewise.
3036         * modules/unicase/u8-casecmp-tests: Likewise.
3037         * modules/unicase/u8-casecoll-tests: Likewise.
3038         * modules/unicase/u8-casefold-tests: Likewise.
3039         * modules/unicase/u8-is-cased-tests: Likewise.
3040         * modules/unicase/u8-is-casefolded-tests: Likewise.
3041         * modules/unicase/u8-is-lowercase-tests: Likewise.
3042         * modules/unicase/u8-is-titlecase-tests: Likewise.
3043         * modules/unicase/u8-is-uppercase-tests: Likewise.
3044         * modules/unicase/u8-tolower-tests: Likewise.
3045         * modules/unicase/u8-totitle-tests: Likewise.
3046         * modules/unicase/u8-toupper-tests: Likewise.
3047         * modules/unicase/u16-casecmp-tests: Likewise.
3048         * modules/unicase/u16-casecoll-tests: Likewise.
3049         * modules/unicase/u16-casefold-tests: Likewise.
3050         * modules/unicase/u16-is-cased-tests: Likewise.
3051         * modules/unicase/u16-is-casefolded-tests: Likewise.
3052         * modules/unicase/u16-is-lowercase-tests: Likewise.
3053         * modules/unicase/u16-is-titlecase-tests: Likewise.
3054         * modules/unicase/u16-is-uppercase-tests: Likewise.
3055         * modules/unicase/u16-tolower-tests: Likewise.
3056         * modules/unicase/u16-totitle-tests: Likewise.
3057         * modules/unicase/u16-toupper-tests: Likewise.
3058         * modules/unicase/u32-casecmp-tests: Likewise.
3059         * modules/unicase/u32-casecoll-tests: Likewise.
3060         * modules/unicase/u32-casefold-tests: Likewise.
3061         * modules/unicase/u32-is-cased-tests: Likewise.
3062         * modules/unicase/u32-is-casefolded-tests: Likewise.
3063         * modules/unicase/u32-is-lowercase-tests: Likewise.
3064         * modules/unicase/u32-is-titlecase-tests: Likewise.
3065         * modules/unicase/u32-is-uppercase-tests: Likewise.
3066         * modules/unicase/u32-tolower-tests: Likewise.
3067         * modules/unicase/u32-totitle-tests: Likewise.
3068         * modules/unicase/u32-toupper-tests: Likewise.
3069         * modules/unicase/ulc-casecmp-tests: Likewise.
3070         * modules/unicase/ulc-casecoll-tests: Likewise.
3071         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3072         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3073         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3074         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3075         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3076         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3077         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3078         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3079         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3080         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3081         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3082         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3083         * modules/unictype/bidicategory-byname-tests: Likewise.
3084         * modules/unictype/bidicategory-name-tests: Likewise.
3085         * modules/unictype/bidicategory-of-tests: Likewise.
3086         * modules/unictype/bidicategory-test-tests: Likewise.
3087         * modules/unictype/block-list-tests: Likewise.
3088         * modules/unictype/block-of-tests: Likewise.
3089         * modules/unictype/block-test-tests: Likewise.
3090         * modules/unictype/category-C-tests: Likewise.
3091         * modules/unictype/category-Cc-tests: Likewise.
3092         * modules/unictype/category-Cf-tests: Likewise.
3093         * modules/unictype/category-Cn-tests: Likewise.
3094         * modules/unictype/category-Co-tests: Likewise.
3095         * modules/unictype/category-Cs-tests: Likewise.
3096         * modules/unictype/category-L-tests: Likewise.
3097         * modules/unictype/category-Ll-tests: Likewise.
3098         * modules/unictype/category-Lm-tests: Likewise.
3099         * modules/unictype/category-Lo-tests: Likewise.
3100         * modules/unictype/category-Lt-tests: Likewise.
3101         * modules/unictype/category-Lu-tests: Likewise.
3102         * modules/unictype/category-M-tests: Likewise.
3103         * modules/unictype/category-Mc-tests: Likewise.
3104         * modules/unictype/category-Me-tests: Likewise.
3105         * modules/unictype/category-Mn-tests: Likewise.
3106         * modules/unictype/category-N-tests: Likewise.
3107         * modules/unictype/category-Nd-tests: Likewise.
3108         * modules/unictype/category-Nl-tests: Likewise.
3109         * modules/unictype/category-No-tests: Likewise.
3110         * modules/unictype/category-P-tests: Likewise.
3111         * modules/unictype/category-Pc-tests: Likewise.
3112         * modules/unictype/category-Pd-tests: Likewise.
3113         * modules/unictype/category-Pe-tests: Likewise.
3114         * modules/unictype/category-Pf-tests: Likewise.
3115         * modules/unictype/category-Pi-tests: Likewise.
3116         * modules/unictype/category-Po-tests: Likewise.
3117         * modules/unictype/category-Ps-tests: Likewise.
3118         * modules/unictype/category-S-tests: Likewise.
3119         * modules/unictype/category-Sc-tests: Likewise.
3120         * modules/unictype/category-Sk-tests: Likewise.
3121         * modules/unictype/category-Sm-tests: Likewise.
3122         * modules/unictype/category-So-tests: Likewise.
3123         * modules/unictype/category-Z-tests: Likewise.
3124         * modules/unictype/category-Zl-tests: Likewise.
3125         * modules/unictype/category-Zp-tests: Likewise.
3126         * modules/unictype/category-Zs-tests: Likewise.
3127         * modules/unictype/category-and-not-tests: Likewise.
3128         * modules/unictype/category-and-tests: Likewise.
3129         * modules/unictype/category-byname-tests: Likewise.
3130         * modules/unictype/category-name-tests: Likewise.
3131         * modules/unictype/category-none-tests: Likewise.
3132         * modules/unictype/category-of-tests: Likewise.
3133         * modules/unictype/category-or-tests: Likewise.
3134         * modules/unictype/category-test-withtable-tests: Likewise.
3135         * modules/unictype/combining-class-tests: Likewise.
3136         * modules/unictype/ctype-alnum-tests: Likewise.
3137         * modules/unictype/ctype-alpha-tests: Likewise.
3138         * modules/unictype/ctype-blank-tests: Likewise.
3139         * modules/unictype/ctype-cntrl-tests: Likewise.
3140         * modules/unictype/ctype-digit-tests: Likewise.
3141         * modules/unictype/ctype-graph-tests: Likewise.
3142         * modules/unictype/ctype-lower-tests: Likewise.
3143         * modules/unictype/ctype-print-tests: Likewise.
3144         * modules/unictype/ctype-punct-tests: Likewise.
3145         * modules/unictype/ctype-space-tests: Likewise.
3146         * modules/unictype/ctype-upper-tests: Likewise.
3147         * modules/unictype/ctype-xdigit-tests: Likewise.
3148         * modules/unictype/decimal-digit-tests: Likewise.
3149         * modules/unictype/digit-tests: Likewise.
3150         * modules/unictype/mirror-tests: Likewise.
3151         * modules/unictype/numeric-tests: Likewise.
3152         * modules/unictype/property-alphabetic-tests: Likewise.
3153         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3154         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3155         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3156         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3157         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3158         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3159         * modules/unictype/property-bidi-control-tests: Likewise.
3160         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3161         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3162         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3163         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3164         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3165         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3166         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3167         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3168         * modules/unictype/property-bidi-pdf-tests: Likewise.
3169         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3170         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3171         * modules/unictype/property-byname-tests: Likewise.
3172         * modules/unictype/property-combining-tests: Likewise.
3173         * modules/unictype/property-composite-tests: Likewise.
3174         * modules/unictype/property-currency-symbol-tests: Likewise.
3175         * modules/unictype/property-dash-tests: Likewise.
3176         * modules/unictype/property-decimal-digit-tests: Likewise.
3177         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3178         * modules/unictype/property-deprecated-tests: Likewise.
3179         * modules/unictype/property-diacritic-tests: Likewise.
3180         * modules/unictype/property-extender-tests: Likewise.
3181         * modules/unictype/property-format-control-tests: Likewise.
3182         * modules/unictype/property-grapheme-base-tests: Likewise.
3183         * modules/unictype/property-grapheme-extend-tests: Likewise.
3184         * modules/unictype/property-grapheme-link-tests: Likewise.
3185         * modules/unictype/property-hex-digit-tests: Likewise.
3186         * modules/unictype/property-hyphen-tests: Likewise.
3187         * modules/unictype/property-id-continue-tests: Likewise.
3188         * modules/unictype/property-id-start-tests: Likewise.
3189         * modules/unictype/property-ideographic-tests: Likewise.
3190         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3191         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3192         * modules/unictype/property-ignorable-control-tests: Likewise.
3193         * modules/unictype/property-iso-control-tests: Likewise.
3194         * modules/unictype/property-join-control-tests: Likewise.
3195         * modules/unictype/property-left-of-pair-tests: Likewise.
3196         * modules/unictype/property-line-separator-tests: Likewise.
3197         * modules/unictype/property-logical-order-exception-tests: Likewise.
3198         * modules/unictype/property-lowercase-tests: Likewise.
3199         * modules/unictype/property-math-tests: Likewise.
3200         * modules/unictype/property-non-break-tests: Likewise.
3201         * modules/unictype/property-not-a-character-tests: Likewise.
3202         * modules/unictype/property-numeric-tests: Likewise.
3203         * modules/unictype/property-other-alphabetic-tests: Likewise.
3204         * modules/unictype/property-other-default-ignorable-code-point-tests:
3205         Likewise.
3206         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3207         * modules/unictype/property-other-id-continue-tests: Likewise.
3208         * modules/unictype/property-other-id-start-tests: Likewise.
3209         * modules/unictype/property-other-lowercase-tests: Likewise.
3210         * modules/unictype/property-other-math-tests: Likewise.
3211         * modules/unictype/property-other-uppercase-tests: Likewise.
3212         * modules/unictype/property-paired-punctuation-tests: Likewise.
3213         * modules/unictype/property-paragraph-separator-tests: Likewise.
3214         * modules/unictype/property-pattern-syntax-tests: Likewise.
3215         * modules/unictype/property-pattern-white-space-tests: Likewise.
3216         * modules/unictype/property-private-use-tests: Likewise.
3217         * modules/unictype/property-punctuation-tests: Likewise.
3218         * modules/unictype/property-quotation-mark-tests: Likewise.
3219         * modules/unictype/property-radical-tests: Likewise.
3220         * modules/unictype/property-sentence-terminal-tests: Likewise.
3221         * modules/unictype/property-soft-dotted-tests: Likewise.
3222         * modules/unictype/property-space-tests: Likewise.
3223         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3224         * modules/unictype/property-test-tests: Likewise.
3225         * modules/unictype/property-titlecase-tests: Likewise.
3226         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3227         * modules/unictype/property-unified-ideograph-tests: Likewise.
3228         * modules/unictype/property-uppercase-tests: Likewise.
3229         * modules/unictype/property-variation-selector-tests: Likewise.
3230         * modules/unictype/property-white-space-tests: Likewise.
3231         * modules/unictype/property-xid-continue-tests: Likewise.
3232         * modules/unictype/property-xid-start-tests: Likewise.
3233         * modules/unictype/property-zero-width-tests: Likewise.
3234         * modules/unictype/scripts-tests: Likewise.
3235         * modules/unictype/syntax-c-ident-tests: Likewise.
3236         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3237         * modules/unictype/syntax-java-ident-tests: Likewise.
3238         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3239         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3240         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3241         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3242         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3243         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3244         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3245         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3246         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3247         * modules/uniname/uniname-tests: Likewise.
3248         * modules/uninorm/canonical-decomposition-tests: Likewise.
3249         * modules/uninorm/compat-decomposition-tests: Likewise.
3250         * modules/uninorm/composition-tests: Likewise.
3251         * modules/uninorm/decomposing-form-tests: Likewise.
3252         * modules/uninorm/decomposition-tests: Likewise.
3253         * modules/uninorm/filter-tests: Likewise.
3254         * modules/uninorm/nfc-tests: Likewise.
3255         * modules/uninorm/nfd-tests: Likewise.
3256         * modules/uninorm/nfkc-tests: Likewise.
3257         * modules/uninorm/nfkd-tests: Likewise.
3258         * modules/uninorm/u8-normcmp-tests: Likewise.
3259         * modules/uninorm/u8-normcoll-tests: Likewise.
3260         * modules/uninorm/u16-normcmp-tests: Likewise.
3261         * modules/uninorm/u16-normcoll-tests: Likewise.
3262         * modules/uninorm/u32-normcmp-tests: Likewise.
3263         * modules/uninorm/u32-normcoll-tests: Likewise.
3264         * modules/unistdio/u8-asnprintf-tests: Likewise.
3265         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3266         * modules/unistdio/u8-vasprintf-tests: Likewise.
3267         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3268         * modules/unistdio/u8-vsprintf-tests: Likewise.
3269         * modules/unistdio/u16-asnprintf-tests: Likewise.
3270         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3271         * modules/unistdio/u16-vasprintf-tests: Likewise.
3272         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3273         * modules/unistdio/u16-vsprintf-tests: Likewise.
3274         * modules/unistdio/u32-asnprintf-tests: Likewise.
3275         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3276         * modules/unistdio/u32-vasprintf-tests: Likewise.
3277         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3278         * modules/unistdio/u32-vsprintf-tests: Likewise.
3279         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3280         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3281         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3282         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3283         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3284         * modules/unistr/u8-check-tests: Likewise.
3285         * modules/unistr/u8-chr-tests: Likewise.
3286         * modules/unistr/u8-cmp-tests: Likewise.
3287         * modules/unistr/u8-cmp2-tests: Likewise.
3288         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3289         * modules/unistr/u8-cpy-tests: Likewise.
3290         * modules/unistr/u8-mblen-tests: Likewise.
3291         * modules/unistr/u8-mbsnlen-tests: Likewise.
3292         * modules/unistr/u8-mbtouc-tests: Likewise.
3293         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3294         * modules/unistr/u8-mbtoucr-tests: Likewise.
3295         * modules/unistr/u8-move-tests: Likewise.
3296         * modules/unistr/u8-next-tests: Likewise.
3297         * modules/unistr/u8-prev-tests: Likewise.
3298         * modules/unistr/u8-set-tests: Likewise.
3299         * modules/unistr/u8-stpcpy-tests: Likewise.
3300         * modules/unistr/u8-stpncpy-tests: Likewise.
3301         * modules/unistr/u8-strcat-tests: Likewise.
3302         * modules/unistr/u8-strcmp-tests: Likewise.
3303         * modules/unistr/u8-strcoll-tests: Likewise.
3304         * modules/unistr/u8-strcpy-tests: Likewise.
3305         * modules/unistr/u8-strdup-tests: Likewise.
3306         * modules/unistr/u8-strlen-tests: Likewise.
3307         * modules/unistr/u8-strmblen-tests: Likewise.
3308         * modules/unistr/u8-strmbtouc-tests: Likewise.
3309         * modules/unistr/u8-strncat-tests: Likewise.
3310         * modules/unistr/u8-strncmp-tests: Likewise.
3311         * modules/unistr/u8-strncpy-tests: Likewise.
3312         * modules/unistr/u8-strnlen-tests: Likewise.
3313         * modules/unistr/u8-to-u16-tests: Likewise.
3314         * modules/unistr/u8-to-u32-tests: Likewise.
3315         * modules/unistr/u8-uctomb-tests: Likewise.
3316         * modules/unistr/u16-check-tests: Likewise.
3317         * modules/unistr/u16-chr-tests: Likewise.
3318         * modules/unistr/u16-cmp-tests: Likewise.
3319         * modules/unistr/u16-cmp2-tests: Likewise.
3320         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3321         * modules/unistr/u16-cpy-tests: Likewise.
3322         * modules/unistr/u16-mblen-tests: Likewise.
3323         * modules/unistr/u16-mbsnlen-tests: Likewise.
3324         * modules/unistr/u16-mbtouc-tests: Likewise.
3325         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3326         * modules/unistr/u16-mbtoucr-tests: Likewise.
3327         * modules/unistr/u16-move-tests: Likewise.
3328         * modules/unistr/u16-next-tests: Likewise.
3329         * modules/unistr/u16-prev-tests: Likewise.
3330         * modules/unistr/u16-set-tests: Likewise.
3331         * modules/unistr/u16-stpcpy-tests: Likewise.
3332         * modules/unistr/u16-stpncpy-tests: Likewise.
3333         * modules/unistr/u16-strcat-tests: Likewise.
3334         * modules/unistr/u16-strcmp-tests: Likewise.
3335         * modules/unistr/u16-strcoll-tests: Likewise.
3336         * modules/unistr/u16-strcpy-tests: Likewise.
3337         * modules/unistr/u16-strdup-tests: Likewise.
3338         * modules/unistr/u16-strlen-tests: Likewise.
3339         * modules/unistr/u16-strmblen-tests: Likewise.
3340         * modules/unistr/u16-strmbtouc-tests: Likewise.
3341         * modules/unistr/u16-strncat-tests: Likewise.
3342         * modules/unistr/u16-strncmp-tests: Likewise.
3343         * modules/unistr/u16-strncpy-tests: Likewise.
3344         * modules/unistr/u16-strnlen-tests: Likewise.
3345         * modules/unistr/u16-to-u32-tests: Likewise.
3346         * modules/unistr/u16-to-u8-tests: Likewise.
3347         * modules/unistr/u16-uctomb-tests: Likewise.
3348         * modules/unistr/u32-check-tests: Likewise.
3349         * modules/unistr/u32-chr-tests: Likewise.
3350         * modules/unistr/u32-cmp-tests: Likewise.
3351         * modules/unistr/u32-cmp2-tests: Likewise.
3352         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3353         * modules/unistr/u32-cpy-tests: Likewise.
3354         * modules/unistr/u32-mblen-tests: Likewise.
3355         * modules/unistr/u32-mbsnlen-tests: Likewise.
3356         * modules/unistr/u32-mbtouc-tests: Likewise.
3357         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3358         * modules/unistr/u32-mbtoucr-tests: Likewise.
3359         * modules/unistr/u32-move-tests: Likewise.
3360         * modules/unistr/u32-next-tests: Likewise.
3361         * modules/unistr/u32-prev-tests: Likewise.
3362         * modules/unistr/u32-set-tests: Likewise.
3363         * modules/unistr/u32-stpcpy-tests: Likewise.
3364         * modules/unistr/u32-stpncpy-tests: Likewise.
3365         * modules/unistr/u32-strcat-tests: Likewise.
3366         * modules/unistr/u32-strcmp-tests: Likewise.
3367         * modules/unistr/u32-strcoll-tests: Likewise.
3368         * modules/unistr/u32-strcpy-tests: Likewise.
3369         * modules/unistr/u32-strdup-tests: Likewise.
3370         * modules/unistr/u32-strlen-tests: Likewise.
3371         * modules/unistr/u32-strmblen-tests: Likewise.
3372         * modules/unistr/u32-strmbtouc-tests: Likewise.
3373         * modules/unistr/u32-strncat-tests: Likewise.
3374         * modules/unistr/u32-strncmp-tests: Likewise.
3375         * modules/unistr/u32-strncpy-tests: Likewise.
3376         * modules/unistr/u32-strnlen-tests: Likewise.
3377         * modules/unistr/u32-to-u16-tests: Likewise.
3378         * modules/unistr/u32-to-u8-tests: Likewise.
3379         * modules/unistr/u32-uctomb-tests: Likewise.
3380         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3381         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3382         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3383         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3384         * modules/uniwidth/u8-strwidth-tests: Likewise.
3385         * modules/uniwidth/u8-width-tests: Likewise.
3386         * modules/uniwidth/u16-strwidth-tests: Likewise.
3387         * modules/uniwidth/u16-width-tests: Likewise.
3388         * modules/uniwidth/u32-strwidth-tests: Likewise.
3389         * modules/uniwidth/u32-width-tests: Likewise.
3390         * modules/uniwidth/width-tests: Likewise.
3391
3392 2010-05-18  Richard Jones  <rjones@redhat.com>
3393
3394         doc: users.txt: list hivex
3395         * users.txt: Add hivex.
3396
3397 2010-05-18  Richard Jones  <rjones@redhat.com>
3398
3399         doc: users.txt: list febootstrap
3400         * users.txt: Add febootstrap.
3401
3402 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3403
3404         bootstrap: fix an error when gnulib is not used as a git submodule
3405         * build-aux/bootstrap (gnulib_path): If its length is zero then
3406         assign "gnulib" to it.
3407         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3408
3409 2010-05-16  Bruno Haible  <bruno@clisp.org>
3410
3411         Avoid autoconf warnings about AM_ICONV.
3412         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3413         2.64.
3414
3415 2010-05-16  Bruno Haible  <bruno@clisp.org>
3416
3417         absolute-header: Make the macro usable in more situations.
3418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3419         from gl_ABSOLUTE_HEADER.
3420         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3421
3422 2010-05-16  James Youngman  <jay@gnu.org>
3423
3424         doc: update users.txt
3425         * users.txt: Add CSSC.
3426
3427 2010-05-16  Jim Meyering  <meyering@redhat.com>
3428
3429         init.sh: fix an error in the previous change; add more comments
3430         * tests/init.sh: Compare exit code in loop against 9, not 2.
3431         Patch by Bruno Haible.
3432         Make the two tests more similar by adding an empty "then" clause.
3433         Add comments.
3434
3435         init.sh: avoid unnecessary shell re-exec
3436         * tests/init.sh: Improve the re-exec-required check to first test the
3437         current shell.  If it passes the test, do not search for a shell that
3438         does pass, and do not re-exec.  This test is particularly contorted to
3439         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3440         of $(...) evokes a syntax error and causes immediate shell exit with
3441         status 2.  Bruno Haible reported that the re-exec made it impossible
3442         to single-step through any init.sh-using script.
3443
3444 2010-05-16  Bruno Haible  <bruno@clisp.org>
3445
3446         Fix collision between gnulib's and libintl's printf replacements.
3447         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3448         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3449         (printf): When using GNU C, map the __printf__ function to rpl_printf
3450         via __asm__. When not using GNU C, define rpl_printf instead of
3451         __printf__.
3452         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3453         commit.
3454         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3455         commit.
3456         * m4/asm-underscore.m4: New file.
3457         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3458         * modules/stdio (Files): Add m4/asm-underscore.m4.
3459         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3460         Reported by Ben Pfaff.
3461
3462 2010-05-16  Bruno Haible  <bruno@clisp.org>
3463
3464         verify: Avoid skipping the test on openSUSE 11.0.
3465         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3466
3467 2010-05-13  Bruno Haible  <bruno@clisp.org>
3468
3469         Avoid useless warnings from G++.
3470         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3471         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3472         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3473
3474 2010-05-11  Jim Meyering  <meyering@redhat.com>
3475
3476         maint.mk: tweak preceding change
3477         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3478         regexps tighter by anchoring at EOL, and make the new group "shy"
3479         for slightly decreased overhead.
3480
3481 2010-05-11  Eric Blake  <eblake@redhat.com>
3482
3483         maint.mk: gnulib doesn't guarantee NSIG
3484         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3485
3486 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3487
3488         test-pwrite.c: Remove unused variable declaration.
3489         * tests/test-pwrite.c (main): Remove read_buf declaration.
3490
3491         Remove useless test-pwrite.sh file.
3492         * tests/test-pwrite.sh: Delete file.
3493         * modules/pwrite-tests: Remove references.
3494         Reported by Bruno Haible.
3495
3496 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3497
3498         init.sh: fix a typo
3499         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3500
3501 2010-05-10  Jim Meyering  <meyering@redhat.com>
3502
3503         maint.mk: avoid using a temporary file in the always-defined-macros check
3504         * top/maint.mk (.re-defmac): Remove rule.
3505         (gl_trap_): Remove definition.
3506         (sc_prohibit_always-defined_macros): Rewrite not to create and
3507         depend on a temporary file.  Instead, depend on GNU grep's ability
3508         to read a list of regular expressions from stdin when given "-f -".
3509
3510 2010-05-09  Bruno Haible  <bruno@clisp.org>
3511
3512         Update to GNU gettext 0.18, part 1.
3513         * m4/gettext.m4: Update to GNU gettext 0.18.
3514         * m4/intl.m4: Likewise.
3515         * m4/po.m4: Likewise.
3516         * modules/gettext (Files): Add m4/fcntl-o.m4.
3517         (configure.ac): Require gettext infrastructure from version 0.18.
3518
3519 2010-05-09  Jim Meyering  <meyering@redhat.com>
3520
3521         init.sh: enable MALLOC_PERTURB_
3522         * tests/init.sh: Enable glibc's malloc-perturbing option.
3523
3524         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3525         With my recent change in init.sh from the two-line form:
3526             -#   : ${srcdir=.}
3527             -#   . "$srcdir/init.sh"; path_prepend_ .
3528             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3529         I noticed that using the one-line form would cause this test
3530         to fail with a false-positive, or to stop working altogether,
3531         depending on whether help-version changed or all the tests did.
3532         * top/maint.mk (_hv_regex): Remove this definition.
3533         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3534         (_hv_regex_strong): Use a stronger regex to check for conformance.
3535         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3536         Give a separate diagnostic for lack of conforming use.
3537
3538         maint.mk: prohibit definition of symbols defined by gnulib
3539         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3540         definition of symbols defined by gnulib.
3541
3542 2010-05-09  Bruno Haible  <bruno@clisp.org>
3543
3544         acl: Avoid test failure on Cygwin-hosted mingw.
3545         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3546
3547 2010-05-09  Bruno Haible  <bruno@clisp.org>
3548
3549         error: Use system's fcntl function.
3550         * lib/error.c (fcntl): Undefine.
3551
3552 2010-05-09  Jim Meyering  <meyering@redhat.com>
3553
3554         verify: adjust formatting to be more consistent
3555         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3556         argument-list '('s, and after one comma.
3557
3558 2010-05-09  Bruno Haible  <bruno@clisp.org>
3559
3560         error: More reliable output on mingw.
3561         * lib/error.c: Include <windows.h>.
3562         (is_open): New function.
3563         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3564         defined.
3565
3566 2010-05-09  Bruno Haible  <bruno@clisp.org>
3567
3568         vasnprintf: Fix syntax errors in libintl build on mingw.
3569         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3570         pad_ourselves and prec_ourselves after use.
3571
3572 2010-05-08  Bruno Haible  <bruno@clisp.org>
3573
3574         * lib/config.charset: Update comments for Cygwin 1.7.
3575         * lib/localcharset.c: Likewise.
3576
3577 2010-05-07  Jim Meyering  <meyering@redhat.com>
3578
3579         init.sh: improve comments
3580         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3581         . "${srcdir=.}/init.sh"; path_prepend_ .
3582         Add a note about path_prepend_ and the alternative of using
3583         TESTS_ENVIRONMENT.
3584
3585 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3586
3587         exclude: Unescape hashed patterns in wildcard mode.
3588         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3589         to the hash list.
3590         * tests/test-exclude8.sh: New test case.
3591         * modules/exclude-tests: Add new test.
3592
3593 2010-05-05  Eric Blake  <eblake@redhat.com>
3594
3595         verify: automate tests
3596         * modules/verify-tests: New module.
3597         * tests/test-verify.sh: New file.
3598         * tests/test-verify.c: Guard each negative test with a unique id.
3599         Also avoid warning about unused left hand of comma expressions.
3600
3601 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3602
3603         Further improvements to verify.h, suggested by Eric Blake.
3604         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3605         the GL_* versions, to avoid collision with OpenGL.
3606         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3607         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3608         than testing merely whether it's defined.
3609
3610         Modify verify.h to pacify gcc -Wredundant_decls.
3611         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3612         These use the prefix "GL_" since they're likely to be useful elsewhere.
3613         We may need to break them out into a different .h file.
3614         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3615         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3616         of verify_function__.
3617
3618 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3619
3620         Tests for module pwrite.
3621         * modules/pwrite-tests: New file.
3622         * tests/test-pwrite.sh: New file.
3623         * tests/test-pwrite.c: New file.
3624
3625         New module pwrite.
3626         * lib/unistd.in.h (pwrite): New declaration.
3627         * lib/pwrite.c: New file, from glibc with modifications.
3628         * m4/pwrite.m4: New file.
3629         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3630         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3631         REPLACE_PWRITE.
3632         * modules/pwrite: New file.
3633         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3634         REPLACE_PWRITE.
3635         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3636         * doc/posix-functions/pwrite.texi: Mention the new module.
3637
3638 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3639
3640         pread: Update documentation.
3641         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3642
3643 2010-05-04  Eric Blake  <eblake@redhat.com>
3644
3645         docs: update cygwin progress
3646         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3647         this bug.
3648         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3649         Added in cygwin 1.7.2.
3650         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3651         Likewise.
3652         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3653         Likewise.
3654         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3655         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3656         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3657         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3658         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3659         Mention nproc module.
3660         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3661         bug in cygwin 1.7.5 addition.
3662         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3663         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3664         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3665         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3666         1.7.5.
3667         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3668         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3669         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3670         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3671         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3672         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3673         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3674         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3675         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3676         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3677         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3678         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3679         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3680         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3681         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3682         Likewise.
3683         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3684         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3685         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3686         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3687         Likewise.
3688         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3689         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3690         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3691         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3692         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3693         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3694         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3695         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3696         Likewise.
3697         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3698         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3699         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3700         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3701         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3702         Likewise.
3703         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3704         Likewise.
3705         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3706         Likewise.
3707         * doc/glibc-functions/xdrrec_endofrecord.texi
3708         (xdrrec_endofrecord): Likewise.
3709         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3710         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3711         Likewise.
3712         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3713         Likewise.
3714
3715 2010-05-04  Jim Meyering  <meyering@redhat.com>
3716
3717         gendocs.sh: make its "-s FILE" option more useful
3718         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3719         $PACKAGE to reflect the probably-different basename of "FILE".
3720
3721 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3722
3723         bootstrap: don't ignore download_po_files failure
3724         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3725         failure.
3726
3727 2010-05-03  Jim Meyering  <meyering@redhat.com>
3728
3729         maint.mk: allow to pass options to gendocs.sh
3730         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3731         (gendocs_options_): New overridable variable.
3732
3733         gnu-web-doc-update: don't ignore configure or build failure
3734         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3735
3736         announce-gen: backslash-escape '@'s in --help output
3737         * build-aux/announce-gen: Fix syntax errors.
3738
3739         maint.mk, announce-gen: allow project-specific announcement mail headers
3740         * top/maint.mk (translation_project_): Define default.
3741         (announcement_Cc_, announcement_mail_headers_): Likewise.
3742         (announcement): Invoke announce-gen with new --mail-headers option.
3743         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3744
3745         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3746         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3747         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3748         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3749         line in the "err2" output file when running "make check" in verbose
3750         mode (i.e., with set -x enabled).
3751
3752 2010-05-03  Bruno Haible  <bruno@clisp.org>
3753
3754         wctob: Fix for weird platforms.
3755         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3756         argument value.
3757
3758 2010-05-03  Jim Meyering  <meyering@redhat.com>
3759
3760         maint.mk: prohibit unwarranted use of <strings.h>
3761         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3762         strings.h in a file that does not also use strcasecmp, strncasecmp,
3763         ffs or ffsll.
3764
3765         maint.mk: remove obsolete comments
3766         * top/maint.mk: Remove stale, commented-out rules.
3767
3768 2010-05-02  Bruno Haible  <bruno@clisp.org>
3769
3770         wcwidth: Declare also when it's aliased.
3771         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3772         macro.
3773
3774 2010-05-02  Bruno Haible  <bruno@clisp.org>
3775
3776         Fix regression from 2010-04-25.
3777         * gnulib-tool (func_modules_transitive_closure): Check the status of
3778         all modules, not only of the tests that are of the form foo-tests where
3779         foo is a module.
3780
3781 2010-05-02  Bruno Haible  <bruno@clisp.org>
3782
3783         wctob: Work around nasty Cygwin 1.7.2 bug.
3784         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3785         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3786
3787 2010-05-01  Bruno Haible  <bruno@clisp.org>
3788
3789         fpurge: Sharper test.
3790         * tests/test-fpurge.c (main): Add one more ftell check.
3791         * modules/fpurge-tests (Depends-on): Add ftell.
3792         Suggested by Eric Blake.
3793
3794 2010-05-01  Bruno Haible  <bruno@clisp.org>
3795
3796         ftello: Another test.
3797         * tests/test-ftello3.c: New file.
3798         * modules/ftello-tests (Files): Add it.
3799         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3800         MOSTLYCLEANFILES.
3801
3802         ftell: Another test.
3803         * tests/test-ftell3.c: New file.
3804         * modules/ftell-tests (Files): Add it.
3805         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3806         MOSTLYCLEANFILES.
3807
3808 2010-05-01  Bruno Haible  <bruno@clisp.org>
3809
3810         ftell, ftello: Work around Solaris bug.
3811         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3812         * lib/ftello.c: Include stdio-impl.h.
3813         (ftello): On Solaris, when _IOWRT is set, compute the result without
3814         looking at _IOREAD.
3815         * modules/ftello (Files): Add lib/stdio-impl.h.
3816         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3817         * doc/posix-functions/ftello.texi: Likewise.
3818         Reported by Eric Blake.
3819
3820 2010-05-01  Bruno Haible  <bruno@clisp.org>
3821
3822         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3823         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3824         the _IOWRT flag is also set.
3825
3826 2010-05-01  Bruno Haible  <bruno@clisp.org>
3827
3828         Fix doc about a HP-UX stdio bug.
3829         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3830         * doc/posix-functions/ftello.texi: Likewise.
3831
3832 2010-05-01  Bruno Haible  <bruno@clisp.org>
3833
3834         lseek test: Fix failure on Solaris.
3835         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3836         output.
3837
3838 2010-04-30  Jim Meyering  <meyering@redhat.com>
3839
3840         bootstrap: don't ignore failure to generate po*/Makevars
3841         * build-aux/bootstrap (with_gettext): Don't ignore failure
3842         to create po/Makevars or runtime-po/Makevars.
3843
3844 2010-04-29  Eric Blake  <eblake@redhat.com>
3845
3846         headers: relax license to LGPLv2+
3847         * modules/fcntl-h (License): Relax license.
3848         * modules/getopt-posix (License): Likewise.
3849         * modules/locale (License): Likewise.
3850         * modules/math (License): Likewise.
3851         * modules/pty (License): Likewise.
3852         * modules/sched (License): Likewise.
3853         * modules/search (License): Likewise.
3854         * modules/spawn (License): Likewise.
3855         * modules/stdarg (License): Likewise.
3856         * modules/sysexits (License): Likewise.
3857
3858 2010-04-29  Jim Meyering  <meyering@redhat.com>
3859
3860         inttypes: relax license to LGPLv2+
3861         * modules/inttypes (License): Relax license.
3862
3863 2010-04-29  Simon Josefsson  <simon@josefsson.org>
3864
3865         * top/maint.mk (indent): Run twice to produce idempotent results.
3866
3867 2010-04-28  Bruno Haible  <bruno@clisp.org>
3868
3869         getdate: Generate getdate.c in the source directory.
3870         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
3871         MOSTLYCLEANFILES.
3872         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
3873
3874 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
3875
3876         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
3877         is not declared as a const *; avoid warnings in that case.
3878
3879 2010-04-28  Eric Blake  <eblake@redhat.com>
3880
3881         canonicalize-lgpl: avoid compiler warning
3882         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
3883         declaration' / 'extraneous semicolon' warning with some compilers.
3884         Reported by Andreas Gruenbacher.
3885
3886 2010-04-28  Jim Meyering  <meyering@redhat.com>
3887
3888         init.sh: ensure a more reliable exit status when exiting via trap
3889         * tests/init.sh (setup_): Don't rely on $? in signal handler.
3890         Inspired by patches from Dmitry V. Levin.
3891         Also trap on signal 3 (SIGQUIT).
3892
3893 2010-04-27  Bruno Haible  <bruno@clisp.org>
3894
3895         Update doc about utimes().
3896         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
3897         'utimens' module.
3898         Reported by Andreas Gruenbacher <agruen@suse.de>.
3899
3900 2010-04-27  Eric Blake  <eblake@redhat.com>
3901
3902         full-read, full-write: relax license
3903         * modules/full-read (License): Drop to LGPLv2+.
3904         * modules/full-write (License): Likewise.
3905         * modules/safe-read (License): Likewise.
3906         * modules/safe-write (License): Likewise.
3907
3908         pthread: mention library for linking
3909         * modules/pthread (Link): Mention $(LIB_PTHREAD).
3910
3911 2010-04-27  Jim Meyering  <meyering@redhat.com>
3912
3913         maint.mk: fix a bug introduced in last change
3914         * top/maint.mk (gl_assured_headers_): Now that all names are on
3915         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
3916         is not anchored to end of word, it should be adequate.
3917
3918         maint.mk: avoid side-effect in latest syntax-check
3919         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
3920         to run commands via $(shell...), and hence to incur cost only when
3921         the new rule is actually run.
3922
3923         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
3924         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
3925         and use that to create a regexp used to detect all #if HAVE_..._H uses.
3926         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
3927         (gl_assured_headers_, az_, AZ_): Define.
3928         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
3929
3930 2010-04-26  Jim Meyering  <jim@meyering.net>
3931             Bruno Haible  <bruno@clisp.org>
3932
3933         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
3934         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
3935         Prompted by an exchange with Gilles Espinasse.
3936
3937 2010-04-26  Jim Meyering  <meyering@redhat.com>
3938
3939         git-version-gen: aesthetic tweak
3940         * build-aux/git-version-gen: Use "$nl" rather than a literal,
3941         so that the command remains on a single line.
3942
3943 2010-04-26  Eric Blake  <eblake@redhat.com>
3944
3945         git-version-gen: allow use on EBCDIC hosts
3946         * build-aux/git-version-gen (dirty): Use literal rather than tying
3947         ourselves to ascii.
3948         Reported by Steve Goetze.
3949
3950 2010-04-25  Bruno Haible  <bruno@clisp.org>
3951
3952         netdb: Add support for GNULIB_POSIXCHECK.
3953         * lib/netdb.in.h: Include warn-on-use.h.
3954         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
3955         functions are used when GNULIB_POSIXCHECK is defined and the
3956         getaddrinfo module is not in use.
3957         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
3958         freeaddrinfo, gai_strerror, getnameinfo are declared.
3959         * modules/netdb (Depends-on): Add warn-on-use.
3960         (Makefile.am): Include warn-on-use.h in netdb.h.
3961
3962 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
3963
3964         build: avoid "make check" failure without .git/ directory
3965         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
3966         there is no .git/ directory.
3967
3968 2010-04-25  Bruno Haible  <bruno@clisp.org>
3969
3970         ptsname: Fix misuse of ttyname_r.
3971         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
3972         of errno.
3973
3974 2010-04-25  Bruno Haible  <bruno@clisp.org>
3975
3976         ttyname_r: Make it work on Solaris 10.
3977         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
3978         if the system function has the POSIX declaration. Test whether the
3979         function fails if the buffer is less than 128 bytes large.
3980         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
3981         system's ttyname_r function. Provide a reasonably large buffer.
3982         * modules/ttyname_r (Depends-on): Add extensions.
3983         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
3984
3985 2010-04-25  Bruno Haible  <bruno@clisp.org>
3986
3987         Use the 'extensions' module for some more functions on Solaris.
3988         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
3989         module.
3990         * doc/posix-functions/ctime_r.texi: Likewise.
3991         * doc/posix-functions/getgrgid_r.texi: Likewise.
3992         * doc/posix-functions/getgrnam_r.texi: Likewise.
3993         * doc/posix-functions/getpwnam_r.texi: Likewise.
3994         * doc/posix-functions/getpwuid_r.texi: Likewise.
3995         * doc/posix-functions/readdir_r.texi: Likewise.
3996         * doc/posix-functions/sigwait.texi: Likewise.
3997         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
3998         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
3999
4000 2010-04-25  Bruno Haible  <bruno@clisp.org>
4001
4002         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4003         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4004         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4005         * lib/ttyname_r.c: Include <limits.h>.
4006         (ttyname_r): Define using the system's ttyname_r function, if it exists
4007         and not on Solaris.
4008         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4009         set.
4010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4011         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4012         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4013         Reported by Simon Josefsson.
4014
4015 2010-04-25  Bruno Haible  <bruno@clisp.org>
4016
4017         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4018         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4019         * doc/posix-functions/ctime_r.texi: Likewise.
4020         * doc/posix-functions/getgrgid_r.texi: Likewise.
4021         * doc/posix-functions/getgrnam_r.texi: Likewise.
4022         * doc/posix-functions/getlogin_r.texi: Likewise.
4023         * doc/posix-functions/getpwnam_r.texi: Likewise.
4024         * doc/posix-functions/getpwuid_r.texi: Likewise.
4025         * doc/posix-functions/readdir_r.texi: Likewise.
4026         * doc/posix-functions/sigwait.texi: Likewise.
4027         * doc/posix-functions/ttyname_r.texi: Likewise.
4028         Reported by Simon Josefsson.
4029
4030 2010-04-25  Bruno Haible  <bruno@clisp.org>
4031
4032         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4033         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4034         also to --create-testdir.
4035         (func_acceptable): Don't consider the status of *-tests modules here.
4036         (func_modules_transitive_closure): Consider it here, before including a
4037         test module.
4038         (func_import, func_create_testdir): Set inc_all_direct_tests,
4039         inc_all_indirect_tests.
4040         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4041         --create-testdir and --create-megatestdir.
4042
4043 2010-04-25  Bruno Haible  <bruno@clisp.org>
4044
4045         gnulib-tool: Add --without-*-tests options.
4046         * gnulib-tool (func_usage): Document the --without-*-tests options.
4047         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4048         excl_unportable_tests): New variables.
4049         Fail if they are specified with --import or --update.
4050         (func_acceptable): Respect the excl_*_tests variables.
4051         (func_import): Set the excl_*_tests variables to empty.
4052
4053 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4054             Bruno Haible  <bruno@clisp.org>
4055
4056         Work around a MacOS X 10.4 bug with openpty.
4057         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4058         * tests/test-openpty.c (main): Close the master side explicitly.
4059
4060 2010-04-25  Bruno Haible  <bruno@clisp.org>
4061
4062         strnlen: Fix a C++ test error on MacOS X and Solaris.
4063         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4064         the function is not declared.
4065         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4066         Simon Josefsson.
4067
4068 2010-04-24  Bruno Haible  <bruno@clisp.org>
4069
4070         Avoid a gcc warning.
4071         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4072         of correct type for %08lx directive.
4073         Reported by Eric Blake.
4074
4075 2010-04-24  Bruno Haible  <bruno@clisp.org>
4076
4077         vasnprintf: Correct errno value in case of out-of-memory.
4078         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4079         or sprintf. Use the errno value from SNPRINTF or sprintf.
4080         Reported by Ian Beckwith <ianb@erislabs.net>.
4081
4082 2010-04-24  Bruno Haible  <bruno@clisp.org>
4083
4084         ansi-c++-opt: Find correct compiler when cross-compiling.
4085         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4086         AC_CHECK_PROGS.
4087         Reported by Simon Josefsson.
4088
4089 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4090
4091         vc-list-files: Add support for subversion
4092         * build-aux/vc-list-files: Use "svn list" to generate the list of
4093         files controlled by subversion.
4094
4095 2010-04-23  Jim Meyering  <meyering@redhat.com>
4096
4097         vc-list-files tests: convert to use init.sh
4098         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4099         path_prepend_.
4100         Use Exit, not exit.
4101         Use skip_ rather than open coding it.
4102         Remove trap set-up and compare definitions.
4103         * tests/test-vc-list-files-git.sh: Likewise.
4104         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4105
4106 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4107
4108         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4109         backup files.
4110
4111 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4112
4113         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4114
4115 2010-04-20  Eric Blake  <eblake@redhat.com>
4116
4117         tests: be robust to ignored SIGPIPE
4118         * tests/test-select-in.sh: Consume all output.
4119         * tests/test-lseek.sh: Check correct exit status, while avoiding
4120         EPIPE.
4121
4122 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4123             Bruno Haible  <bruno@clisp.org>
4124
4125         visibility: Don't use -fvisibility if it leads to a warning.
4126         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4127         yes, don't pretend that visibility works if it leads to a warning.
4128         Reported by Mike Gran <spk121@yahoo.com>.
4129
4130 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4131
4132         * build-aux/bootstrap: Use "git -h" for testing for supported options
4133         instead of "git --help".  The short-form option only shows a summary,
4134         and doesn't layout the full man page.  Grep for the full option name
4135         in the summary, too.
4136
4137 2010-04-19  Bruno Haible  <bruno@clisp.org>
4138
4139         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4140         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4141         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4142         mention of RELOCATABLE_STRIP.
4143         Reported by Sylvain Beucler <beuc@beuc.net>.
4144
4145 2010-04-19  Bruno Haible  <bruno@clisp.org>
4146
4147         * lib/diffseq.h: Fix typo in comment.
4148         Reported by Eric Blake.
4149
4150 2010-04-19  Bruno Haible  <bruno@clisp.org>
4151
4152         ioctl: Move autoconf macro to a .m4 file.
4153         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4154         * modules/ioctl (Files): Add it.
4155         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4156         Reported by Ian Beckwith <ianb@erislabs.net>.
4157
4158 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4159             Bruno Haible  <bruno@clisp.org>
4160
4161         diffseq: Accommodate use-case with abstract arrays.
4162         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4163         is not defined.
4164         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4165         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4166
4167 2010-04-18  Bruno Haible  <bruno@clisp.org>
4168
4169         * doc/posix-headers/stdbool.texi: More precise wording.
4170
4171 2010-04-17  Jim Meyering  <meyering@redhat.com>
4172
4173         maint.mk: use gnu-style indentation in an embedded perl script
4174         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4175         Rename variable: s/two/last_two_bytes/
4176
4177 2010-04-16  Eric Blake  <eblake@redhat.com>
4178
4179         test-stdbool: skip test that fails with Solaris CC
4180         * tests/test-stdbool.c (f): Skip test that causes compilation
4181         error under buggy C++ compiler.
4182         * lib/stdbool.in.h: Document the limitation.
4183         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4184
4185         setenv: allow compilation with C++
4186         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4187         register keyword.
4188
4189         stdint: allow test to pass with C++
4190         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4191
4192         getopt: allow compilation with C++
4193         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4194         struct.
4195         * lib/getopt.c (_getopt_internal_r): Use correct type.
4196         Reported by Dagobert Michelson, via Joel E. Denny.
4197
4198 2010-04-16  Bruno Haible  <bruno@clisp.org>
4199
4200         Override netdb.h always.
4201         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4202         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4203         Reported by Ludovic Courtès <ludo@gnu.org>.
4204
4205 2010-04-15  Bruno Haible  <bruno@clisp.org>
4206
4207         openpty: Fix mistake from 2010-03-21.
4208         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4209         Reported by Simon Josefsson.
4210
4211 2010-04-15  Eric Blake  <eblake@redhat.com>
4212
4213         test-forkpty: fix expected signature
4214         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4215         Reported by Simon Josefsson.
4216
4217 2010-04-15  Jim Meyering  <meyering@redhat.com>
4218
4219         maint.mk: texinfo_suffix_re_: correct the default regexp
4220         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4221
4222         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4223         make it configurable via texinfo_suffix_re_.
4224
4225 2010-04-14  Eric Blake  <eblake@redhat.com>
4226
4227         strtok_r: relax license to LGPLv2+
4228         * modules/strtok_r (License): Relax license.
4229         Reported by Matthias Bolte.
4230
4231 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4232
4233         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4234         version 1.4.4 by default instead of requiring the libgcrypt
4235         version used during build.  This makes it possible to use the
4236         application with older but still binary compatible libgcrypt
4237         versions.
4238
4239 2010-04-13  Eric Blake  <eblake@redhat.com>
4240
4241         getopt-gnu: match recent glibc fixes and posix ruling
4242         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4243         '+' handling, when requesting extensions.
4244         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4245         'W;' handling.
4246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4247         * doc/posix-functions/getopt.texi (getopt): Document this.
4248         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4250         Likewise.
4251
4252         getopt: merge bug fixes from glibc
4253         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4254         diagnostics.  Honor '+:' correctly.  Reject ';'.
4255
4256         getopt-posix: detect MacOS bug
4257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4258         optind when missing a required argument.
4259         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4260         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4261         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4262         Likewise.
4263
4264         getopt-posix: avoid spurious failure on Solaris
4265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4266         an indicator that setting optind=1 is sufficient for reset.
4267
4268         getopt-posix: avoid spurious failure on FreeBSD
4269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4270         in POSIX mode, since the m4 test uses it.
4271
4272         gnulib-tool: silence warning on BSD sh
4273         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4274
4275 2010-04-13  Jim Meyering  <meyering@redhat.com>
4276
4277         doc: users.txt: GNU patch now uses gnulib
4278         * users.txt: Add patch.
4279
4280 2010-04-12  Jim Meyering  <meyering@redhat.com>
4281
4282         maint.mk: generate more concise timing data for syntax-check rules
4283         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4284         " done" from each line that reports a syntax-check test duration.
4285
4286 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4287
4288         git-version-gen: use "git update-index..." rather than "git status"
4289         * build-aux/git-version-gen: Use git update-index --refresh, not
4290         "git status".  With some versions of git, "git status" would fail
4291         to update the index and result in an unwarranted "-dirty" suffix.
4292
4293 2010-04-11  Jim Meyering  <meyering@redhat.com>
4294
4295         openat: correct formatting (no semantic change)
4296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4297         Suggested by Bruno Haible.
4298
4299 2010-04-11  Bruno Haible  <bruno@clisp.org>
4300
4301         Stricter declaration checking in testdirs.
4302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4303         If for_tests is true, augment AM_CPPFLAGS to define
4304         GNULIB_STRICT_CHECKING.
4305         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4306         GNULIB_STRICT_CHECKING is defined, verify that the function is
4307         declared.
4308
4309 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4310             Bruno Haible  <bruno@clisp.org>
4311
4312         libunistring: Improve configure output.
4313         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4314         Don't say "consider installing GNU libunistring" when checking again
4315         with libiconv.
4316
4317 2010-04-11  Bruno Haible  <bruno@clisp.org>
4318
4319         libunistring: Correct value of $LTLIBUNISTRING.
4320         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4321         correct the value of $LTLIBUNISTRING.
4322
4323 2010-04-11  Bruno Haible  <bruno@clisp.org>
4324
4325         havelib: Add static libraries to LIBS in the right order.
4326         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4327         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4328
4329 2010-04-11  Bruno Haible  <bruno@clisp.org>
4330
4331         libunistring: Detect libunistring also when it depends on libiconv.
4332         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4333         the second AC_LIB_HAVE_LINKFLAGS invocation.
4334
4335 2010-04-11  James Youngman  <jay@gnu.org>
4336
4337         close-stream: declare local scalars to be "const"
4338         * lib/close-stream.c (close_stream): Make boolean variables const
4339         to document the fact that we set but do not change them.
4340
4341 2010-04-11  Bruno Haible  <bruno@clisp.org>
4342
4343         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4344
4345 2010-04-11  Jim Meyering  <meyering@redhat.com>
4346
4347         maint.mk: don't include dist-check.mk
4348         * top/maint.mk: Remove bogus include directive.
4349
4350         maint.mk: improve empty-line-at-EOF check
4351         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4352         solution, rather than tail+Perl-based one.  The latter would read
4353         a few kilobytes from the end of each file, and did not handle empty
4354         files properly.
4355
4356         maint.mk: print the elapsed time for each syntax-check rule
4357         * top/maint.mk (sc_m_rules_): Save start time in a file.
4358         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4359         (local-check): Interpose the .z rules
4360
4361 2010-04-11  Jim Meyering  <meyering@redhat.com>
4362
4363         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4364         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4365         empty file with one that ends in an empty line.
4366
4367 2010-04-10  Bruno Haible  <bruno@clisp.org>
4368
4369         mkdir: Make it work on mingw64.
4370         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4371         * lib/mkdir.c: Update comment.
4372         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4373
4374 2010-04-10  Bruno Haible  <bruno@clisp.org>
4375
4376         Don't override improved macro from newer autoconf.
4377         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4378         autoconf >= 2.62.
4379         Reported by Joel E. Denny <jdenny@clemson.edu>.
4380
4381 2010-04-10  Jim Meyering  <meyering@redhat.com>
4382
4383         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4384         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4385
4386         maint.mk: correct a diagnostic
4387         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4388         in diagnostic; now use $prohibit.
4389
4390 2010-04-10  Bruno Haible  <address@hidden>
4391
4392         fchownat: Fix a C++ test error on Solaris 8.
4393         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4394         the function does not exist.
4395
4396 2010-04-10  Bruno Haible  <bruno@clisp.org>
4397
4398         vasnprintf: Add more tests.
4399         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4400         (test_function): Test converting an invalid wide string.
4401
4402         vasnprintf: Correct handling of unconvertible wide string arguments.
4403         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4404         VASNPRINTF.
4405         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4406         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4407         smaller than the expected maximum need for the directive. Set errno to
4408         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4409         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4411         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4412         * modules/vasnprintf (Files): Add m4/printf.m4.
4413         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4414
4415 2010-04-10  Bruno Haible  <bruno@clisp.org>
4416
4417         vasnprintf: Fix crash in %ls directive.
4418         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4419         string is passed as argument to %ls, with no precision and no width.
4420         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4421
4422 2010-04-10  Bruno Haible  <bruno@clisp.org>
4423
4424         vasnprintf: Fix multiple test failures on mingw.
4425         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4426         _snprintf, or snwprintf, not _snwprintf.
4427
4428 2010-04-10  Bruno Haible  <bruno@clisp.org>
4429
4430         write: Fix a C++ test error on mingw.
4431         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4432
4433 2010-04-10  Bruno Haible  <bruno@clisp.org>
4434
4435         vasnprintf test: Reduce code duplication.
4436         * tests/test-vasnprintf.c (test_function): New function, extracted from
4437         test_vasnprintf.
4438         (test_vasnprintf, test_asnprintf): Invoke it.
4439
4440 2010-04-10  Bruno Haible  <bruno@clisp.org>
4441
4442         strnlen: Fix warning in C++ mode on MacOS X.
4443         * lib/string.in.h (strnlen): Use the modern idiom.
4444         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4445         defining strnlen as a macro already in <config.h>.
4446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4447         REPLACE_STRNLEN.
4448         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4449         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4450
4451 2010-04-08  James Youngman  <jay@gnu.org>
4452
4453         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4454         the example.
4455
4456 2010-04-09  Jim Meyering  <meyering@redhat.com>
4457
4458         maint.mk: print better diagnostic when there is no $(_hv_file)
4459         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4460         announce that when $(_hv_file) (aka help-version) does not exist.
4461
4462         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4463         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4464         not try to interpret its random input bytes.  Jarno Rajahalme reported
4465         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4466         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4467         (mktempd_): Likewise, just in case.
4468
4469         ftruncate: add two years to projected module removal date: 2012
4470         * m4/ftruncate.m4: Adjust comments.
4471
4472         ftruncate: mark module as obsolete; even MinGW provides it, now
4473         * modules/ftruncate (Status): Obsolete.
4474         (Notice): Say that.
4475         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4476         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4477
4478 2010-04-08  Bruno Haible  <bruno@clisp.org>
4479
4480         Fix side effects from tests-related modules.
4481         * modules/dprintf-posix (Comment): New section.
4482         * modules/fprintf-posix (Comment): Likewise.
4483         * modules/obstack-printf-posix (Comment): Likewise.
4484         * modules/printf-posix (Comment): Likewise.
4485         * modules/snprintf-posix (Comment): Likewise.
4486         * modules/sprintf-posix (Comment): Likewise.
4487         * modules/vasnprintf-posix (Comment): Likewise.
4488         * modules/vasprintf-posix (Comment): Likewise.
4489         * modules/vdprintf-posix (Comment): Likewise.
4490         * modules/vfprintf-posix (Comment): Likewise.
4491         * modules/vprintf-posix (Comment): Likewise.
4492         * modules/vsnprintf-posix (Comment): Likewise.
4493         * modules/vsprintf-posix (Comment): Likewise.
4494         * modules/xprintf-posix (Comment): Likewise.
4495         * modules/xvasprintf-posix (Comment): Likewise.
4496         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4497         * modules/floorf-tests (Depends-on): Likewise.
4498         * modules/round-tests (Depends-on): Likewise.
4499         * modules/roundf-tests (Depends-on): Likewise.
4500         * modules/trunc-tests (Depends-on): Likewise.
4501         * modules/truncf-tests (Depends-on): Likewise.
4502         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4503         'fprintf-posix' module is not present.
4504         * tests/test-floorf2.c (check): Likewise.
4505         * tests/test-trunc2.c (check): Likewise.
4506         * tests/test-truncf2.c (check): Likewise.
4507         * tests/test-round2.c (equal): Likewise.
4508         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4509
4510 2010-04-07  Karl Berry  <karl@gnu.org>
4511
4512         * config/srclist.txt,
4513         * config/srclistvars.sh,
4514         * config/srclist-update: doc fixes.
4515
4516 2010-04-07  Jim Meyering  <meyering@redhat.com>
4517
4518         maint.mk: add a PATH crosschecking syntax-check rule
4519         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4520         Useful if you use a test like the one in help-version (coreutils,
4521         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4522         printed by prog --version.
4523
4524 2010-04-06  Bruno Haible  <bruno@clisp.org>
4525
4526         Fix link error on mingw.
4527         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4528         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4529
4530 2010-04-06  Bruno Haible  <bruno@clisp.org>
4531
4532         Assume rmdir exists.
4533         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4534
4535 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4536
4537         doc: update users.txt
4538         * users.txt: Add gcal.
4539
4540 2010-04-06  Jim Meyering  <meyering@redhat.com>
4541
4542         init.sh: simply unset TMPDIR rather than risking env -i
4543         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4544         although it probably works fine on all Unix-based systems, some
4545         systems (Cygwin?) cannot tolerate a totally cleared environment.
4546         Suggestion from Eric Blake.
4547
4548 2010-04-06  Jim Meyering  <meyering@redhat.com>
4549
4550         init.sh: portability fix: use env's POSIX-specified -i option not -u
4551         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4552         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4553
4554 2010-04-05  Bruno Haible  <bruno@clisp.org>
4555
4556         btowc: Work around Cygwin 1.7.2 bug.
4557         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4558         does not map NUL to 0.
4559         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4560
4561 2010-04-05  Bruno Haible  <bruno@clisp.org>
4562
4563         Make the multithread modules work on Cygwin 1.7.2.
4564         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4565         imported symbols can be declared weak, so that it returns "no" on
4566         Cygwin 1.7.2.
4567
4568 2010-04-05  Bruno Haible  <bruno@clisp.org>
4569
4570         Use the module 'strncat'.
4571         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4572
4573         Tests for module 'strncat'.
4574         * modules/strncat-tests: New file.
4575         * tests/test-strncat.c: New file.
4576
4577         New module 'strncat'.
4578         * lib/string.in.h (strncat): New declaration.
4579         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4580         * m4/strncat.m4: New file, based on m4/memchr.m4.
4581         * modules/strncat: New file.
4582         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4583         is declared.
4584         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4585         REPLACE_STRNCAT.
4586         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4587         REPLACE_STRNCAT.
4588         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4589         module.
4590         * tests/test-string-c++.cc: Check signature of strncat.
4591
4592 2010-04-05  Jim Meyering  <meyering@redhat.com>
4593
4594         xstrtoumax-tests: convert to use init.sh
4595         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4596         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4597         Use Exit, not exit.
4598         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4599
4600         xstrtoimax-tests: convert to use init.sh
4601         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4602         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4603         Use Exit, not exit.
4604         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4605
4606 2010-04-05  Bruno Haible  <bruno@clisp.org>
4607
4608         sys_socket: Avoid #define replacements in C++ mode.
4609         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4610         warning to the function if possible, rather than #defining the symbol
4611         to a dysfunctional alias.
4612
4613 2010-04-05  Bruno Haible  <bruno@clisp.org>
4614
4615         fseeko: Fix C++ test error on mingw.
4616         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4617         gl_FUNC_FSEEKO.
4618         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4619         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4620         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4621         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4622
4623 2010-04-05  Bruno Haible  <bruno@clisp.org>
4624
4625         duplocale: Improve test output.
4626         * tests/test-duplocale.c (main): Print reason for skipped test.
4627
4628 2010-04-05  Bruno Haible  <bruno@clisp.org>
4629
4630         Assume rmdir exists.
4631         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4632         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4633
4634 2010-04-05  Bruno Haible  <bruno@clisp.org>
4635
4636         Fix link error on Solaris 8 with cc.
4637         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4638
4639 2010-04-05  Bruno Haible  <bruno@clisp.org>
4640
4641         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4642         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4643
4644 2010-04-05  Bruno Haible  <bruno@clisp.org>
4645
4646         vasprintf: Update documentation.
4647         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4648
4649 2010-04-05  Bruno Haible  <bruno@clisp.org>
4650
4651         ptsname: Improve test.
4652         * tests/test-ptsname.c (main): Also try the various master names of BSD
4653         systems.
4654
4655 2010-04-05  Bruno Haible  <bruno@clisp.org>
4656
4657         memchr: Avoid a possible C++ test error.
4658         * lib/string.in.h (memchr): Provide declaration if function is missing.
4659         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4660         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4662         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4663
4664 2010-04-05  Bruno Haible  <bruno@clisp.org>
4665
4666         strtok_r: Improve idiom.
4667         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4668         AC_LIBOBJ is used.
4669
4670 2010-04-05  Bruno Haible  <bruno@clisp.org>
4671
4672         strdup: Improve idiom.
4673         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4674         AC_LIBOBJ is used.
4675         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4676         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4677         when AC_LIBOBJ is used.
4678
4679 2010-04-05  Bruno Haible  <bruno@clisp.org>
4680
4681         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4682         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4683         don't set REPLACE_MBSINIT to 1.
4684         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4685         don't set REPLACE_MBRTOWC to 1.
4686         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4687         exist, don't set REPLACE_MBSRTOWCS to 1.
4688         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4689         exist, don't set REPLACE_MBSNRTOWCS to 1.
4690         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4691         don't set REPLACE_WCRTOMB to 1.
4692         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4693         exist, don't set REPLACE_WCSRTOMBS to 1.
4694         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4695         exist, don't set REPLACE_WCSNRTOMBS to 1.
4696
4697 2010-04-05  Bruno Haible  <bruno@clisp.org>
4698
4699         ldexpl: Improve idiom.
4700         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4701         make sure to set HAVE_DECL_LDEXPL to 0.
4702
4703 2010-04-05  Jim Meyering  <meyering@redhat.com>
4704
4705         xstrtol-tests: convert to use init.sh
4706         * modules/xstrtol-tests (Files): Add tests/init.sh.
4707         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4708         Use Exit, not exit.
4709         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4710
4711         atexit-tests: convert to use init.sh
4712         * modules/atexit-tests (Files): Add tests/init.sh.
4713         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4714         Use Exit, not exit.
4715         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4716
4717         init.sh: fix typo
4718         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4719
4720         init.sh: make it easier for a test script to write to the tty, ...
4721         when using automake's parallel-tests mode.
4722         * tests/init.sh (stderr_fileno_): Define overridable variable.
4723         (warn_): New function, to use it.
4724         (fail_, skip_, framework_failure_): Use warn_.
4725
4726 2010-04-04  Bruno Haible  <bruno@clisp.org>
4727
4728         btowc: Avoid warning.
4729         * lib/btowc.c: Include <stdlib.h>.
4730         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4731
4732 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4733             Bruno Haible  <bruno@clisp.org>
4734
4735         wchar: Port to NetBSD 1.5.
4736         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4737         * lib/wctype.in.h (WEOF): Likewise.
4738
4739 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4740             Bruno Haible  <bruno@clisp.org>
4741
4742         Port extended stdio to NetBSD 1.5.
4743         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4744         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4745         older.
4746
4747 2010-04-04  Bruno Haible  <bruno@clisp.org>
4748
4749         string: Remove unused substitution.
4750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4751         HAVE_DECL_STRERROR.
4752         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4753
4754 2010-04-04  Bruno Haible  <bruno@clisp.org>
4755
4756         strtod: Avoid a possible C++ test error.
4757         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4758         set REPLACE_STRTOD.
4759
4760 2010-04-04  Bruno Haible  <bruno@clisp.org>
4761
4762         strerror: Update documentation.
4763         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4764
4765 2010-04-04  Bruno Haible  <bruno@clisp.org>
4766
4767         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4768         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4769         _GL_CXXALIAS_SYS_CAST.
4770
4771 2010-04-04  Bruno Haible  <bruno@clisp.org>
4772
4773         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4774         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4775         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4776         REPLACE_FREXPL to 1.
4777         * doc/posix-functions/frexpl.texi: Update documentation.
4778
4779 2010-04-04  Bruno Haible  <bruno@clisp.org>
4780
4781         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4782         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4783
4784 2010-04-04  Bruno Haible  <bruno@clisp.org>
4785
4786         Implement nanosleep for native Windows.
4787         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4788
4789 2010-04-04  Bruno Haible  <bruno@clisp.org>
4790
4791         math: Fix some C++ test errors on Solaris 8.
4792         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4793
4794 2010-04-04  Bruno Haible  <bruno@clisp.org>
4795
4796         math: Fix some C++ test errors on Cygwin.
4797         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4798         truncl): Provide declaration if the system does not have it.
4799         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4800         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4801         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4802         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4803         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4804         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4805         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4806         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4807         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4808         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4809         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4810         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4811         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4812         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4813         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4814         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4816         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4817         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4818         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4819         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4820         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4821
4822 2010-04-04  Bruno Haible  <bruno@clisp.org>
4823
4824         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4825         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4826         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4827         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4828         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4829         * m4/isinf.m4 (gl_ISINF): Likewise.
4830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4831
4832 2010-04-04  Bruno Haible  <bruno@clisp.org>
4833
4834         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4835         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4836
4837 2010-04-04  Bruno Haible  <bruno@clisp.org>
4838
4839         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4840         * modules/tmpfile (configure.ac): Update.
4841
4842         tmpfile: Fix C++ test error on mingw.
4843         * lib/stdio.in.h (tmpfile): New declaration.
4844         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
4845         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
4846         * modules/tmpfile (Depends-on): Add stdio.
4847         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
4848         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
4849         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
4850         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
4851         REPLACE_TMPFILE.
4852         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
4853
4854 2010-04-04  Bruno Haible  <bruno@clisp.org>
4855
4856         ioctl: Fix C++ test error on mingw.
4857         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
4858         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
4859         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
4860
4861 2010-04-03  Bruno Haible  <bruno@clisp.org>
4862
4863         wcwidth: Fix C++ test error on mingw.
4864         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
4865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
4866         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
4867
4868 2010-04-03  Bruno Haible  <bruno@clisp.org>
4869
4870         nanosleep: Fix C++ test error on mingw.
4871         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
4872         * lib/time.in.h (nanosleep): Use modern idiom.
4873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
4874         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
4875         REPLACE_NANOSLEEP to 1.
4876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
4877         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
4878
4879 2010-04-03  Bruno Haible  <bruno@clisp.org>
4880
4881         strptime: Fix C++ test error on mingw.
4882         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
4883         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
4884         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
4885         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
4886         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
4887         not REPLACE_STRPTIME.
4888         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
4889         REPLACE_STRPTIME.
4890
4891 2010-04-03  Bruno Haible  <bruno@clisp.org>
4892
4893         timegm: Fix C++ test error on mingw.
4894         * lib/time.in.h (timegm): Use modern idiom.
4895         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
4896         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
4897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
4898         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
4899
4900 2010-04-03  Bruno Haible  <bruno@clisp.org>
4901
4902         timegm: Assume declaration if function exists.
4903         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
4904         if it exists. Don't clobber ac_cv_func_timegm.
4905
4906 2010-04-03  Bruno Haible  <bruno@clisp.org>
4907
4908         time_r: Fix C++ test error on mingw.
4909         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
4910         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
4911         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
4912         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
4913         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
4914
4915 2010-04-03  Bruno Haible  <bruno@clisp.org>
4916
4917         time_r: Minor updates.
4918         * modules/time_r (Description): Mention the provided functions.
4919         * lib/time_r.c: Don't include <string.h>.
4920         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
4921         * doc/posix-functions/localtime_r.texi: Likewise.
4922
4923 2010-04-03  Bruno Haible  <bruno@clisp.org>
4924
4925         time: Fix regression introduced on 2010-03-08.
4926         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
4927         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
4928
4929 2010-04-03  Jim Meyering  <meyering@redhat.com>
4930
4931         maint.mk: don't silently disable project-specific syntax-check rules
4932         * top/maint.mk (_prohibit_regexp): Define, to help people realize
4933         that they need to convert their project-specific syntax-check rules
4934         to use the new _sc_search_regexp.
4935
4936 2010-04-03  Bruno Haible  <bruno@clisp.org>
4937
4938         fchdir: Fix regression introduced on 2010-03-08.
4939         * lib/unistd.in.h (fchdir): Fix declaration.
4940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
4941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
4942         REPLACE_FCHDIR.
4943         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
4944         REPLACE_FCHDIR.
4945
4946 2010-04-03  Bruno Haible  <bruno@clisp.org>
4947
4948         getpagesize: Fix C++ test error on mingw.
4949         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
4950         system does not declare the function.
4951         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
4952         declared.
4953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4954         HAVE_DECL_GETPAGESIZE.
4955         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
4956
4957 2010-04-03  Bruno Haible  <bruno@clisp.org>
4958
4959         stdio: Make C++ tests work on mingw.
4960         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
4961         does not declare the function.
4962
4963 2010-04-03  Bruno Haible  <bruno@clisp.org>
4964
4965         ftello: Fix C++ test error on mingw.
4966         * lib/stdio.in.h (ftello): Use modern idiom.
4967         * lib/ftello.c (ftello): Renamed from rpl_ftello.
4968         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
4969         is missing and that it needs to be replaced.
4970         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
4971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
4972         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
4973
4974 2010-04-03  Bruno Haible  <bruno@clisp.org>
4975
4976         fseeko: Fix C++ test error on mingw.
4977         * lib/stdio.in.h (fseeko): Use modern idiom.
4978         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
4979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
4980         is missing and that it needs to be replaced.
4981         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
4982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
4983         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
4984
4985 2010-04-03  Bruno Haible  <bruno@clisp.org>
4986
4987         mkstemp: Fix C++ test error on mingw.
4988         * lib/stdlib.in.h (mkstemp): Use modern idiom.
4989         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
4990         function is missing and that it needs to be replaced.
4991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
4992         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
4993
4994 2010-04-03  Bruno Haible  <bruno@clisp.org>
4995
4996         stpncpy: Fix C++ test error on mingw.
4997         * lib/string.in.h (stpncpy): Use modern idiom.
4998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
4999         function is missing and that it needs to be replaced.
5000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5001         REPLACE_STPNCPY.
5002         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5003
5004 2010-04-03  Bruno Haible  <bruno@clisp.org>
5005
5006         sys_stat: Fix C++ test error on mingw.
5007         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5008         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5009
5010 2010-04-03  Bruno Haible  <bruno@clisp.org>
5011
5012         pty: Update doc.
5013         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5014
5015 2010-04-03  Bruno Haible  <bruno@clisp.org>
5016
5017         unistd: Fix C++ test error on mingw.
5018         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5019
5020 2010-04-03  Bruno Haible  <bruno@clisp.org>
5021
5022         Update doc regarding mingw.
5023         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5024         * doc/glibc-functions/login_tty.texi: Likewise.
5025         * doc/glibc-functions/forkpty.texi: Likewise.
5026
5027 2010-04-03  Bruno Haible  <bruno@clisp.org>
5028
5029         stdlib: Avoid compilation failure of c-strtold on mingw.
5030         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5031
5032 2010-04-03  Bruno Haible  <bruno@clisp.org>
5033
5034         locale: Make C++ tests work on Cygwin and mingw.
5035         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5036         cannot provide the function.
5037         Reported by Simon Josefsson.
5038
5039 2010-04-03  Bruno Haible  <bruno@clisp.org>
5040
5041         localename: Port to MacOS X 10.6.
5042         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5043         memory layout of the locales in MacOS X 10.6 as well.
5044         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5045
5046 2010-04-02  Bruno Haible  <bruno@clisp.org>
5047
5048         gnulib-tool: Ensure that long-running tests are executed last.
5049         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5050         running tests after the one for the other tests.
5051
5052 2010-04-02  Bruno Haible  <bruno@clisp.org>
5053
5054         gnulib-tool: Ensure the tests in the main directory are executed first.
5055         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5056         start with the current directory.
5057
5058 2010-04-02  Bruno Haible  <bruno@clisp.org>
5059
5060         Tests for module 'havelib', moved here from GNU gettext.
5061         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5062         modifications.
5063         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5064         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5065         with modifications.
5066         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5067         modifications.
5068         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5069         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5070         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5071         with modifications.
5072         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5073         with modifications.
5074         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5075         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5076         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5077         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5078         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5079         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5080         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5081         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5082         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5083         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5084         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5085         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5086         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5087         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5088         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5089         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5090         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5091         with modifications.
5092         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5093         with modifications.
5094         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5095         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5096         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5097         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5098         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5099         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5100         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5101         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5102         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5103         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5104         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5105         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5106         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5107         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5108         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5109         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5110         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5111         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5112         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5113         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5114         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5115         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5116         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5117         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5118         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5119         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5120         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5121         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5122         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5123         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5124         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5125         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5126         * tests/havelib/rpathx/rpathx.c: New file, from
5127         gettext/autoconf-lib-link.
5128         * tests/havelib/rpathx/Makefile.am: New file, from
5129         gettext/autoconf-lib-link.
5130         * tests/havelib/rpathx/configure.ac: New file, from
5131         gettext/autoconf-lib-link with modifications.
5132         * tests/havelib/rpathy/rpathy.c: New file, from
5133         gettext/autoconf-lib-link.
5134         * tests/havelib/rpathy/Makefile.am: New file, from
5135         gettext/autoconf-lib-link.
5136         * tests/havelib/rpathy/configure.ac: New file, from
5137         gettext/autoconf-lib-link with modifications.
5138         * tests/havelib/rpathz/rpathz.c: New file, from
5139         gettext/autoconf-lib-link.
5140         * tests/havelib/rpathz/Makefile.am: New file, from
5141         gettext/autoconf-lib-link.
5142         * tests/havelib/rpathz/configure.ac: New file, from
5143         gettext/autoconf-lib-link with modifications.
5144         * tests/havelib/rpathlx/usex.c: New file, from
5145         gettext/autoconf-lib-link.
5146         * tests/havelib/rpathlx/Makefile.am: New file, from
5147         gettext/autoconf-lib-link.
5148         * tests/havelib/rpathlx/configure.ac: New file, from
5149         gettext/autoconf-lib-link with modifications.
5150         * tests/havelib/rpathly/usey.c: New file, from
5151         gettext/autoconf-lib-link.
5152         * tests/havelib/rpathly/Makefile.am: New file, from
5153         gettext/autoconf-lib-link.
5154         * tests/havelib/rpathly/configure.ac: New file, from
5155         gettext/autoconf-lib-link with modifications.
5156         * tests/havelib/rpathlz/usez.c: New file, from
5157         gettext/autoconf-lib-link.
5158         * tests/havelib/rpathlz/Makefile.am: New file, from
5159         gettext/autoconf-lib-link.
5160         * tests/havelib/rpathlz/configure.ac: New file, from
5161         gettext/autoconf-lib-link with modifications.
5162         * tests/havelib/rpathlyx/usey.c: New file, from
5163         gettext/autoconf-lib-link.
5164         * tests/havelib/rpathlyx/Makefile.am: New file, from
5165         gettext/autoconf-lib-link.
5166         * tests/havelib/rpathlyx/configure.ac: New file, from
5167         gettext/autoconf-lib-link with modifications.
5168         * tests/havelib/rpathlzyx/usez.c: New file, from
5169         gettext/autoconf-lib-link.
5170         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5171         gettext/autoconf-lib-link.
5172         * tests/havelib/rpathlzyx/configure.ac: New file, from
5173         gettext/autoconf-lib-link with modifications.
5174         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5175         with modifications.
5176
5177 2010-04-02  Bruno Haible  <bruno@clisp.org>
5178
5179         gnulib-tool: Create distributed built sources also for the tests.
5180         * gnulib-tool (func_create_testdir): Also generate distributed built
5181         sources in the tests directory.
5182
5183 2010-04-02  Bruno Haible  <bruno@clisp.org>
5184
5185         gnulib-tool: Obey user's environment variables.
5186         * gnulib-tool (func_create_testdir): When creating built sources,
5187         respect the environment variables for autoconf, automake, etc. given by
5188         the user.
5189
5190 2010-04-02  Bruno Haible  <bruno@clisp.org>
5191
5192         gnulib-tool: Provide the value of --m4-base to modules.
5193         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5194         of gl_m4_base.
5195
5196 2010-04-02  Eric Blake  <eblake@redhat.com>
5197
5198         maint.mk: fix some fallout
5199         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5200         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5201
5202 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5203
5204         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5205         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5206         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5207         (sc_cast_of_x_alloc_return_value): Likewise.
5208         (sc_cast_of_alloca_return_value): Likewise.
5209         (sc_space_tab): Likewise.
5210         (sc_prohibit_atoi_atof): Likewise.
5211         (sc_prohibit_magic_number_exit): Likewise.
5212         (sc_error_exit_success): Likewise.
5213         (sc_file_system): Likewise.
5214         (sc_prohibit_have_config_h): Likewise.
5215         (sc_require_config_h): Likewise.
5216         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5217         (sc_obsolete_symbols): Likewise.
5218         (sc_changelog): Likewise.
5219         (sc_program_name): Likewise.
5220         (sc_the_the): Likewise.
5221         (sc_trailing_blank): Likewise.
5222         (sc_two_space_separator_in_usage): Likewise.
5223         (sc_useless_cpp_parens): Likewise.
5224         (sc_GPL_version): Likewise.
5225         (sc_GFDL_version): Likewise.
5226         (sc_texinfo_acronym): Likewise.
5227         (sc_prohibit_cvs_keyword): Likewise.
5228         (sc_prohibit_stat_st_blocks): Likewise.
5229         (sc_prohibit_S_IS_definition): Likewise.
5230         (sc_redundant_const): Likewise.
5231         (sc_makefile_TAB_only_indentation): Likewise.
5232         (sc_m4_quote_check): Likewise.
5233         (sc_makefile_path_separator_check): Likewise.
5234         (sc_copyright_check): Likewise.
5235         (sc_Wundef_boolean): Likewise.
5236         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5237
5238         maint.mk: match 0 or more whitespace-before-function-call '('
5239         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5240         that have zero or two-and-more spaces between the function name
5241         and the open parenthesis.
5242         (sc_error_message_warn_fatal): Likewise.
5243         (sc_error_message_uppercase): Likewise.
5244         (sc_error_message_period): Likewise.
5245
5246 2010-03-31  Eric Blake  <eblake@redhat.com>
5247
5248         maint.mk: check for [ as well as test
5249         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5250         Based on a libvirt report by Matthias Bolte.
5251
5252         gnumakefile: don't squelch _version output
5253         * top/GNUmakefile (_version): Create one-shot dependency rather
5254         than using $(shell) when version must be regenerated.
5255         (_autoreconf): Run verbosely, by default.
5256
5257         sys_time: avoid compiler warnings
5258         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5259         unconditional, fixing regression from 2010-03-29.
5260         Reported by Simon Josefsson.
5261
5262 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5263
5264         maint.mk: s/_header_without_use/_sc_header_without_use/
5265         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5266         (sc_prohibit_assert_without_use): Use the new name.
5267         (sc_prohibit_close_stream_without_use): Likewise.
5268         (sc_prohibit_getopt_without_use): Likewise.
5269         (sc_prohibit_quotearg_without_use): Likewise.
5270         (sc_prohibit_quote_without_use): Likewise.
5271         (sc_prohibit_long_options_without_use): Likewise.
5272         (sc_prohibit_inttostr_without_use): Likewise.
5273         (sc_prohibit_ignore_value_without_use): Likewise.
5274         (sc_prohibit_error_without_use): Likewise.
5275         (sc_prohibit_xalloc_without_use): Likewise.
5276         (sc_prohibit_hash_without_use): Likewise.
5277         (sc_prohibit_hash_pjw_without_use): Likewise.
5278         (sc_prohibit_safe_read_without_use): Likewise.
5279         (sc_prohibit_argmatch_without_use): Likewise.
5280         (sc_prohibit_canonicalize_without_use): Likewise.
5281         (sc_prohibit_root_dev_ino_without_use): Likewise.
5282         (sc_prohibit_openat_without_use): Likewise.
5283         (sc_prohibit_c_ctype_without_use): Likewise.
5284         (sc_prohibit_signal_without_use): Likewise.
5285         (sc_prohibit_intprops_without_use): Likewise.
5286
5287 2010-03-30  Eric Blake  <eblake@redhat.com>
5288
5289         maint: improve module indicators
5290         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5291         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5292         columns, and avoid extra macro expansion.
5293
5294         fdopendir: work around FreeBSD bug
5295         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5297         * modules/dirent (Makefile.am): Substitute it.
5298         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5299         declaration.
5300         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5301         fix.
5302         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5303
5304 2010-03-29  Bruno Haible  <bruno@clisp.org>
5305
5306         Emit #pragma system_header after the inclusion guard, not before.
5307         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5308         guard that spans the entire file, not before. This enables an
5309         optimization in GCC's preprocessor.
5310         * lib/ctype.in.h: Likewise.
5311         * lib/dirent.in.h: Likewise.
5312         * lib/errno.in.h: Likewise.
5313         * lib/float.in.h: Likewise.
5314         * lib/getopt.in.h: Likewise.
5315         * lib/iconv.in.h: Likewise.
5316         * lib/langinfo.in.h: Likewise.
5317         * lib/locale.in.h: Likewise.
5318         * lib/math.in.h: Likewise.
5319         * lib/netdb.in.h: Likewise.
5320         * lib/netinet_in.in.h: Likewise.
5321         * lib/pty.in.h: Likewise.
5322         * lib/sched.in.h: Likewise.
5323         * lib/se-selinux.in.h: Likewise.
5324         * lib/search.in.h: Likewise.
5325         * lib/spawn.in.h: Likewise.
5326         * lib/stdarg.in.h: Likewise.
5327         * lib/stdint.in.h: Likewise.
5328         * lib/string.in.h: Likewise.
5329         * lib/strings.in.h: Likewise.
5330         * lib/sys_file.in.h: Likewise.
5331         * lib/sys_ioctl.in.h: Likewise.
5332         * lib/sys_time.in.h: Likewise.
5333         * lib/sys_times.in.h: Likewise.
5334         * lib/sys_utsname.in.h: Likewise.
5335         * lib/sys_wait.in.h: Likewise.
5336         * lib/sysexits.in.h: Likewise.
5337         * lib/wctype.in.h: Likewise.
5338
5339 2010-03-28  James Youngman  <jay@gnu.org>
5340
5341         save-cwd: don't leak a file descriptor when the caller execs.
5342         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5343         saved file descriptor.
5344         * modules/save-cwd (Depends-on): Depend on cloexec.
5345
5346 2010-03-29  Bruno Haible  <bruno@clisp.org>
5347
5348         Remove vestiges of fts-lgpl module.
5349         * lib/fts_.h: Assume GNULIB_FTS is 1.
5350         * lib/fts.c: Likewise.
5351         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5352
5353 2010-03-28  Bruno Haible  <bruno@clisp.org>
5354
5355         Fix definition of tests witness macro.
5356         * gnulib-tool (func_import): Fix definition of witness macro.
5357
5358 2010-03-28  Bruno Haible  <bruno@clisp.org>
5359
5360         Fix ioctl's protoype on glibc systems.
5361         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5362         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5363         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5364         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5365         signature. If not, arrange to replace the ioctl function.
5366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5367         REPLACE_IOCTL.
5368         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5369         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5370         Reported by Ludovic Courtès <ludo@gnu.org>.
5371
5372 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5373
5374         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5375         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5376         made it so grep -r --include=GLOB* ... did not work.
5377
5378 2010-03-26  Jim Meyering  <meyering@redhat.com>
5379             Eric Blake  <eblake@redhat.com>
5380
5381         maint.mk: prohibit use of test's -o and -a operators
5382         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5383
5384 2010-03-28  Bruno Haible  <bruno@clisp.org>
5385
5386         Remove unused GNULIB_XYZ macro definitions.
5387         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5388         invocation.
5389
5390 2010-03-28  Bruno Haible  <bruno@clisp.org>
5391
5392         Mark privileged tests modules.
5393         * modules/idpriv-drop-tests (Status): New section.
5394         * modules/idpriv-droptemp-tests (Status): New section.
5395
5396 2010-03-28  Bruno Haible  <bruno@clisp.org>
5397
5398         Split C++ tests into separate tests modules.
5399         * modules/dirent-c++-tests: New file, extracted from
5400         modules/dirent-tests.
5401         * modules/dirent-tests: Depend on it.
5402         * modules/fcntl-h-c++-tests: New file, extracted from
5403         modules/fcntl-h-tests.
5404         * modules/fcntl-h-tests: Depend on it.
5405         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5406         * modules/glob-tests: Depend on it.
5407         * modules/iconv-h-c++-tests: New file, extracted from
5408         modules/iconv-h-tests.
5409         * modules/iconv-h-tests: Depend on it.
5410         * modules/langinfo-c++-tests: New file, extracted from
5411         modules/langinfo-tests.
5412         * modules/langinfo-tests: Depend on it.
5413         * modules/locale-c++-tests: New file, extracted from
5414         modules/locale-tests.
5415         * modules/locale-tests: Depend on it.
5416         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5417         * modules/math-tests: Depend on it.
5418         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5419         * modules/pty-tests: Depend on it.
5420         * modules/search-c++-tests: New file, extracted from
5421         modules/search-tests.
5422         * modules/search-tests: Depend on it.
5423         * modules/signal-c++-tests: New file, extracted from
5424         modules/signal-tests.
5425         * modules/signal-tests: Depend on it.
5426         * modules/spawn-c++-tests: New file, extracted from
5427         modules/spawn-tests.
5428         * modules/spawn-tests: Depend on it.
5429         * modules/stdio-c++-tests: New file, extracted from
5430         modules/stdio-tests.
5431         * modules/stdio-tests: Depend on it.
5432         * modules/stdlib-c++-tests: New file, extracted from
5433         modules/stdlib-tests.
5434         * modules/stdlib-tests: Depend on it.
5435         * modules/string-c++-tests: New file, extracted from
5436         modules/string-tests.
5437         * modules/string-tests: Depend on it.
5438         * modules/sys_ioctl-c++-tests: New file, extracted from
5439         modules/sys_ioctl-tests.
5440         * modules/sys_ioctl-tests: Depend on it.
5441         * modules/sys_select-c++-tests: New file, extracted from
5442         modules/sys_select-tests.
5443         * modules/sys_select-tests: Depend on it.
5444         * modules/sys_socket-c++-tests: New file, extracted from
5445         modules/sys_socket-tests.
5446         * modules/sys_socket-tests: Depend on it.
5447         * modules/sys_stat-c++-tests: New file, extracted from
5448         modules/sys_stat-tests.
5449         * modules/sys_stat-tests: Depend on it.
5450         * modules/sys_time-c++-tests: New file, extracted from
5451         modules/sys_time-tests.
5452         * modules/sys_time-tests: Depend on it.
5453         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5454         * modules/time-tests: Depend on it.
5455         * modules/unistd-c++-tests: New file, extracted from
5456         modules/unistd-tests.
5457         * modules/unistd-tests: Depend on it.
5458         * modules/wchar-c++-tests: New file, extracted from
5459         modules/wchar-tests.
5460         * modules/wchar-tests: Depend on it.
5461         * modules/wctype-c++-tests: New file, extracted from
5462         modules/wctype-tests.
5463         * modules/wctype-tests: Depend on it.
5464         Reported by Simon Josefsson.
5465
5466 2010-03-28  Bruno Haible  <bruno@clisp.org>
5467
5468         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5469         * gnulib-tool (func_exists_module): New function, extracted from
5470         func_verify_module.
5471         (func_verify_module): Use it.
5472         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5473         'foo' only if 'foo' exists.
5474         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5475         module.
5476
5477 2010-03-28  Bruno Haible  <bruno@clisp.org>
5478
5479         gnulib-tool: Add support for special categories of tests.
5480         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5481         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5482         (func_usage): Document them.
5483         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5484         inc_unportable_tests, inc_all_tests): New variables.
5485         (func_acceptable): Consider these variables.
5486         (func_modules_transitive_closure): Make it work when the 'Status' field
5487         consists of multiple words.
5488         (func_import): Store and restore the values of inc_cxx_tests,
5489         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5490         inc_all_tests in gnulib-comp.m4.
5491         (func_create_testdir): Set inc_all_tests to true.
5492         * doc/gnulib.texi (Extra tests modules): New section.
5493         Suggested by Jim Meyering.
5494
5495 2010-03-28  Bruno Haible  <bruno@clisp.org>
5496
5497         ansi-c++-opt: Allow turning off the C++ build by default.
5498         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5499         gl_CXX_CHOICE_DEFAULT_NO is defined.
5500         Requested by Eric Blake.
5501
5502 2010-03-28  Bruno Haible  <bruno@clisp.org>
5503
5504         unistd: Avoid #define replacements in C++ mode.
5505         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5506         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5507         setsockopt, shutdown, select): In C++, attach a warning to the function
5508         if possible, rather than #defining the symbol to a dysfunctional alias.
5509         Reported by John W. Eaton <jwe@gnu.org>.
5510
5511 2010-03-28  Bruno Haible  <bruno@clisp.org>
5512
5513         Fix link errors on mingw.
5514         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5515         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5516         $(LIBSOCKET).
5517         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5518         $(LIBSOCKET).
5519
5520 2010-03-28  Bruno Haible  <bruno@clisp.org>
5521             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5522
5523         lib-ignore: Determine different options for different compilers.
5524         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5525         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5526         Add comments.
5527         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5528         * NEWS: Mention the change.
5529
5530 2010-03-27  Bruno Haible  <bruno@clisp.org>
5531
5532         Remove unused GNULIB_XYZ macro definitions.
5533         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5534         * modules/fseek (configure.ac): Likewise.
5535         * modules/ioctl (configure.ac): Likewise.
5536         * modules/open (configure.ac): Likewise.
5537         * modules/stdlib-safer (configure.ac): Likewise.
5538
5539 2010-03-27  Bruno Haible  <bruno@clisp.org>
5540
5541         Add a remark about certain modules.
5542         * modules/malloc (Comment): New section.
5543         * modules/realloc (Comment): Likewise.
5544         * modules/sigpipe (Comment): Likewise.
5545
5546 2010-03-27  Bruno Haible  <bruno@clisp.org>
5547
5548         Resolve conflict between the two kinds of module indicators.
5549         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5550         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5551         * modules/canonicalize (configure.ac): Invoke
5552         gl_MODULE_INDICATOR_FOR_TESTS.
5553         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5554         GNULIB_XYZ.
5555         * tests/test-dirent-c++.cc: Likewise.
5556         * tests/test-dirent-safer.c: Likewise.
5557         * tests/test-dup2.c: Likewise.
5558         * tests/test-fchdir.c: Likewise.
5559         * tests/test-fcntl-h-c++.cc: Likewise.
5560         * tests/test-getopt.c: Likewise.
5561         * tests/test-getopt.h: Likewise.
5562         * tests/test-langinfo-c++.cc: Likewise.
5563         * tests/test-locale-c++.cc: Likewise.
5564         * tests/test-math-c++.cc: Likewise.
5565         * tests/test-pty-c++.cc: Likewise.
5566         * tests/test-search-c++.cc: Likewise.
5567         * tests/test-signal-c++.cc: Likewise.
5568         * tests/test-spawn-c++.cc: Likewise.
5569         * tests/test-stdio-c++.cc: Likewise.
5570         * tests/test-stdlib-c++.cc: Likewise.
5571         * tests/test-string-c++.cc: Likewise.
5572         * tests/test-sys_ioctl-c++.cc: Likewise.
5573         * tests/test-sys_select-c++.cc: Likewise.
5574         * tests/test-sys_socket-c++.cc: Likewise.
5575         * tests/test-sys_stat-c++.cc: Likewise.
5576         * tests/test-sys_time-c++.cc: Likewise.
5577         * tests/test-time-c++.cc: Likewise.
5578         * tests/test-unistd-c++.cc: Likewise.
5579         * tests/test-wchar-c++.cc: Likewise.
5580         * tests/uninorm/test-u8-nfc.c: Likewise.
5581         * tests/uninorm/test-u8-nfd.c: Likewise.
5582         * tests/uninorm/test-u8-nfkc.c: Likewise.
5583         * tests/uninorm/test-u8-nfkd.c: Likewise.
5584         * tests/uninorm/test-u16-nfc.c: Likewise.
5585         * tests/uninorm/test-u16-nfd.c: Likewise.
5586         * tests/uninorm/test-u16-nfkc.c: Likewise.
5587         * tests/uninorm/test-u16-nfkd.c: Likewise.
5588         * tests/uninorm/test-u32-nfc.c: Likewise.
5589         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5590         * tests/uninorm/test-u32-nfd.c: Likewise.
5591         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5592         * tests/uninorm/test-u32-nfkc.c: Likewise.
5593         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5594         * tests/uninorm/test-u32-nfkd.c: Likewise.
5595         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5596         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5597
5598 2010-03-27  Bruno Haible  <bruno@clisp.org>
5599
5600         Distinguish two kinds of module indicators.
5601         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5602         gl_MODULE_INDICATOR.
5603         (gl_MODULE_INDICATOR): New macro.
5604         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5605         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5606         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5607         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5608         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5609         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5610         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5611         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5612         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5613         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5614         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5615         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5618         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5620         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5621         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5622         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5623         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5624         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5625         * modules/cloexec (configure.ac): Likewise.
5626         * modules/getopt-gnu (configure.ac): Likewise.
5627         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5628         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5629         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5630         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5631
5632 2010-03-27  Bruno Haible  <bruno@clisp.org>
5633
5634         New module description field 'Comment'.
5635         * gnulib-tool: New option --extract-comment.
5636         (func_usage): Document it.
5637         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5638         (func_get_comment): New function.
5639         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5640
5641 2010-03-27  Bruno Haible  <bruno@clisp.org>
5642
5643         Addendum to 2010-02-07 commit.
5644         * gnulib-tool (func_usage): Document --extract-applicability option.
5645
5646 2010-03-27  Bruno Haible  <bruno@clisp.org>
5647
5648         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5649         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5650         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5651         rather than link errors.
5652
5653 2010-03-27  Bruno Haible  <bruno@clisp.org>
5654
5655         Avoid side effects from tests-related modules on the compilation of lib.
5656         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5657         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5658         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5659         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5660         macro.
5661         (func_import): Define a witness macro. Assign it a value that depends
5662         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5663         tests-related modules.
5664         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5665         Reported by Jim Meyering.
5666
5667 2010-03-27  Bruno Haible  <bruno@clisp.org>
5668
5669         Factorize common .m4 code.
5670         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5671         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5672         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5673         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5674         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5675         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5676         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5677         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5678         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5679         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5680         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5681         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5682         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5683         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5684         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5685         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5686         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5687         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5689         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5690         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5691         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5692         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5693         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5694         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5695         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5696         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5697         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5698         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5699         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5700         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5701         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5702
5703 2010-03-27  Bruno Haible  <bruno@clisp.org>
5704
5705         Fix a compilation error on Cygwin with g++ >= 4.3.
5706         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5707         if it is undefined or if we alias it to chmod.
5708         (lstat): Don't warn about the use of this function if it is undefined
5709         or if we alias it to stat.
5710         Reported by Simon Josefsson.
5711
5712 2010-03-27  Bruno Haible  <bruno@clisp.org>
5713
5714         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5715         * modules/getlogin (configure.ac): Update.
5716
5717         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5718         * modules/getlogin_r (configure.ac): Update.
5719
5720         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5722         * modules/inet_ntop (configure.ac): Update.
5723
5724         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5725         * modules/inet_pton (configure.ac): Update.
5726
5727         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5728         * modules/mbslen (configure.ac): Update.
5729
5730         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5731         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5732         * modules/forkpty (configure.ac): Update.
5733         * modules/openpty (configure.ac): Update.
5734
5735 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5736
5737         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5738         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5739
5740 2010-03-25  Eric Blake  <eblake@redhat.com>
5741
5742         maint: use pragma consistently across replacement headers
5743         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5744         * lib/dirent.in.h (system_header): Likewise.
5745         * lib/errno.in.h (system_header): Likewise.
5746         * lib/float.in.h (system_header): Likewise.
5747         * lib/getopt.in.h (system_header): Likewise.
5748         * lib/iconv.in.h (system_header): Likewise.
5749         * lib/inttypes.in.h (system_header): Likewise.
5750         * lib/langinfo.in.h (system_header): Likewise.
5751         * lib/locale.in.h (system_header): Likewise.
5752         * lib/math.in.h (system_header): Likewise.
5753         * lib/netdb.in.h (system_header): Likewise.
5754         * lib/netinet_in.in.h (system_header): Likewise.
5755         * lib/pty.in.h (system_header): Likewise.
5756         * lib/sched.in.h (system_header): Likewise.
5757         * lib/se-selinux.in.h (system_header): Likewise.
5758         * lib/search.in.h (system_header): Likewise.
5759         * lib/spawn.in.h (system_header): Likewise.
5760         * lib/stdarg.in.h (system_header): Likewise.
5761         * lib/stdint.in.h (system_header): Likewise.
5762         * lib/string.in.h (system_header): Likewise.
5763         * lib/strings.in.h (system_header): Likewise.
5764         * lib/sys_file.in.h (system_header): Likewise.
5765         * lib/sys_ioctl.in.h (system_header): Likewise.
5766         * lib/sys_socket.in.h (system_header): Likewise.
5767         * lib/sys_times.in.h (system_header): Likewise.
5768         * lib/sys_utsname.in.h (system_header): Likewise.
5769         * lib/sys_wait.in.h (system_header): Likewise.
5770         * lib/sysexits.in.h (system_header): Likewise.
5771         * lib/unistd.in.h (system_header): Likewise.
5772         * lib/wctype.in.h (system_header): Likewise.
5773
5774         arpa/inet: fix mingw compilation warning
5775         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5776         Reported by Matthew Bolte.
5777
5778 2010-03-25  Bruno Haible  <bruno@clisp.org>
5779
5780         Avoid collision between gnulib wrapper and libintl wrapper.
5781         * lib/printf.c (printf): Don't define if a printf wrapper is already
5782         defined in intl/printf.c.
5783         Reported by Michel Boaventura <michel@michelboaventura.com>.
5784
5785 2010-03-25  Bruno Haible  <bruno@clisp.org>
5786
5787         Use ANSI C.
5788         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5789
5790 2010-03-25  Bruno Haible  <bruno@clisp.org>
5791
5792         Minor formatting changes.
5793         * lib/acosl.c: Insert space before function argument list.
5794         * lib/argz.c: Likewise.
5795         * lib/asinl.c: Likewise.
5796         * lib/expl.c: Likewise.
5797         * lib/gen-uni-tables.c: Likewise.
5798         * lib/gettext.h: Likewise.
5799         * lib/glthread/lock.h: Likewise.
5800         * lib/tanl.c: Likewise.
5801         * lib/uniname/uniname.c: Likewise.
5802         * tests/test-idpriv-drop.c: Likewise.
5803         * tests/test-idpriv-droptemp.c: Likewise.
5804         * tests/test-lock.c: Likewise.
5805         * tests/test-tls.c: Likewise.
5806         * lib/argp-help.c: Insert space before function-like macro argument
5807         list.
5808         * lib/memcmp.c: Likewise.
5809         * tests/test-base64.c: Likewise.
5810         * lib/localename.c: Insert space before sizeof's argument list.
5811         * lib/safe-alloc.h: Likewise.
5812         * lib/file-set.h: Insert space before macro argument list.
5813         * tests/test-argp.c: Likewise.
5814         * lib/argp-namefrob.h: Insert space before function parameter list.
5815         * lib/getaddrinfo.c: Likewise.
5816         * lib/netdb.in.h: Likewise.
5817         * lib/parse-duration.h: Likewise.
5818         * lib/parse-duration.c: Likewise.
5819         * lib/poll.c: Likewise.
5820         * lib/select.c: Likewise.
5821         * lib/trim.h: Likewise.
5822         * tests/test-usleep.c: Likewise.
5823         * lib/ldexpl.c: Insert space before function parameter list and before
5824         function argument list.
5825         * lib/logl.c: Likewise.
5826         * lib/sqrtl.c: Likewise.
5827         * lib/trim.c: Likewise.
5828         * lib/cosl.c: Use GNU style indentation. Insert space before function
5829         argument list.
5830         * lib/sinl.c: Likewise.
5831         * lib/tsearch.c: Insert space after 'for'.
5832         Reported by Jim Meyering.
5833
5834 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5835
5836         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5837         config header before grepping, as it's not present before
5838         autoreconf/configure are run.  Reported by Simon Josefsson.
5839
5840 2010-03-23  Bruno Haible  <bruno@clisp.org>
5841
5842         pt_chown: Make it work with automake < 1.11.
5843         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5844         Reported by Simon Josefsson.
5845
5846 2010-03-23  Bruno Haible  <bruno@clisp.org>
5847
5848         pt_chown: Don't depend on GPLed modules.
5849         * lib/pt_chown.c: Don't include idpriv.h.
5850         (main): Don't drop privileges.
5851         * modules/pt_chown (Depends-on): Remove idpriv-drop.
5852         Reported by Simon Josefsson.
5853
5854 2010-03-24  Simon Josefsson  <simon@josefsson.org>
5855
5856         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
5857         suggestions from karl@freefriends.org (Karl Berry).
5858
5859 2010-03-22  Eric Blake  <eblake@redhat.com>
5860
5861         gethostname: further tweaks
5862         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
5863         are overriding gethostname.
5864         Suggested by Bruno Haible.
5865
5866 2010-03-21  Bruno Haible  <bruno@clisp.org>
5867
5868         Fix comments.
5869         * lib/forkpty.c (rpl_forkpty): Fix comment.
5870         * lib/openpty.c (rpl_openpty): Likewise.
5871         Reported by Eric Blake.
5872
5873 2010-03-22  Eric Blake  <eblake@redhat.com>
5874
5875         gethostname: fix build on mingw
5876         * lib/unistd.in.h (includes): Work around fact that mingw
5877         <winsock2.h> re-includes <unistd.h>, by avoiding any
5878         redeclarations if we are being included by <winsock2.h>.
5879         Reported by Matthias Bolte.
5880
5881 2010-03-21  Bruno Haible  <bruno@clisp.org>
5882
5883         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5884         * lib/forkpty.c (forkpty): New replacement function, from glibc with
5885         modifications.
5886         * lib/pty.in.h (forkpty): Update declaration. Add comments.
5887         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
5888         provide the replacement.
5889         * modules/forkpty (Depends-on): Add openpty, login_tty.
5890         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
5891         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
5892         * doc/glibc-functions/forkpty.texi: More supported platforms.
5893         * config/srclist.txt: Add forkpty.c (commented).
5894
5895 2010-03-21  Bruno Haible  <bruno@clisp.org>
5896
5897         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
5898         (Makefile.am): Verify that PTY_LIB is defined.
5899
5900         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
5901
5902 2010-03-21  Bruno Haible  <bruno@clisp.org>
5903
5904         Tests for module 'login_tty'.
5905         * modules/login_tty-tests: New file.
5906         * tests/test-login_tty.c: New file.
5907
5908         New module 'login_tty'.
5909         * lib/login_tty.c: New file.
5910         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
5911         * modules/login_tty: New file.
5912         * doc/glibc-functions/login_tty.texi: Mention the new module.
5913
5914 2010-03-21  Bruno Haible  <bruno@clisp.org>
5915
5916         login_tty: Documentation.
5917         * doc/glibc-functions/login_tty.texi: New file.
5918         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
5919
5920 2010-03-21  Bruno Haible  <bruno@clisp.org>
5921
5922         pty: Consistent macro naming.
5923         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
5924         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
5925         * modules/pty (configure.ac): Update.
5926
5927 2010-03-21  Bruno Haible  <bruno@clisp.org>
5928
5929         Tests for openpty: Make stricter.
5930         * tests/test-openpty.c (main): Add test of canonical processing and
5931         erase.
5932         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
5933
5934         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
5935         * lib/openpty.c (openpty): New replacement function.
5936         * lib/pty.in.h: Include <termios.h>.
5937         (openpty): Update declaration. Add comments.
5938         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
5939         is not declared, arrange to provide the replacement. Check for _getpty
5940         and posix_openpt.
5941         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
5942         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
5943         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
5944         * modules/pty-tests (test_pty_c___LDADD): New variable.
5945         * doc/glibc-functions/openpty.texi: More supported platforms.
5946
5947 2010-03-21  Bruno Haible  <bruno@clisp.org>
5948
5949         setenv: Tweaks.
5950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
5951         the test program.
5952         * doc/posix-functions/setenv.texi: Update platforms list.
5953
5954 2010-03-21  Bruno Haible  <bruno@clisp.org>
5955
5956         New module 'unlockpt'.
5957         * lib/unlockpt.c: New file, from glibc with modifications.
5958         * m4/unlockpt.m4: New file.
5959         * modules/unlockpt: New file.
5960         * lib/stdlib.in.h (unlockpt): New declaration.
5961         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
5962         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
5963         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
5964         HAVE_UNLOCKPT.
5965         * doc/posix-functions/unlockpt.texi: Mention the new module.
5966         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
5967         * config/srclist.txt: Add unlockpt.c (commented).
5968
5969 2010-03-21  Jim Meyering  <meyering@redhat.com>
5970
5971         maint.mk: prohibit inclusion of "intprops.h" without use
5972         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
5973
5974 2010-03-21  Bruno Haible  <bruno@clisp.org>
5975
5976         New module 'grantpt'.
5977         * lib/grantpt.c: New file, from glibc with modifications.
5978         * m4/grantpt.m4: New file.
5979         * modules/grantpt: New file.
5980         * lib/stdlib.in.h (grantpt): New declaration.
5981         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
5982         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
5983         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
5984         HAVE_GRANTPT.
5985         * doc/posix-functions/grantpt.texi: Mention the new module.
5986         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
5987         * config/srclist.txt: Add grantpt.c (commented).
5988
5989 2010-03-21  Bruno Haible  <bruno@clisp.org>
5990
5991         New module 'pt_chown'.
5992         * lib/pt_chown.c: New file, from glibc with modifications.
5993         * lib/pty-private.h: New file, from glibc with modifications.
5994         * modules/pt_chown: New file.
5995         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
5996
5997 2010-03-21  Bruno Haible  <bruno@clisp.org>
5998
5999         Tests for module 'ptsname'.
6000         * modules/ptsname-tests: New file.
6001         * tests/test-ptsname.c: New file.
6002
6003         New module 'ptsname'.
6004         * lib/ptsname.c: New file, from glibc with modifications.
6005         * m4/ptsname.m4: New file.
6006         * modules/ptsname: New file.
6007         * lib/stdlib.in.h (ptsname): New declaration.
6008         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6009         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6010         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6011         HAVE_PTSNAME.
6012         * doc/posix-functions/ptsname.texi: Mention the new module.
6013         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6014         * config/srclist.txt: Add ptsname.c (commented).
6015
6016 2010-03-21  Bruno Haible  <bruno@clisp.org>
6017
6018         Tests for module 'ttyname_r'.
6019         * modules/ttyname_r-tests: New file.
6020         * tests/test-ttyname_r.c: New file.
6021
6022         New module 'ttyname_r'.
6023         * lib/ttyname_r.c: New file.
6024         * m4/ttyname_r.m4: New file.
6025         * modules/ttyname_r: New file.
6026         * lib/unistd.in.h (ttyname_r): New declaration.
6027         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6028         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6029         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6030         HAVE_TTYNAME_R.
6031         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6032         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6033
6034 2010-03-20  Bruno Haible  <bruno@clisp.org>
6035
6036         signal: Undefine macro definitions in C++ mode.
6037         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6038         sigfillset): Undefine macro definitions from the system header in C++
6039         mode.
6040         Reported by John W. Eaton <jwe@gnu.org>.
6041
6042 2010-03-20  Bruno Haible  <bruno@clisp.org>
6043
6044         Ensure no #include statements inside extern "C" { ... }.
6045         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6046         contain #include statements.
6047         * lib/time.in.h: Likewise.
6048
6049 2010-03-20  Bruno Haible  <bruno@clisp.org>
6050
6051         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6052         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6053         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6054         Reported by John W. Eaton <jwe@gnu.org>.
6055
6056 2010-03-20  Bruno Haible  <bruno@clisp.org>
6057
6058         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6059         Reported by Jim Meyering.
6060
6061 2010-03-20  Bruno Haible  <bruno@clisp.org>
6062
6063         pipe: Set errno upon failure.
6064         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6065         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6066         errno value in error message.
6067
6068 2010-03-20  Bruno Haible  <bruno@clisp.org>
6069             Jim Meyering  <meyering@redhat.com>
6070
6071         lchown: Avoid "unused variable" warning.
6072         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6073
6074 2010-03-20  Bruno Haible  <bruno@clisp.org>
6075
6076         Work around unlink() bug on MacOS X 10.5.6.
6077         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6078         attempting to unlink a parent directory.
6079         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6080         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6081         activate for the replacement function.
6082         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6083
6084 2010-03-20  Bruno Haible  <bruno@clisp.org>
6085
6086         Fix link errors on Solaris 8.
6087         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6088         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6089
6090 2010-03-19  Jim Meyering  <meyering@redhat.com>
6091
6092         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6093         The _LIBC implementation of build_range_exp correctly honors the
6094         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6095         However, the non-_LIBC implementation would ignore that syntax-bit
6096         flag and return REG_ERANGE unconditionally.
6097         This change makes it honor that flag.
6098         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6099         Make two pointer parameters "const".
6100         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6101         (parse_bracket_exp): Update caller.
6102
6103         regex.m4: correct the reversed range endpoint ([b-a]) test
6104         * m4/regex.m4: When requiring that [b-a] evoke failure,
6105         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6106         test pass once again for x86-based systems.
6107
6108 2010-03-19  Bruno Haible  <bruno@clisp.org>
6109
6110         scandir: Fix link error on Solaris 8.
6111         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6112         macros.
6113
6114 2010-03-19  Bruno Haible  <bruno@clisp.org>
6115
6116         getusershell: Fix documentation.
6117         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6118         module.
6119         * doc/glibc-functions/setusershell.texi: Likewise.
6120
6121         getusershell: Provide declaration, missing on Solaris 9.
6122         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6123         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6124         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6125         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6127         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6128         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6129         HAVE_GETUSERSHELL.
6130         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6131
6132 2010-03-19  Bruno Haible  <bruno@clisp.org>
6133
6134         wctype: Provide iswblank function.
6135         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6136         exists and is fine.
6137         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6138         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6139         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6140         * doc/posix-functions/iswblank.texi: Update.
6141
6142 2010-03-19  Bruno Haible  <bruno@clisp.org>
6143
6144         Tests of module 'pty' in C++ mode.
6145         * modules/pty-tests: New file.
6146         * tests/test-pty-c++.cc: New file.
6147         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6148
6149 2010-03-19  Eric Blake  <eblake@redhat.com>
6150
6151         logb: fix documentation
6152         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6153         1.5 declaration bug.
6154
6155         forkpty, openpty: prefer glibc's const-safe prototype
6156         * lib/forkpty.c (rpl_forkpty): New file.
6157         * lib/openpty.c (rpl_openpty): Likewise.
6158         * modules/forkpty (Files): Distribute it.
6159         * modules/openpty (Files): Likewise.
6160         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6161         check...
6162         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6163         replacement for for non-const BSD signature.
6164         * modules/pty (Makefile.am): Substitute witnesses.
6165         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6166         * tests/test-forkpty.c: Update signature check.
6167         * tests/test-openpty.c: Likewise.
6168         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6169         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6170
6171         forkpty, openpty: split functions into new modules
6172         * modules/pty (Makefile.am): Substitute new witnesses.
6173         (Libraries): Move library detection...
6174         * modules/forkpty: ...into new module.
6175         * modules/openpty: Another new module.
6176         * modules/pty-tests: Rename and split...
6177         * modules/forkpty-tests: ...to this...
6178         * modules/openpty-tests: ...and this.
6179         * tests/test-pty.c: Rename and split...
6180         * tests/test-forkpty.c: ...to this...
6181         * tests/test-openpty.c: ...and this.
6182         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6183         (gl_PTY): Split library searching...
6184         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6185         (gl_FORKPTY, gl_OPENPTY): New macros.
6186         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6187         * NEWS: Mention the split.
6188         * MODULES.html.sh (Misc): Document the modules.
6189         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6190         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6191
6192         pty: improve replacement header
6193         * lib/pty.in.h: New file.
6194         * modules/pty (Files): Ship it.
6195         (Makefile.am): Always build replacement.
6196         * m4/pty.m4: Rename...
6197         * m4/pty_h.m4: ...to this.
6198         (gl_PTY): Modernize setting of witness macros; update check of
6199         forkpty to take proper advantage of cache.
6200         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6201
6202         getopt: avoid compiler warning
6203         * lib/getopt.c (attribute_hidden): Remove unused macro.
6204
6205 2010-03-18  Bruno Haible  <bruno@clisp.org>
6206
6207         Fix link errors on Solaris 8.
6208         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6209         * modules/search-tests (test_search_c___LDADD): Likewise.
6210         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6211         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6212         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6213         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6214         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6215         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6216         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6217
6218 2010-03-18  Bruno Haible  <bruno@clisp.org>
6219
6220         Fix bug introduced on 2010-03-14.
6221         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6222         (gl_SPAWN_H): Require it.
6223         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6224         Reported by Simon Josefsson.
6225
6226 2010-03-18  Bruno Haible  <bruno@clisp.org>
6227
6228         Fix typo introduced on 2009-12-31.
6229         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6230         posix_spawn_file_actions_adddup2.
6231
6232 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6233         and Eric Blake  <eblake@redhat.com>
6234
6235         test-vc-list-files-git: make more robust
6236         * tests/test-vc-list-files-git.sh: Unset problematic environment
6237         variables.  Chain commands together.
6238
6239 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6240
6241         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6242         `AC_CHECK_DECL' invocation.
6243
6244 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6245
6246         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6247         appears before executable statements. Suggested by Petr Sumbera
6248         <Petr.Sumbera@Sun.COM>.
6249
6250 2010-03-14  Bruno Haible  <bruno@clisp.org>
6251
6252         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6253         portability problems. Instead use a simpler test.
6254         (main): Check that invalid arguments are rejected only on Linux.
6255
6256 2010-03-14  Bruno Haible  <bruno@clisp.org>
6257
6258         Fix bug introduced on 2009-12-31.
6259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6260         gl_PREREQ_SYS_H_WINSOCK2 always.
6261         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6262         SYS_SOCKET_H variable.
6263         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6264         Update comments.
6265         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6266         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6267         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6268         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6269         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6270
6271 2010-03-14  Bruno Haible  <bruno@clisp.org>
6272
6273         Fix values returned by sinl, cosl.
6274         * lib/trigl.h: Add specification comments.
6275         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6276         that combines the values from the precomputed table with the values of
6277         the Chebyshev polynomials.
6278
6279 2010-03-14  Bruno Haible  <bruno@clisp.org>
6280
6281         Fix compilation error when modules 'posix_spawn[p]' are not used.
6282         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6284
6285 2010-03-14  Bruno Haible  <bruno@clisp.org>
6286
6287         Fix compilation error on mingw when module 'time_r' is not used.
6288         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6289         is 1.
6290         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6291         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6292         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6294
6295 2010-03-14  Bruno Haible  <bruno@clisp.org>
6296
6297         Fix compilation error with Sun C.
6298         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6299         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6300         instead of GCC specific ULONG_LONG_MAX.
6301         * lib/xstrtoll.c: Likewise.
6302         * lib/xstrtoull.c: Likewise.
6303
6304 2010-03-13  Bruno Haible  <bruno@clisp.org>
6305
6306         Allow the user to disable C++ code and tests.
6307         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6308         (gl_PROG_ANSI_CXX): Require it.
6309
6310 2010-03-13  Bruno Haible  <bruno@clisp.org>
6311
6312         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6313         cases.
6314
6315 2010-03-13  Bruno Haible  <bruno@clisp.org>
6316
6317         Test that gnulib does not break the standard C++ headers.
6318         * tests/test-locale-c++2.cc: New file.
6319         * modules/locale-tests (Files): Add it.
6320         (Makefile.am): Compile it for test-locale-c++.
6321         * tests/test-math-c++2.cc: New file.
6322         * modules/math-tests (Files): Add it.
6323         (Makefile.am): Compile it for test-math-c++.
6324         * tests/test-signal-c++2.cc: New file.
6325         * modules/signal-tests (Files): Add it.
6326         (Makefile.am): Compile it for test-signal-c++.
6327         * tests/test-stdio-c++2.cc: New file.
6328         * modules/stdio-tests (Files): Add it.
6329         (Makefile.am): Compile it for test-stdio-c++.
6330         * tests/test-stdlib-c++2.cc: New file.
6331         * modules/stdlib-tests (Files): Add it.
6332         (Makefile.am): Compile it for test-stdlib-c++.
6333         * tests/test-string-c++2.cc: New file.
6334         * modules/string-tests (Files): Add it.
6335         (Makefile.am): Compile it for test-string-c++.
6336         * tests/test-time-c++2.cc: New file.
6337         * modules/time-tests (Files): Add it.
6338         (Makefile.am): Compile it for test-time-c++.
6339         Reported by John W. Eaton <jwe@gnu.org>.
6340
6341 2010-03-13  Bruno Haible  <bruno@clisp.org>
6342
6343         * gnulib-tool (func_usage): Clarify which options are available for
6344         --create-testdir and --create-megatestdir.
6345
6346 2010-03-13  Bruno Haible  <bruno@clisp.org>
6347
6348         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6349         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6350         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6351         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6352         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6353         when appropriate.
6354         Reported by Jim Meyering.
6355
6356 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6357
6358         * gnulib-tool (func_import): Explain origin of code.
6359
6360 2010-03-12  Bruno Haible  <bruno@clisp.org>
6361
6362         Fix problem with automake's definition of CXXLINK.
6363         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6364         Reported by Simon Josefsson and Ludovic Courtès.
6365
6366 2010-03-12  Bruno Haible  <bruno@clisp.org>
6367
6368         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6369         stable releases.
6370
6371 2010-03-11  Bruno Haible  <bruno@clisp.org>
6372
6373         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6374         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6375         whether the system provides one variant or multiple variants of the
6376         function.
6377         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6378         C++ compilers.
6379         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6380         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6381         Reported by Jim Meyering.
6382
6383 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6384
6385         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6386
6387 2010-03-08  Bruno Haible  <bruno@clisp.org>
6388
6389         gnulib-tool: Add support for --libtool in --create-testdir.
6390         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6391         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6392
6393 2010-03-08  Eric Blake  <eblake@redhat.com>
6394
6395         gnulib-tool.texi: mention possibility of git submodule
6396         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6397         submodules.
6398         * doc/.gitignore: Ignore another generated file.
6399
6400 2010-03-08  Karl Berry  <karl@gnu.org>
6401
6402         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6403         of committing gnulib files while skipping others.
6404
6405 2010-03-07  Bruno Haible  <bruno@clisp.org>
6406
6407         Tests of module 'wctype' in C++ mode.
6408         * tests/test-wctype-c++.cc: New file.
6409         * modules/wctype-tests (Files): Add it and tests/signature.h.
6410         (Depends-on): Add ansi-c++-opt.
6411         (Makefile.am): Arrange to compile and run test-wctype-c++.
6412
6413         Tests of module 'wchar' in C++ mode.
6414         * tests/test-wchar-c++.cc: New file.
6415         * modules/wchar-tests (Files): Add it and tests/signature.h.
6416         (Depends-on): Add ansi-c++-opt.
6417         (Makefile.am): Arrange to compile and run test-wchar-c++.
6418         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6419         gl_MODULE_INDICATOR.
6420
6421         Tests of module 'unistd' in C++ mode.
6422         * tests/test-unistd-c++.cc: New file.
6423         * modules/unistd-tests (Files): Add it and tests/signature.h.
6424         (Depends-on): Add ansi-c++-opt.
6425         (Makefile.am): Arrange to compile and run test-unistd-c++.
6426         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6427         gl_MODULE_INDICATOR.
6428
6429         Tests of module 'time' in C++ mode.
6430         * tests/test-time-c++.cc: New file.
6431         * modules/time-tests (Files): Add it and tests/signature.h.
6432         (Depends-on): Add ansi-c++-opt.
6433         (Makefile.am): Arrange to compile and run test-time-c++.
6434         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6435
6436         Tests of module 'sys_time' in C++ mode.
6437         * tests/test-sys_time-c++.cc: New file.
6438         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6439         (Depends-on): Add ansi-c++-opt.
6440         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6441         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6442         gl_MODULE_INDICATOR.
6443
6444         Tests of module 'sys_stat' in C++ mode.
6445         * tests/test-sys_stat-c++.cc: New file.
6446         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6447         (Depends-on): Add ansi-c++-opt.
6448         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6449         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6450         gl_MODULE_INDICATOR.
6451
6452         Tests of module 'sys_socket' in C++ mode.
6453         * tests/test-sys_socket-c++.cc: New file.
6454         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6455         (Depends-on): Add ansi-c++-opt.
6456         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6457         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6458         gl_MODULE_INDICATOR.
6459
6460         Tests of module 'sys_select' in C++ mode.
6461         * tests/test-sys_select-c++.cc: New file.
6462         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6463         (Depends-on): Add ansi-c++-opt.
6464         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6465         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6466         gl_MODULE_INDICATOR.
6467
6468         Tests of module 'sys_ioctl' in C++ mode.
6469         * tests/test-sys_ioctl-c++.cc: New file.
6470         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6471         (Depends-on): Add ansi-c++-opt.
6472         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6473         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6474         gl_MODULE_INDICATOR.
6475
6476         Tests of module 'string' in C++ mode.
6477         * tests/test-string-c++.cc: New file.
6478         * modules/string-tests (Files): Add it and tests/signature.h.
6479         (Depends-on): Add ansi-c++-opt.
6480         (Makefile.am): Arrange to compile and run test-string-c++.
6481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6482         gl_MODULE_INDICATOR.
6483
6484         Tests of module 'stdlib' in C++ mode.
6485         * tests/test-stdlib-c++.cc: New file.
6486         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6487         (Depends-on): Add ansi-c++-opt.
6488         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6489         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6490         gl_MODULE_INDICATOR.
6491
6492         Tests of module 'stdio' in C++ mode.
6493         * tests/test-stdio-c++.cc: New file.
6494         * modules/stdio-tests (Files): Add it and tests/signature.h.
6495         (Depends-on): Add ansi-c++-opt.
6496         (Makefile.am): Arrange to compile and run test-stdio-c++.
6497         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6498         gl_MODULE_INDICATOR.
6499
6500         Tests of module 'spawn' in C++ mode.
6501         * tests/test-spawn-c++.cc: New file.
6502         * modules/spawn-tests (Files): Add it and tests/signature.h.
6503         (Depends-on): Add ansi-c++-opt.
6504         (Makefile.am): Arrange to compile and run test-spawn-c++.
6505         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6506         gl_MODULE_INDICATOR.
6507
6508         Tests of module 'signal' in C++ mode.
6509         * tests/test-signal-c++.cc: New file.
6510         * modules/signal-tests (Files): Add it and tests/signature.h.
6511         (Depends-on): Add ansi-c++-opt.
6512         (Makefile.am): Arrange to compile and run test-signal-c++.
6513         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6514         gl_MODULE_INDICATOR.
6515
6516         Tests of module 'search' in C++ mode.
6517         * tests/test-search-c++.cc: New file.
6518         * modules/search-tests (Files): Add it and tests/signature.h.
6519         (Depends-on): Add ansi-c++-opt.
6520         (Makefile.am): Arrange to compile and run test-search-c++.
6521         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6522         gl_MODULE_INDICATOR.
6523
6524         Tests of module 'math' in C++ mode.
6525         * tests/test-math-c++.cc: New file.
6526         * modules/math-tests (Files): Add it and tests/signature.h.
6527         (Depends-on): Add ansi-c++-opt.
6528         (Makefile.am): Arrange to compile and run test-math-c++.
6529         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6530
6531         Tests of module 'locale' in C++ mode.
6532         * tests/test-locale-c++.cc: New file.
6533         * modules/locale-tests (Files): Add it and tests/signature.h.
6534         (Depends-on): Add ansi-c++-opt.
6535         (Makefile.am): Arrange to compile and run test-locale-c++.
6536         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6537         gl_MODULE_INDICATOR.
6538
6539         Tests of module 'langinfo' in C++ mode.
6540         * tests/test-langinfo-c++.cc: New file.
6541         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6542         (Depends-on): Add ansi-c++-opt.
6543         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6544         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6545         gl_MODULE_INDICATOR.
6546
6547         Tests of module 'iconv-h' in C++ mode.
6548         * tests/test-iconv-h-c++.cc: New file.
6549         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6550         (Depends-on): Add ansi-c++-opt.
6551         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6552
6553         Tests of module 'glob' in C++ mode.
6554         * tests/test-glob-c++.cc: New file.
6555         * modules/glob-tests (Files): Add it.
6556         (Depends-on): Add ansi-c++-opt.
6557         (Makefile.am): Arrange to compile and run test-glob-c++.
6558
6559         Tests of module 'fcntl-h' in C++ mode.
6560         * tests/test-fcntl-h-c++.cc: New file.
6561         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6562         (Depends-on): Add ansi-c++-opt.
6563         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6564         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6565         gl_MODULE_INDICATOR.
6566
6567         Tests of module 'dirent' in C++ mode.
6568         * tests/test-dirent-c++.cc: New file.
6569         * modules/dirent-tests (Files): Add it and tests/signature.h.
6570         (Depends-on): Add ansi-c++-opt.
6571         (Makefile.am): Arrange to compile and run test-dirent-c++.
6572         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6573         gl_MODULE_INDICATOR.
6574
6575         New module 'ansi-c++-opt'.
6576         * modules/ansi-c++-opt: New file.
6577         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6578
6579         Document C++ namespace mode.
6580         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6581
6582         wctype: Avoid #define replacements in C++ mode.
6583         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6584         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6585         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6586         In C++, define a namespaced alias symbol.
6587         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6588         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6589         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6590         rule.
6591
6592         wchar: Avoid #define replacements in C++ mode.
6593         * lib/wchar.in.h: Include c++defs.h.
6594         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6595         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6596         symbol.
6597         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6598         * modules/wchar (Depends-on): Add c++defs.
6599         (Makefile.am): Update wchar.h rule.
6600
6601         unistd: Avoid #define replacements in C++ mode.
6602         * lib/unistd.in.h: Include c++defs.h.
6603         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6604         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6605         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6606         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6607         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6608         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6609         symbol.
6610         (environ): Update.
6611         * modules/unistd (Depends-on): Add c++defs.
6612         (Makefile.am): Update unistd.h rule.
6613
6614         time: Avoid #define replacements in C++ mode.
6615         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6616         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6617         define a namespaced alias symbol.
6618         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6619         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6620         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6621         * modules/time (Depends-on): Add c++defs, warn-on-use.
6622         (Makefile.am): Update time.h rule.
6623         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6624         * modules/nanosleep (configure.ac): Likewise.
6625         * modules/strptime (configure.ac): Likewise.
6626         * modules/timegm (configure.ac): Likewise.
6627
6628         sys_time: Avoid #define replacements in C++ mode.
6629         * lib/sys_time.in.h: Include c++defs.h.
6630         (gettimeofday): In C++, define a namespaced alias symbol.
6631         * modules/sys_time (Depends-on): Add c++defs.
6632         (Makefile.am): Update sys/time.h rule.
6633
6634         sys_stat: Avoid #define replacements in C++ mode.
6635         * lib/sys_stat.in.h: Include c++defs.h.
6636         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6637         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6638         namespaced alias symbol.
6639         In C++, define a namespaced alias symbol.
6640         * modules/sys_stat (Depends-on): Add c++defs.
6641         (Makefile.am): Update sys/stat.h rule.
6642
6643         sys_socket: Avoid #define replacements in C++ mode.
6644         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6645         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6646         definitions also when the system has a <sys/socket.h>.
6647         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6648         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6649         In C++, define a namespaced alias symbol.
6650         * modules/sys_socket (Depends-on): Add c++defs.
6651         (Makefile.am): Update sys/socket.h rule.
6652
6653         sys_select: Avoid #define replacements in C++ mode.
6654         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6655         definitions also when the system has a <sys/select.h>.
6656         (select): In C++, define a namespaced alias symbol.
6657         * modules/sys_select (Depends-on): Add c++defs.
6658         (Makefile.am): Update sys/select.h rule.
6659
6660         sys_ioctl: Avoid #define replacements in C++ mode.
6661         * lib/sys_ioctl.in.h: Include c++defs.h.
6662         (ioctl): In C++, define a namespaced alias symbol.
6663         * modules/sys_ioctl (Depends-on): Add c++defs.
6664         (Makefile.am): Update sys/ioctl.h rule.
6665
6666         string: Avoid #define replacements in C++ mode.
6667         * lib/string.in.h: Include c++defs.h.
6668         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6669         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6670         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6671         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6672         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6673         * modules/string (Depends-on): Add c++defs.
6674         (Makefile.am): Update string.h rule.
6675
6676         stdlib: Avoid #define replacements in C++ mode.
6677         * lib/stdlib.in.h: Include c++defs.h.
6678         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6679         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6680         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6681         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6682         symbol.
6683         * modules/stdlib (Depends-on): Add c++defs.
6684         (Makefile.am): Update stdlib.h rule.
6685
6686         stdio: Avoid #define replacements in C++ mode.
6687         * lib/stdio.in.h: Include c++defs.h.
6688         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6689         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6690         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6691         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6692         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6693         namespaced alias symbol.
6694         * modules/stdio (Depends-on): Add c++defs.
6695         (Makefile.am): Update stdio.h rule.
6696
6697         spawn: Avoid #define replacements in C++ mode.
6698         * lib/spawn.in.h: Include c++defs.h.
6699         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6700         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6701         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6702         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6703         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6704         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6705         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6706         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6707         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6708         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6709         In C++, define a namespaced alias symbol.
6710         * modules/spawn (Depends-on): Add c++defs.
6711         (Makefile.am): Update spawn.h rule.
6712
6713         signal: Avoid #define replacements in C++ mode.
6714         * lib/signal.in.h: Include c++defs.h.
6715         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6716         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6717         namespaced alias symbol.
6718         * modules/signal (Depends-on): Add c++defs.
6719         (Makefile.am): Update signal.h rule.
6720
6721         search: Avoid #define replacements in C++ mode.
6722         * lib/search.in.h: Include c++defs.h.
6723         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6724         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6725         symbol.
6726         * modules/search (Depends-on): Add c++defs.
6727         (Makefile.am): Update search.h rule.
6728
6729         math: Avoid #define replacements in C++ mode.
6730         * lib/math.in.h: Include c++defs.h.
6731         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6732         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6733         trunc, truncl): In C++, define a namespaced alias symbol.
6734         * modules/math (Depends-on): Add c++defs.
6735         (Makefile.am): Update math.h rule.
6736
6737         locale: Avoid #define replacements in C++ mode.
6738         * lib/locale.in.h: Include c++defs.h.
6739         (duplocale): In C++, define a namespaced alias symbol.
6740         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6741         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6742         * modules/locale (Depends-on): Add c++defs.
6743         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6744
6745         langinfo: Avoid #define replacements in C++ mode.
6746         * lib/langinfo.in.h: Include c++defs.h.
6747         (nl_langinfo): In C++, define a namespaced alias symbol.
6748         * modules/langinfo (Depends-on): Add c++defs.
6749         (Makefile.am): Update langinfo.h rule.
6750
6751         iconv-h: Avoid #define replacements in C++ mode.
6752         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6753         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6754         symbol.
6755         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6756         whenever iconv is present.
6757         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6758         (Makefile.am): Update iconv.h rule.
6759
6760         glob: Avoid #define replacements in C++ mode.
6761         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6762         (_gl_glob_errfunc_fn): New type.
6763         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6764         symbol.
6765         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6766         (Makefile.am): Update glob.h rule.
6767
6768         fcntl-h: Avoid #define replacements in C++ mode.
6769         * lib/fcntl.in.h: Include c++defs.h.
6770         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6771         * modules/fcntl-h (Depends-on): Add c++defs.
6772         (Makefile.am): Update fcntl.h rule.
6773
6774         dirent: Avoid #define replacements in C++ mode.
6775         * lib/dirent.in.h: Include c++defs.h.
6776         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6777         namespaced alias symbol.
6778         (dirfd): Update declaration.
6779         * modules/dirent (Depends-on): Add c++defs.
6780         (Makefile.am): Update dirent.h rule.
6781
6782         ctype: Make it usable in C++ code.
6783         * lib/ctype.in.h: Include c++defs.h.
6784         (isblank): Declare as extern "C".
6785         * modules/ctype (Depends-on): Add c++defs.
6786         (Makefile.am): Update ctype.h rule.
6787
6788         New module 'c++defs'.
6789         * modules/c++defs: New file.
6790         * build-aux/c++defs.h: New file.
6791         Reported by John W. Eaton <jwe@gnu.org>.
6792
6793 2010-03-07  Bruno Haible  <bruno@clisp.org>
6794
6795         logb: Provide missing declaration for Cygwin.
6796         * lib/math.in.h (logb): New declaration.
6797         * m4/logb.m4: New file.
6798         * modules/logb (Files): Add m4/logb.m4.
6799         (Depends-on): Add math.
6800         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6801         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6803         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6804         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6805
6806 2010-03-07  Bruno Haible  <bruno@clisp.org>
6807
6808         Fix test-cond link error.
6809         * tests/test-cond.c: Include <stdio.h>.
6810
6811 2010-03-07  Bruno Haible  <bruno@clisp.org>
6812
6813         Fix test-dirent-safer link error.
6814         * modules/dirent-safer-tests (Makefile.am): Define
6815         test_dirent_safer_LDADD.
6816
6817 2010-03-07  Bruno Haible  <bruno@clisp.org>
6818
6819         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6820         among default module list.
6821
6822 2010-03-07  Bruno Haible  <bruno@clisp.org>
6823
6824         Fix link error on platforms with GNU libiconv.
6825         * modules/unistr/u8-strcoll-tests (Makefile): Define
6826         test_u8_strcoll_LDADD.
6827         * modules/unistr/u16-strcoll-tests (Makefile): Define
6828         test_u16_strcoll_LDADD.
6829         * modules/unistr/u32-strcoll-tests (Makefile): Define
6830         test_u32_strcoll_LDADD.
6831
6832 2010-03-07  Bruno Haible  <bruno@clisp.org>
6833
6834         Use POSIX declarations for socket functions.
6835         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6836         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6837         rpl_sendto): Change declaration to match POSIX.
6838         * lib/connect.c (rpl_connect): Likewise.
6839         * lib/accept.c (rpl_accept): Likewise.
6840         * lib/bind.c (rpl_bind): Likewise.
6841         * lib/getpeername.c (rpl_getpeername): Likewise.
6842         * lib/getsockname.c (rpl_getsockname): Likewise.
6843         * lib/recv.c (rpl_recv): Likewise.
6844         * lib/send.c (rpl_send): Likewise.
6845         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6846         * lib/sendto.c (rpl_sendto): Likewise.
6847
6848 2010-03-06  Bruno Haible  <bruno@clisp.org>
6849
6850         Clarify access, euidaccess, faccessat.
6851         * doc/posix-functions/faccessat.texi: Mention security problem under
6852         "Other problems", not "Portability problems".
6853         * doc/posix-functions/access.texi: Likewise. Mention a related security
6854         problem.
6855         * doc/glibc-functions/euidaccess.texi: Mention security problems.
6856         * lib/euidaccess.c: Add comments about platforms.
6857         * lib/unistd.in.h (access, euidaccess): Add warnings.
6858
6859 2010-03-07  Bruno Haible  <bruno@clisp.org>
6860
6861         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
6862         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
6863         (POSIX_SPAWN_SETSCHEDULER): Likewise.
6864         (POSIX_SPAWN_USEVFORK): Define in a way that works when
6865         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6866         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
6867         declare when POSIX_SPAWN_SETSCHEDULER is zero.
6868         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
6869         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
6870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
6871         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
6872         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
6873         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
6874         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
6875         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
6876         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
6877         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
6878         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
6879         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
6880         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
6881         Likewise.
6882         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
6883         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
6884         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
6885         Likewise.
6886         * tests/test-spawn.c (main): Make it work when
6887         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
6888
6889 2010-03-07  Bruno Haible  <bruno@clisp.org>
6890
6891         Fix incorrect Makefile.am generation in German locale.
6892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6893         Execute sed command with character range in C locale.
6894
6895 2010-03-06  Bruno Haible  <bruno@clisp.org>
6896
6897         Tests for module 'iconv-h'.
6898         * modules/iconv-h-tests: New file.
6899         * tests/test-iconv-h.c: New file.
6900
6901         New module 'iconv-h'.
6902         * modules/iconv-h: New file.
6903         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
6904         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
6905         (configure.ac): Remove gl_ICONV_H.
6906         (Makefile.am): Remove rule for iconv.h.
6907
6908 2010-03-06  Bruno Haible  <bruno@clisp.org>
6909
6910         More consistent naming of *.m4 files.
6911         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
6912         * modules/wctype (Files): Update.
6913
6914         More consistent naming of *.m4 files.
6915         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
6916         * modules/wchar (Files): Update.
6917
6918 2010-03-06  Jim Meyering  <meyering@redhat.com>
6919
6920         euidaccess: relax license to LGPLv2+
6921         * modules/euidaccess (License): Relax to LGPLv2+.
6922
6923 2010-03-06  Bruno Haible  <bruno@clisp.org>
6924
6925         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
6926         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
6927         (Makefile.am): Augment lib_SOURCES instead.
6928
6929 2010-03-04  Jim Meyering  <meyering@redhat.com>
6930
6931         utime: remove obsolete module
6932         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
6933         unnecessary for years, and has been marked as obsolete for 10 months.
6934         * modules/utime: Remove file.
6935         * lib/utime.c: Remove file.
6936         * m4/utime.m4: Remove file.
6937         * m4/utimes-null.m4: Remove file.
6938         * doc/posix-functions/utime.texi (utime): Remove reference to
6939         the module.  Move the sole "fixed by gnulib" item into the
6940         "problems not fixed by Gnulib" list.
6941         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
6942
6943 2010-03-05  Simon Josefsson  <simon@josefsson.org>
6944
6945         * modules/exit (License): Relax license to LGPLv2+.
6946         (Status): Mark as obsolete.
6947         * NEWS: Mention deprecated 'exit' module.
6948         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
6949         of now obsolete 'exit'.
6950
6951 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6952
6953         fts-lgpl: remove unused module
6954         * modules/fts-lgpl: Remove.
6955         * MODULES.html.sh (func_all_modules): Adjust.
6956         * check-module (find_included_lib_files): Adjust.
6957         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
6958
6959 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
6960
6961         copy-acl: enhance Solaris ACL error handling
6962         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
6963         * lib/set-mode-acl.c (qset_acl): Likewise.
6964
6965 2010-03-02  Bruno Haible  <bruno@clisp.org>
6966
6967         spawn: Don't override the system defined values on FreeBSD 8.
6968         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
6969         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
6970         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
6971         if HAVE_POSIX_SPAWN is 1.
6972         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
6973
6974 2010-03-01  Bruno Haible  <bruno@clisp.org>
6975
6976         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
6977         regarding Automake.
6978
6979 2010-02-25  Bruno Haible  <bruno@clisp.org>
6980
6981         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
6982         * gnulib-tool: Define 'echo' as a function only before the ksh alias
6983         setting, not afterwards.
6984         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6985
6986 2010-02-24  Eric Blake  <eblake@redhat.com>
6987
6988         bootstrap, git-version-gen: use timestamp
6989         * build-aux/git-version-gen (scriptversion): Force UTC.
6990         * build-aux/bootstrap (scriptversion): New variable.
6991
6992         bootstrap: allow older git
6993         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
6994         older than 1.6.4.  Requested by the libvirt project.
6995
6996 2010-02-23  Eric Blake  <eblake@redhat.com>
6997
6998         warn-on-use: work with old autoconf
6999         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7000         AS_VAR semantics of autoconf 2.60.
7001         Reported by Bruno Haible.
7002
7003         bootstrap: improve some comments
7004         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7005         clarification comments.
7006
7007         gettimeofday: provide correct function
7008         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7009         when replacement is declared, otherwise provide gettimeofday.
7010         Reported by Michael Goffioul.
7011
7012 2010-02-23  Jim Meyering  <meyering@redhat.com>
7013
7014         lib-ignore: relax license to "unlimited", not LGPLv2+
7015         * modules/lib-ignore (License): Relax to "unlimited".
7016
7017 2010-02-23  Jim Meyering  <meyering@redhat.com>
7018
7019         lib-ignore: relax license to LGPLv2+
7020         * modules/lib-ignore (License): Relax to LGPLv2+.
7021
7022 2010-02-22  Eric Blake  <eblake@redhat.com>
7023
7024         lseek: avoid bash 3.2 broken pipe bug
7025         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7026         warning from bash 3.2.
7027         Reported by Ben Pfaff, with analysis from Bruno Haible.
7028
7029         bootstrap: support non-FSF copyright holder
7030         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7031         bootstrap.conf override of COPYRIGHT_HOLDER.
7032         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7033
7034         bootstrap: interoperate with gettext 0.14.1
7035         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7036
7037         bootstrap: allow for alternate submodule location
7038         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7039         hardcoding submodule location.
7040         (gnulib_mk): Allow direct use of Makefile.am.
7041
7042         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7043         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7044         rather than reconfiguring where the submodule points.
7045
7046         gettimeofday: restore support for platforms that lack function
7047         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7048         replacement if function is missing.
7049         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7050         * modules/sys_time (Makefile.am): Substitute it.
7051         * lib/sys_time.in.h (gettimeofday): Check it.
7052         Reported by Michael Goffioul.
7053
7054 2010-02-21  Bruno Haible  <bruno@clisp.org>
7055
7056         * lib/stdio.in.h (obstack_printf): Fix typo.
7057
7058 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7059
7060         vc-list-files: use bzr ls's -R option
7061         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7062         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7063
7064 2010-02-21  Jim Meyering  <meyering@redhat.com>
7065
7066         init.sh: fix EXEEXT shims to work also for names like test-prog
7067         * tests/init.sh: Re-exec a better shell, when needed.
7068         If the current shell lacks support for posix $(...), an init.sh-using
7069         test will now try to find a shell that supports that.  If EXEEXT is
7070         nonempty, we also require support for hyphen-in-alias-name and shell
7071         substitutions like ${var#glob}.  Failure to find such a shell results
7072         in a skipped test.
7073
7074 2010-02-21  Bruno Haible  <bruno@clisp.org>
7075
7076         Really work around around "broken pipe" error message from bash 3.2.
7077         * gnulib-tool (func_reset_sigpipe): Remove function.
7078         (echo): In bash 3.2, define to a function that uses printf.
7079         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7080
7081 2010-02-20  Bruno Haible  <bruno@clisp.org>
7082
7083         Restore support for automake 1.9.6 with autoconf 2.61.
7084         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7085         Reported by James Youngman <jay@gnu.org>.
7086
7087 2010-02-20  Bruno Haible  <bruno@clisp.org>
7088
7089         Improve *printf warning condition.
7090         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7091         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7092         and the function is overridden due to SIGPIPE emulation.
7093
7094 2010-02-20  Bruno Haible  <bruno@clisp.org>
7095
7096         * lib/stdio.in.h: Tweak comments.
7097
7098 2010-02-19  Bruno Haible  <bruno@clisp.org>
7099
7100         Make it easier to find modules. New gnulib-tool option '--find'.
7101         * gnulib-tool: New option --find.
7102         (func_usage): Document it.
7103         (func_sanitize_modulelist): New function, extracted from
7104         func_all_modules.
7105         (func_all_modules): Invoke it.
7106         * doc/gnulib-tool.texi (Which modules?): New node.
7107
7108 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7109
7110         * lib/sys_select.in.h: Provide select replacement even if
7111         sys/select.h exists on a system, for Interix.
7112
7113 2010-02-18  Jim Meyering  <meyering@redhat.com>
7114
7115         init.sh: don't use $(...) just yet
7116         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7117         to accommodate e.g., Solaris' /bin/sh.
7118
7119 2010-02-17  Bruno Haible  <bruno@clisp.org>
7120
7121         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7122         Reported by Ludovic Courtès <ludo@gnu.org>.
7123
7124 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7125
7126         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7127         linking with -lintl.
7128
7129 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7130
7131         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7132         if not provided by the system's netdb.h.  Reported by
7133         ludo@gnu.org (Ludovic Courtès).
7134
7135 2010-02-15  Jim Meyering  <meyering@redhat.com>
7136
7137         init.sh: improve portability and efficiency
7138         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7139         "dummy" in a for loop.
7140         Use '!', not '^' to select the complement of a character set used
7141         in a "case" statement.
7142         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7143         Suggestions from Eric Blake.
7144
7145         init.sh: automatically accommodate programs with the .exe suffix
7146         Automatically arrange for an invocation of "prog" to execute the
7147         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7148         may use the simpler "prog", yet still work when built on a system
7149         that requires specifying the added suffix.
7150         Do this by constructing a function named "prog" that invokes
7151         "prog.exe" for each .exe file in selected directories.
7152         * tests/init.sh (find_exe_basenames_): New function.
7153         (create_exe_shim_functions_): New function.
7154         (path_prepend_): Use it.
7155
7156         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7157         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7158         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7159
7160 2010-02-14  Jim Meyering  <meyering@redhat.com>
7161
7162         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7163         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7164         (sc_prohibit_hash_pjw_without_use): New rule.
7165
7166         maint.mk: allow the default upload destination dir to be overridden
7167         * top/maint.mk (upload_dest_dir_): Define with a default that
7168         preserves the status quo.
7169         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7170         Reported by Peter Simons.
7171
7172         maint.mk: prohibit inclusion of "hash.h" without_use
7173         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7174
7175 2010-02-10  Jim Meyering  <meyering@redhat.com>
7176
7177         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7178         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7179
7180 2010-02-09  Eric Blake  <ebb9@byu.net>
7181         and Bruno Haible  <bruno@clisp.org>
7182
7183         obstack-printf-posix: ensure declaration
7184         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7185         extracted from gl_FUNC_OBSTACK_PRINTF.
7186         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7187         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7188         Likewise.
7189         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7190         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7191         0.
7192
7193 2010-02-08  Bruno Haible  <bruno@clisp.org>
7194
7195         gnulib-tool: Fix typo in 2010-02-07 commit.
7196         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7197         Reported by Eric Blake.
7198
7199 2010-02-07  Bruno Haible  <bruno@clisp.org>
7200
7201         gnulib-tool: Fix up caching patches.
7202         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7203         option --no-cache. Use associative arrays when supported by the shell.
7204         (sed_comments): New variable.
7205         (modcache): Renamed from do_cache.
7206         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7207         abbreviate unnecessarily.
7208         (have_associative): New variable.
7209         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7210         way also for ksh and zsh.
7211         (func_init_sed_convert_to_cache_statements): New function, extracted
7212         from func_cache_lookup_module. Add support for associative arrays.
7213         Don't set the c_MODULE_cached variable here. Ignore all lines before
7214         the first field header. Remove only the final newline, not all trailing
7215         newlines. Support empty fields correctly. Limit the use of 'eval' to
7216         assignments.
7217         (func_get_description, func_get_status, func_get_notice,
7218         func_get_applicability, func_get_filelist, func_get_dependencies,
7219         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7220         func_get_automake_snippet, func_get_include_directive,
7221         func_get_link_directive, func_get_license, func_get_maintainer):
7222         Update documentation. List the unoptimized code first. Add support for
7223         associative arrays. Limit the use of 'eval' to assignments.
7224         (func_get_applicability): Undo stylistic pessimisations.
7225         (func_get_automake_snippet, func_get_include_directive): Reduce code
7226         duplication.
7227         (func_modules_transitive_closure, func_modules_add_dummy,
7228         func_modules_notice, func_modules_to_filelist, func_add_file,
7229         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7230         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7231         func_create_testdir, func_create_megatestdir): Update documentation.
7232
7233 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7234
7235         * gnulib-tool (func_cache_lookup_module): Store the module name
7236         belonging to the cache variable; error out if two different
7237         module names map to the same cache variable name.
7238
7239 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7240
7241         gnulib-tool: Make caching optional.
7242         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7243         Update matching short versions of --no-changelog.
7244         (func_usage): Update.
7245         (sed_extract_cache_prog): Renamed from ...
7246         (sed_extract_prog): ... this; revert to old extraction script.
7247         (func_get_description, func_get_status)
7248         (func_get_notice, func_get_applicability, func_get_filelist)
7249         (func_get_dependencies, func_get_autoconf_early_snippet)
7250         (func_get_autoconf_snippet, func_get_automake_snippet)
7251         (func_get_include_directive, func_get_link_directive)
7252         (func_get_license, func_get_maintainer): If $do_cache is false,
7253         use old, non-caching extraction scripts.
7254         Suggestion by Bruno Haible.
7255
7256 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7257
7258         gnulib-tool: cache module metainformation.
7259         * gnulib-tool (sed_extract_prog): Match newline before each
7260         header, and rewrite header to a shell variable suffix.
7261         (func_cache_var, func_cache_lookup_module): New functions,
7262         to turn a module name into a cache variable prefix, and to
7263         look up and cache module metainformation.
7264         (func_get_description, func_get_status)
7265         (func_get_notice, func_get_applicability, func_get_filelist)
7266         (func_get_dependencies, func_get_autoconf_early_snippet)
7267         (func_get_autoconf_snippet, func_get_automake_snippet)
7268         (func_get_include_directive, func_get_link_directive)
7269         (func_get_license, func_get_maintainer): Use
7270         func_cache_lookup_module.
7271
7272 2010-02-07  Bruno Haible  <bruno@clisp.org>
7273
7274         fnctl: Fix missing dependency.
7275         * modules/fcntl (Depends-on): Add getdtablesize.
7276         Reported by John W. Eaton <jwe@gnu.org>.
7277
7278 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7279
7280         Argp: fix recognition of short alias options.
7281
7282         * lib/argp-parse.c (convert_options): Fix improper use of
7283         `|' between character values.
7284         * tests/test-argp.c (group1_option): New alias option
7285         --read (-r).
7286         (group1_parser): Special handling for 'r'.
7287         (test15): New test case.
7288         (test_fun): Add test15.
7289         * tests/test-argp-2.sh: Update expected --help and --usage
7290         outputs.
7291
7292 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7293
7294         * tests/test-argp.c: Fix indentation.
7295
7296 2010-02-04  Eric Blake  <ebb9@byu.net>
7297
7298         gettimeofday: expose type of second argument
7299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7300         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7301         * tests/test-gettimeofday.c: Use it to silence warning.
7302         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7303         the issue.
7304
7305 2010-02-03  Jim Meyering  <meyering@redhat.com>
7306
7307         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7308         * lib/regcomp.c (TYPE_SIGNED): Define.
7309         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7310
7311         regcomp.c: avoid a new -Wshadow warning
7312         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7313
7314 2010-02-01  Jim Meyering  <meyering@redhat.com>
7315
7316         removing useless parentheses in cpp #define directives
7317         For motivation, see commit c0221df4, "define STREQ(a,b)
7318         consistently, removing useless parentheses"
7319         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7320         * lib/mountlist.c (MNT_IGNORE): Likewise.
7321         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7322
7323 2010-02-01  Eric Blake  <ebb9@byu.net>
7324
7325         sys_time: use link-warning
7326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7327         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7328         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7329         * modules/sys_time (Depends-on): Add warn-on-use.
7330         (Makefile.am): Always build replacement.
7331         (configure.ac): Update substitutions.
7332         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7333         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7334         bother with SYS_TIME_H.
7335         * modules/gettimeofday (configure.ac): Declare indicator.
7336         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7337         in use.
7338
7339         closein-tests: silence compiler warning
7340         * tests/test-closein.c (main): Ignore fread result.
7341         * modules/closein-tests (Depends-on): Add ignore-value.
7342
7343         tests: silence warning about system return
7344         * tests/test-areadlink-with-size.c (main): Ignore system result.
7345         * tests/test-areadlink.c (main): Likewise.
7346         * tests/test-areadlinkat-with-size.c (main): Likewise.
7347         * tests/test-areadlinkat.c (main): Likewise.
7348         * tests/test-canonicalize-lgpl.c (main): Likewise.
7349         * tests/test-canonicalize.c (main): Likewise.
7350         * tests/test-chown.c (main): Likewise.
7351         * tests/test-fchownat.c (main): Likewise.
7352         * tests/test-fdutimensat.c (main): Likewise.
7353         * tests/test-fstatat.c (main): Likewise.
7354         * tests/test-futimens.c (main): Likewise.
7355         * tests/test-lchown.c (main): Likewise.
7356         * tests/test-link.c (main): Likewise.
7357         * tests/test-linkat.c (main): Likewise.
7358         * tests/test-lstat.c (main): Likewise.
7359         * tests/test-mkdir.c (main): Likewise.
7360         * tests/test-mkdirat.c (main): Likewise.
7361         * tests/test-mkfifo.c (main): Likewise.
7362         * tests/test-mkfifoat.c (main): Likewise.
7363         * tests/test-mknod.c (main): Likewise.
7364         * tests/test-readlink.c (main): Likewise.
7365         * tests/test-remove.c (main): Likewise.
7366         * tests/test-rename.c (main): Likewise.
7367         * tests/test-renameat.c (main): Likewise.
7368         * tests/test-rmdir.c (main): Likewise.
7369         * tests/test-symlink.c (main): Likewise.
7370         * tests/test-symlinkat.c (main): Likewise.
7371         * tests/test-unlink.c (main): Likewise.
7372         * tests/test-unlinkat.c (main): Likewise.
7373         * tests/test-utimens.c (main): Likewise.
7374         * tests/test-utimensat.c (main): Likewise.
7375         * modules/areadlink-tests (Depends-on): Add ignore-value.
7376         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7377         * modules/areadlinkat-tests (Depends-on): Likewise.
7378         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7379         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7380         * modules/canonicalize-tests (Depends-on): Likewise.
7381         * modules/chown-tests (Depends-on): Likewise.
7382         * modules/fdutimensat-tests (Depends-on): Likewise.
7383         * modules/futimens-tests (Depends-on): Likewise.
7384         * modules/lchown-tests (Depends-on): Likewise.
7385         * modules/link-tests (Depends-on): Likewise.
7386         * modules/linkat-tests (Depends-on): Likewise.
7387         * modules/lstat-tests (Depends-on): Likewise.
7388         * modules/mkdir-tests (Depends-on): Likewise.
7389         * modules/mkfifo-tests (Depends-on): Likewise.
7390         * modules/mkfifoat-tests (Depends-on): Likewise.
7391         * modules/mknod-tests (Depends-on): Likewise.
7392         * modules/openat-tests (Depends-on): Likewise.
7393         * modules/readlink-tests (Depends-on): Likewise.
7394         * modules/remove-tests (Depends-on): Likewise.
7395         * modules/rename-tests (Depends-on): Likewise.
7396         * modules/renameat-tests (Depends-on): Likewise.
7397         * modules/rmdir-tests (Depends-on): Likewise.
7398         * modules/symlink-tests (Depends-on): Likewise.
7399         * modules/symlinkat-tests (Depends-on): Likewise.
7400         * modules/unlink-tests (Depends-on): Likewise.
7401         * modules/utimens-tests (Depends-on): Likewise.
7402         * modules/utimensat-tests (Depends-on): Likewise.
7403
7404 2010-01-31  Bruno Haible  <bruno@clisp.org>
7405
7406         Perform the same test for many <math.h> functions.
7407         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7408         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7409         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7410         of gl_MATHFUNC.
7411         * modules/acos (configure.ac): Likewise.
7412         * modules/asin (configure.ac): Likewise.
7413         * modules/atan (configure.ac): Likewise.
7414         * modules/atan2 (configure.ac): Likewise.
7415         * modules/cbrt (configure.ac): Likewise.
7416         * modules/copysign (configure.ac): Likewise.
7417         * modules/cos (configure.ac): Likewise.
7418         * modules/cosh (configure.ac): Likewise.
7419         * modules/erf (configure.ac): Likewise.
7420         * modules/erfc (configure.ac): Likewise.
7421         * modules/exp (configure.ac): Likewise.
7422         * modules/fmod (configure.ac): Likewise.
7423         * modules/hypot (configure.ac): Likewise.
7424         * modules/j0 (configure.ac): Likewise.
7425         * modules/j1 (configure.ac): Likewise.
7426         * modules/jn (configure.ac): Likewise.
7427         * modules/lgamma (configure.ac): Likewise.
7428         * modules/log (configure.ac): Likewise.
7429         * modules/log10 (configure.ac): Likewise.
7430         * modules/log1p (configure.ac): Likewise.
7431         * modules/pow (configure.ac): Likewise.
7432         * modules/remainder (configure.ac): Likewise.
7433         * modules/sin (configure.ac): Likewise.
7434         * modules/sinh (configure.ac): Likewise.
7435         * modules/tan (configure.ac): Likewise.
7436         * modules/tanh (configure.ac): Likewise.
7437         * modules/y0 (configure.ac): Likewise.
7438         * modules/y1 (configure.ac): Likewise.
7439         * modules/yn (configure.ac): Likewise.
7440         Suggested by Paolo Bonzini.
7441
7442 2010-01-31  Bruno Haible  <bruno@clisp.org>
7443
7444         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7445
7446 2010-01-31  Bruno Haible  <bruno@clisp.org>
7447
7448         Work around getdelim() bug on FreeBSD 8.0.
7449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7450         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7451         not work.
7452         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7453         is 1.
7454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7455         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7456         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7457         a non-zero size.
7458         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7459
7460 2010-01-31  Bruno Haible  <bruno@clisp.org>
7461
7462         Work around getline() bug on FreeBSD 8.0.
7463         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7464         and a non-zero size.
7465         * tests/test-getline.c (main): Likewise.
7466         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7467         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7468
7469 2010-01-28  Eric Blake  <ebb9@byu.net>
7470
7471         regex: fix build failure
7472         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7473         platforms.
7474
7475 2010-01-28  Jim Meyering  <meyering@redhat.com>
7476
7477         regex: do not ignore memory allocation failure
7478         * lib/regex_internal.c (create_cd_newstate): Detect
7479         re_node_set_init_copy failure.   Extracted from glibc commit
7480         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7481
7482         regex: sync more white-space changes from libc
7483         * lib/regex_internal.c: White-space only changes.
7484         * lib/regexec.c: Likewise.
7485
7486         regex: add many uses of __attribute_warn_unused_result__
7487         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7488         * lib/regexec.c: Likewise.
7489         Extracted from a messy glibc commit.
7490
7491         regcomp.c: spelling and merge-artifact from glibc
7492         * lib/regcomp.c: Merge remainder of glibc's
7493         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7494
7495         regcomp.c: sync white-space changes from glibc
7496         * lib/regcomp.c: Merge to accommodate white space
7497         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7498
7499         regcomp.c: do not ignore internal return values
7500         * lib/regcomp.c: Do not ignore internal return values.
7501         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7502         but without its white-space changes and spelling fixes.
7503
7504         regex_internal.h: define __attribute_warn_unused_result__
7505         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7506
7507         maint: add a syntax-check rule to check for vulnerable Makefile.in
7508         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7509
7510 2010-01-27  Jim Meyering  <meyering@redhat.com>
7511
7512         ncftpput-ftp: clean up spaces
7513         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7514         Remove trailing blanks.
7515
7516 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7517
7518         * build-aux/git-version-gen: Fix copyright statement.
7519         * build-aux/gnupload: Likewise.
7520         * tests/test-arcfour.c: Likewise.
7521         * tests/test-arctwo.c: Likewise.
7522         * tests/test-count-one-bits.c: Likewise.
7523         * tests/test-crc.c: Likewise.
7524         * tests/test-des.c: Likewise.
7525         * tests/test-gc-arcfour.c: Likewise.
7526         * tests/test-gc-arctwo.c: Likewise.
7527         * tests/test-gc-des.c: Likewise.
7528         * tests/test-gc-hmac-md5.c: Likewise.
7529         * tests/test-gc-hmac-sha1.c: Likewise.
7530         * tests/test-gc-md2.c: Likewise.
7531         * tests/test-gc-md4.c: Likewise.
7532         * tests/test-gc-md5.c: Likewise.
7533         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7534         * tests/test-gc-rijndael.c: Likewise.
7535         * tests/test-gc-sha1.c: Likewise.
7536         * tests/test-gc.c: Likewise.
7537         * tests/test-gethostname.c: Likewise.
7538         * tests/test-gettimeofday.c: Likewise.
7539         * tests/test-hash.c: Likewise.
7540         * tests/test-hmac-md5.c: Likewise.
7541         * tests/test-hmac-sha1.c: Likewise.
7542         * tests/test-md2.c: Likewise.
7543         * tests/test-md4.c: Likewise.
7544         * tests/test-md5.c: Likewise.
7545         * tests/test-memchr.c: Likewise.
7546         * tests/test-memchr2.c: Likewise.
7547         * tests/test-memcmp.c: Likewise.
7548         * tests/test-memmem.c: Likewise.
7549         * tests/test-memrchr.c: Likewise.
7550         * tests/test-rawmemchr.c: Likewise.
7551         * tests/test-read-file.c: Likewise.
7552         * tests/test-rijndael.c: Likewise.
7553         * tests/test-sockets.c: Likewise.
7554         * tests/test-strchrnul.c: Likewise.
7555         * tests/test-strstr.c: Likewise.
7556         * tests/test-strtod.c: Likewise.
7557         * build-aux/ncftpput-ftp: Likewise.
7558
7559 2010-01-26  Eric Blake  <ebb9@byu.net>
7560
7561         ignore-value: update recommended header name
7562         * modules/ignore-value (Include): Only use <> for headers that
7563         exist in glibc.
7564
7565 2010-01-26  Jim Meyering  <meyering@redhat.com>
7566
7567         test-userspec.c: avoid compiler warnings
7568         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7569         and "initialization discards qualifiers..." warnings.
7570         Put the first "uid" in its own scope, and make char* members "const".
7571
7572 2010-01-25  Bruno Haible  <bruno@clisp.org>
7573
7574         gnulib-tool: Make warning diagnostics consistent.
7575         * gnulib-tool (func_warning): New function.
7576         Use it everywhere where gnulib-tool produces output to stderr and it is
7577         not a fatal error.
7578
7579 2010-01-25  Bruno Haible  <bruno@clisp.org>
7580
7581         Fix test dependencies.
7582         * modules/xstrtol-tests (Depends-on): Add inttypes.
7583         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7584
7585 2010-01-25 Pádraig Brady <P@draigBrady.com>
7586
7587         syntax-check: detect incorrect boolean macro values in config.h
7588         * modules/maintainer-makefile (configure.ac): Parameterize the location
7589         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7590         The logic is from Eric Blake and the location indicated by Jim Meyering.
7591         Note the more natural CONFIG_HEADER name is prohibited by automake
7592         for backwards compatibility reasons.
7593         * top/maint.mk (sc_Wundef_boolean): New rule.
7594
7595 2010-01-25  Jim Meyering  <meyering@redhat.com>
7596
7597         bootstrap: detect MacOS 10.6's shasum, too
7598         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7599         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7600
7601 2010-01-23  Jim Meyering  <meyering@redhat.com>
7602
7603         xstrtoll: new module
7604         * modules/xstrtoll: New file.
7605         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7606         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7607         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7608         ./configure fails if you use this module and lack "long long".
7609         * modules/xstrtoll-tests: New module.
7610         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7611         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7612         new init.sh-based test framework.
7613
7614 2010-01-24  Bruno Haible  <bruno@clisp.org>
7615
7616         Tests for module 'yn'.
7617         * modules/yn-tests: New file.
7618         * tests/test-yn.c: New file.
7619
7620         Tests for module 'y1'.
7621         * modules/y1-tests: New file.
7622         * tests/test-y1.c: New file.
7623
7624         Tests for module 'y0'.
7625         * modules/y0-tests: New file.
7626         * tests/test-y0.c: New file.
7627
7628         Tests for module 'tanh'.
7629         * modules/tanh-tests: New file.
7630         * tests/test-tanh.c: New file.
7631
7632         Tests for module 'tan'.
7633         * modules/tan-tests: New file.
7634         * tests/test-tan.c: New file.
7635
7636         Tests for module 'sqrt'.
7637         * modules/sqrt-tests: New file.
7638         * tests/test-sqrt.c: New file.
7639
7640         Tests for module 'sinh'.
7641         * modules/sinh-tests: New file.
7642         * tests/test-sinh.c: New file.
7643
7644         Tests for module 'sin'.
7645         * modules/sin-tests: New file.
7646         * tests/test-sin.c: New file.
7647
7648         Tests for module 'rint'.
7649         * modules/rint-tests: New file.
7650         * tests/test-rint.c: New file.
7651
7652         Tests for module 'remainder'.
7653         * modules/remainder-tests: New file.
7654         * tests/test-remainder.c: New file.
7655
7656         Tests for module 'pow'.
7657         * modules/pow-tests: New file.
7658         * tests/test-pow.c: New file.
7659
7660         Tests for module 'nextafter'.
7661         * modules/nextafter-tests: New file.
7662         * tests/test-nextafter.c: New file.
7663
7664         Tests for module 'modf'.
7665         * modules/modf-tests: New file.
7666         * tests/test-modf.c: New file.
7667
7668         Tests for module 'logb'.
7669         * modules/logb-tests: New file.
7670         * tests/test-logb.c: New file.
7671
7672         Tests for module 'log1p'.
7673         * modules/log1p-tests: New file.
7674         * tests/test-log1p.c: New file.
7675
7676         Tests for module 'log10'.
7677         * modules/log10-tests: New file.
7678         * tests/test-log10.c: New file.
7679
7680         Tests for module 'log'.
7681         * modules/log-tests: New file.
7682         * tests/test-log.c: New file.
7683
7684         Tests for module 'lgamma'.
7685         * modules/lgamma-tests: New file.
7686         * tests/test-lgamma.c: New file.
7687
7688         Tests for module 'ldexp'.
7689         * modules/ldexp-tests: New file.
7690         * tests/test-ldexp.c: New file.
7691
7692         Tests for module 'jn'.
7693         * modules/jn-tests: New file.
7694         * tests/test-jn.c: New file.
7695
7696         Tests for module 'j1'.
7697         * modules/j1-tests: New file.
7698         * tests/test-j1.c: New file.
7699
7700         Tests for module 'j0'.
7701         * modules/j0-tests: New file.
7702         * tests/test-j0.c: New file.
7703
7704         Tests for module 'hypot'.
7705         * modules/hypot-tests: New file.
7706         * tests/test-hypot.c: New file.
7707
7708         Tests for module 'fmod'.
7709         * modules/fmod-tests: New file.
7710         * tests/test-fmod.c: New file.
7711
7712         Tests for module 'fabs'.
7713         * modules/fabs-tests: New file.
7714         * tests/test-fabs.c: New file.
7715
7716         Tests for module 'exp'.
7717         * modules/exp-tests: New file.
7718         * tests/test-exp.c: New file.
7719
7720         Tests for module 'erfc'.
7721         * modules/erfc-tests: New file.
7722         * tests/test-erfc.c: New file.
7723
7724         Tests for module 'erf'.
7725         * modules/erf-tests: New file.
7726         * tests/test-erf.c: New file.
7727
7728         Tests for module 'cosh'.
7729         * modules/cosh-tests: New file.
7730         * tests/test-cosh.c: New file.
7731
7732         Tests for module 'cos'.
7733         * modules/cos-tests: New file.
7734         * tests/test-cos.c: New file.
7735
7736         Tests for module 'copysign'.
7737         * modules/copysign-tests: New file.
7738         * tests/test-copysign.c: New file.
7739
7740         Tests for module 'cbrt'.
7741         * modules/cbrt-tests: New file.
7742         * tests/test-cbrt.c: New file.
7743
7744         Tests for module 'atan2'.
7745         * modules/atan2-tests: New file.
7746         * tests/test-atan2.c: New file.
7747
7748         Tests for module 'atan'.
7749         * modules/atan-tests: New file.
7750         * tests/test-atan.c: New file.
7751
7752         Tests for module 'asin'.
7753         * modules/asin-tests: New file.
7754         * tests/test-asin.c: New file.
7755
7756         Tests for module 'acos'.
7757         * modules/acos-tests: New file.
7758         * tests/test-acos.c: New file.
7759
7760 2010-01-24  Bruno Haible  <bruno@clisp.org>
7761
7762         Fix tests for common <math.h> functions.
7763         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7764         code snippet that references the function pointer, rather than merely
7765         calling the function. Substitute the FUNC_LIBM variable.
7766         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7767         * modules/acos (configure.ac): Likewise.
7768         * modules/asin (configure.ac): Likewise.
7769         * modules/atan (configure.ac): Likewise.
7770         * modules/atan2 (configure.ac): Likewise.
7771         * modules/cbrt (configure.ac): Likewise.
7772         * modules/copysign (configure.ac): Likewise.
7773         * modules/cos (configure.ac): Likewise.
7774         * modules/cosh (configure.ac): Likewise.
7775         * modules/erf (configure.ac): Likewise.
7776         * modules/erfc (configure.ac): Likewise.
7777         * modules/exp (configure.ac): Likewise.
7778         * modules/fabs (configure.ac): Likewise.
7779         * modules/fmod (configure.ac): Likewise.
7780         * modules/hypot (configure.ac): Likewise.
7781         * modules/j0 (configure.ac): Likewise.
7782         * modules/j1 (configure.ac): Likewise.
7783         * modules/jn (configure.ac): Likewise.
7784         * modules/ldexp (configure.ac): Likewise.
7785         * modules/lgamma (configure.ac): Likewise.
7786         * modules/log (configure.ac): Likewise.
7787         * modules/log10 (configure.ac): Likewise.
7788         * modules/log1p (configure.ac): Likewise.
7789         * modules/logb (configure.ac): Likewise.
7790         * modules/modf (configure.ac): Likewise.
7791         * modules/nextafter (configure.ac): Likewise.
7792         * modules/pow (configure.ac): Likewise.
7793         * modules/remainder (configure.ac): Likewise.
7794         * modules/rint (configure.ac): Likewise.
7795         * modules/sin (configure.ac): Likewise.
7796         * modules/sinh (configure.ac): Likewise.
7797         * modules/tan (configure.ac): Likewise.
7798         * modules/tanh (configure.ac): Likewise.
7799         * modules/y0 (configure.ac): Likewise.
7800         * modules/y1 (configure.ac): Likewise.
7801         * modules/yn (configure.ac): Likewise.
7802
7803 2010-01-24  Bruno Haible  <bruno@clisp.org>
7804
7805         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7806         * tests/test-acosl.c (x): New variable.
7807         (main): Store argument in x and fetch it from x.
7808         * tests/test-asinl.c (x): New variable.
7809         (main): Store argument in x and fetch it from x.
7810         * tests/test-atanl.c (x): New variable.
7811         (main): Store argument in x and fetch it from x.
7812         * tests/test-cosl.c (x): New variable.
7813         (main): Store argument in x and fetch it from x.
7814         * tests/test-expl.c (x): New variable.
7815         (main): Store argument in x and fetch it from x.
7816         * tests/test-logl.c (x): New variable.
7817         (main): Store argument in x and fetch it from x.
7818         * tests/test-sinl.c (x): New variable.
7819         (main): Store argument in x and fetch it from x.
7820         * tests/test-sqrtl.c (x): New variable.
7821         (main): Store argument in x and fetch it from x.
7822         * tests/test-tanl.c (x): New variable.
7823         (main): Store argument in x and fetch it from x.
7824
7825 2010-01-24  Bruno Haible  <bruno@clisp.org>
7826
7827         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7828         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7829         assignments to the initial TESTS_ENVIRONMENT.
7830         * doc/gnulib.texi (Unit test modules): Document it.
7831         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7832         TESTS_ENVIRONMENT.
7833         * modules/btowc-tests (Makefile.am): Likewise.
7834         * modules/c-stack-tests (Makefile.am): Likewise.
7835         * modules/c-strcase-tests (Makefile.am): Likewise.
7836         * modules/copy-file-tests (Makefile.am): Likewise.
7837         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7838         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7839         * modules/mbrtowc-tests (Makefile.am): Likewise.
7840         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7841         * modules/mbscasestr-tests (Makefile.am): Likewise.
7842         * modules/mbschr-tests (Makefile.am): Likewise.
7843         * modules/mbscspn-tests (Makefile.am): Likewise.
7844         * modules/mbsinit-tests (Makefile.am): Likewise.
7845         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7846         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7847         * modules/mbspbrk-tests (Makefile.am): Likewise.
7848         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7849         * modules/mbsrchr-tests (Makefile.am): Likewise.
7850         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7851         * modules/mbsspn-tests (Makefile.am): Likewise.
7852         * modules/mbsstr-tests (Makefile.am): Likewise.
7853         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7854         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7855         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7856         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7857         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7858         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7859         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7860         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7861         * modules/wcrtomb-tests (Makefile.am): Likewise.
7862         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7863         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7864         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
7865         assignments from TESTS_ENVIRONMENT.
7866         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
7867         augmentation.
7868         * modules/argp-version-etc-tests (Makefile.am): Likewise.
7869         * modules/atexit-tests (Makefile.am): Likewise.
7870         * modules/binary-io-tests (Makefile.am): Likewise.
7871         * modules/closein-tests (Makefile.am): Likewise.
7872         * modules/dprintf-posix-tests (Makefile.am): Likewise.
7873         * modules/exclude-tests (Makefile.am): Likewise.
7874         * modules/fflush-tests (Makefile.am): Likewise.
7875         * modules/fpending-tests (Makefile.am): Likewise.
7876         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7877         * modules/freadahead-tests (Makefile.am): Likewise.
7878         * modules/freadptr-tests (Makefile.am): Likewise.
7879         * modules/freadseek-tests (Makefile.am): Likewise.
7880         * modules/fseek-tests (Makefile.am): Likewise.
7881         * modules/fseeko-tests (Makefile.am): Likewise.
7882         * modules/ftell-tests (Makefile.am): Likewise.
7883         * modules/ftello-tests (Makefile.am): Likewise.
7884         * modules/idpriv-drop-tests (Makefile.am): Likewise.
7885         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
7886         * modules/lseek-tests (Makefile.am): Likewise.
7887         * modules/parse-duration-tests (Makefile.am): Likewise.
7888         * modules/perror-tests (Makefile.am): Likewise.
7889         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
7890         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
7891         * modules/pipe-tests (Makefile.am): Likewise.
7892         * modules/pread-tests (Makefile.am): Likewise.
7893         * modules/printf-posix-tests (Makefile.am): Likewise.
7894         * modules/select-tests (Makefile.am): Likewise.
7895         * modules/sigpipe-tests (Makefile.am): Likewise.
7896         * modules/tsearch-tests (Makefile.am): Likewise.
7897         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7898         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7899         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7900         * modules/uniwidth/width-tests (Makefile.am): Likewise.
7901         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
7902         * modules/version-etc-tests (Makefile.am): Likewise.
7903         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7904         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7905         * modules/xalloc-die-tests (Makefile.am): Likewise.
7906         * modules/xprintf-posix-tests (Makefile.am): Likewise.
7907         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7908         * modules/xstrtol-tests (Makefile.am): Likewise.
7909         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7910         * modules/yesno-tests (Makefile.am): Likewise.
7911         Suggested by Jim Meyering.
7912
7913 2010-01-24  Bruno Haible  <bruno@clisp.org>
7914
7915         More documentation.
7916         * doc/gnulib.texi (Writing modules): New chapter.
7917         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
7918         the new chapter.
7919
7920 2010-01-24  Jim Meyering  <meyering@redhat.com>
7921
7922         maint.mk: do not prepend "./" after filtering
7923         * top/maint.mk (_prepend_srcdir_prefix): New variable
7924         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
7925         "./" when $(srcdir) is ".".
7926
7927         define STREQ(a,b) consistently, removing useless parentheses
7928         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
7929         since the only risk is that "a" or "b" contains an unparenthesized
7930         comma, but if either did that, STREQ would have 3 or more arguments.
7931         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
7932         * lib/fts.c (STREQ): Remove unnecessary parentheses.
7933         * lib/hash-triple.c (STREQ): Likewise.
7934         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
7935         * lib/getugroups.c (STREQ): Likewise.
7936
7937 2010-01-23  Jim Meyering  <meyering@redhat.com>
7938
7939         maint.mk: fix syntax-check in a non-srcdir build directory
7940         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
7941         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
7942
7943 2010-01-22  Jim Meyering  <meyering@redhat.com>
7944
7945         userspec: add unit tests
7946         * tests/test-userspec.c: New file.
7947         * modules/userspec-tests: Likewise.
7948
7949 2010-01-21  Jim Meyering  <meyering@redhat.com>
7950
7951         maint.mk: handle source file names containing "." robustly
7952         * top/maint.mk (_dot_escaped_srcdir): Define.
7953         (VC_LIST): Use it in LHS of sed substitution.
7954
7955 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
7956
7957         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
7958         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
7959         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
7960         from a non-srcdir build.
7961
7962 2010-01-20  Eric Blake  <ebb9@byu.net>
7963
7964         warn-on-use: use instead of link-warning
7965         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
7966         * modules/unistd (Depends-on, Makefile.am): Likewise.
7967         * modules/arpa_inet (Depends-on): Replace link-warning with
7968         warn-on-use.
7969         (Makefile.am): Update rules accordingly.
7970         * modules/ctype (Depends-on, Makefile.am): Likewise.
7971         * modules/dirent (Depends-on, Makefile.am): Likewise.
7972         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
7973         * modules/inttypes (Depends-on, Makefile.am): Likewise.
7974         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7975         * modules/locale (Depends-on, Makefile.am): Likewise.
7976         * modules/math (Depends-on, Makefile.am): Likewise.
7977         * modules/search (Depends-on, Makefile.am): Likewise.
7978         * modules/signal (Depends-on, Makefile.am): Likewise.
7979         * modules/spawn (Depends-on, Makefile.am): Likewise.
7980         * modules/stdlib (Depends-on, Makefile.am): Likewise.
7981         * modules/string (Depends-on, Makefile.am): Likewise.
7982         * modules/strings (Depends-on, Makefile.am): Likewise.
7983         * modules/sys_file (Depends-on, Makefile.am): Likewise.
7984         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
7985         * modules/sys_select (Depends-on, Makefile.am): Likewise.
7986         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
7987         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
7988         * modules/sys_times (Depends-on, Makefile.am): Likewise.
7989         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7990         * modules/wchar (Depends-on, Makefile.am): Likewise.
7991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
7992         should be poisoned.
7993         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
7994         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
7995         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
7996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7997         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7998         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7999         * m4/math_h.m4 (gl_MATH_H): Likewise.
8000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8001         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8002         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8003         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8004         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8006         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8007         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8008         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8009         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8010         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8012         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8013         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8014         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8015         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8016         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8017         GL_LINK_WARNING.
8018         * lib/ctype.in.h: Likewise.
8019         * lib/dirent.in.h: Likewise.
8020         * lib/fcntl.in.h: Likewise.
8021         * lib/inttypes.in.h: Likewise.
8022         * lib/langinfo.in.h: Likewise.
8023         * lib/locale.in.h: Likewise.
8024         * lib/math.in.h: Likewise.
8025         * lib/search.in.h: Likewise.
8026         * lib/signal.in.h: Likewise.
8027         * lib/spawn.in.h: Likewise.
8028         * lib/stdio.in.h: Likewise.
8029         * lib/stdlib.in.h: Likewise.
8030         * lib/string.in.h: Likewise.
8031         * lib/strings.in.h: Likewise.
8032         * lib/sys_file.in.h: Likewise.
8033         * lib/sys_ioctl.in.h: Likewise.
8034         * lib/sys_select.in.h: Likewise.
8035         * lib/sys_socket.in.h: Likewise.
8036         * lib/sys_stat.in.h: Likewise.
8037         * lib/sys_times.in.h: Likewise.
8038         * lib/sys_utsname.in.h: Likewise.
8039         * lib/unistd.in.h: Likewise.
8040         * lib/wchar.in.h: Likewise.
8041
8042 2010-01-20  Bruno Haible  <bruno@clisp.org>
8043
8044         Avoid duplicate -lm.
8045         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8046         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8048         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8049         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8050         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8051         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8052         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8053         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8054         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8055         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8056         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8057         Reported by Paolo Bonzini.
8058
8059 2010-01-19  Bruno Haible  <bruno@clisp.org>
8060
8061         langinfo, nl_langinfo: Relicense under LGPLv2+.
8062         * modules/langinfo (License): Change to LGPLv2+.
8063         * modules/nl_langinfo (License): Likewise.
8064         Patch by David Lutterkort <lutter@redhat.com>.
8065
8066 2010-01-19  Bruno Haible  <bruno@clisp.org>
8067
8068         Avoid compilation error with cc on OSF/1 5.1.
8069         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8070         statement, not before.
8071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8072
8073 2010-01-18  Bruno Haible  <bruno@clisp.org>
8074
8075         Avoid a link error due to the __printf__ symbol.
8076         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8077         and 2.6.x.
8078         (__format__, __printf__): Remove definitions.
8079         * lib/argp-fmtstream.h: Likewise.
8080         * lib/argp.h: Likewise.
8081         * lib/error.h: Likewise.
8082         * lib/vasnprintf.h: Likewise.
8083         * lib/xprintf.h: Likewise.
8084         * lib/xvasprintf.h: Likewise.
8085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8086
8087 2010-01-18  Bruno Haible  <bruno@clisp.org>
8088
8089         Tests for module 'tanl'.
8090         * modules/tanl-tests: New file.
8091         * tests/test-tanl.c: New file.
8092
8093         Tests for module 'sqrtl'.
8094         * modules/sqrtl-tests: New file.
8095         * tests/test-sqrtl.c: New file.
8096
8097         Tests for module 'sinl'.
8098         * modules/sinl-tests: New file.
8099         * tests/test-sinl.c: New file.
8100
8101         Tests for module 'logl'.
8102         * modules/logl-tests: New file.
8103         * tests/test-logl.c: New file.
8104
8105         Tests for module 'expl'.
8106         * modules/expl-tests: New file.
8107         * tests/test-expl.c: New file.
8108
8109         Tests for module 'cosl'.
8110         * modules/cosl-tests: New file.
8111         * tests/test-cosl.c: New file.
8112
8113         Tests for module 'atanl'.
8114         * modules/atanl-tests: New file.
8115         * tests/test-atanl.c: New file.
8116
8117         Tests for module 'asinl'.
8118         * modules/asinl-tests: New file.
8119         * tests/test-asinl.c: New file.
8120
8121         Tests for module 'acosl'.
8122         * modules/acosl-tests: New file.
8123         * tests/test-acosl.c: New file.
8124
8125         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8126         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8127         tanl): Use the standard gnulib idiom.
8128         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8129         * lib/sinl.c: Likewise.
8130         * lib/tanl.c: Don't include trigl.c.
8131         (kernel_tanl): Make static.
8132         * lib/sincosl.c: Include trigl.h first.
8133         * lib/trigl.c: Likewise.
8134         * m4/acosl.m4: New file.
8135         * m4/asinl.m4: New file.
8136         * m4/atanl.m4: New file.
8137         * m4/cosl.m4: New file.
8138         * m4/expl.m4: New file.
8139         * m4/logl.m4: New file.
8140         * m4/sinl.m4: New file.
8141         * m4/sqrtl.m4: New file.
8142         * m4/tanl.m4: New file.
8143         * m4/mathl.m4: Remove file.
8144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8145         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8146         Don't initialize GNULIB_MATHL.
8147         * modules/acosl: New file.
8148         * modules/asinl: New file.
8149         * modules/atanl: New file.
8150         * modules/cosl: New file.
8151         * modules/expl: New file.
8152         * modules/logl: New file.
8153         * modules/sinl: New file.
8154         * modules/sqrtl: New file.
8155         * modules/tanl: New file.
8156         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8157         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8158         substitute GNULIB_MATHL.
8159         * modules/mathl: Rewritten.
8160         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8161         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8162         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8163         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8164         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8165         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8166         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8167         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8168         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8169
8170 2010-01-18  Bruno Haible  <bruno@clisp.org>
8171
8172         sqrt: Make gl_FUNC_SQRT requirable.
8173         * m4/sqrt.m4: New file.
8174         * modules/sqrt (Files): Add it.
8175         (configure.ac): Invoke gl_FUNC_SQRT.
8176
8177 2010-01-18  Bruno Haible  <bruno@clisp.org>
8178
8179         New modules for common <math.h> functions.
8180         * m4/mathfunc.m4: New file.
8181         * modules/acos: New file.
8182         * modules/asin: New file.
8183         * modules/atan: New file.
8184         * modules/atan2: New file.
8185         * modules/cbrt: New file.
8186         * modules/copysign: New file.
8187         * modules/cos: New file.
8188         * modules/cosh: New file.
8189         * modules/erf: New file.
8190         * modules/erfc: New file.
8191         * modules/exp: New file.
8192         * modules/fabs: New file.
8193         * modules/fmod: New file.
8194         * modules/hypot: New file.
8195         * modules/j0: New file.
8196         * modules/j1: New file.
8197         * modules/jn: New file.
8198         * modules/ldexp: New file.
8199         * modules/lgamma: New file.
8200         * modules/log: New file.
8201         * modules/log10: New file.
8202         * modules/log1p: New file.
8203         * modules/logb: New file.
8204         * modules/modf: New file.
8205         * modules/nextafter: New file.
8206         * modules/pow: New file.
8207         * modules/remainder: New file.
8208         * modules/rint: New file.
8209         * modules/sin: New file.
8210         * modules/sinh: New file.
8211         * modules/sqrt: New file.
8212         * modules/tan: New file.
8213         * modules/tanh: New file.
8214         * modules/y0: New file.
8215         * modules/y1: New file.
8216         * modules/yn: New file.
8217         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8218         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8219         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8220         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8221         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8222         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8223         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8224         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8225         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8226         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8227         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8228         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8229         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8230         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8231         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8232         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8233         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8234         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8235         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8236         * doc/posix-functions/log.texi: Mention the 'log' module.
8237         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8238         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8239         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8240         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8241         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8242         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8243         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8244         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8245         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8246         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8247         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8248         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8249         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8250         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8251         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8252         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8253
8254 2010-01-18  Jim Meyering  <meyering@redhat.com>
8255
8256         ignore-value: relax license to LGPLv2+
8257         * modules/ignore-value (License): Relax to LGPLv2+.
8258
8259         getdate: don't leak when TZ contains two or more '"'s
8260         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8261         double quote in TZ after the first one.
8262
8263         readtokens: do not leak internal token_lengths buffer
8264         * lib/readtokens.c (readtokens): Free the local, lengths,
8265         when the supplied "token_lengths" parameter is NULL.
8266
8267 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8268
8269         Fix a couple of missing LIBTHREAD link failures on AIX.
8270         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8271         $(LIBTHREAD).
8272         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8273
8274         Link test-poll against INET_PTON_LIB.
8275         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8276         for inet_pton on Solaris 10.
8277
8278 2010-01-17  Bruno Haible  <bruno@clisp.org>
8279
8280         unistdio/*-sprintf: Fix typo in module description.
8281         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8282         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8283         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8284         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8285         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8286         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8287         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8288         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8289
8290 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8291
8292         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8293         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8294         variables in shell case patterns, for AIX and HP-UX ksh.
8295
8296         Split large sed scripts, for HP-UX sed.
8297         * modules/stdio: Split sed scripts around 50 sed commands,
8298         to avoid HP-UX limit of 99 commands, in the near future.
8299         * modules/string: Likewise.
8300         * modules/unistd: Likewise.
8301
8302         gnulib-tool: avoid writing in the current directory.
8303         * gnulib-tool (func_emit_lib_Makefile_am)
8304         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8305         not in the current directory, so concurrent gnulib-tool
8306         instances do not interfere.
8307
8308 2010-01-16  Jim Meyering  <meyering@redhat.com>
8309
8310         doc: update users.txt
8311         * users.txt: Add grep.
8312         (diffutils, gzip): Update URLs.
8313
8314 2010-01-12  Bruno Haible  <bruno@clisp.org>
8315
8316         posix_spawn: Avoid test failure on Cygwin.
8317         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8318         characters.
8319         Reported by Simon Josefsson.
8320
8321 2010-01-12  Bruno Haible  <bruno@clisp.org>
8322
8323         * tests/test-cond.c (main): When skipping the test, show the reason.
8324
8325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8326
8327         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8328
8329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8330
8331         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8332         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8333
8334 2010-01-12  Eric Blake  <ebb9@byu.net>
8335
8336         build: guarantee AS_VAR_IF
8337         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8338         (gl_AS_VAR_IF): Move...
8339         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8340         Reported by Simon Josefsson.
8341
8342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8343
8344         * lib/stdio.in.h: Fix typo.
8345
8346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8347
8348         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8349         libgpg-error.
8350
8351 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8352
8353         * tests/test-xalloc-die.sh: Use $EXEEXT.
8354
8355 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8356             Bruno Haible  <bruno@clisp.org>
8357
8358         getlogin, getlogin_r: Avoid test failure.
8359         * tests/test-getlogin.c: Include <stdio.h>.
8360         (main): Skip the test when the function fails because stdin is not a
8361         tty.
8362         * tests/test-getlogin_r.c: Include <stdio.h>.
8363         (main): Skip the test when the function fails because stdin is not a
8364         tty.
8365
8366 2010-01-11  Eric Blake  <ebb9@byu.net>
8367
8368         tests: avoid more large file warnings
8369         * tests/test-fflush.c: Avoid warning about ftell use.
8370         * tests/test-fseek.c: Avoid warning about fseek use.
8371
8372 2010-01-10  Bruno Haible  <bruno@clisp.org>
8373
8374         nproc: Work better on Linux when /proc and /sys are not mounted.
8375         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8376         as lower bound when, on glibc/Linux systems,
8377         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8378         Suggested by Pádraig Brady <P@draigbrady.com>.
8379         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8380
8381         nproc: Refactor.
8382         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8383         extracted from num_processors.
8384         (num_processors): Call it.
8385
8386 2010-01-11  Jim Meyering  <meyering@redhat.com>
8387
8388         utimecmp: avoid new warning from upcoming gcc-4.5.0
8389         * lib/utimecmp.c (BILLION): Define using #define rather than an
8390         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8391
8392 2010-01-11  Eric Blake  <ebb9@byu.net>
8393
8394         math: add portability warnings for classification macros
8395         * modules/math (Depends-on): Add warn-on-use.
8396         (Makefile.am): Provide new substitutions.
8397         * m4/math_h.m4 (gl_MATH_H): Require inline.
8398         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8399         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8400         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8401         implement warnings.
8402
8403         unistd: warn on use of environ without module
8404         * modules/unistd (Depends-on): Add warn-on-use.
8405         (Makefile.am): Provide new substitutions.
8406         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8407         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8408
8409         stdio: warn on suspicious uses
8410         * modules/stdio (Depends-on): Add warn-on-use.
8411         (Makefile.am): Provide new substitutions.
8412         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8413         fseeko.
8414         * lib/stdio.in.h (gets): Always warn on use.
8415         (fseek, ftell): Adjust when warnings are issued, and honor
8416         _GL_NO_LARGE_FILES as a way to silence the warning.
8417         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8418         any warning about large file offsets.
8419         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8420         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8421         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8422         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8423         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8424         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8425         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8426         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8427
8428         warn-on-use: new module
8429         * modules/warn-on-use: New file.
8430         * build-aux/warn-on-use.h: Likewise.
8431         * m4/warn-on-use.m4: Likewise.
8432         * MODULES.html.sh (Support for building): Mention it.
8433
8434 2010-01-10  Bruno Haible  <bruno@clisp.org>
8435
8436         Tests for module 'unistr/u32-strdup'.
8437         * modules/unistr/u32-strdup-tests: New file.
8438         * tests/unistr/test-u32-strdup.c: New file.
8439
8440         Tests for module 'unistr/u16-strdup'.
8441         * modules/unistr/u16-strdup-tests: New file.
8442         * tests/unistr/test-u16-strdup.c: New file.
8443
8444         Tests for module 'unistr/u8-strdup'.
8445         * modules/unistr/u8-strdup-tests: New file.
8446         * tests/unistr/test-u8-strdup.c: New file.
8447         * tests/unistr/test-strdup.h: New file.
8448
8449         Tests for module 'unistr/u32-strncmp'.
8450         * modules/unistr/u32-strncmp-tests: New file.
8451         * tests/unistr/test-u32-strncmp.c: New file.
8452
8453         Tests for module 'unistr/u16-strncmp'.
8454         * modules/unistr/u16-strncmp-tests: New file.
8455         * tests/unistr/test-u16-strncmp.c: New file.
8456
8457         Tests for module 'unistr/u8-strncmp'.
8458         * modules/unistr/u8-strncmp-tests: New file.
8459         * tests/unistr/test-u8-strncmp.c: New file.
8460         * tests/unistr/test-strncmp.h: New file.
8461
8462         Tests for module 'unistr/u32-strcoll'.
8463         * modules/unistr/u32-strcoll-tests: New file.
8464         * tests/unistr/test-u32-strcoll.c: New file.
8465
8466         Tests for module 'unistr/u16-strcoll'.
8467         * modules/unistr/u16-strcoll-tests: New file.
8468         * tests/unistr/test-u16-strcoll.c: New file.
8469
8470         Tests for module 'unistr/u8-strcoll'.
8471         * modules/unistr/u8-strcoll-tests: New file.
8472         * tests/unistr/test-u8-strcoll.c: New file.
8473
8474         Tests for module 'unistr/u32-strcmp'.
8475         * modules/unistr/u32-strcmp-tests: New file.
8476         * tests/unistr/test-u32-strcmp.c: New file.
8477         * tests/unistr/test-u32-strcmp.h: New file.
8478
8479         Tests for module 'unistr/u16-strcmp'.
8480         * modules/unistr/u16-strcmp-tests: New file.
8481         * tests/unistr/test-u16-strcmp.c: New file.
8482         * tests/unistr/test-u16-strcmp.h: New file.
8483
8484         Tests for module 'unistr/u8-strcmp'.
8485         * modules/unistr/u8-strcmp-tests: New file.
8486         * tests/unistr/test-u8-strcmp.c: New file.
8487         * tests/unistr/test-u8-strcmp.h: New file.
8488         * tests/unistr/test-strcmp.h: New file.
8489
8490         Tests for module 'unistr/u32-strncat'.
8491         * modules/unistr/u32-strncat-tests: New file.
8492         * tests/unistr/test-u32-strncat.c: New file.
8493
8494         Tests for module 'unistr/u16-strncat'.
8495         * modules/unistr/u16-strncat-tests: New file.
8496         * tests/unistr/test-u16-strncat.c: New file.
8497
8498         Tests for module 'unistr/u8-strncat'.
8499         * modules/unistr/u8-strncat-tests: New file.
8500         * tests/unistr/test-u8-strncat.c: New file.
8501         * tests/unistr/test-strncat.h: New file.
8502
8503         Tests for module 'unistr/u32-strcat'.
8504         * modules/unistr/u32-strcat-tests: New file.
8505         * tests/unistr/test-u32-strcat.c: New file.
8506
8507         Tests for module 'unistr/u16-strcat'.
8508         * modules/unistr/u16-strcat-tests: New file.
8509         * tests/unistr/test-u16-strcat.c: New file.
8510
8511         Tests for module 'unistr/u8-strcat'.
8512         * modules/unistr/u8-strcat-tests: New file.
8513         * tests/unistr/test-u8-strcat.c: New file.
8514         * tests/unistr/test-strcat.h: New file.
8515
8516         Tests for module 'unistr/u32-stpncpy'.
8517         * modules/unistr/u32-stpncpy-tests: New file.
8518         * tests/unistr/test-u32-stpncpy.c: New file.
8519
8520         Tests for module 'unistr/u16-stpncpy'.
8521         * modules/unistr/u16-stpncpy-tests: New file.
8522         * tests/unistr/test-u16-stpncpy.c: New file.
8523
8524         Tests for module 'unistr/u8-stpncpy'.
8525         * modules/unistr/u8-stpncpy-tests: New file.
8526         * tests/unistr/test-u8-stpncpy.c: New file.
8527         * tests/unistr/test-stpncpy.h: New file.
8528
8529         Tests for module 'unistr/u32-strncpy'.
8530         * modules/unistr/u32-strncpy-tests: New file.
8531         * tests/unistr/test-u32-strncpy.c: New file.
8532
8533         Tests for module 'unistr/u16-strncpy'.
8534         * modules/unistr/u16-strncpy-tests: New file.
8535         * tests/unistr/test-u16-strncpy.c: New file.
8536
8537         Tests for module 'unistr/u8-strncpy'.
8538         * modules/unistr/u8-strncpy-tests: New file.
8539         * tests/unistr/test-u8-strncpy.c: New file.
8540         * tests/unistr/test-strncpy.h: New file.
8541
8542         Tests for module 'unistr/u32-stpcpy'.
8543         * modules/unistr/u32-stpcpy-tests: New file.
8544         * tests/unistr/test-u32-stpcpy.c: New file.
8545
8546         Tests for module 'unistr/u16-stpcpy'.
8547         * modules/unistr/u16-stpcpy-tests: New file.
8548         * tests/unistr/test-u16-stpcpy.c: New file.
8549
8550         Tests for module 'unistr/u8-stpcpy'.
8551         * modules/unistr/u8-stpcpy-tests: New file.
8552         * tests/unistr/test-u8-stpcpy.c: New file.
8553         * tests/unistr/test-stpcpy.h: New file.
8554
8555         Tests for module 'unistr/u32-strcpy'.
8556         * modules/unistr/u32-strcpy-tests: New file.
8557         * tests/unistr/test-u32-strcpy.c: New file.
8558
8559         Tests for module 'unistr/u16-strcpy'.
8560         * modules/unistr/u16-strcpy-tests: New file.
8561         * tests/unistr/test-u16-strcpy.c: New file.
8562
8563         Tests for module 'unistr/u8-strcpy'.
8564         * modules/unistr/u8-strcpy-tests: New file.
8565         * tests/unistr/test-u8-strcpy.c: New file.
8566         * tests/unistr/test-strcpy.h: New file.
8567
8568         Tests for module 'unistr/u32-strnlen'.
8569         * modules/unistr/u32-strnlen-tests: New file.
8570         * tests/unistr/test-u32-strnlen.c: New file.
8571
8572         Tests for module 'unistr/u16-strnlen'.
8573         * modules/unistr/u16-strnlen-tests: New file.
8574         * tests/unistr/test-u16-strnlen.c: New file.
8575
8576         Tests for module 'unistr/u8-strnlen'.
8577         * modules/unistr/u8-strnlen-tests: New file.
8578         * tests/unistr/test-u8-strnlen.c: New file.
8579         * tests/unistr/test-strnlen.h: New file.
8580
8581         Tests for module 'unistr/u32-strlen'.
8582         * modules/unistr/u32-strlen-tests: New file.
8583         * tests/unistr/test-u32-strlen.c: New file.
8584
8585         Tests for module 'unistr/u16-strlen'.
8586         * modules/unistr/u16-strlen-tests: New file.
8587         * tests/unistr/test-u16-strlen.c: New file.
8588
8589         Tests for module 'unistr/u8-strlen'.
8590         * modules/unistr/u8-strlen-tests: New file.
8591         * tests/unistr/test-u8-strlen.c: New file.
8592
8593         Tests for module 'unistr/u32-prev'.
8594         * modules/unistr/u32-prev-tests: New file.
8595         * tests/unistr/test-u32-prev.c: New file.
8596
8597         Tests for module 'unistr/u16-prev'.
8598         * modules/unistr/u16-prev-tests: New file.
8599         * tests/unistr/test-u16-prev.c: New file.
8600
8601         Tests for module 'unistr/u8-prev'.
8602         * modules/unistr/u8-prev-tests: New file.
8603         * tests/unistr/test-u8-prev.c: New file.
8604
8605         Tests for module 'unistr/u32-next'.
8606         * modules/unistr/u32-next-tests: New file.
8607         * tests/unistr/test-u32-next.c: New file.
8608
8609         Tests for module 'unistr/u16-next'.
8610         * modules/unistr/u16-next-tests: New file.
8611         * tests/unistr/test-u16-next.c: New file.
8612
8613         Tests for module 'unistr/u8-next'.
8614         * modules/unistr/u8-next-tests: New file.
8615         * tests/unistr/test-u8-next.c: New file.
8616
8617         Tests for module 'unistr/u32-strmbtouc'.
8618         * modules/unistr/u32-strmbtouc-tests: New file.
8619         * tests/unistr/test-u32-strmbtouc.c: New file.
8620
8621         Tests for module 'unistr/u16-strmbtouc'.
8622         * modules/unistr/u16-strmbtouc-tests: New file.
8623         * tests/unistr/test-u16-strmbtouc.c: New file.
8624
8625         Tests for module 'unistr/u8-strmbtouc'.
8626         * modules/unistr/u8-strmbtouc-tests: New file.
8627         * tests/unistr/test-u8-strmbtouc.c: New file.
8628
8629         Tests for module 'unistr/u32-strmblen'.
8630         * modules/unistr/u32-strmblen-tests: New file.
8631         * tests/unistr/test-u32-strmblen.c: New file.
8632
8633         Tests for module 'unistr/u16-strmblen'.
8634         * modules/unistr/u16-strmblen-tests: New file.
8635         * tests/unistr/test-u16-strmblen.c: New file.
8636
8637         Tests for module 'unistr/u8-strmblen'.
8638         * modules/unistr/u8-strmblen-tests: New file.
8639         * tests/unistr/test-u8-strmblen.c: New file.
8640
8641         Tests for module 'unistr/u32-cpy-alloc'.
8642         * modules/unistr/u32-cpy-alloc-tests: New file.
8643         * tests/unistr/test-u32-cpy-alloc.c: New file.
8644
8645         Tests for module 'unistr/u16-cpy-alloc'.
8646         * modules/unistr/u16-cpy-alloc-tests: New file.
8647         * tests/unistr/test-u16-cpy-alloc.c: New file.
8648
8649         Tests for module 'unistr/u8-cpy-alloc'.
8650         * modules/unistr/u8-cpy-alloc-tests: New file.
8651         * tests/unistr/test-u8-cpy-alloc.c: New file.
8652         * tests/unistr/test-cpy-alloc.h: New file.
8653
8654         Tests for module 'unistr/u32-mbsnlen'.
8655         * modules/unistr/u32-mbsnlen-tests: New file.
8656         * tests/unistr/test-u32-mbsnlen.c: New file.
8657
8658         Tests for module 'unistr/u16-mbsnlen'.
8659         * modules/unistr/u16-mbsnlen-tests: New file.
8660         * tests/unistr/test-u16-mbsnlen.c: New file.
8661
8662         Tests for module 'unistr/u8-mbsnlen'.
8663         * modules/unistr/u8-mbsnlen-tests: New file.
8664         * tests/unistr/test-u8-mbsnlen.c: New file.
8665
8666         Tests for module 'unistr/u32-chr'.
8667         * modules/unistr/u32-chr-tests: New file.
8668         * tests/unistr/test-u32-chr.c: New file.
8669
8670         Tests for module 'unistr/u16-chr'.
8671         * modules/unistr/u16-chr-tests: New file.
8672         * tests/unistr/test-u16-chr.c: New file.
8673
8674         Tests for module 'unistr/u8-chr'.
8675         * modules/unistr/u8-chr-tests: New file.
8676         * tests/unistr/test-u8-chr.c: New file.
8677         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8678
8679         Tests for module 'unistr/u32-cmp2'.
8680         * modules/unistr/u32-cmp2-tests: New file.
8681         * tests/unistr/test-u32-cmp2.c: New file.
8682
8683         Tests for module 'unistr/u16-cmp2'.
8684         * modules/unistr/u16-cmp2-tests: New file.
8685         * tests/unistr/test-u16-cmp2.c: New file.
8686
8687         Tests for module 'unistr/u8-cmp2'.
8688         * modules/unistr/u8-cmp2-tests: New file.
8689         * tests/unistr/test-u8-cmp2.c: New file.
8690         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8691
8692         Tests for module 'unistr/u32-cmp'.
8693         * modules/unistr/u32-cmp-tests: New file.
8694         * tests/unistr/test-u32-cmp.c: New file.
8695
8696         Tests for module 'unistr/u16-cmp'.
8697         * modules/unistr/u16-cmp-tests: New file.
8698         * tests/unistr/test-u16-cmp.c: New file.
8699
8700         Tests for module 'unistr/u8-cmp'.
8701         * modules/unistr/u8-cmp-tests: New file.
8702         * tests/unistr/test-u8-cmp.c: New file.
8703         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8704
8705         Tests for module 'unistr/u32-set'.
8706         * modules/unistr/u32-set-tests: New file.
8707         * tests/unistr/test-u32-set.c: New file.
8708
8709         Tests for module 'unistr/u16-set'.
8710         * modules/unistr/u16-set-tests: New file.
8711         * tests/unistr/test-u16-set.c: New file.
8712
8713         Tests for module 'unistr/u8-set'.
8714         * modules/unistr/u8-set-tests: New file.
8715         * tests/unistr/test-u8-set.c: New file.
8716         * tests/unistr/test-set.h: New file.
8717
8718         Tests for module 'unistr/u32-move'.
8719         * modules/unistr/u32-move-tests: New file.
8720         * tests/unistr/test-u32-move.c: New file.
8721
8722         Tests for module 'unistr/u16-move'.
8723         * modules/unistr/u16-move-tests: New file.
8724         * tests/unistr/test-u16-move.c: New file.
8725
8726         Tests for module 'unistr/u8-move'.
8727         * modules/unistr/u8-move-tests: New file.
8728         * tests/unistr/test-u8-move.c: New file.
8729         * tests/unistr/test-move.h: New file.
8730
8731         Tests for module 'unistr/u32-cpy'.
8732         * modules/unistr/u32-cpy-tests: New file.
8733         * tests/unistr/test-u32-cpy.c: New file.
8734
8735         Tests for module 'unistr/u16-cpy'.
8736         * modules/unistr/u16-cpy-tests: New file.
8737         * tests/unistr/test-u16-cpy.c: New file.
8738
8739         Tests for module 'unistr/u8-cpy'.
8740         * modules/unistr/u8-cpy-tests: New file.
8741         * tests/unistr/test-u8-cpy.c: New file.
8742         * tests/unistr/test-cpy.h: New file.
8743
8744 2010-01-09  Bruno Haible  <bruno@clisp.org>
8745
8746         Tests for module 'unistr/u32-uctomb'.
8747         * modules/unistr/u32-uctomb-tests: New file.
8748         * tests/unistr/test-u32-uctomb.c: New file.
8749
8750         Tests for module 'unistr/u16-uctomb'.
8751         * modules/unistr/u16-uctomb-tests: New file.
8752         * tests/unistr/test-u16-uctomb.c: New file.
8753
8754         Tests for module 'unistr/u8-uctomb'.
8755         * modules/unistr/u8-uctomb-tests: New file.
8756         * tests/unistr/test-u8-uctomb.c: New file.
8757
8758         Tests for module 'unistr/u32-mbtoucr'.
8759         * modules/unistr/u32-mbtoucr-tests: New file.
8760         * tests/unistr/test-u32-mbtoucr.c: New file.
8761
8762         Tests for module 'unistr/u16-mbtoucr'.
8763         * modules/unistr/u16-mbtoucr-tests: New file.
8764         * tests/unistr/test-u16-mbtoucr.c: New file.
8765
8766         Tests for module 'unistr/u8-mbtoucr'.
8767         * modules/unistr/u8-mbtoucr-tests: New file.
8768         * tests/unistr/test-u8-mbtoucr.c: New file.
8769
8770         Tests for module 'unistr/u32-mbtouc'.
8771         * modules/unistr/u32-mbtouc-tests: New file.
8772         * tests/unistr/test-u32-mbtouc.c: New file.
8773
8774         Tests for module 'unistr/u16-mbtouc'.
8775         * modules/unistr/u16-mbtouc-tests: New file.
8776         * tests/unistr/test-u16-mbtouc.c: New file.
8777
8778         Tests for module 'unistr/u8-mbtouc'.
8779         * modules/unistr/u8-mbtouc-tests: New file.
8780         * tests/unistr/test-u8-mbtouc.c: New file.
8781
8782         Tests for module 'unistr/u32-mbtouc-unsafe'.
8783         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8784         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8785         * tests/unistr/test-u32-mbtouc.h: New file.
8786
8787         Tests for module 'unistr/u16-mbtouc-unsafe'.
8788         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8789         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8790         * tests/unistr/test-u16-mbtouc.h: New file.
8791
8792         Tests for module 'unistr/u8-mbtouc-unsafe'.
8793         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8794         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8795         * tests/unistr/test-u8-mbtouc.h: New file.
8796
8797         Tests for module 'unistr/u32-mblen'.
8798         * modules/unistr/u32-mblen-tests: New file.
8799         * tests/unistr/test-u32-mblen.c: New file.
8800
8801         Tests for module 'unistr/u16-mblen'.
8802         * modules/unistr/u16-mblen-tests: New file.
8803         * tests/unistr/test-u16-mblen.c: New file.
8804
8805         Tests for module 'unistr/u8-mblen'.
8806         * modules/unistr/u8-mblen-tests: New file.
8807         * tests/unistr/test-u8-mblen.c: New file.
8808
8809         Tests for module 'unistr/u32-to-u16'.
8810         * modules/unistr/u32-to-u16-tests: New file.
8811         * tests/unistr/test-u32-to-u16.c: New file.
8812
8813         Tests for module 'unistr/u32-to-u8'.
8814         * modules/unistr/u32-to-u8-tests: New file.
8815         * tests/unistr/test-u32-to-u8.c: New file.
8816
8817         Tests for module 'unistr/u16-to-u32'.
8818         * modules/unistr/u16-to-u32-tests: New file.
8819         * tests/unistr/test-u16-to-u32.c: New file.
8820
8821         Tests for module 'unistr/u16-to-u8'.
8822         * modules/unistr/u16-to-u8-tests: New file.
8823         * tests/unistr/test-u16-to-u8.c: New file.
8824
8825         Tests for module 'unistr/u8-to-u32'.
8826         * modules/unistr/u8-to-u32-tests: New file.
8827         * tests/unistr/test-u8-to-u32.c: New file.
8828
8829         Tests for module 'unistr/u8-to-u16'.
8830         * modules/unistr/u8-to-u16-tests: New file.
8831         * tests/unistr/test-u8-to-u16.c: New file.
8832
8833         Tests for module 'unistr/u32-check'.
8834         * modules/unistr/u32-check-tests: New file.
8835         * tests/unistr/test-u32-check.c: New file.
8836
8837         Tests for module 'unistr/u16-check'.
8838         * modules/unistr/u16-check-tests: New file.
8839         * tests/unistr/test-u16-check.c: New file.
8840
8841         Tests for module 'unistr/u8-check'.
8842         * modules/unistr/u8-check-tests: New file.
8843         * tests/unistr/test-u8-check.c: New file.
8844
8845         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
8846         (category_equals): New function.
8847         (main): Add more tests.
8848         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
8849
8850         * tests/unictype/test-bidi_byname.c (main): Add more tests.
8851
8852 2010-01-10  Bruno Haible  <bruno@clisp.org>
8853
8854         unistr/u*-strcoll: Try harder to distinguish different strings.
8855         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
8856         compare s1 and s2 to see if they are different.
8857
8858 2010-01-10  Bruno Haible  <bruno@clisp.org>
8859
8860         unistr/u*-stpncpy: Fix the return value.
8861         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
8862         description of the return value consistent with stpncpy in glibc.
8863         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
8864         written non-NUL unit.
8865
8866 2010-01-10  Bruno Haible  <bruno@clisp.org>
8867
8868         unistr/u*-next: Add missing dependencies.
8869         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
8870         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
8871         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
8872
8873 2010-01-10  Bruno Haible  <bruno@clisp.org>
8874
8875         unistr/u8-mbsnlen: Fix return value for incomplete character.
8876         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
8877         u8_mblen.
8878         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
8879         Remove unistr/u8-mblen.
8880         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
8881         u16_mblen.
8882         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
8883         Remove unistr/u16-mblen.
8884
8885 2010-01-10  Bruno Haible  <bruno@clisp.org>
8886
8887         wchar: Fix compilation error when <wchar.h> is used from coreutils.
8888         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
8889         Reported by Brian Gough <bjg@gnu.org> and
8890         Chris Clayton <chris2553@googlemail.com> via
8891         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
8892
8893 2010-01-09  Bruno Haible  <bruno@clisp.org>
8894
8895         unistr/u16-to-u32: Reject invalid input.
8896         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
8897         u16_mbtouc.
8898         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
8899         Remove unistr/u16-mbtouc.
8900
8901         unistr/u16-to-u8: Reject invalid input.
8902         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
8903         u16_mbtouc.
8904         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
8905         Remove unistr/u16-mbtouc.
8906
8907         unistr/u8-to-u32: Reject invalid input.
8908         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
8909         u8_mbtouc.
8910         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
8911         Remove unistr/u8-mbtouc.
8912
8913         unistr/u8-to-u16: Reject invalid input.
8914         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
8915         u8_mbtouc.
8916         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
8917         Remove unistr/u8-mbtouc.
8918
8919 2010-01-09  Bruno Haible  <bruno@clisp.org>
8920
8921         Tests for module 'getlogin'.
8922         * modules/getlogin-tests: New file.
8923         * tests/test-getlogin.c: New file.
8924
8925         New module 'getlogin'.
8926         * lib/unistd.in.h (getlogin): New declaration.
8927         * lib/getlogin.c: New file.
8928         * m4/getlogin.m4: New file.
8929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
8930         HAVE_GETLOGIN.
8931         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
8932         HAVE_GETLOGIN.
8933         * modules/getlogin: New file.
8934         * doc/posix-functions/getlogin.texi: Mention the new module.
8935         Reported by John W. Eaton <jwe@gnu.org>.
8936
8937 2010-01-09  Bruno Haible  <bruno@clisp.org>
8938
8939         getlogin_r: Support for native Windows.
8940         * lib/getlogin_r.c: Include <windows.h>
8941         (getlogin_r): Implement for native Windows.
8942         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
8943         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
8944         via John W. Eaton <jwe@gnu.org>.
8945
8946 2010-01-09  Bruno Haible  <bruno@clisp.org>
8947
8948         getlogin_r: Small fixes.
8949         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
8950         succeeds.
8951         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
8952         before testing whether getlogin_r is declared. No need to set
8953         HAVE_DECL_GETLOGIN_R to 1.
8954         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
8955
8956 2010-01-09  Bruno Haible  <bruno@clisp.org>
8957
8958         * lib/unistd.in.h (getlogin_r): Add comment.
8959
8960 2010-01-09  Bruno Haible  <bruno@clisp.org>
8961
8962         Tests for module 'getlogin_r'.
8963         * modules/getlogin_r-tests: New file.
8964         * tests/test-getlogin_r.c: New file.
8965
8966 2010-01-09  Jim Meyering  <meyering@redhat.com>
8967
8968         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
8969         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
8970         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
8971
8972 2010-01-08  Simon Josefsson  <simon@josefsson.org>
8973
8974         * lib/dup2.c (rpl_dup2): Improve comment.
8975
8976 2010-01-08  Eric Blake  <ebb9@byu.net>
8977
8978         maint.mk: allow packages to add makefile @@ exceptions
8979         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
8980         (sc_makefile_check): Rename...
8981         (sc_makefile_at_at_check): ...to this, and use hook.
8982
8983         dup2: work around mingw bug
8984         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
8985         Reported by Simon Josefsson.
8986
8987 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
8988
8989         glob: Fix C++ compilation.
8990         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
8991         C++.
8992
8993 2010-01-07  Bruno Haible  <bruno@clisp.org>
8994
8995         Fix indentation of wctype.in.h, broken since 2007-01-06.
8996         * lib/wctype.in.h: Fix indentation of preprocessor directives.
8997
8998 2010-01-07  Bruno Haible  <bruno@clisp.org>
8999
9000         mbslen: Avoid collision with system function.
9001         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9002         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9003         * m4/mbslen.m4: New file.
9004         * modules/mbslen (Files): Add it.
9005         (configure.ac): Invoke gl_MBSLEN.
9006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9007         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9008         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9009         via Ian Beckwith <ianb@erislabs.net>.
9010
9011 2010-01-07  Bruno Haible  <bruno@clisp.org>
9012
9013         dirent: Document the last fix.
9014         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9015
9016 2010-01-07  Bruno Haible  <bruno@clisp.org>
9017
9018         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9019         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9020         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9021         va_list are defined.
9022         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9023         Reported by Eric Blake.
9024
9025 2010-01-07  Bruno Haible  <bruno@clisp.org>
9026
9027         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9028         * modules/xlist (Depends-on): Add 'list',
9029         * modules/xoset (Depends-on): Add 'oset'.
9030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9031
9032 2010-01-07  Bruno Haible  <bruno@clisp.org>
9033
9034         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9035         * doc/posix-functions/strncasecmp.texi: Likewise.
9036
9037 2010-01-07  Bruno Haible  <bruno@clisp.org>
9038
9039         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9040
9041 2010-01-07  John W. Eaton  <jwe@octave.org>
9042
9043         wctype: allow C++ use
9044         * lib/wctype.in.h: Add extern "C" block for C++.
9045
9046 2010-01-06  Eric Blake  <ebb9@byu.net>
9047
9048         maint.mk: detect incorrect GFDL usage
9049         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9050
9051 2010-01-06  Jim Meyering  <meyering@redhat.com>
9052         and Eric Blake  <ebb9@byu.net>
9053
9054         maint.mk: ignore multi-line copyright in NEWS
9055         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9056
9057 2010-01-06  Eric Blake  <ebb9@byu.net>
9058
9059         select: add missing dependency
9060         * modules/select-tests (Depends-on): Move sockets dependency...
9061         * modules/select (Depends-on): ...here.
9062         Reported by Ian Beckwith.
9063
9064         doc: regenerate INSTALL
9065         * doc/INSTALL: Reflect recent autoconf update.
9066         * doc/INSTALL.ISO: Likewise.
9067         * doc/INSTALL.UTF-8: Likewise.
9068
9069         pread: fix compilation on glibc
9070         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9071         Reported by Ralf Wildenhues.
9072
9073         dirent: fix test failure
9074         * lib/dirent.in.h (includes): Guarantee ino_t.
9075         Reported by Ralf Wildenhues.
9076
9077 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9078
9079         linkat, renameat: avoid bad free
9080         * lib/at-func2.c (at_func2): Fix typo.
9081         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9082
9083 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9084
9085         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9086         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9087         to avoid failure of symlink test later.
9088
9089 2010-01-06  Eric Blake  <ebb9@byu.net>
9090
9091         stdio, unistd: guarantee ssize_t
9092         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9093         2008 are exposed when needed.
9094         * lib/stdio.in.h (includes): Likewise.
9095         Reported by Ralf Wildenhues.
9096
9097 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9098
9099         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9100         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9101         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9102
9103 2010-01-06  Jim Meyering  <meyering@redhat.com>
9104
9105         readtokens: this module *does* require xalloc.h
9106         It uses only functions that were omitted by the old syntax-check rule.
9107         * lib/readtokens.c: Include "xalloc.h" once again.
9108         * modules/readtokens (Depends-on): Add xalloc.
9109         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9110
9111 2010-01-05  Eric Blake  <ebb9@byu.net>
9112
9113         maint: support 'make announcement' from a VPATH build
9114         * top/maint.mk (announcement): Look for correct NEWS file.
9115
9116 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9117
9118         utimens (fdutimens): ignore a negative FD, per contract
9119         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9120         when we have a valid file descriptor.  Otherwise, using a brand
9121         new glibc (with just-patched futimens that now fails with EBADF)
9122         would cause this function to fail with ENOSYS.
9123         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9124         See also http://bugzilla.redhat.com/552320.
9125
9126 2010-01-05  Eric Blake  <ebb9@byu.net>
9127
9128         strcase: document what it provides
9129         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9130         gnulib module.
9131         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9132         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9133
9134 2010-01-05  Jim Meyering  <meyering@redhat.com>
9135
9136         maint: remove useless inclusions of "xalloc.h"
9137         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9138         * lib/readtokens.c: Likewise.
9139         * lib/same.c: Likewise.
9140         * modules/getloadavg (Depends-on): Remove xalloc.
9141         * modules/readtokens: Likewise.
9142         * modules/same: Likewise.
9143
9144         maint.mk: include 4 more function names in alloca.h-checking regexp
9145         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9146         regexp.  Before, we would give a false-positive (saying alloca.h
9147         is included unnecessarily) when the only uses involved omitted symbols.
9148
9149         xalloc.h: use consistent formatting
9150         * lib/xalloc.h: Move declarations to start in the first column.
9151
9152 2010-01-05  Eric Blake  <ebb9@byu.net>
9153
9154         mkdir: avoid xalloc
9155         * lib/mkdir.c (includes): Drop unused header.
9156         Reported by John W. Eaton.
9157
9158 2010-01-04  Jim Meyering  <meyering@redhat.com>
9159
9160         nl_langinfo: avoid configure-time syntax error
9161         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9162         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9163         the empty string.  Don't let that provoke a shell syntax error.
9164
9165         regcomp, regexec, fnmatch: avoid array bounds read error
9166         * lib/regcomp.c (build_equiv_class): From glibc:
9167         Use only the low 24 bits of a findidx return value as an index
9168         into the weights array.  Patch by Ulrich Drepper:
9169         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9170         * lib/regexec.c (check_node_accept_bytes): Likewise.
9171         * lib/fnmatch_loop.c (FCT): Likewise.
9172
9173         regcomp: skip collseq lookup when there are no rules
9174         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9175         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9176
9177         regcomp: recognize ill-formed { } expressions
9178         * lib/regcomp.c (parse_dup_op): From glibc:
9179         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9180
9181         regcomp: fix typo in comment
9182         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9183         s/satisfy/satisfies/.
9184
9185         regcomp: sync from glibc: remove dead store
9186         * lib/regcomp.c (duplicate_node_closure): Remove useless
9187         search_duplicated_node call and dead store.
9188
9189         regcomp: sync from glibc; always use nl_langinfo
9190         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9191         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9192         * modules/regex (Depends-on): Add nl_langinfo.
9193
9194 2010-01-04  Eric Blake  <ebb9@byu.net>
9195
9196         fdopendir: fix configure test
9197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9198
9199 2010-01-01  Bruno Haible  <bruno@clisp.org>
9200
9201         wchar: Remove unused configure check.
9202         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9203
9204 2010-01-01  Eric Blake  <ebb9@byu.net>
9205
9206         headers: make check of system header explicit
9207         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9208         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9209         ourselves.
9210         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9213         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9214         internals.
9215         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9216         missing.
9217         Suggested by Bruno Haible.
9218
9219 2010-01-01  Jim Meyering  <meyering@redhat.com>
9220
9221         ChangeLog: tweak to eliminate unnecessary copyright line
9222         * ChangeLog: Remove a copyright line that was mistakenly updated
9223         by today's update-copyright run.  Reported by Eric Blake.
9224
9225         test-update-copyright: don't let envvar setting cause test failure
9226         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9227
9228 2010-01-01  Bruno Haible  <bruno@clisp.org>
9229
9230         localename: Avoid gcc warning.
9231         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9232         function if it is not used.
9233
9234 2010-01-01  Jim Meyering  <meyering@redhat.com>
9235
9236         update nearly all FSF copyright year lists to include 2010
9237         Use the same procedure as for 2009, outlined in
9238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9239
9240         version-etc: set COPYRIGHT_YEAR to 2010
9241         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9242
9243 2009-12-31  Eric Blake  <ebb9@byu.net>
9244
9245         doc: correct availability of cygwin 1.5.x getopt
9246         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9247         variables.
9248         * doc/posix-functions/opterr.texi (opterr): Likewise.
9249         * doc/posix-functions/optind.texi (optind): Likewise.
9250         * doc/posix-functions/optopt.texi (optopt): Likewise.
9251         * doc/posix-functions/tzname.texi (tzname): Likewise.
9252
9253         openat: update maintainer
9254         * modules/openat (Maintainer): Add myself.
9255
9256         utimens: avoid shadowing warning
9257         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9258         buffers into one, to avoid shadowing, as well as avoiding a
9259         redundant stat.
9260         Reported by Jim Meyering.
9261
9262         test-dup2: avoid compiler warning
9263         * tests/test-dup2.c (is_inheritable): Only define if used.
9264
9265 2010-01-01  Bruno Haible  <bruno@clisp.org>
9266
9267         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9268         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9269         defined, use wctomb instead of wcrtomb.
9270
9271 2010-01-01  Bruno Haible  <bruno@clisp.org>
9272
9273         iconv: Reject native Solaris iconv.
9274         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9275         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9276
9277 2009-12-31  Bruno Haible  <bruno@clisp.org>
9278
9279         * tests/test-signal.c (main): Remove test of 'SIG'.
9280
9281 2009-12-31  Bruno Haible  <bruno@clisp.org>
9282
9283         spawn: Fix incomplete fix.
9284         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9285         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9286         warnings for GNULIB_POSIXCHECK again.
9287         Reported by Eric Blake.
9288
9289 2009-12-31  Bruno Haible  <bruno@clisp.org>
9290
9291         Avoid namespace pollution on glibc systems.
9292         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9293         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9294         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9295         glibc systems.
9296
9297 2009-12-31  Bruno Haible  <bruno@clisp.org>
9298
9299         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9300         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9301         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9302         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9303         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9304         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9305         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9306
9307 2009-12-31  Bruno Haible  <bruno@clisp.org>
9308
9309         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9310         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9311         afterwards.
9312
9313 2009-12-31  Bruno Haible  <bruno@clisp.org>
9314
9315         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9316         SYS_UTSNAME_H.
9317
9318 2009-12-31  Bruno Haible  <bruno@clisp.org>
9319
9320         spawn: Fix misapplied patch.
9321         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9322         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9323         warnings for GNULIB_POSIXCHECK.
9324
9325 2009-12-31  Bruno Haible  <bruno@clisp.org>
9326
9327         times: Update after sys_times changed.
9328         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9329         * modules/times (Files): Add it.
9330         (configure.ac): Invoke gl_FUNC_TIMES.
9331
9332 2009-12-31  Bruno Haible  <bruno@clisp.org>
9333
9334         Use AC_C_INLINE where necessary.
9335         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9336         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9337         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9338         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9339         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9340         * m4/mbiter.m4 (gl_MBITER): Likewise.
9341         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9342         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9343         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9344         * modules/u64 (configure.ac): Likewise.
9345
9346 2009-12-31  Bruno Haible  <bruno@clisp.org>
9347
9348         Use AC_C_INLINE instead of module 'inline' where possible.
9349         * modules/inline (Description): Clarify purpose.
9350         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9351         * modules/count-one-bits (Depends-on): Remove inline.
9352         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9353         * modules/openat (Depends-on): Remove inline.
9354         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9355         instead of depending on module 'inline'.
9356         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9357         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9358         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9359         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9360         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9361         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9362         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9363         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9364         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9365         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9366         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9367         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9368         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9369         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9370         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9371         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9372         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9373         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9374         Likewise.
9375         * modules/unictype/property-ascii-hex-digit (Depends-on,
9376         configure.ac): Likewise.
9377         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9378         configure.ac): Likewise.
9379         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9380         configure.ac): Likewise.
9381         * modules/unictype/property-bidi-block-separator (Depends-on,
9382         configure.ac): Likewise.
9383         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9384         configure.ac): Likewise.
9385         * modules/unictype/property-bidi-common-separator (Depends-on,
9386         configure.ac): Likewise.
9387         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9388         Likewise.
9389         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9390         configure.ac): Likewise.
9391         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9392         configure.ac): Likewise.
9393         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9394         configure.ac): Likewise.
9395         * modules/unictype/property-bidi-european-digit (Depends-on,
9396         configure.ac): Likewise.
9397         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9398         configure.ac): Likewise.
9399         * modules/unictype/property-bidi-left-to-right (Depends-on,
9400         configure.ac): Likewise.
9401         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9402         configure.ac): Likewise.
9403         * modules/unictype/property-bidi-other-neutral (Depends-on,
9404         configure.ac): Likewise.
9405         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9406         Likewise.
9407         * modules/unictype/property-bidi-segment-separator (Depends-on,
9408         configure.ac): Likewise.
9409         * modules/unictype/property-bidi-whitespace (Depends-on,
9410         configure.ac): Likewise.
9411         * modules/unictype/property-combining (Depends-on, configure.ac):
9412         Likewise.
9413         * modules/unictype/property-composite (Depends-on, configure.ac):
9414         Likewise.
9415         * modules/unictype/property-currency-symbol (Depends-on,
9416         configure.ac): Likewise.
9417         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9418         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9419         Likewise.
9420         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9421         configure.ac): Likewise.
9422         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9423         Likewise.
9424         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9425         Likewise.
9426         * modules/unictype/property-extender (Depends-on, configure.ac):
9427         Likewise.
9428         * modules/unictype/property-format-control (Depends-on, configure.ac):
9429         Likewise.
9430         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9431         Likewise.
9432         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9433         Likewise.
9434         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9435         Likewise.
9436         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9437         Likewise.
9438         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9439         Likewise.
9440         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9441         Likewise.
9442         * modules/unictype/property-id-start (Depends-on, configure.ac):
9443         Likewise.
9444         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9445         Likewise.
9446         * modules/unictype/property-ids-binary-operator (Depends-on,
9447         configure.ac): Likewise.
9448         * modules/unictype/property-ids-trinary-operator (Depends-on,
9449         configure.ac): Likewise.
9450         * modules/unictype/property-ignorable-control (Depends-on,
9451         configure.ac): Likewise.
9452         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9453         Likewise.
9454         * modules/unictype/property-join-control (Depends-on, configure.ac):
9455         Likewise.
9456         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9457         Likewise.
9458         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9459         Likewise.
9460         * modules/unictype/property-logical-order-exception (Depends-on,
9461         configure.ac): Likewise.
9462         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9463         Likewise.
9464         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9465         * modules/unictype/property-non-break (Depends-on, configure.ac):
9466         Likewise.
9467         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9468         Likewise.
9469         * modules/unictype/property-numeric (Depends-on, configure.ac):
9470         Likewise.
9471         * modules/unictype/property-other-alphabetic (Depends-on,
9472         configure.ac): Likewise.
9473         * modules/unictype/property-other-default-ignorable-code-point
9474         (Depends-on, configure.ac): Likewise.
9475         * modules/unictype/property-other-grapheme-extend (Depends-on,
9476         configure.ac): Likewise.
9477         * modules/unictype/property-other-id-continue (Depends-on,
9478         configure.ac): Likewise.
9479         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9480         Likewise.
9481         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9482         Likewise.
9483         * modules/unictype/property-other-math (Depends-on, configure.ac):
9484         Likewise.
9485         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9486         Likewise.
9487         * modules/unictype/property-paired-punctuation (Depends-on,
9488         configure.ac): Likewise.
9489         * modules/unictype/property-paragraph-separator (Depends-on,
9490         configure.ac): Likewise.
9491         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9492         Likewise.
9493         * modules/unictype/property-pattern-white-space (Depends-on,
9494         configure.ac): Likewise.
9495         * modules/unictype/property-private-use (Depends-on, configure.ac):
9496         Likewise.
9497         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9498         Likewise.
9499         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9500         Likewise.
9501         * modules/unictype/property-radical (Depends-on, configure.ac):
9502         Likewise.
9503         * modules/unictype/property-sentence-terminal (Depends-on,
9504         configure.ac): Likewise.
9505         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9506         Likewise.
9507         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9508         * modules/unictype/property-terminal-punctuation (Depends-on,
9509         configure.ac): Likewise.
9510         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9511         Likewise.
9512         * modules/unictype/property-unassigned-code-value (Depends-on,
9513         configure.ac): Likewise.
9514         * modules/unictype/property-unified-ideograph (Depends-on,
9515         configure.ac): Likewise.
9516         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9517         Likewise.
9518         * modules/unictype/property-variation-selector (Depends-on,
9519         configure.ac): Likewise.
9520         * modules/unictype/property-white-space (Depends-on, configure.ac):
9521         Likewise.
9522         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9523         Likewise.
9524         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9525         Likewise.
9526         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9527         Likewise.
9528         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9529         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9530         Likewise.
9531
9532 2009-12-31  Bruno Haible  <bruno@clisp.org>
9533
9534         Remove unnecessary AC_C_INLINE invocation.
9535         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9536         since 2009-08-21.
9537
9538 2009-12-31  Jim Meyering  <meyering@redhat.com>
9539
9540         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9541         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9542         With this change, we can all remove the gpg_key_ID = ... definition
9543         from our respective cfg.mk files.
9544
9545         maint.mk: create announcement template in ~/, not in /tmp
9546         * top/maint.mk (emit_upload_commands): Adjust.
9547         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9548         Remove temporary file, .ci-msg.
9549
9550 2009-12-31  Eric Blake  <ebb9@byu.net>
9551
9552         link-warning: always build headers with link warnings
9553         * modules/arpa_inet (Makefile.am): Always build replacement
9554         header.
9555         * modules/ctype (Makefile.am): Likewise.
9556         * modules/dirent (Makefile.am): Likewise.
9557         * modules/inttypes (Makefile.am): Likewise.
9558         * modules/langinfo (Makefile.am): Likewise.
9559         * modules/locale (Makefile.am): Likewise.
9560         * modules/spawn (Makefile.am): Likewise.
9561         * modules/sys_file (Makefile.am): Likewise.
9562         * modules/sys_ioctl (Makefile.am): Likewise.
9563         * modules/sys_select (Makefile.am): Likewise.
9564         * modules/sys_socket (Makefile.am): Likewise.
9565         * modules/sys_times (Makefile.am): Likewise.
9566         * modules/sys_utsname (Makefile.am): Likewise.
9567         * modules/sys_wait (Makefile.am): Likewise.
9568         * modules/wchar (Makefile.am): Likewise.
9569         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9570         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9571         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9572         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9573         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9574         Likewise.
9575         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9576         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9577         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9578         Likewise.
9579         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9580         Likewise.
9581         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9582         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9583         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9585         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9587         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9588         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9589         (gl_WCHAR_H_DEFAULTS): Likewise.
9590
9591 2009-12-31  Eric Blake  <ebb9@byu.net>
9592
9593         signal, spawn: use link warnings
9594         * lib/signal.in.h (sigset_t): Make unconditional.
9595         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9596         (sigpending, sigprocmask, sigaction): Add link warnings.
9597         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9598         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9599         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9600         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9601         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9602         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9603         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9604         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9605         (posix_spawn_file_actions_destroy)
9606         (posix_spawn_file_actions_addopen)
9607         (posix_spawn_file_actions_addclose)
9608         (posix_spawn_file_actions_adddup2): Likewise.
9609         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9610         * tests/test-signal.c (main): Enhance test.
9611
9612         spawn: improve wrapper support
9613         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9614         (gl_SPAWN_H_DEFAULTS): New defaults.
9615         * modules/spawn (Makefile.am): Substitute them.
9616         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9617         Only declare if missing or broken.
9618
9619         sys_times, sys_utsname: use include_next
9620         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9621         header.
9622         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9624         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9625         * modules/sys_times (Depends-on): Add include_next.
9626         (Makefile.am): Substitute additional values.
9627         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9628         * lib/sys_times.in.h (includes): Include native header, if
9629         available.
9630         * lib/sys_utsname.in.h (includes): Likewise.
9631         * tests/test-sys_times.c (main): Enhance test.
9632
9633         fdutimensat: revert prior patch
9634         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9635         utimens.h.
9636         Reported by Bruno Haible.
9637
9638 2009-12-30  Eric Blake  <ebb9@byu.net>
9639
9640         sys_wait: drop link-warning dependency
9641         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9642         link-warning efforts.
9643         * lib/sys_wait.in.h: Likewise.
9644
9645         fdutimensat: remove bogus dependency
9646         * modules/fdutimensat (Depends-on): Drop inline.
9647
9648         unistd: fix typo
9649         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9650
9651 2009-12-30  Bruno Haible  <bruno@clisp.org>
9652
9653         Fix compilation error with Solaris cc.
9654         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9655         * lib/unicase/u16-is-invariant.c: Likewise.
9656         * lib/unicase/u32-is-invariant.c: Likewise.
9657         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9658
9659 2009-12-30  Bruno Haible  <bruno@clisp.org>
9660
9661         Fix test crash.
9662         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9663         locales.
9664         Reported by Simon Josefsson <simon@josefsson.org>.
9665
9666 2009-12-30  Bruno Haible  <bruno@clisp.org>
9667
9668         Fix compilation error on most platforms.
9669         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9670         Reported by Simon Josefsson <simon@josefsson.org>
9671         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9672
9673 2009-12-30  Eric Blake  <ebb9@byu.net>
9674
9675         futimens, utimensat: work around ntfs-3g bug
9676         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9677         a ctime bug is present, and expand workaround to cover ntfs-3g.
9678         * lib/utimens.c (fdutimens, lutimens): Likewise.
9679         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9680         (validate_timespec): Adjust return value.
9681         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9682         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9683         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9684
9685 2009-12-29  Eric Blake  <ebb9@byu.net>
9686
9687         link-warning: make usage consistent
9688         * modules/ctype (Depends-on): Add link-warning.
9689         (Makefile.am): Update rules accordingly.
9690         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9691         * modules/locale (Depends-on, Makefile.am): Likewise.
9692         * modules/sys_file (Makefile.am): Likewise.
9693         * modules/getopt-posix (Makefile.am): Delete unused link warning
9694         efforts.
9695         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9696         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9697         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9698         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9699
9700         stdio: remove unused variables
9701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9703         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9704
9705         tests: test more substitute headers
9706         * modules/ctype-tests: New file.
9707         * modules/dirent-tests: Likewise.
9708         * modules/spawn-tests: Likewise.
9709         * modules/sys_file-tests: Likewise.
9710         * modules/sys_ioctl-tests: Likewise.
9711         * modules/sys_wait-tests: Likewise.
9712         * tests/test-ctype.c: Likewise.
9713         * tests/test-dirent.c: Likewise.
9714         * tests/test-spawn.c: Likewise.
9715         * tests/test-sys_file.c: Likewise.
9716         * tests/test-sys_ioctl.c: Likewise.
9717         * tests/test-sys_wait.c: Likewise.
9718         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9719         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9720         whether or not flock is in use.
9721
9722         tests: remove License section from module
9723         * modules/arpa_inet-tests: Remove unneeded section.
9724         * modules/byteswap-tests: Likewise.
9725         * modules/ceilf-tests: Likewise.
9726         * modules/ceill-tests: Likewise.
9727         * modules/crypto/des-tests: Likewise.
9728         * modules/crypto/gc-arcfour-tests: Likewise.
9729         * modules/crypto/gc-arctwo-tests: Likewise.
9730         * modules/crypto/gc-des-tests: Likewise.
9731         * modules/crypto/gc-hmac-md5-tests: Likewise.
9732         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9733         * modules/crypto/gc-md2-tests: Likewise.
9734         * modules/crypto/gc-md4-tests: Likewise.
9735         * modules/crypto/gc-md5-tests: Likewise.
9736         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9737         * modules/crypto/gc-rijndael-tests: Likewise.
9738         * modules/crypto/gc-sha1-tests: Likewise.
9739         * modules/crypto/gc-tests: Likewise.
9740         * modules/crypto/md2-tests: Likewise.
9741         * modules/crypto/md4-tests: Likewise.
9742         * modules/fcntl-h-tests: Likewise.
9743         * modules/floorf-tests: Likewise.
9744         * modules/floorl-tests: Likewise.
9745         * modules/frexp-nolibm-tests: Likewise.
9746         * modules/frexp-tests: Likewise.
9747         * modules/frexpl-nolibm-tests: Likewise.
9748         * modules/frexpl-tests: Likewise.
9749         * modules/getaddrinfo-tests: Likewise.
9750         * modules/inttypes-tests: Likewise.
9751         * modules/isfinite-tests: Likewise.
9752         * modules/isinf-tests: Likewise.
9753         * modules/ldexpl-tests: Likewise.
9754         * modules/locale-tests: Likewise.
9755         * modules/math-tests: Likewise.
9756         * modules/netdb-tests: Likewise.
9757         * modules/netinet_in-tests: Likewise.
9758         * modules/printf-frexp-tests: Likewise.
9759         * modules/printf-frexpl-tests: Likewise.
9760         * modules/priv-set-tests: Likewise.
9761         * modules/random_r-tests: Likewise.
9762         * modules/round-tests: Likewise.
9763         * modules/roundf-tests: Likewise.
9764         * modules/roundl-tests: Likewise.
9765         * modules/search-tests: Likewise.
9766         * modules/select-tests: Likewise.
9767         * modules/signal-tests: Likewise.
9768         * modules/stdbool-tests: Likewise.
9769         * modules/stddef-tests: Likewise.
9770         * modules/stdint-tests: Likewise.
9771         * modules/stdio-tests: Likewise.
9772         * modules/stdlib-tests: Likewise.
9773         * modules/string-tests: Likewise.
9774         * modules/strings-tests: Likewise.
9775         * modules/sys_select-tests: Likewise.
9776         * modules/sys_socket-tests: Likewise.
9777         * modules/sys_stat-tests: Likewise.
9778         * modules/sys_time-tests: Likewise.
9779         * modules/sys_utsname-tests: Likewise.
9780         * modules/sysexits-tests: Likewise.
9781         * modules/time-tests: Likewise.
9782         * modules/trunc-tests: Likewise.
9783         * modules/truncf-tests: Likewise.
9784         * modules/truncl-tests: Likewise.
9785         * modules/tsearch-tests: Likewise.
9786         * modules/unistd-tests: Likewise.
9787         * modules/wchar-tests: Likewise.
9788         * modules/wctype-tests: Likewise.
9789
9790         tests: fix license on several tests
9791         * tests/test-des.c: Update to GPLv3+.
9792         * tests/test-flock.c: Likewise.
9793         * tests/test-fsync.c: Likewise.
9794         * tests/test-futimens.h: Likewise.
9795         * tests/test-gc-arcfour.c: Likewise.
9796         * tests/test-gc-arctwo.c: Likewise.
9797         * tests/test-gc-des.c: Likewise.
9798         * tests/test-gc-hmac-md5.c: Likewise.
9799         * tests/test-gc-hmac-sha1.c: Likewise.
9800         * tests/test-gc-md2.c: Likewise.
9801         * tests/test-gc-md4.c: Likewise.
9802         * tests/test-gc-md5.c: Likewise.
9803         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9804         * tests/test-gc-rijndael.c: Likewise.
9805         * tests/test-gc-sha1.c: Likewise.
9806         * tests/test-gc.c: Likewise.
9807         * tests/test-getcwd.c: Likewise.
9808         * tests/test-link.c: Likewise.
9809         * tests/test-link.h: Likewise.
9810         * tests/test-lutimens.h: Likewise.
9811         * tests/test-md2.c: Likewise.
9812         * tests/test-md4.c: Likewise.
9813         * tests/test-mkdir.h: Likewise.
9814         * tests/test-rename.c: Likewise.
9815         * tests/test-rename.h: Likewise.
9816         * tests/test-safe-alloc.c: Likewise.
9817         * tests/test-utimens-common.h: Likewise.
9818         * tests/test-utimens.h: Likewise.
9819
9820         maint: sync license texts
9821         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9822         * doc/gpl-3.0.texi: Revert copyright year update.
9823         * doc/lgpl-3.0.texi: Likewise.
9824
9825 2009-12-29  Jim Meyering  <meyering@redhat.com>
9826
9827         update nearly all FSF copyright year lists to include 2009
9828         The files named by the following are exempted:
9829             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9830               test -f "$dst" && { echo "$dst"; continue; }
9831               test -d "$dst" || continue
9832               echo "$dst"/$(basename "$src")
9833             done > exempt
9834             git ls-files tests/unictype >> exempt
9835         In the remaining files, convert to all-interval notation if
9836         - there is already at least one year interval like 2000-2003
9837         - the file is maintained by me
9838         - the file is in lib/uni*/, where that style already prevails
9839         Otherwise, use update-copyright's default.
9840
9841 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9842         and Eric Blake  <ebb9@byu.net>
9843
9844         tests: don't require debug system() to pass
9845         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
9846         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9847         * tests/test-unlink.h (test_unlink_func): Likewise.
9848         * tests/test-fstatat.c (main): ...into callers.
9849         * tests/test-lstat.c (main): Likewise.
9850         * tests/test-rmdir.c (main): Likewise.
9851         * tests/test-unlink.c (main): Likewise.
9852         * tests/test-unlinkat.c (main): Likewise.
9853         * tests/test-areadlink-with-size.c (main): Don't require a
9854         debug-only system call to pass, aiding cross-testing to mingw.
9855         * tests/test-areadlink.c (main): Likewise.
9856         * tests/test-areadlinkat-with-size.c (main): Likewise.
9857         * tests/test-areadlinkat.c (main): Likewise.
9858         * tests/test-canonicalize-lgpl.c (main): Likewise.
9859         * tests/test-canonicalize.c (main): Likewise.
9860         * tests/test-chown.c (main): Likewise.
9861         * tests/test-fchownat.c (main): Likewise.
9862         * tests/test-lchown.c (main): Likewise.
9863         * tests/test-fdutimensat.c (main): Likewise.
9864         * tests/test-futimens.c (main): Likewise.
9865         * tests/test-link.c (main): Likewise.
9866         * tests/test-linkat.c (main): Likewise.
9867         * tests/test-mkdir.c (main): Likewise.
9868         * tests/test-mkdirat.c (main): Likewise.
9869         * tests/test-mkfifo.c (main): Likewise.
9870         * tests/test-mkfifoat.c (main): Likewise.
9871         * tests/test-mknod.c (main): Likewise.
9872         * tests/test-readlink.c (main): Likewise.
9873         * tests/test-remove.c (main): Likewise.
9874         * tests/test-rename.c (main): Likewise.
9875         * tests/test-renameat.c (main): Likewise.
9876         * tests/test-symlink.c (main): Likewise.
9877         * tests/test-symlinkat.c (main): Likewise.
9878         * tests/test-utimens.c (main): Likewise.
9879         * tests/test-utimensat.c (main): Likewise.
9880
9881 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9882
9883         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
9884         on $(UNUSED_PARAMETER_H) to avoid build failure.
9885
9886 2009-12-28  Jim Meyering  <meyering@redhat.com>
9887
9888         update-copyright: you may specify a max. line length other than 72
9889         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9890
9891         maint: use consistent FSF copyright line syntax
9892         * lib/posixtm.c: Add missing comma in FSF copyright line.
9893         * lib/posixtm.h: Likewise.
9894         * lib/getugroups.c: Add missing ", Inc.".
9895
9896         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
9897         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
9898         FSF copyright line.  Remove trailing blanks.
9899
9900 2009-12-28  Eric Blake  <ebb9@byu.net>
9901
9902         test-dup2: reduce dependencies
9903         * modules/cloexec (Configure.ac): Set witness.
9904         * modules/dup2-tests (Depends-on): Drop cloexec.
9905         * tests/test-dup2.c (main): Skip portion of test if cloexec module
9906         not present.
9907         Suggested by Bruno Haible.
9908
9909 2009-12-26  Bruno Haible  <bruno@clisp.org>
9910
9911         Remove an unneeded dependency.
9912         * modules/fseterr (Depends-on): Remove dup2.
9913
9914 2009-12-26  Eric Blake  <ebb9@byu.net>
9915
9916         tests: use macros.h in more places
9917         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
9918         (ASSERT_STREAM): Provide default of stderr.
9919         * tests/test-dirent-safer.c: Include macros.h, using alternate
9920         stream for assertions.
9921         * tests/test-dup-safer.c: Likewise.
9922         * tests/test-freopen-safer.c: Likewise.
9923         * tests/test-getopt.c: Likewise.
9924         * tests/test-openat-safer.c: Likewise.
9925         * tests/test-pipe.c: Likewise.
9926         * tests/test-popen-safer.c: Likewise.
9927         * modules/dirent-safer-tests (Files): Include macros.h.
9928         * modules/unistd-safer-tests (Files): Likewise.
9929         * modules/freopen-safer-tests (Files): Likewise.
9930         * modules/getopt-posix-tests (Files): Likewise.
9931         * modules/openat-safer-tests (Files): Likewise.
9932         * modules/pipe-tests (Files): Likewise.
9933
9934 2009-12-26  Bruno Haible  <bruno@clisp.org>
9935
9936         javacomp: Portability fix.
9937         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
9938         that it also works on Solaris.
9939
9940 2009-12-26  Bruno Haible  <bruno@clisp.org>
9941
9942         localename: Fix storage allocation of gl_locale_name_thread's result.
9943         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
9944         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
9945         all platforms that have 'uselocale'.
9946         (gl_locale_name_thread_unsafe): New function, extracted from
9947         gl_locale_name_thread.
9948         (gl_locale_name_thread): Call struniq on all platforms that have
9949         'uselocale'.
9950         * tests/test-localename.c (test_locale_name_thread): Check that the
9951         resulting strings are permanently allocated.
9952         * modules/localename-tests (Depends-on): Add strdup.
9953
9954 2009-12-26  Bruno Haible  <bruno@clisp.org>
9955
9956         * tests/test-localename.c (categories): Fill in the strings.
9957
9958 2009-12-26  Jim Meyering  <meyering@redhat.com>
9959
9960         isdir: complete the removal of m4/isdir.m4
9961         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
9962
9963         isdir: clean up, since at least grep still uses it
9964         * lib/isdir.c: Include "isdir.h".
9965         (S_ISDIR): Remove now-unneeded definition.
9966         * modules/isdir (Files): Add lib/isdir.h.
9967         * lib/isdir.h: New file, with declaration.
9968         * m4/isdir.m4: Remove file -- unneeded.
9969
9970 2009-12-25  Bruno Haible  <bruno@clisp.org>
9971
9972         selinux-h: Make generated .h files standalone.
9973         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
9974         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
9975         * lib/se-selinux.in.h: Likewise.
9976         * modules/selinux-h (Depends-on): Add unused-parameter.
9977         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
9978         selinux/selinux.h and selinux/context.h.
9979         Suggested by Eric Blake.
9980
9981 2009-12-25  Bruno Haible  <bruno@clisp.org>
9982
9983         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
9984         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
9985         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
9986         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
9987         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
9988
9989 2009-12-24  Bruno Haible  <bruno@clisp.org>
9990
9991         openat: Fix warning.
9992         * lib/openat-proc.c: Include <unistd.h>.
9993
9994 2009-12-24  Bruno Haible  <bruno@clisp.org>
9995
9996         New module 'unused-parameter'.
9997         * build-aux/unused-parameter.h: New file, extracted from earlier
9998         gnulib-common.m4.
9999         * modules/unused-parameter: New file.
10000         * lib/unistr.h: Include unused-parameter.h.
10001         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10002         _GL_UNUSED.
10003         * modules/unistr/base (Depends-on): Add unused-parameter.
10004
10005 2009-12-24  Bruno Haible  <bruno@clisp.org>
10006
10007         Add missing dependencies to 'extensions' module.
10008         * m4/extensions.m4: Add comment.
10009         * modules/accept4 (Depends-on): Add extensions.
10010         * modules/dup3 (Depends-on): Likewise.
10011         * modules/fcntl (Depends-on): Likewise.
10012         * modules/futimens (Depends-on): Likewise.
10013         * modules/mknod (Depends-on): Likewise.
10014         * modules/pipe2 (Depends-on): Likewise.
10015         * modules/stat-time (Depends-on): Likewise.
10016         * modules/strcasestr-simple (Depends-on): Likewise.
10017         * modules/strsignal (Depends-on): Likewise.
10018         * modules/utimensat (Depends-on): Likewise.
10019         * modules/localcharset (Depends-on): Likewise. Needed because of
10020         gl_FCNTL_O_FLAGS.
10021         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10022         AC_TYPE_MBSTATE_T.
10023         * modules/wcsnrtombs (Depends-on): Likewise.
10024         * modules/wcsrtombs (Depends-on): Likewise.
10025
10026 2009-12-24  Bruno Haible  <bruno@clisp.org>
10027
10028         binary-io: Avoid gcc warning due to SET_BINARY.
10029         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10030         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10031
10032 2009-12-24  Bruno Haible  <bruno@clisp.org>
10033
10034         Avoid future namespace pollution on glibc systems.
10035         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10036         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10037         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10038         glibc systems.
10039
10040 2009-12-24  Bruno Haible  <bruno@clisp.org>
10041
10042         Refactor common macros used in tests.
10043         * tests/macros.h: New file.
10044         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10045         and/or <stdlib.h>, if appropriate.
10046         (ASSERT, SIZEOF): Remove macros.
10047         * tests/test-areadlink-with-size.c: Likewise.
10048         * tests/test-areadlinkat.c: Likewise.
10049         * tests/test-areadlinkat-with-size.c: Likewise.
10050         * tests/test-argmatch.c: Likewise.
10051         * tests/test-argv-iter.c: Likewise.
10052         * tests/test-array-mergesort.c: Likewise.
10053         * tests/test-array_list.c: Likewise.
10054         * tests/test-array_oset.c: Likewise.
10055         * tests/test-avltree_list.c: Likewise.
10056         * tests/test-avltree_oset.c: Likewise.
10057         * tests/test-avltreehash_list.c: Likewise.
10058         * tests/test-base64.c: Likewise.
10059         * tests/test-binary-io.c: Likewise.
10060         * tests/test-bitrotate.c: Likewise.
10061         * tests/test-btowc.c: Likewise.
10062         * tests/test-byteswap.c: Likewise.
10063         * tests/test-c-ctype.c: Likewise.
10064         * tests/test-c-stack.c: Likewise.
10065         * tests/test-c-strcasecmp.c: Likewise.
10066         * tests/test-c-strcasestr.c: Likewise.
10067         * tests/test-c-strncasecmp.c: Likewise.
10068         * tests/test-c-strstr.c: Likewise.
10069         * tests/test-canonicalize-lgpl.c: Likewise.
10070         * tests/test-canonicalize.c: Likewise.
10071         * tests/test-carray_list.c: Likewise.
10072         * tests/test-ceilf1.c: Likewise.
10073         * tests/test-ceilf2.c: Likewise.
10074         * tests/test-ceill.c: Likewise.
10075         * tests/test-chown.c: Likewise.
10076         * tests/test-cloexec.c: Likewise.
10077         * tests/test-copy-acl.c: Likewise.
10078         * tests/test-copy-file.c: Likewise.
10079         * tests/test-count-one-bits.c: Likewise.
10080         * tests/test-dprintf-posix.c: Likewise.
10081         * tests/test-dup2.c: Likewise.
10082         * tests/test-dup3.c: Likewise.
10083         * tests/test-duplocale.c: Likewise.
10084         * tests/test-fbufmode.c: Likewise.
10085         * tests/test-fchdir.c: Likewise.
10086         * tests/test-fchownat.c: Likewise.
10087         * tests/test-fcntl-safer.c: Likewise.
10088         * tests/test-fcntl.c: Likewise.
10089         * tests/test-fdopendir.c: Likewise.
10090         * tests/test-fdutimensat.c: Likewise.
10091         * tests/test-fflush2.c: Likewise.
10092         * tests/test-file-has-acl.c: Likewise.
10093         * tests/test-filevercmp.c: Likewise.
10094         * tests/test-flock.c: Likewise.
10095         * tests/test-floorf1.c: Likewise.
10096         * tests/test-floorf2.c: Likewise.
10097         * tests/test-floorl.c: Likewise.
10098         * tests/test-fnmatch.c: Likewise.
10099         * tests/test-fopen.h: Likewise.
10100         * tests/test-fpending.c: Likewise.
10101         * tests/test-fprintf-posix.c: Likewise.
10102         * tests/test-fpurge.c: Likewise.
10103         * tests/test-freadable.c: Likewise.
10104         * tests/test-freadahead.c: Likewise.
10105         * tests/test-freading.c: Likewise.
10106         * tests/test-freadptr.c: Likewise.
10107         * tests/test-freadptr2.c: Likewise.
10108         * tests/test-freadseek.c: Likewise.
10109         * tests/test-freopen.c: Likewise.
10110         * tests/test-frexp.c: Likewise.
10111         * tests/test-frexpl.c: Likewise.
10112         * tests/test-fseek.c: Likewise.
10113         * tests/test-fseeko.c: Likewise.
10114         * tests/test-fstatat.c: Likewise.
10115         * tests/test-fstrcmp.c: Likewise.
10116         * tests/test-fsync.c: Likewise.
10117         * tests/test-ftell.c: Likewise.
10118         * tests/test-ftello.c: Likewise.
10119         * tests/test-func.c: Likewise.
10120         * tests/test-futimens.c: Likewise.
10121         * tests/test-fwritable.c: Likewise.
10122         * tests/test-fwriting.c: Likewise.
10123         * tests/test-getcwd.c: Likewise.
10124         * tests/test-getdate.c: Likewise.
10125         * tests/test-getdelim.c: Likewise.
10126         * tests/test-getdtablesize.c: Likewise.
10127         * tests/test-getgroups.c: Likewise.
10128         * tests/test-getline.c: Likewise.
10129         * tests/test-getndelim2.c: Likewise.
10130         * tests/test-glob.c: Likewise.
10131         * tests/test-hash.c: Likewise.
10132         * tests/test-i-ring.c: Likewise.
10133         * tests/test-iconv-utf.c: Likewise.
10134         * tests/test-iconv.c: Likewise.
10135         * tests/test-idpriv-drop.c: Likewise.
10136         * tests/test-idpriv-droptemp.c: Likewise.
10137         * tests/test-inet_ntop.c: Likewise.
10138         * tests/test-inet_pton.c: Likewise.
10139         * tests/test-isblank.c: Likewise.
10140         * tests/test-isfinite.c: Likewise.
10141         * tests/test-isinf.c: Likewise.
10142         * tests/test-isnan.c: Likewise.
10143         * tests/test-isnand.h: Likewise.
10144         * tests/test-isnanf.h: Likewise.
10145         * tests/test-isnanl.h: Likewise.
10146         * tests/test-lchown.c: Likewise.
10147         * tests/test-ldexpl.c: Likewise.
10148         * tests/test-link.c: Likewise.
10149         * tests/test-linkat.c: Likewise.
10150         * tests/test-linked_list.c: Likewise.
10151         * tests/test-linkedhash_list.c: Likewise.
10152         * tests/test-localename.c: Likewise.
10153         * tests/test-lseek.c: Likewise.
10154         * tests/test-lstat.c: Likewise.
10155         * tests/test-mbmemcasecmp.c: Likewise.
10156         * tests/test-mbmemcasecoll.c: Likewise.
10157         * tests/test-mbrtowc.c: Likewise.
10158         * tests/test-mbscasecmp.c: Likewise.
10159         * tests/test-mbscasestr1.c: Likewise.
10160         * tests/test-mbscasestr2.c: Likewise.
10161         * tests/test-mbscasestr3.c: Likewise.
10162         * tests/test-mbscasestr4.c: Likewise.
10163         * tests/test-mbschr.c: Likewise.
10164         * tests/test-mbscspn.c: Likewise.
10165         * tests/test-mbsinit.c: Likewise.
10166         * tests/test-mbsncasecmp.c: Likewise.
10167         * tests/test-mbsnrtowcs.c: Likewise.
10168         * tests/test-mbspbrk.c: Likewise.
10169         * tests/test-mbspcasecmp.c: Likewise.
10170         * tests/test-mbsrchr.c: Likewise.
10171         * tests/test-mbsrtowcs.c: Likewise.
10172         * tests/test-mbsspn.c: Likewise.
10173         * tests/test-mbsstr1.c: Likewise.
10174         * tests/test-mbsstr2.c: Likewise.
10175         * tests/test-mbsstr3.c: Likewise.
10176         * tests/test-memchr.c: Likewise.
10177         * tests/test-memchr2.c: Likewise.
10178         * tests/test-memcmp.c: Likewise.
10179         * tests/test-memmem.c: Likewise.
10180         * tests/test-memrchr.c: Likewise.
10181         * tests/test-mkdir.c: Likewise.
10182         * tests/test-mkdirat.c: Likewise.
10183         * tests/test-mkfifo.c: Likewise.
10184         * tests/test-mkfifoat.c: Likewise.
10185         * tests/test-mknod.c: Likewise.
10186         * tests/test-nanosleep.c: Likewise.
10187         * tests/test-nl_langinfo.c: Likewise.
10188         * tests/test-obstack-printf.c: Likewise.
10189         * tests/test-open.c: Likewise.
10190         * tests/test-openat.c: Likewise.
10191         * tests/test-pipe-filter-gi1.c: Likewise.
10192         * tests/test-pipe-filter-gi2-main.c: Likewise.
10193         * tests/test-pipe-filter-ii1.c: Likewise.
10194         * tests/test-pipe-filter-ii2-main.c: Likewise.
10195         * tests/test-pipe2.c: Likewise.
10196         * tests/test-popen.h: Likewise.
10197         * tests/test-posixtm.c: Likewise.
10198         * tests/test-pread.c: Likewise.
10199         * tests/test-printf-frexp.c: Likewise.
10200         * tests/test-printf-frexpl.c: Likewise.
10201         * tests/test-printf-posix.c: Likewise.
10202         * tests/test-priv-set.c: Likewise.
10203         * tests/test-quotearg.c: Likewise.
10204         * tests/test-random_r.c: Likewise.
10205         * tests/test-rawmemchr.c: Likewise.
10206         * tests/test-rbtree_list.c: Likewise.
10207         * tests/test-rbtree_oset.c: Likewise.
10208         * tests/test-rbtreehash_list.c: Likewise.
10209         * tests/test-readlink.c: Likewise.
10210         * tests/test-remove.c: Likewise.
10211         * tests/test-rename.c: Likewise.
10212         * tests/test-renameat.c: Likewise.
10213         * tests/test-rmdir.c: Likewise.
10214         * tests/test-round1.c: Likewise.
10215         * tests/test-roundf1.c: Likewise.
10216         * tests/test-roundl.c: Likewise.
10217         * tests/test-safe-alloc.c: Likewise.
10218         * tests/test-sameacls.c: Likewise.
10219         * tests/test-set-mode-acl.c: Likewise.
10220         * tests/test-setenv.c: Likewise.
10221         * tests/test-sigaction.c: Likewise.
10222         * tests/test-signbit.c: Likewise.
10223         * tests/test-sleep.c: Likewise.
10224         * tests/test-snprintf-posix.c: Likewise.
10225         * tests/test-snprintf.c: Likewise.
10226         * tests/test-sprintf-posix.c: Likewise.
10227         * tests/test-stat-time.c: Likewise.
10228         * tests/test-stat.c: Likewise.
10229         * tests/test-strcasestr.c: Likewise.
10230         * tests/test-strchrnul.c: Likewise.
10231         * tests/test-strerror.c: Likewise.
10232         * tests/test-striconv.c: Likewise.
10233         * tests/test-striconveh.c: Likewise.
10234         * tests/test-striconveha.c: Likewise.
10235         * tests/test-strsignal.c: Likewise.
10236         * tests/test-strstr.c: Likewise.
10237         * tests/test-strtod.c: Likewise.
10238         * tests/test-strverscmp.c: Likewise.
10239         * tests/test-symlink.c: Likewise.
10240         * tests/test-symlinkat.c: Likewise.
10241         * tests/test-trunc1.c: Likewise.
10242         * tests/test-trunc2.c: Likewise.
10243         * tests/test-truncf1.c: Likewise.
10244         * tests/test-truncf2.c: Likewise.
10245         * tests/test-truncl.c: Likewise.
10246         * tests/test-uname.c: Likewise.
10247         * tests/test-unlink.c: Likewise.
10248         * tests/test-unlinkat.c: Likewise.
10249         * tests/test-unsetenv.c: Likewise.
10250         * tests/test-usleep.c: Likewise.
10251         * tests/test-utimens.c: Likewise.
10252         * tests/test-utimensat.c: Likewise.
10253         * tests/test-vasnprintf-posix.c: Likewise.
10254         * tests/test-vasnprintf-posix2.c: Likewise.
10255         * tests/test-vasnprintf.c: Likewise.
10256         * tests/test-vasprintf-posix.c: Likewise.
10257         * tests/test-vasprintf.c: Likewise.
10258         * tests/test-vdprintf-posix.c: Likewise.
10259         * tests/test-vfprintf-posix.c: Likewise.
10260         * tests/test-vprintf-posix.c: Likewise.
10261         * tests/test-vsnprintf-posix.c: Likewise.
10262         * tests/test-vsnprintf.c: Likewise.
10263         * tests/test-vsprintf-posix.c: Likewise.
10264         * tests/test-wcrtomb.c: Likewise.
10265         * tests/test-wcsnrtombs.c: Likewise.
10266         * tests/test-wcsrtombs.c: Likewise.
10267         * tests/test-wctype.c: Likewise.
10268         * tests/test-wcwidth.c: Likewise.
10269         * tests/test-xfprintf-posix.c: Likewise.
10270         * tests/test-xmemdup0.c: Likewise.
10271         * tests/test-xprintf-posix.c: Likewise.
10272         * tests/test-xvasprintf.c: Likewise.
10273         * tests/unicase/test-locale-language.c: Likewise.
10274         * tests/unicase/test-mapping-part1.h: Likewise.
10275         * tests/unicase/test-predicate-part1.h: Likewise.
10276         * tests/unicase/test-u8-casecmp.c: Likewise.
10277         * tests/unicase/test-u8-casecoll.c: Likewise.
10278         * tests/unicase/test-u8-casefold.c: Likewise.
10279         * tests/unicase/test-u8-is-cased.c: Likewise.
10280         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10281         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10282         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10283         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10284         * tests/unicase/test-u8-tolower.c: Likewise.
10285         * tests/unicase/test-u8-totitle.c: Likewise.
10286         * tests/unicase/test-u8-toupper.c: Likewise.
10287         * tests/unicase/test-u16-casecmp.c: Likewise.
10288         * tests/unicase/test-u16-casecoll.c: Likewise.
10289         * tests/unicase/test-u16-casefold.c: Likewise.
10290         * tests/unicase/test-u16-is-cased.c: Likewise.
10291         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10292         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10293         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10294         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10295         * tests/unicase/test-u16-tolower.c: Likewise.
10296         * tests/unicase/test-u16-totitle.c: Likewise.
10297         * tests/unicase/test-u16-toupper.c: Likewise.
10298         * tests/unicase/test-u32-casecmp.c: Likewise.
10299         * tests/unicase/test-u32-casecoll.c: Likewise.
10300         * tests/unicase/test-u32-casefold.c: Likewise.
10301         * tests/unicase/test-u32-is-cased.c: Likewise.
10302         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10303         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10304         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10305         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10306         * tests/unicase/test-u32-tolower.c: Likewise.
10307         * tests/unicase/test-u32-totitle.c: Likewise.
10308         * tests/unicase/test-u32-toupper.c: Likewise.
10309         * tests/unicase/test-ulc-casecmp.c: Likewise.
10310         * tests/unicase/test-ulc-casecoll.c: Likewise.
10311         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10312         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10313         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10314         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10315         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10316         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10317         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10318         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10319         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10320         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10321         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10322         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10323         * tests/unictype/test-bidi_byname.c: Likewise.
10324         * tests/unictype/test-bidi_name.c: Likewise.
10325         * tests/unictype/test-bidi_of.c: Likewise.
10326         * tests/unictype/test-bidi_test.c: Likewise.
10327         * tests/unictype/test-block_list.c: Likewise.
10328         * tests/unictype/test-block_of.c: Likewise.
10329         * tests/unictype/test-block_test.c: Likewise.
10330         * tests/unictype/test-categ_and.c: Likewise.
10331         * tests/unictype/test-categ_and_not.c: Likewise.
10332         * tests/unictype/test-categ_byname.c: Likewise.
10333         * tests/unictype/test-categ_name.c: Likewise.
10334         * tests/unictype/test-categ_none.c: Likewise.
10335         * tests/unictype/test-categ_of.c: Likewise.
10336         * tests/unictype/test-categ_or.c: Likewise.
10337         * tests/unictype/test-categ_test_withtable.c: Likewise.
10338         * tests/unictype/test-combining.c: Likewise.
10339         * tests/unictype/test-decdigit.c: Likewise.
10340         * tests/unictype/test-digit.c: Likewise.
10341         * tests/unictype/test-mirror.c: Likewise.
10342         * tests/unictype/test-numeric.c: Likewise.
10343         * tests/unictype/test-pr_byname.c: Likewise.
10344         * tests/unictype/test-pr_test.c: Likewise.
10345         * tests/unictype/test-predicate-part1.h: Likewise.
10346         * tests/unictype/test-scripts.c: Likewise.
10347         * tests/unictype/test-sy_c_ident.c: Likewise.
10348         * tests/unictype/test-sy_java_ident.c: Likewise.
10349         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10350         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10351         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10352         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10353         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10354         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10355         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10356         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10357         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10358         * tests/uninorm/test-compat-decomposition.c: Likewise.
10359         * tests/uninorm/test-composition.c: Likewise.
10360         * tests/uninorm/test-decomposing-form.c: Likewise.
10361         * tests/uninorm/test-decomposition.c: Likewise.
10362         * tests/uninorm/test-u8-nfc.c: Likewise.
10363         * tests/uninorm/test-u8-nfd.c: Likewise.
10364         * tests/uninorm/test-u8-nfkc.c: Likewise.
10365         * tests/uninorm/test-u8-nfkd.c: Likewise.
10366         * tests/uninorm/test-u8-normcmp.c: Likewise.
10367         * tests/uninorm/test-u8-normcoll.c: Likewise.
10368         * tests/uninorm/test-u16-nfc.c: Likewise.
10369         * tests/uninorm/test-u16-nfd.c: Likewise.
10370         * tests/uninorm/test-u16-nfkc.c: Likewise.
10371         * tests/uninorm/test-u16-nfkd.c: Likewise.
10372         * tests/uninorm/test-u16-normcmp.c: Likewise.
10373         * tests/uninorm/test-u16-normcoll.c: Likewise.
10374         * tests/uninorm/test-u32-nfc.c: Likewise.
10375         * tests/uninorm/test-u32-nfd.c: Likewise.
10376         * tests/uninorm/test-u32-nfkc.c: Likewise.
10377         * tests/uninorm/test-u32-nfkd.c: Likewise.
10378         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10379         * tests/uninorm/test-u32-normcmp.c: Likewise.
10380         * tests/uninorm/test-u32-normcoll.c: Likewise.
10381         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10382         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10383         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10384         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10385         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10386         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10387         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10388         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10389         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10390         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10391         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10392         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10393         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10394         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10395         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10396         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10397         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10398         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10399         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10400         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10401         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10402         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10403         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10404         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10405         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10406         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10407         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10408         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10409         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10410         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10411         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10412         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10413         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10414         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10415         * tests/uniwidth/test-u8-width.c: Likewise.
10416         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10417         * tests/uniwidth/test-u16-width.c: Likewise.
10418         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10419         * tests/uniwidth/test-u32-width.c: Likewise.
10420         * tests/uniwidth/test-uc_width.c: Likewise.
10421         * tests/uniwidth/test-uc_width2.c: Likewise.
10422         * modules/acl-tests (Files): Add tests/macros.h.
10423         * modules/areadlink-tests (Files): Likewise.
10424         * modules/areadlink-with-size-tests (Files): Likewise.
10425         * modules/areadlinkat-tests (Files): Likewise.
10426         * modules/areadlinkat-with-size-tests (Files): Likewise.
10427         * modules/argmatch-tests (Files): Likewise.
10428         * modules/argv-iter-tests (Files): Likewise.
10429         * modules/array-list-tests (Files): Likewise.
10430         * modules/array-mergesort-tests (Files): Likewise.
10431         * modules/array-oset-tests (Files): Likewise.
10432         * modules/avltree-list-tests (Files): Likewise.
10433         * modules/avltree-oset-tests (Files): Likewise.
10434         * modules/avltreehash-list-tests (Files): Likewise.
10435         * modules/base64-tests (Files): Likewise.
10436         * modules/binary-io-tests (Files): Likewise.
10437         * modules/bitrotate-tests (Files): Likewise.
10438         * modules/btowc-tests (Files): Likewise.
10439         * modules/byteswap-tests (Files): Likewise.
10440         * modules/c-ctype-tests (Files): Likewise.
10441         * modules/c-stack-tests (Files): Likewise.
10442         * modules/c-strcase-tests (Files): Likewise.
10443         * modules/c-strcasestr-tests (Files): Likewise.
10444         * modules/c-strstr-tests (Files): Likewise.
10445         * modules/canonicalize-lgpl-tests (Files): Likewise.
10446         * modules/canonicalize-tests (Files): Likewise.
10447         * modules/carray-list-tests (Files): Likewise.
10448         * modules/ceilf-tests (Files): Likewise.
10449         * modules/ceill-tests (Files): Likewise.
10450         * modules/chown-tests (Files): Likewise.
10451         * modules/cloexec-tests (Files): Likewise.
10452         * modules/copy-file-tests (Files): Likewise.
10453         * modules/count-one-bits-tests (Files): Likewise.
10454         * modules/dprintf-posix-tests (Files): Likewise.
10455         * modules/dup2-tests (Files): Likewise.
10456         * modules/dup3-tests (Files): Likewise.
10457         * modules/duplocale-tests (Files): Likewise.
10458         * modules/fbufmode-tests (Files): Likewise.
10459         * modules/fchdir-tests (Files): Likewise.
10460         * modules/fcntl-safer-tests (Files): Likewise.
10461         * modules/fcntl-tests (Files): Likewise.
10462         * modules/fdopendir-tests (Files): Likewise.
10463         * modules/fdutimensat-tests (Files): Likewise.
10464         * modules/fflush-tests (Files): Likewise.
10465         * modules/filevercmp-tests (Files): Likewise.
10466         * modules/flock-tests (Files): Likewise.
10467         * modules/floorf-tests (Files): Likewise.
10468         * modules/floorl-tests (Files): Likewise.
10469         * modules/fnmatch-tests (Files): Likewise.
10470         * modules/fopen-safer-tests (Files): Likewise.
10471         * modules/fopen-tests (Files): Likewise.
10472         * modules/fpending-tests (Files): Likewise.
10473         * modules/fprintf-posix-tests (Files): Likewise.
10474         * modules/fpurge-tests (Files): Likewise.
10475         * modules/freadable-tests (Files): Likewise.
10476         * modules/freadahead-tests (Files): Likewise.
10477         * modules/freading-tests (Files): Likewise.
10478         * modules/freadptr-tests (Files): Likewise.
10479         * modules/freadseek-tests (Files): Likewise.
10480         * modules/freopen-tests (Files): Likewise.
10481         * modules/frexp-nolibm-tests (Files): Likewise.
10482         * modules/frexp-tests (Files): Likewise.
10483         * modules/frexpl-nolibm-tests (Files): Likewise.
10484         * modules/frexpl-tests (Files): Likewise.
10485         * modules/fseek-tests (Files): Likewise.
10486         * modules/fseeko-tests (Files): Likewise.
10487         * modules/fstrcmp-tests (Files): Likewise.
10488         * modules/fsync-tests (Files): Likewise.
10489         * modules/ftell-tests (Files): Likewise.
10490         * modules/ftello-tests (Files): Likewise.
10491         * modules/func-tests (Files): Likewise.
10492         * modules/futimens-tests (Files): Likewise.
10493         * modules/fwritable-tests (Files): Likewise.
10494         * modules/fwriting-tests (Files): Likewise.
10495         * modules/getcwd-tests (Files): Likewise.
10496         * modules/getdate-tests (Files): Likewise.
10497         * modules/getdelim-tests (Files): Likewise.
10498         * modules/getdtablesize-tests (Files): Likewise.
10499         * modules/getgroups-tests (Files): Likewise.
10500         * modules/getline-tests (Files): Likewise.
10501         * modules/getndelim2-tests (Files): Likewise.
10502         * modules/glob-tests (Files): Likewise.
10503         * modules/hash-tests (Files): Likewise.
10504         * modules/i-ring-tests (Files): Likewise.
10505         * modules/iconv-tests (Files): Likewise.
10506         * modules/iconv_open-utf-tests (Files): Likewise.
10507         * modules/idpriv-drop-tests (Files): Likewise.
10508         * modules/idpriv-droptemp-tests (Files): Likewise.
10509         * modules/inet_ntop-tests (Files): Likewise.
10510         * modules/inet_pton-tests (Files): Likewise.
10511         * modules/isblank-tests (Files): Likewise.
10512         * modules/isfinite-tests (Files): Likewise.
10513         * modules/isinf-tests (Files): Likewise.
10514         * modules/isnan-tests (Files): Likewise.
10515         * modules/isnand-nolibm-tests (Files): Likewise.
10516         * modules/isnand-tests (Files): Likewise.
10517         * modules/isnanf-nolibm-tests (Files): Likewise.
10518         * modules/isnanf-tests (Files): Likewise.
10519         * modules/isnanl-nolibm-tests (Files): Likewise.
10520         * modules/isnanl-tests (Files): Likewise.
10521         * modules/lchown-tests (Files): Likewise.
10522         * modules/ldexpl-tests (Files): Likewise.
10523         * modules/link-tests (Files): Likewise.
10524         * modules/linkat-tests (Files): Likewise.
10525         * modules/linked-list-tests (Files): Likewise.
10526         * modules/linkedhash-list-tests (Files): Likewise.
10527         * modules/localename-tests (Files): Likewise.
10528         * modules/lseek-tests (Files): Likewise.
10529         * modules/lstat-tests (Files): Likewise.
10530         * modules/mbmemcasecmp-tests (Files): Likewise.
10531         * modules/mbmemcasecoll-tests (Files): Likewise.
10532         * modules/mbrtowc-tests (Files): Likewise.
10533         * modules/mbscasecmp-tests (Files): Likewise.
10534         * modules/mbscasestr-tests (Files): Likewise.
10535         * modules/mbschr-tests (Files): Likewise.
10536         * modules/mbscspn-tests (Files): Likewise.
10537         * modules/mbsinit-tests (Files): Likewise.
10538         * modules/mbsncasecmp-tests (Files): Likewise.
10539         * modules/mbsnrtowcs-tests (Files): Likewise.
10540         * modules/mbspbrk-tests (Files): Likewise.
10541         * modules/mbspcasecmp-tests (Files): Likewise.
10542         * modules/mbsrchr-tests (Files): Likewise.
10543         * modules/mbsrtowcs-tests (Files): Likewise.
10544         * modules/mbsspn-tests (Files): Likewise.
10545         * modules/mbsstr-tests (Files): Likewise.
10546         * modules/memchr-tests (Files): Likewise.
10547         * modules/memchr2-tests (Files): Likewise.
10548         * modules/memcmp-tests (Files): Likewise.
10549         * modules/memmem-tests (Files): Likewise.
10550         * modules/memrchr-tests (Files): Likewise.
10551         * modules/mkdir-tests (Files): Likewise.
10552         * modules/mkfifo-tests (Files): Likewise.
10553         * modules/mkfifoat-tests (Files): Likewise.
10554         * modules/mknod-tests (Files): Likewise.
10555         * modules/nanosleep-tests (Files): Likewise.
10556         * modules/nl_langinfo-tests (Files): Likewise.
10557         * modules/obstack-printf-tests (Files): Likewise.
10558         * modules/open-tests (Files): Likewise.
10559         * modules/openat-tests (Files): Likewise.
10560         * modules/pipe-filter-gi-tests (Files): Likewise.
10561         * modules/pipe-filter-ii-tests (Files): Likewise.
10562         * modules/pipe2-tests (Files): Likewise.
10563         * modules/popen-safer-tests (Files): Likewise.
10564         * modules/popen-tests (Files): Likewise.
10565         * modules/posixtm-tests (Files): Likewise.
10566         * modules/pread-tests (Files): Likewise.
10567         * modules/printf-frexp-tests (Files): Likewise.
10568         * modules/printf-frexpl-tests (Files): Likewise.
10569         * modules/printf-posix-tests (Files): Likewise.
10570         * modules/priv-set-tests (Files): Likewise.
10571         * modules/quotearg-tests (Files): Likewise.
10572         * modules/random_r-tests (Files): Likewise.
10573         * modules/rawmemchr-tests (Files): Likewise.
10574         * modules/rbtree-list-tests (Files): Likewise.
10575         * modules/rbtree-oset-tests (Files): Likewise.
10576         * modules/rbtreehash-list-tests (Files): Likewise.
10577         * modules/readlink-tests (Files): Likewise.
10578         * modules/remove-tests (Files): Likewise.
10579         * modules/rename-tests (Files): Likewise.
10580         * modules/renameat-tests (Files): Likewise.
10581         * modules/rmdir-tests (Files): Likewise.
10582         * modules/round-tests (Files): Likewise.
10583         * modules/roundf-tests (Files): Likewise.
10584         * modules/roundl-tests (Files): Likewise.
10585         * modules/safe-alloc-tests (Files): Likewise.
10586         * modules/setenv-tests (Files): Likewise.
10587         * modules/sigaction-tests (Files): Likewise.
10588         * modules/signbit-tests (Files): Likewise.
10589         * modules/sleep-tests (Files): Likewise.
10590         * modules/snprintf-posix-tests (Files): Likewise.
10591         * modules/snprintf-tests (Files): Likewise.
10592         * modules/sprintf-posix-tests (Files): Likewise.
10593         * modules/stat-tests (Files): Likewise.
10594         * modules/stat-time-tests (Files): Likewise.
10595         * modules/strcasestr-tests (Files): Likewise.
10596         * modules/strchrnul-tests (Files): Likewise.
10597         * modules/strerror-tests (Files): Likewise.
10598         * modules/striconv-tests (Files): Likewise.
10599         * modules/striconveh-tests (Files): Likewise.
10600         * modules/striconveha-tests (Files): Likewise.
10601         * modules/strsignal-tests (Files): Likewise.
10602         * modules/strstr-tests (Files): Likewise.
10603         * modules/strtod-tests (Files): Likewise.
10604         * modules/strverscmp-tests (Files): Likewise.
10605         * modules/symlink-tests (Files): Likewise.
10606         * modules/symlinkat-tests (Files): Likewise.
10607         * modules/trunc-tests (Files): Likewise.
10608         * modules/truncf-tests (Files): Likewise.
10609         * modules/truncl-tests (Files): Likewise.
10610         * modules/uname-tests (Files): Likewise.
10611         * modules/unicase/cased-tests (Files): Likewise.
10612         * modules/unicase/ignorable-tests (Files): Likewise.
10613         * modules/unicase/locale-language-tests (Files): Likewise.
10614         * modules/unicase/tolower-tests (Files): Likewise.
10615         * modules/unicase/totitle-tests (Files): Likewise.
10616         * modules/unicase/toupper-tests (Files): Likewise.
10617         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10618         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10619         * modules/unicase/u8-casefold-tests (Files): Likewise.
10620         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10621         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10622         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10623         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10624         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10625         * modules/unicase/u8-tolower-tests (Files): Likewise.
10626         * modules/unicase/u8-totitle-tests (Files): Likewise.
10627         * modules/unicase/u8-toupper-tests (Files): Likewise.
10628         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10629         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10630         * modules/unicase/u16-casefold-tests (Files): Likewise.
10631         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10632         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10633         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10634         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10635         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10636         * modules/unicase/u16-tolower-tests (Files): Likewise.
10637         * modules/unicase/u16-totitle-tests (Files): Likewise.
10638         * modules/unicase/u16-toupper-tests (Files): Likewise.
10639         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10640         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10641         * modules/unicase/u32-casefold-tests (Files): Likewise.
10642         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10643         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10644         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10645         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10646         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10647         * modules/unicase/u32-tolower-tests (Files): Likewise.
10648         * modules/unicase/u32-totitle-tests (Files): Likewise.
10649         * modules/unicase/u32-toupper-tests (Files): Likewise.
10650         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10651         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10652         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10653         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10654         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10655         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10656         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10657         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10658         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10659         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10660         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10661         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10662         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10663         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10664         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10665         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10666         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10667         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10668         * modules/unictype/block-list-tests (Files): Likewise.
10669         * modules/unictype/block-of-tests (Files): Likewise.
10670         * modules/unictype/block-test-tests (Files): Likewise.
10671         * modules/unictype/category-C-tests (Files): Likewise.
10672         * modules/unictype/category-Cc-tests (Files): Likewise.
10673         * modules/unictype/category-Cf-tests (Files): Likewise.
10674         * modules/unictype/category-Cn-tests (Files): Likewise.
10675         * modules/unictype/category-Co-tests (Files): Likewise.
10676         * modules/unictype/category-Cs-tests (Files): Likewise.
10677         * modules/unictype/category-L-tests (Files): Likewise.
10678         * modules/unictype/category-Ll-tests (Files): Likewise.
10679         * modules/unictype/category-Lm-tests (Files): Likewise.
10680         * modules/unictype/category-Lo-tests (Files): Likewise.
10681         * modules/unictype/category-Lt-tests (Files): Likewise.
10682         * modules/unictype/category-Lu-tests (Files): Likewise.
10683         * modules/unictype/category-M-tests (Files): Likewise.
10684         * modules/unictype/category-Mc-tests (Files): Likewise.
10685         * modules/unictype/category-Me-tests (Files): Likewise.
10686         * modules/unictype/category-Mn-tests (Files): Likewise.
10687         * modules/unictype/category-N-tests (Files): Likewise.
10688         * modules/unictype/category-Nd-tests (Files): Likewise.
10689         * modules/unictype/category-Nl-tests (Files): Likewise.
10690         * modules/unictype/category-No-tests (Files): Likewise.
10691         * modules/unictype/category-P-tests (Files): Likewise.
10692         * modules/unictype/category-Pc-tests (Files): Likewise.
10693         * modules/unictype/category-Pd-tests (Files): Likewise.
10694         * modules/unictype/category-Pe-tests (Files): Likewise.
10695         * modules/unictype/category-Pf-tests (Files): Likewise.
10696         * modules/unictype/category-Pi-tests (Files): Likewise.
10697         * modules/unictype/category-Po-tests (Files): Likewise.
10698         * modules/unictype/category-Ps-tests (Files): Likewise.
10699         * modules/unictype/category-S-tests (Files): Likewise.
10700         * modules/unictype/category-Sc-tests (Files): Likewise.
10701         * modules/unictype/category-Sk-tests (Files): Likewise.
10702         * modules/unictype/category-Sm-tests (Files): Likewise.
10703         * modules/unictype/category-So-tests (Files): Likewise.
10704         * modules/unictype/category-Z-tests (Files): Likewise.
10705         * modules/unictype/category-Zl-tests (Files): Likewise.
10706         * modules/unictype/category-Zp-tests (Files): Likewise.
10707         * modules/unictype/category-Zs-tests (Files): Likewise.
10708         * modules/unictype/category-and-not-tests (Files): Likewise.
10709         * modules/unictype/category-and-tests (Files): Likewise.
10710         * modules/unictype/category-byname-tests (Files): Likewise.
10711         * modules/unictype/category-name-tests (Files): Likewise.
10712         * modules/unictype/category-none-tests (Files): Likewise.
10713         * modules/unictype/category-of-tests (Files): Likewise.
10714         * modules/unictype/category-or-tests (Files): Likewise.
10715         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10716         * modules/unictype/combining-class-tests (Files): Likewise.
10717         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10718         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10719         * modules/unictype/ctype-blank-tests (Files): Likewise.
10720         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10721         * modules/unictype/ctype-digit-tests (Files): Likewise.
10722         * modules/unictype/ctype-graph-tests (Files): Likewise.
10723         * modules/unictype/ctype-lower-tests (Files): Likewise.
10724         * modules/unictype/ctype-print-tests (Files): Likewise.
10725         * modules/unictype/ctype-punct-tests (Files): Likewise.
10726         * modules/unictype/ctype-space-tests (Files): Likewise.
10727         * modules/unictype/ctype-upper-tests (Files): Likewise.
10728         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10729         * modules/unictype/decimal-digit-tests (Files): Likewise.
10730         * modules/unictype/digit-tests (Files): Likewise.
10731         * modules/unictype/mirror-tests (Files): Likewise.
10732         * modules/unictype/numeric-tests (Files): Likewise.
10733         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10734         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10735         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10736         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10737         Likewise.
10738         * modules/unictype/property-bidi-block-separator-tests (Files):
10739         Likewise.
10740         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10741         Likewise.
10742         * modules/unictype/property-bidi-common-separator-tests (Files):
10743         Likewise.
10744         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10745         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10746         Likewise.
10747         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10748         Likewise.
10749         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10750         Likewise.
10751         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10752         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10753         Likewise.
10754         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10755         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10756         Likewise.
10757         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10758         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10759         * modules/unictype/property-bidi-segment-separator-tests (Files):
10760         Likewise.
10761         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10762         * modules/unictype/property-byname-tests (Files): Likewise.
10763         * modules/unictype/property-combining-tests (Files): Likewise.
10764         * modules/unictype/property-composite-tests (Files): Likewise.
10765         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10766         * modules/unictype/property-dash-tests (Files): Likewise.
10767         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10768         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10769         Likewise.
10770         * modules/unictype/property-deprecated-tests (Files): Likewise.
10771         * modules/unictype/property-diacritic-tests (Files): Likewise.
10772         * modules/unictype/property-extender-tests (Files): Likewise.
10773         * modules/unictype/property-format-control-tests (Files): Likewise.
10774         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10775         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10776         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10777         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10778         * modules/unictype/property-hyphen-tests (Files): Likewise.
10779         * modules/unictype/property-id-continue-tests (Files): Likewise.
10780         * modules/unictype/property-id-start-tests (Files): Likewise.
10781         * modules/unictype/property-ideographic-tests (Files): Likewise.
10782         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10783         * modules/unictype/property-ids-trinary-operator-tests (Files):
10784         Likewise.
10785         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10786         * modules/unictype/property-iso-control-tests (Files): Likewise.
10787         * modules/unictype/property-join-control-tests (Files): Likewise.
10788         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10789         * modules/unictype/property-line-separator-tests (Files): Likewise.
10790         * modules/unictype/property-logical-order-exception-tests (Files):
10791         Likewise.
10792         * modules/unictype/property-lowercase-tests (Files): Likewise.
10793         * modules/unictype/property-math-tests (Files): Likewise.
10794         * modules/unictype/property-non-break-tests (Files): Likewise.
10795         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10796         * modules/unictype/property-numeric-tests (Files): Likewise.
10797         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10798         * modules/unictype/property-other-default-ignorable-code-point-tests
10799         (Files): Likewise.
10800         * modules/unictype/property-other-grapheme-extend-tests (Files):
10801         Likewise.
10802         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10803         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10804         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10805         * modules/unictype/property-other-math-tests (Files): Likewise.
10806         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10807         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10808         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10809         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10810         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10811         * modules/unictype/property-private-use-tests (Files): Likewise.
10812         * modules/unictype/property-punctuation-tests (Files): Likewise.
10813         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10814         * modules/unictype/property-radical-tests (Files): Likewise.
10815         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10816         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10817         * modules/unictype/property-space-tests (Files): Likewise.
10818         * modules/unictype/property-terminal-punctuation-tests (Files):
10819         Likewise.
10820         * modules/unictype/property-test-tests (Files): Likewise.
10821         * modules/unictype/property-titlecase-tests (Files): Likewise.
10822         * modules/unictype/property-unassigned-code-value-tests (Files):
10823         Likewise.
10824         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10825         * modules/unictype/property-uppercase-tests (Files): Likewise.
10826         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10827         * modules/unictype/property-white-space-tests (Files): Likewise.
10828         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10829         * modules/unictype/property-xid-start-tests (Files): Likewise.
10830         * modules/unictype/property-zero-width-tests (Files): Likewise.
10831         * modules/unictype/scripts-tests (Files): Likewise.
10832         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10833         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10834         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10835         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10836         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10837         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10838         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10839         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10840         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10841         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10842         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10843         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10844         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
10845         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
10846         * modules/uninorm/composition-tests (Files): Likewise.
10847         * modules/uninorm/decomposing-form-tests (Files): Likewise.
10848         * modules/uninorm/decomposition-tests (Files): Likewise.
10849         * modules/uninorm/filter-tests (Files): Likewise.
10850         * modules/uninorm/nfc-tests (Files): Likewise.
10851         * modules/uninorm/nfd-tests (Files): Likewise.
10852         * modules/uninorm/nfkc-tests (Files): Likewise.
10853         * modules/uninorm/nfkd-tests (Files): Likewise.
10854         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
10855         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
10856         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
10857         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
10858         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
10859         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
10860         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
10861         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
10862         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
10863         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
10864         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
10865         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
10866         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
10867         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
10868         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
10869         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
10870         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
10871         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
10872         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
10873         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
10874         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
10875         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
10876         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
10877         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
10878         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
10879         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
10880         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
10881         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
10882         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
10883         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
10884         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
10885         * modules/uniwidth/u8-width-tests (Files): Likewise.
10886         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
10887         * modules/uniwidth/u16-width-tests (Files): Likewise.
10888         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
10889         * modules/uniwidth/u32-width-tests (Files): Likewise.
10890         * modules/uniwidth/width-tests (Files): Likewise.
10891         * modules/unlink-tests (Files): Likewise.
10892         * modules/unsetenv-tests (Files): Likewise.
10893         * modules/usleep-tests (Files): Likewise.
10894         * modules/utimens-tests (Files): Likewise.
10895         * modules/utimensat-tests (Files): Likewise.
10896         * modules/vasnprintf-posix-tests (Files): Likewise.
10897         * modules/vasnprintf-tests (Files): Likewise.
10898         * modules/vasprintf-posix-tests (Files): Likewise.
10899         * modules/vasprintf-tests (Files): Likewise.
10900         * modules/vdprintf-posix-tests (Files): Likewise.
10901         * modules/vfprintf-posix-tests (Files): Likewise.
10902         * modules/vprintf-posix-tests (Files): Likewise.
10903         * modules/vsnprintf-posix-tests (Files): Likewise.
10904         * modules/vsnprintf-tests (Files): Likewise.
10905         * modules/vsprintf-posix-tests (Files): Likewise.
10906         * modules/wcrtomb-tests (Files): Likewise.
10907         * modules/wcsnrtombs-tests (Files): Likewise.
10908         * modules/wcsrtombs-tests (Files): Likewise.
10909         * modules/wctype-tests (Files): Likewise.
10910         * modules/wcwidth-tests (Files): Likewise.
10911         * modules/xmemdup0-tests (Files): Likewise.
10912         * modules/xprintf-posix-tests (Files): Likewise.
10913         * modules/xvasprintf-tests (Files): Likewise.
10914
10915 2009-12-24  Eric Blake  <ebb9@byu.net>
10916
10917         test-nanosleep: fix typo
10918         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
10919         patch.
10920         Reported by Bruno Haible.
10921
10922 2009-12-24  Bruno Haible  <bruno@clisp.org>
10923
10924         Reduce namespace pollution on glibc systems.
10925         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
10926         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
10927         systems.
10928         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
10929         <getopt.h> on glibc systems.
10930         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
10931         systems.
10932         * lib/fcntl.c: Include <unistd.h> here instead.
10933
10934 2009-12-24  Bruno Haible  <bruno@clisp.org>
10935
10936         * lib/stdlib.in.h (includes): Fix typo in today's commit.
10937
10938 2009-12-24  Eric Blake  <ebb9@byu.net>
10939
10940         tests: add signature checks
10941         * tests/signature.h (SIGNATURE_CHECK): New file.
10942         * modules/atexit-tests (Files): Use it.
10943         * modules/btowc-tests (Files): Likewise.
10944         * modules/canonicalize-lgpl-tests (Files): Likewise.
10945         * modules/ceilf-tests (Files): Likewise.
10946         * modules/ceill-tests (Files): Likewise.
10947         * modules/chown-tests (Files): Likewise.
10948         * modules/dprintf-posix-tests (Files): Likewise.
10949         * modules/dup2-tests (Files): Likewise.
10950         * modules/dup3-tests (Files): Likewise.
10951         * modules/duplocale-tests (Files): Likewise.
10952         * modules/fchdir-tests (Files): Likewise.
10953         * modules/fcntl-tests (Files): Likewise.
10954         * modules/fdopendir-tests (Files): Likewise.
10955         * modules/fflush-tests (Files): Likewise.
10956         * modules/flock-tests (Files): Likewise.
10957         * modules/floorf-tests (Files): Likewise.
10958         * modules/floorl-tests (Files): Likewise.
10959         * modules/fnmatch-tests (Files): Likewise.
10960         * modules/fopen-tests (Files): Likewise.
10961         * modules/fprintf-posix-tests (Files): Likewise.
10962         * modules/freopen-tests (Files): Likewise.
10963         * modules/frexp-nolibm-tests (Files): Likewise.
10964         * modules/frexp-tests (Files): Likewise.
10965         * modules/frexpl-nolibm-tests (Files): Likewise.
10966         * modules/frexpl-tests (Files): Likewise.
10967         * modules/fseek-tests (Files): Likewise.
10968         * modules/fseeko-tests (Files): Likewise.
10969         * modules/fsync-tests (Files): Likewise.
10970         * modules/ftell-tests (Files): Likewise.
10971         * modules/ftello-tests (Files): Likewise.
10972         * modules/futimens-tests (Files): Likewise.
10973         * modules/getaddrinfo-tests (Files): Likewise.
10974         * modules/getcwd-tests (Files): Likewise.
10975         * modules/getdelim-tests (Files): Likewise.
10976         * modules/getdtablesize-tests (Files): Likewise.
10977         * modules/getgroups-tests (Files): Likewise.
10978         * modules/gethostname-tests (Files): Likewise.
10979         * modules/getline-tests (Files): Likewise.
10980         * modules/getopt-posix-tests (Files): Likewise.
10981         * modules/gettimeofday-tests (Files): Likewise.
10982         * modules/glob-tests (Files): Likewise.
10983         * modules/iconv-tests (Files): Likewise.
10984         * modules/inet_ntop-tests (Files): Likewise.
10985         * modules/inet_pton-tests (Files): Likewise.
10986         * modules/isblank-tests (Files): Likewise.
10987         * modules/lchown-tests (Files): Likewise.
10988         * modules/ldexpl-tests (Files): Likewise.
10989         * modules/link-tests (Files): Likewise.
10990         * modules/linkat-tests (Files): Likewise.
10991         * modules/lseek-tests (Files): Likewise.
10992         * modules/lstat-tests (Files): Likewise.
10993         * modules/mbrtowc-tests (Files): Likewise.
10994         * modules/mbsinit-tests (Files): Likewise.
10995         * modules/mbsnrtowcs-tests (Files): Likewise.
10996         * modules/mbsrtowcs-tests (Files): Likewise.
10997         * modules/memchr-tests (Files): Likewise.
10998         * modules/memcmp-tests (Files): Likewise.
10999         * modules/memmem-tests (Files): Likewise.
11000         * modules/memrchr-tests (Files): Likewise.
11001         * modules/mkdir-tests (Files): Likewise.
11002         * modules/mkfifo-tests (Files): Likewise.
11003         * modules/mkfifoat-tests (Files): Likewise.
11004         * modules/mknod-tests (Files): Likewise.
11005         * modules/nanosleep-tests (Files): Likewise.
11006         * modules/nl_langinfo-tests (Files): Likewise.
11007         * modules/obstack-printf-tests (Files): Likewise.
11008         * modules/open-tests (Files): Likewise.
11009         * modules/openat-tests (Files): Likewise.
11010         * modules/perror-tests (Files): Likewise.
11011         * modules/pipe2-tests (Files): Likewise.
11012         * modules/poll-tests (Files): Likewise.
11013         * modules/popen-tests (Files): Likewise.
11014         * modules/posix_spawn-tests (Files): Likewise.
11015         * modules/posix_spawnp-tests (Files): Likewise.
11016         * modules/pread-tests (Files): Likewise.
11017         * modules/printf-posix-tests (Files): Likewise.
11018         * modules/pty-tests (Files): Likewise.
11019         * modules/random_r-tests (Files): Likewise.
11020         * modules/rawmemchr-tests (Files): Likewise.
11021         * modules/readlink-tests (Files): Likewise.
11022         * modules/remove-tests (Files): Likewise.
11023         * modules/rename-tests (Files): Likewise.
11024         * modules/renameat-tests (Files): Likewise.
11025         * modules/rmdir-tests (Files): Likewise.
11026         * modules/round-tests (Files): Likewise.
11027         * modules/roundf-tests (Files): Likewise.
11028         * modules/roundl-tests (Files): Likewise.
11029         * modules/select-tests (Files): Likewise.
11030         * modules/setenv-tests (Files): Likewise.
11031         * modules/sigaction-tests (Files): Likewise.
11032         * modules/sleep-tests (Files): Likewise.
11033         * modules/snprintf-posix-tests (Files): Likewise.
11034         * modules/snprintf-tests (Files): Likewise.
11035         * modules/sprintf-posix-tests (Files): Likewise.
11036         * modules/stat-tests (Files): Likewise.
11037         * modules/strcasestr-tests (Files): Likewise.
11038         * modules/strchrnul-tests (Files): Likewise.
11039         * modules/strerror-tests (Files): Likewise.
11040         * modules/strsignal-tests (Files): Likewise.
11041         * modules/strstr-tests (Files): Likewise.
11042         * modules/strtod-tests (Files): Likewise.
11043         * modules/strverscmp-tests (Files): Likewise.
11044         * modules/symlink-tests (Files): Likewise.
11045         * modules/symlinkat-tests (Files): Likewise.
11046         * modules/times-tests (Files): Likewise.
11047         * modules/trunc-tests (Files): Likewise.
11048         * modules/truncf-tests (Files): Likewise.
11049         * modules/truncl-tests (Files): Likewise.
11050         * modules/tsearch-tests (Files): Likewise.
11051         * modules/uname-tests (Files): Likewise.
11052         * modules/unlink-tests (Files): Likewise.
11053         * modules/unsetenv-tests (Files): Likewise.
11054         * modules/usleep-tests (Files): Likewise.
11055         * modules/utimensat-tests (Files): Likewise.
11056         * modules/vasprintf-tests (Files): Likewise.
11057         * modules/vdprintf-posix-tests (Files): Likewise.
11058         * modules/vfprintf-posix-tests (Files): Likewise.
11059         * modules/vprintf-posix-tests (Files): Likewise.
11060         * modules/vsnprintf-posix-tests (Files): Likewise.
11061         * modules/vsnprintf-tests (Files): Likewise.
11062         * modules/vsprintf-posix-tests (Files): Likewise.
11063         * modules/wcrtomb-tests (Files): Likewise.
11064         * modules/wcsnrtombs-tests (Files): Likewise.
11065         * modules/wcsrtombs-tests (Files): Likewise.
11066         * modules/wcwidth-tests (Files): Likewise.
11067         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11068         * tests/test-isinf.c (isinf): Likewise.
11069         * tests/test-isnan.c (isnan): Likewise.
11070         * tests/test-signbit.c (signbit): Likewise.
11071         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11072         declaration, either as macro or with correct signature.
11073         (select): Ensure function under test is declared with correct
11074         signature in correct header.
11075         * tests/test-atexit.c (atexit): Likewise.
11076         * tests/test-btowc.c (btowc): Likewise.
11077         * tests/test-canonicalize-lgpl.c (realpath)
11078         (canonicalize_file_name): Likewise.
11079         * tests/test-ceilf1.c (ceilf): Likewise.
11080         * tests/test-ceill.c (ceill): Likewise.
11081         * tests/test-chown.c (chown): Likewise.
11082         * tests/test-dprintf-posix.c (dprintf): Likewise.
11083         * tests/test-dup2.c (dup2): Likewise.
11084         * tests/test-dup3.c (dup3): Likewise.
11085         * tests/test-duplocale.c (duplocale): Likewise.
11086         * tests/test-fchdir.c (fchdir): Likewise.
11087         * tests/test-fchownat.c (fchownat): Likewise.
11088         * tests/test-fcntl.c (fcntl): Likewise.
11089         * tests/test-fdopendir.c (fdopendir): Likewise.
11090         * tests/test-fflush.c (fflush): Likewise.
11091         * tests/test-flock.c (flock): Likewise.
11092         * tests/test-floorf1.c (floorf): Likewise.
11093         * tests/test-floorl.c (floorl): Likewise.
11094         * tests/test-fnmatch.c (fnmatch): Likewise.
11095         * tests/test-fopen.c (fopen): Likewise.
11096         * tests/test-fprintf-posix.c (fprintf): Likewise.
11097         * tests/test-freopen.c (freopen): Likewise.
11098         * tests/test-frexp.c (frexp): Likewise.
11099         * tests/test-frexpl.c (frexpl): Likewise.
11100         * tests/test-fseek.c (fseek): Likewise.
11101         * tests/test-fseeko.c (fseeko): Likewise.
11102         * tests/test-fstatat.c (fstatat): Likewise.
11103         * tests/test-fsync.c (fsync): Likewise.
11104         * tests/test-ftell.c (ftell): Likewise.
11105         * tests/test-ftello.c (ftello): Likewise.
11106         * tests/test-futimens.c (futimens): Likewise.
11107         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11108         (gai_strerror): Likewise.
11109         * tests/test-getcwd.c (getcwd): Likewise.
11110         * tests/test-getdelim.c (getdelim): Likewise.
11111         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11112         * tests/test-getgroups.c (getgroups): Likewise.
11113         * tests/test-gethostname.c (gethostname): Likewise.
11114         * tests/test-getline.c (getline): Likewise.
11115         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11116         Likewise.
11117         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11118         * tests/test-glob.c (glob, globfree): Likewise.
11119         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11120         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11121         * tests/test-inet_pton.c (inet_pton): Likewise.
11122         * tests/test-isblank.c (isblank): Likewise.
11123         * tests/test-lchown.c (lchown): Likewise.
11124         * tests/test-ldexpl.c (ldexpl): Likewise.
11125         * tests/test-link.c (link): Likewise.
11126         * tests/test-linkat.c (linkat): Likewise.
11127         * tests/test-lseek.c (lseek): Likewise.
11128         * tests/test-lstat.c (lstat): Likewise.
11129         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11130         * tests/test-mbsinit.c (mbsinit): Likewise.
11131         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11132         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11133         * tests/test-memchr.c (memchr): Likewise.
11134         * tests/test-memcmp.c (memcmp): Likewise.
11135         * tests/test-memmem.c (memmem): Likewise.
11136         * tests/test-memrchr.c (memrchr): Likewise.
11137         * tests/test-mkdir.c (mkdir): Likewise.
11138         * tests/test-mkdirat.c (mkdirat): Likewise.
11139         * tests/test-mkfifo.c (mkfifo): Likewise.
11140         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11141         * tests/test-mknod.c (mknod): Likewise.
11142         * tests/test-nanosleep.c (nanosleep): Likewise.
11143         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11144         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11145         Likewise.
11146         * tests/test-open.c (open): Likewise.
11147         * tests/test-openat.c (openat): Likewise.
11148         * tests/test-perror.c (perror): Likewise.
11149         * tests/test-pipe2.c (pipe2): Likewise.
11150         * tests/test-poll.c (poll): Likewise.
11151         * tests/test-popen.c (popen, pclose): Likewise.
11152         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11153         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11154         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11155         (posix_spawn_file_actions_destroy)
11156         (posix_spawn_file_actions_addclose)
11157         (posix_spawn_file_actions_addopen)
11158         (posix_spawn_file_actions_adddup2): Likewise.
11159         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11160         * tests/test-pread.c (pread): Likewise.
11161         * tests/test-printf-posix.c (printf): Likewise.
11162         * tests/test-pty.c (openpty, forkpty): Likewise.
11163         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11164         (random_r): Likewise.
11165         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11166         * tests/test-readlink.c (readlink): Likewise.
11167         * tests/test-remove.c (remove): Likewise.
11168         * tests/test-rename.c (rename): Likewise.
11169         * tests/test-renameat.c (renameat): Likewise.
11170         * tests/test-rmdir.c (rmdir): Likewise.
11171         * tests/test-round1.c (round): Likewise.
11172         * tests/test-roundf1.c (roundf): Likewise.
11173         * tests/test-roundl.c (roundl): Likewise.
11174         * tests/test-setenv.c (setenv): Likewise.
11175         * tests/test-sigaction.c (sigaction): Likewise.
11176         * tests/test-sleep.c (sleep): Likewise.
11177         * tests/test-snprintf.c (snprintf): Likewise.
11178         * tests/test-sprintf-posix.c (sprintf): Likewise.
11179         * tests/test-stat.c (stat): Likewise.
11180         * tests/test-stpncpy.c (stpncpy): Likewise.
11181         * tests/test-strcasestr.c (strcasestr): Likewise.
11182         * tests/test-strchrnul.c (strchrnul): Likewise.
11183         * tests/test-strerror.c (strerror): Likewise.
11184         * tests/test-strsignal.c (strsignal): Likewise.
11185         * tests/test-strstr.c (strstr): Likewise.
11186         * tests/test-strtod.c (strtod): Likewise.
11187         * tests/test-strverscmp.c (strverscmp): Likewise.
11188         * tests/test-symlink.c (symlink): Likewise.
11189         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11190         * tests/test-times.c (times): Likewise.
11191         * tests/test-trunc1.c (trunc): Likewise.
11192         * tests/test-truncf1.c (truncf): Likewise.
11193         * tests/test-truncl.c (truncl): Likewise.
11194         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11195         Likewise.
11196         * tests/test-uname.c (uname): Likewise.
11197         * tests/test-unlink.c (unlink): Likewise.
11198         * tests/test-unlinkat.c (unlinkat): Likewise.
11199         * tests/test-unsetenv.c (unsetenv): Likewise.
11200         * tests/test-usleep.c (usleep): Likewise.
11201         * tests/test-utimensat.c (utimensat): Likewise.
11202         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11203         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11204         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11205         * tests/test-vprintf-posix.c (vprintf): Likewise.
11206         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11207         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11208         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11209         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11210         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11211         * tests/test-wcwidth.c (wcwidth): Likewise.
11212
11213         build: pull in conditional headers during GNULIB_POSIXCHECK
11214         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11215         definitions from any conditionally-included headers.
11216         * lib/stdlib.in.h (includes): Likewise.
11217         * lib/unistd.in.h (includes): Likewise.
11218
11219 2009-12-24  Bruno Haible  <bruno@clisp.org>
11220
11221         * tests/test-argv-iter.c: Include header file being tested immediately
11222         after config.h.
11223         * tests/test-base64.c: Likewise.
11224         * tests/test-flock.c: Likewise.
11225         * tests/test-fsync.c: Likewise.
11226         * tests/test-getdate.c: Likewise.
11227         * tests/test-getndelim2.c: Likewise.
11228         * tests/test-isfinite.c: Likewise.
11229         * tests/test-isinf.c: Likewise.
11230         * tests/test-strerror.c: Likewise.
11231         * tests/test-strsignal.c: Likewise.
11232
11233 2009-12-23  Eric Blake  <ebb9@byu.net>
11234
11235         unistd: work around cygwin bug
11236         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11237         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11238         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11239
11240 2009-12-23  Bruno Haible  <bruno@clisp.org>
11241
11242         localename: More tests.
11243         * tests/test-localename.c (SIZEOF): New macro.
11244         (categories): New variable.
11245         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11246         test_locale_name_default): Add test w.r.t. thread locale.
11247         (test_locale_name_thread): New function.
11248         (main): Invoke it.
11249
11250         localename: Make aware of thread locale.
11251         * lib/localename.h (gl_locale_name_thread): New declaration.
11252         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11253         behaviour with respect to thread locale.
11254         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11255         <langinfo.h>, glthread/lock.h.
11256         (SIZE_BITS): New macro.
11257         (string_hash): New function.
11258         (struct hash_node): New type.
11259         (HASH_TABLE_SIZE): New macro.
11260         (struniq_hash_table, struniq_lock): New variables.
11261         (struniq): New function.
11262         (gl_locale_name_thread): New function.
11263         (gl_locale_name): Invoke it.
11264         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11265         * modules/localename (Depends-on): Add lock.
11266         Reported by Mike Gran <spk121@yahoo.com>.
11267
11268 2009-12-23  Eric Blake  <ebb9@byu.net>
11269
11270         va-args: new module
11271         * modules/va-args: New file.
11272         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11273         * MODULES.html.sh (Core language properties): Mention it.
11274
11275         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11276         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11277         named alias for __attribute__((__unused__)).
11278         * lib/chown.c: Update client.
11279         * lib/fchmodat.c: Likewise.
11280         * lib/fts.c: Likewise.
11281         * lib/getdate.y: Likewise.
11282         * lib/getgroups.c: Likewise.
11283         * lib/getopt.c: Likewise.
11284         * lib/getugroups.c: Likewise.
11285         * lib/mkdir.c: Likewise.
11286         * lib/mkfifo.c: Likewise.
11287         * lib/mkfifoat.c: Likewise.
11288         * lib/mknod.c: Likewise.
11289         * lib/mknodat.c: Likewise.
11290         * lib/readlink.c: Likewise.
11291         * lib/se-context.in.h: Likewise.
11292         * lib/se-selinux.in.h: Likewise.
11293         * lib/sockets.c: Likewise.
11294         * lib/symlink.c: Likewise.
11295         * lib/symlinkat.c: Likewise.
11296         * lib/unicodeio.c: Likewise.
11297         * lib/unistr.h: Likewise.
11298         * tests/test-areadlink.c: Likewise.
11299         * tests/test-areadlinkat.c: Likewise.
11300         * tests/test-filenamecat.c: Likewise.
11301         * tests/test-fseeko.c: Likewise.
11302         * tests/test-ftello.c: Likewise.
11303         * tests/test-getdate.c: Likewise.
11304         * tests/test-getgroups.c: Likewise.
11305         * tests/test-gethostname.c: Likewise.
11306         * tests/test-quotearg.c: Likewise.
11307         * tests/test-version-etc.c: Likewise.
11308         * tests/test-xalloc-die.c: Likewise.
11309         * tests/test-xfprintf-posix.c: Likewise.
11310         * tests/test-xprintf-posix.c: Likewise.
11311         * tests/test-xvasprintf.c: Likewise.
11312
11313         tests: avoid compiler warnings
11314         * tests/test-fcntl.c (main): Delete unused parameters.
11315         * tests/test-freopen-safer.c (main): Likewise.
11316         * tests/test-xalloc-die.c (main): Mark unused parameters.
11317         * tests/test-fseeko.c (main): Likewise.
11318         * tests/test-ftello.c (main): Likewise.
11319         * tests/test-nanosleep.c (main): Avoid declaration warning.
11320         * tests/test-sleep.c (main): Likewise.
11321         * tests/test-unsetenv.c (main): Silence warning about string
11322         literal.
11323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11324
11325 2009-12-23  Bruno Haible  <bruno@clisp.org>
11326
11327         * tests/test-localename.c (test_locale_name): New function, extracted
11328         from main. Also test mixed situations.
11329         (test_locale_name_posix, test_locale_name_environ,
11330         test_locale_name_default): New functions.
11331         (main): Invoke them all.
11332         * modules/localename-tests (configure.ac): Test for newlocale.
11333
11334 2009-12-23  Bruno Haible  <bruno@clisp.org>
11335
11336         unistd: Ensure getcwd gets declared before being overridden.
11337         * lib/unistd.in.h: Conditionally include <io.h>.
11338
11339 2009-12-22  Bruno Haible  <bruno@clisp.org>
11340
11341         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11342         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11343         (gl_WCHAR_H): Invoke it.
11344         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11345         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11346         Reported by Karl Berry <karl@freefriends.org>.
11347
11348 2009-12-22  Eric Blake  <ebb9@byu.net>
11349
11350         math, unistd: avoid redundant includes
11351         * lib/math.in.h (isnan): No need to re-include <math.h>.
11352         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11353
11354         getsubopt: work around cygwin bug
11355         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11356         avoid conflicting with system getsubopt.
11357         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11358         bug.
11359
11360         getopt: synchronize from glibc
11361         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11362         parameter order.  Adjust all callers.
11363         (_getopt_internal_r, main): Adjust quoting in error messages.
11364         Drop considerations for outdated POSIX 1003.2 error message.
11365         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11366         callers.
11367         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11368
11369         test-getopt: test stderr behavior
11370         * modules/getopt-posix-tests (Depends-on): Add dup2.
11371         * tests/test-getopt.c (ASSERT): Avoid stderr.
11372         (main): Move stderr to a temporary file.
11373         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11374         Instead, add parameter to inform caller if output occurred.
11375         (test_getopt): Adjust all existing tests to expect silence, and
11376         add new tests of leading ":".
11377         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11378         glibc shortcomings with leading "-:" or "+:" in optstring.
11379         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11380         Likewise.
11381         * doc/posix-functions/getopt.texi (getopt): Likewise.
11382
11383         test-getopt: enhance test
11384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11385         supports optind=0.
11386         * tests/test-getopt.c (OPTIND_MIN): Move...
11387         * tests/test-getopt.h (OPTIND_MIN): ...here.
11388         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11389         Require that optind=0 works, since modern BSD supports it in
11390         addition to optreset, and since coreutils expects it.
11391         (test_getopt_long_only): New test.
11392         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11393         glibc shortcomings with 'W;', and enforcement of optind=0.
11394         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11395         Likewise.
11396
11397 2009-12-21  Bruno Haible  <bruno@clisp.org>
11398
11399         localename: Improvements for MacOS X and Cygwin.
11400         * lib/localename.h (gl_locale_name_environ): New declaration.
11401         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11402         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11403         (gl_locale_name_posix): Invoke it.
11404         (gl_locale_name_default): Add comments. Use Windows native API also on
11405         Cygwin.
11406
11407 2009-12-21  Bruno Haible  <bruno@clisp.org>
11408
11409         Update list of Win32 locale ids.
11410         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11411         (LANG_SAMI): Renamed from LANG_SAAMI.
11412         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11413         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11414         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11415         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11416         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11417         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11418         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11419         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11420         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11421         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11422         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11423         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11424         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11425         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11426         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11427         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11428         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11429         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11430         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11431         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11432         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11433         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11434         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11435         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11436         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11437         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11438         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11439         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11440         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11441         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11442         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11443         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11444         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11445         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11446         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11447         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11448         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11449         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11450         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11451         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11452         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11453         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11454         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11455         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11456         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11457         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11458         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11459         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11460         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11461         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11462         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11463         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11464         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11465         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11466         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11467         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11468         Add more languages and countries for Sami, Sorbian. Add more countries
11469         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11470         for Pashto. Change country for Syriac, Tswana.
11471
11472 2009-12-21  Eric Blake  <ebb9@byu.net>
11473
11474         test-utimens: avoid spurious failure
11475         * tests/test-chown.h (nap): Factor...
11476         * tests/nap.h: ...into new file.
11477         * tests/test-lchown.h (nap): Avoid duplication.
11478         * tests/test-utimens-common.h (nap): Use shared implementation,
11479         necessary on file systems with 1-second resolution.
11480         * modules/chown-tests (Files): Include new file.
11481         * modules/fdutimensat-tests (Files): Likewise.
11482         * modules/futimens-tests (Files): Likewise.
11483         * modules/lchown-tests (Files): Likewise.
11484         * modules/openat-tests (Files): Likewise.
11485         * modules/utimens-tests (Files): Likewise.
11486         * modules/utimensat-tests (Files): Likewise.
11487
11488 2009-12-19  Eric Blake  <ebb9@byu.net>
11489
11490         futimens, utimensat: work around Linux bug
11491         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11492         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11493         * lib/utimensat.c (rpl_utimensat): Work around it.
11494         * lib/futimens.c (rpl_futimens): Adjust comment.
11495
11496         utimens: work around Linux ctime bug
11497         * lib/utimens.c (detect_ctime_bug): New helper function.
11498         (update_timespec): Differentiate between workaround needed for
11499         this bug vs. what is needed for systems that lack utimensat.
11500         (fdutimens, lutimens): Work around bug.
11501
11502         utimens: check for ctime update
11503         * tests/test-utimens-common.h (check_ctime): Define.
11504         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11505         * tests/test-futimens.h (test_futimens): Likewise.
11506         * tests/test-lutimens.h (test_lutimens): Likewise.
11507         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11508         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11509
11510 2009-12-19  Bruno Haible  <bruno@clisp.org>
11511
11512         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11513         * tests/test-dprintf-posix2.sh: New file.
11514         * tests/test-dprintf-posix2.c: New file.
11515         * modules/dprintf-posix-tests (Files): Add them.
11516         (configure.ac): Check for getrlimit and setrlimit.
11517         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11518
11519 2009-12-19  Bruno Haible  <bruno@clisp.org>
11520
11521         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11522         * tests/test-fprintf-posix3.sh: New file.
11523         * tests/test-fprintf-posix3.c: New file.
11524         * modules/fprintf-posix-tests (Files): Add them.
11525         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11526
11527 2009-12-19  Eric Blake  <ebb9@byu.net>
11528
11529         dirfd: fix prototype
11530         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11531         * lib/dirfd.c (dirfd): Likewise.
11532
11533         canonicalize: reduce memory usage
11534         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11535         allocation to size.
11536         Reported by Solar Designer <solar@openwall.com>.
11537
11538 2009-12-19  Bruno Haible  <bruno@clisp.org>
11539
11540         New module attribute 'Applicability'.
11541         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11542         * gnulib-tool: New option --extract-applicability.
11543         (func_usage): Document it.
11544         (sed_extract_prog): Recognize it.
11545         (func_get_applicability): New function.
11546         (func_import): Generalize handling of 'link-warning' module.
11547         * modules/link-warning (Applicability): New section.
11548         * modules/arg-nonnull (Applicability): New section.
11549         Repoted by Simon Josefsson <simon@josefsson.org>.
11550
11551 2009-12-19  Bruno Haible  <bruno@clisp.org>
11552
11553         fflush: tweak
11554         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11555         * lib/fseeko.c (rpl_fseeko): Likewise.
11556
11557 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11558
11559         * lib/gl_list.h: Fix typo in comment.
11560
11561 2009-12-16  Eric Blake  <ebb9@byu.net>
11562
11563         fcntl: use to simplify other modules
11564         * modules/cloexec (Depends-on): Add fcntl.
11565         * modules/fchdir (Depends-on): Likewise.
11566         * modules/fd-safer-flag (Depends-on): Likewise.
11567         * modules/unistd-safer (Depends-on): Likewise.
11568         * modules/dup3 (configure.ac): Set module indicator.
11569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11570         missing.
11571         * lib/fchdir.c (_gl_register_dup): Fix comment.
11572         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11573         * lib/dup-safer.c (dup_safer): Likewise.
11574         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11575         * lib/dup3.c (dup3): Likewise.
11576         * tests/test-fchdir.c (main): Enhance test.
11577         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11578
11579         fcntl: port portions of fcntl to mingw
11580         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11581         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11582         replacement for mingw.
11583         * modules/fcntl (Description): Update.
11584         (Depends-on): Add dup2.
11585         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11586         * modules/fcntl-h (Makefile.am): Substitute it.
11587         * lib/fcntl.in.h (fcntl): Update declaration.
11588         (F_DUPFD, F_GETFD): New macros, when needed.
11589         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11590         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11591         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11592         we now guarantee.
11593
11594         fcntl: work around cygwin bug in F_DUPFD
11595         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11596         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11597         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11598         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11599         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11600
11601         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11602         * modules/fcntl (Files): List new files.
11603         (configure.ac): Run a test.
11604         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11605         * lib/fcntl.c (rpl_fcntl): Likewise.
11606         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11607         (gl_FCNTL_H): Always replace fcntl.h.
11608         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11609         * lib/fcntl.in.h (fcntl): Declare replacement.
11610         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11611         needed, plus a witness.
11612         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11613         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11614         * tests/test-fcntl.c: New file.
11615         * modules/fcntl-tests: Likewise.
11616
11617         binary-io: avoid potential compilation warning
11618         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11619         directives.
11620
11621         fflush: avoid compilation error on NetBSD
11622         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11623         between off_t and fpos_t, since the latter is sometimes a struct.
11624         * lib/fseeko.c (rpl_fseeko): Likewise.
11625         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11626
11627 2009-12-15  Eric Blake  <ebb9@byu.net>
11628
11629         fcntl-h, stdio, sys_ioctl: fix declarations
11630         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11631         function must not take arguments.
11632         * lib/sys_ioctl.in.h (ioctl): Likewise.
11633         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11634         (open): Add a link warning.
11635
11636 2009-12-15  Jim Meyering  <meyering@redhat.com>
11637
11638         areadlink, areadlink-with-size: relax license to LGPLv2+
11639         * modules/areadlink (License): Relax to LGPLv2+.
11640         * modules/areadlink-with-size (License): Likewise.
11641
11642 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11643             Bruno Haible  <bruno@clisp.org>
11644
11645         *printf: Fix memory leak.
11646         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11647         * lib/vfprintf.c (vfprintf): Likewise.
11648         * lib/dprintf.c (dprintf): Likewise.
11649         * lib/vdprintf.c (vdprintf): Likewise.
11650
11651 2009-12-14  Eric Blake  <ebb9@byu.net>
11652
11653         accept4: adjust module dependencies
11654         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11655
11656         utimens: one more try at avoiding compiler warning
11657         * lib/utimens.c (lutimens): Lower scope of result.
11658
11659 2009-12-13  Bruno Haible  <bruno@clisp.org>
11660
11661         Move the malloc checking from module 'list' to new module 'xlist'.
11662         * modules/xlist: New file.
11663         * lib/gl_xlist.h: New file.
11664         * lib/gl_xlist.c: New file.
11665         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11666         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11667         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11668         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11669         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11670         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11671         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11672         gl_sortedlist_nx_add): New declarations.
11673         (struct gl_list_implementation): Rename and change methods accordingly.
11674         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11675         (gl_list_nx_create): Renamed from gl_list_create.
11676         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11677         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11678         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11679         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11680         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11681         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11682         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11683         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11684         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11685         gl_list_create_empty.
11686         (gl_list_nx_create): Renamed from gl_list_create.
11687         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11688         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11689         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11690         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11691         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11692         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11693         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11694         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11695         * lib/gl_array_list.c: Don't include xalloc.h.
11696         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11697         NULL upon out-of-memory.
11698         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11699         out-of-memory.
11700         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11701         Change return type to 'int'.
11702         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11703         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11704         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11705         upon out-of-memory.
11706         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11707         upon out-of-memory.
11708         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11709         upon out-of-memory.
11710         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11711         upon out-of-memory.
11712         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11713         out-of-memory.
11714         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11715         Update.
11716         (gl_array_list_implementation): Update.
11717         * lib/gl_carray_list.c: Don't include xalloc.h.
11718         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11719         Return NULL upon out-of-memory.
11720         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11721         out-of-memory.
11722         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11723         Change return type to 'int'.
11724         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11725         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11726         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11727         upon out-of-memory.
11728         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11729         upon out-of-memory.
11730         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11731         out-of-memory.
11732         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11733         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11734         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11735         Update.
11736         (gl_carray_list_implementation): Update.
11737         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11738         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11739         gl_linked_create_empty. Return NULL upon out-of-memory.
11740         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11741         out-of-memory.
11742         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11743         Change return type to 'int'. Return -1 upon out-of-memory.
11744         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11745         out-of-memory.
11746         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11747         upon out-of-memory.
11748         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11749         upon out-of-memory.
11750         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11751         NULL upon out-of-memory.
11752         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11753         upon out-of-memory.
11754         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11755         out-of-memory.
11756         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11757         Update.
11758         * lib/gl_linked_list.c: Don't include xalloc.h.
11759         (gl_linked_list_implementation): Update.
11760         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11761         (add_to_bucket): Change return type to 'int'.
11762         (gl_linkedhash_list_implementation): Update.
11763         * lib/gl_anytree_list1.h (free_subtree): New function.
11764         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11765         gl_tree_create_empty. Return NULL upon out-of-memory.
11766         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11767         Change return type to 'int'. Return -1 upon out-of-memory.
11768         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11769         out-of-memory.
11770         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11771         (gl_tree_remove_node): New function, moved here from
11772         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11773         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11774         Update.
11775         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11776         malloc, not xmalloc. Return NULL upon out-of-memory.
11777         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11778         out-of-memory.
11779         (gl_tree_remove_node_from_tree): New function, extracted from
11780         gl_tree_remove_node.
11781         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11782         upon out-of-memory.
11783         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11784         out-of-memory.
11785         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11786         upon out-of-memory.
11787         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11788         upon out-of-memory.
11789         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11790         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11791         not xmalloc. Return NULL upon out-of-memory.
11792         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11793         out-of-memory.
11794         (gl_tree_remove_node_from_tree): New function, extracted from
11795         gl_tree_remove_node.
11796         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11797         upon out-of-memory.
11798         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11799         out-of-memory.
11800         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11801         upon out-of-memory.
11802         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11803         upon out-of-memory.
11804         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11805         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11806         gl_anytree_list1.h before gl_anyavltree_list2.h.
11807         (gl_avltree_list_implementation): Update.
11808         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11809         gl_anytree_list1.h before gl_anyavltree_list2.h.
11810         (gl_rbtree_list_implementation): Update.
11811         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11812         Change return type to 'int'. Return -1 upon out-of-memory. Use
11813         __builtin_expect.
11814         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11815         (gl_avltreehash_list_implementation): Update.
11816         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11817         (gl_rbtreehash_list_implementation): Update.
11818         * modules/array-list (Depends-on): Remove xalloc.
11819         * modules/carray-list (Depends-on): Likewise.
11820         * modules/linked-list (Depends-on): Likewise.
11821         * modules/linkedhash-list (Depends-on): Likewise.
11822         * modules/avltree-list (Depends-on): Likewise.
11823         * modules/rbtree-list (Depends-on): Likewise.
11824         * modules/avltreehash-list (Depends-on): Likewise.
11825         * modules/rbtreehash-list (Depends-on): Likewise.
11826
11827         * modules/xsublist: New file.
11828         * lib/gl_xsublist.h: New file.
11829         * lib/gl_xsublist.c: New file.
11830         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11831         (gl_sublist_nx_create): New declaration.
11832         * lib/gl_sublist.c: Don't include xalloc.h.
11833         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11834         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11835         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11836         Change return type to 'int'. Return -1 upon out-of-memory.
11837         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11838         upon out-of-memory.
11839         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11840         NULL upon out-of-memory.
11841         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11842         upon out-of-memory.
11843         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11844         NULL upon out-of-memory.
11845         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
11846         NULL upon out-of-memory.
11847         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
11848         upon out-of-memory.
11849         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
11850         (gl_sublist_list_implementation): Update.
11851         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
11852         upon out-of-memory.
11853         * modules/sublist (Depends-on): Remove xalloc.
11854
11855         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
11856         * tests/test-carray_list.c: Likewise.
11857         * tests/test-linked_list.c: Likewise.
11858         * tests/test-linkedhash_list.c: Likewise.
11859         * tests/test-avltree_list.c: Likewise.
11860         * tests/test-rbtree_list.c: Likewise.
11861         * tests/test-avltreehash_list.c: Likewise.
11862         * tests/test-rbtreehash_list.c: Likewise.
11863         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
11864         * modules/carray-list-tests (Makefile.am): Likewise.
11865         * modules/linked-list-tests (Makefile.am): Likewise.
11866         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11867         * modules/avltree-list-tests (Makefile.am): Likewise.
11868         * modules/rbtree-list-tests (Makefile.am): Likewise.
11869         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11870         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11871
11872         * NEWS: Mention the changes.
11873
11874         * lib/clean-temp.c: Include gl_xlist.h.
11875         * modules/clean-temp (Depends-on): Add xlist.
11876
11877         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
11878         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
11879
11880         * tests/test-array_oset.c: Include gl_xlist.h.
11881         * modules/array-oset-tests (Depends-on): Add xlist.
11882
11883         Reported by José E. Marchesi <jemarch@gnu.org>.
11884
11885 2009-12-13  Bruno Haible  <bruno@clisp.org>
11886
11887         Move the malloc checking from module 'oset' to new module 'xoset'.
11888         * modules/xoset: New file.
11889         * lib/gl_xoset.h: New file.
11890         * lib/gl_xoset.c: New file.
11891         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
11892         declarations.
11893         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
11894         (struct gl_oset_implementation): Rename and change methods accordingly.
11895         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
11896         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11897         'int'. Mark as __warn_unused_result__.
11898         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
11899         gl_oset_create_empty.
11900         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
11901         'int'.
11902         * lib/gl_array_oset.c: Don't include xalloc.h.
11903         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
11904         malloc, not xmalloc.
11905         (grow): Change return type to 'int'. Don't call xalloc_die.
11906         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
11907         to 'int'.
11908         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
11909         'int'.
11910         (gl_array_oset_implementation): Update.
11911         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
11912         gl_tree_create_empty.
11913         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
11914         'int'.
11915         * lib/gl_avltree_oset.c: Don't include xalloc.h.
11916         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11917         xmalloc.
11918         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11919         not xmalloc.
11920         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11921         xmalloc.
11922         (gl_avltree_oset_implementation): Update.
11923         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
11924         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
11925         xmalloc.
11926         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
11927         not xmalloc.
11928         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
11929         xmalloc.
11930         (gl_rbtree_oset_implementation): Update.
11931         * modules/array-oset (Depends-on): Remove xalloc.
11932         * modules/avltree-oset (Depends-on): Likewise.
11933         * modules/rbtree-oset (Depends-on): Likewise.
11934         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
11935         * tests/test-avltree_oset.c: Likewise.
11936         * tests/test-rbtree_oset.c: Likewise.
11937         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11938         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
11939         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11940         * NEWS: Mention the change.
11941
11942 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
11943
11944         maint.mk: allow a project to override release-prep commands
11945         * top/maint.mk (alpha, beta, stable): Move release-preparatory
11946         commands into a new rule.
11947         (release-prep): New rule.
11948         (release-prep-hook): New overridable variable.
11949
11950 2009-12-13  Bruno Haible  <bruno@clisp.org>
11951
11952         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
11953
11954 2009-12-13  Jim Meyering  <meyering@redhat.com>
11955
11956         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
11957         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
11958
11959 2009-12-12  Bruno Haible  <bruno@clisp.org>
11960
11961         duplocale: Tweak.
11962         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
11963
11964 2009-12-12  Karl Berry  <karl@gnu.org>
11965
11966         * config/srclist.txt (strtoll.c): tab changes, no more sync.
11967
11968 2009-12-12  Bruno Haible  <bruno@clisp.org>
11969
11970         * m4/po.m4: Undo incorrect untabification.
11971
11972 2009-12-12  Bruno Haible  <bruno@clisp.org>
11973
11974         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
11975         * modules/c-strtod (Depends-on): Add locale.
11976         * modules/c-strtold (Depends-on): Likewise.
11977
11978 2009-12-12  Bruno Haible  <bruno@clisp.org>
11979
11980         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
11981
11982 2009-12-11  Eric Blake  <ebb9@byu.net>
11983
11984         setenv: relax requirement in light of POSIX ruling
11985         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
11986         not NULL.
11987         * tests/test-setenv.c (main): Relax test.
11988         * tests/test-unsetenv.c (main): Likewise.
11989         * doc/posix-functions/setenv.texi (setenv): Document this.
11990         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11991
11992 2009-12-11  Bruno Haible  <bruno@clisp.org>
11993
11994         New module 'fd-safer-flag'.
11995         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
11996         * lib/dup-safer.c (dup_safer_flag): Remove function.
11997         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
11998         * lib/fd-safer.c (fd_safer_flag): Remove function.
11999         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12000         * modules/cloexec (configure.ac): Drop indicator macro.
12001         * modules/fd-safer-flag: New file.
12002         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12003         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12004         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12005
12006 2009-12-11  Bruno Haible  <bruno@clisp.org>
12007
12008         Tests for module 'nl_langinfo'.
12009         * modules/nl_langinfo-tests: New file.
12010         * tests/test-nl_langinfo.sh: New file.
12011         * tests/test-nl_langinfo.c: New file.
12012
12013         New module 'nl_langinfo'.
12014         * lib/nl_langinfo.c: New file.
12015         * m4/nl_langinfo.m4: New file.
12016         * modules/nl_langinfo: New file.
12017         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12018
12019 2009-12-11  Bruno Haible  <bruno@clisp.org>
12020
12021         Tests for module 'langinfo'.
12022         * modules/langinfo-tests: New file.
12023         * tests/test-langinfo.c: New file.
12024
12025         New module 'langinfo'.
12026         * lib/langinfo.in.h: New file.
12027         * m4/langinfo_h.m4: New file.
12028         * modules/langinfo: New file.
12029         * doc/posix-headers/langinfo.texi: Mention the new module.
12030
12031 2009-12-11  Bruno Haible  <bruno@clisp.org>
12032
12033         * lib/config.charset: Untabify.
12034
12035 2009-12-11  Bruno Haible  <bruno@clisp.org>
12036
12037         * modules/unistd-safer (configure.ac): Drop indicator macro.
12038
12039 2009-12-11  Bruno Haible  <bruno@clisp.org>
12040
12041         Move pipe2-safer code to its own file.
12042         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12043         * lib/pipe-safer.c (pipe2_safer): Remove function.
12044         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12045         (Makefile.am): Add it to lib_SOURCES.
12046
12047 2009-12-10  Bruno Haible  <bruno@clisp.org>
12048
12049         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12050
12051 2009-12-10  Bruno Haible  <bruno@clisp.org>
12052
12053         Declare which arguments expect non-NULL values, for GCC and clang.
12054         * build-aux/arg-nonnull.h: New file.
12055         * modules/arg-nonnull: New file.
12056         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12057         (inet_ntop, inet_pton): Use it.
12058         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12059         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12060         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12061         (open, openat): Use it.
12062         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12063         (fnmatch): Use it.
12064         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12065         (getopt, getopt_long, getopt_long_only): Use it.
12066         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12067         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12068         Use it.
12069         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12070         (iconv_open): Use it.
12071         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12072         (strtoimax, strtoumax): Use it.
12073         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12074         (duplocale): Use it.
12075         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12076         (frexp, frexpl): Use it.
12077         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12078         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12079         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12080         (tsearch, tfind, tdelete, twalk): Use it.
12081         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12082         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12083         sigpending): Use it.
12084         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12085         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12086         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12087         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12088         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12089         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12090         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12091         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12092         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12093         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12094         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12095         Use it.
12096         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12097         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12098         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12099         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12100         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12101         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12102         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12103         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12104         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12105         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12106         strtoull, unsetenv): Use it.
12107         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12108         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12109         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12110         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12111         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12112         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12113         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12114         (strcasecmp, strncasecmp): Use it.
12115         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12116         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12117         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12118         rpl_setsockopt): Use it.
12119         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12120         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12121         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12122         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12123         (gettimeofday): Use it.
12124         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12125         (times): Use it.
12126         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12127         (uname): Use it.
12128         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12129         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12130         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12131         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12132         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12133         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12134         unlinkat, write): Use it.
12135         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12136         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12137         * lib/argv-iter.h: Include arg-nonnull.h.
12138         (_ATTRIBUTE_NONNULL_): Remove macro.
12139         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12140         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12141         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12142         optimization.
12143         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12144         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12145         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12146         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12147         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12148         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12149         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12150         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12151         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12152         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12153         * modules/dirent (Depends-on): Add arg-nonnull.
12154         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12155         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12156         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12157         * modules/fnmatch (Depends-on): Add arg-nonnull.
12158         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12159         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12160         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12161         * modules/glob (Depends-on): Add arg-nonnull.
12162         (Makefile.am): Insert arg-nonnull.h into glob.h.
12163         * modules/iconv_open (Depends-on): Add arg-nonnull.
12164         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12165         * modules/inttypes (Depends-on): Add arg-nonnull.
12166         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12167         * modules/locale (Depends-on): Add arg-nonnull.
12168         (Makefile.am): Insert arg-nonnull.h into locale.h.
12169         * modules/math (Depends-on): Add arg-nonnull.
12170         (Makefile.am): Insert arg-nonnull.h into math.h.
12171         * modules/netdb (Depends-on): Add arg-nonnull.
12172         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12173         * modules/search (Depends-on): Add arg-nonnull.
12174         (Makefile.am): Insert arg-nonnull.h into search.h.
12175         * modules/signal (Depends-on): Add arg-nonnull.
12176         (Makefile.am): Insert arg-nonnull.h into signal.h.
12177         * modules/spawn (Depends-on): Add arg-nonnull.
12178         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12179         * modules/stdio (Depends-on): Add arg-nonnull.
12180         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12181         * modules/stdlib (Depends-on): Add arg-nonnull.
12182         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12183         * modules/string (Depends-on): Add arg-nonnull.
12184         (Makefile.am): Insert arg-nonnull.h into string.h.
12185         * modules/strings (Depends-on): Add arg-nonnull.
12186         (Makefile.am): Insert arg-nonnull.h into strings.h.
12187         * modules/sys_socket (Depends-on): Add arg-nonnull.
12188         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12189         * modules/sys_stat (Depends-on): Add arg-nonnull.
12190         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12191         * modules/sys_time (Depends-on): Add arg-nonnull.
12192         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12193         * modules/sys_times (Depends-on): Add arg-nonnull.
12194         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12195         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12196         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12197         * modules/time (Depends-on): Add arg-nonnull.
12198         (Makefile.am): Insert arg-nonnull.h into time.h.
12199         * modules/unistd (Depends-on): Add arg-nonnull.
12200         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12201         * modules/wchar (Depends-on): Add arg-nonnull.
12202         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12203         * modules/argv-iter (Depends-on): Add arg-nonnull.
12204         * tests/test-canonicalize.c (null_ptr): New function.
12205         (main): Use it.
12206         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12207         (main): Use it.
12208         * tests/test-memmem.c (null_ptr): New function.
12209         (main): Use it.
12210         Reported by Jim Meyering.
12211
12212 2009-12-10  Bruno Haible  <bruno@clisp.org>
12213
12214         Use spaces for indentation, not tabs.
12215         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12216         * m4/*.m4: Untabify.
12217         * build-aux/*.h: Untabify.
12218         * tests/**/*.[hc]: Untabify.
12219         * README: New section "Indent with spaces, not TABs", based on
12220         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12221         * NEWS: Mention the change.
12222
12223 2009-12-10  Bruno Haible  <bruno@clisp.org>
12224
12225         pty test: Fix link error.
12226         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12227         test_pty_LDADD.
12228
12229 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12230
12231         * modules/pty: New file.
12232         * modules/pty-tests: New file.
12233         * m4/pty.m4: New file.
12234         * tests/test-pty.c: New file.
12235         * doc/glibc-headers/pty.texi: Modified.
12236         * doc/glibc-functions/forkpty.texi: Modified.
12237         * doc/glibc-functions/openpty.texi: Modified.
12238
12239 2009-12-10  Bruno Haible  <bruno@clisp.org>
12240
12241         Avoid syntax error in C++ mode.
12242         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12243
12244 2009-12-10  Bruno Haible  <bruno@clisp.org>
12245
12246         Use sed with option -e.
12247         * gnulib-tool (func_version, func_emit_copyright_notice,
12248         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12249         option -e to sed.
12250         * modules/link-warning (Makefile.am): Likewise.
12251
12252 2009-12-10  Jim Meyering  <meyering@redhat.com>
12253
12254         mgetgroups: do not write bytes beyond end of malloc'd buffer
12255         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12256         username, we call getgroups with a one-element-shorter buffer,
12257         but still told it the length was original, max_n_groups.
12258
12259 2009-12-09  Eric Blake  <ebb9@byu.net>
12260
12261         cloexec: relax license
12262         * modules/cloexec (Maintainer): Add myself.
12263         (License): Use LGPL, not GPL.
12264
12265         link-warning: optimize generation
12266         * modules/link-warning (Makefile.am): Reduce process usage.
12267
12268 2009-12-09  Bruno Haible  <bruno@clisp.org>
12269
12270         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12271         workaround was added on 2009-11-17.
12272
12273 2009-12-09  Jim Meyering  <meyering@redhat.com>
12274             Bruno Haible  <bruno@clisp.org>
12275
12276         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12277         * modules/link-warning (Makefile.am): Make the comment-removing sed
12278         command more robust in the face of bootstrap-prepended comment lines.
12279
12280 2009-12-09  Bruno Haible  <bruno@clisp.org>
12281
12282         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12283         most one group.
12284
12285 2009-12-09  Simon Josefsson <simon@josefsson.org>
12286             Bruno Haible  <bruno@clisp.org>
12287
12288         * build-aux/link-warning.h: Add copyright notice.
12289         * modules/link-warning (Makefile.am): Generate link-warning.h from
12290         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12291         * NEWS: Mention change in link-warning module.
12292         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12293         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12294         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12295         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12296         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12297         * modules/math (Makefile.am): Add dependency to math.h.
12298         * modules/search (Makefile.am): Add dependency to search.h.
12299         * modules/signal (Makefile.am): Add dependency to signal.h.
12300         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12301         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12302         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12303         * modules/string (Makefile.am): Add dependency to string.h.
12304         * modules/strings (Makefile.am): Add dependency to strings.h.
12305         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12306         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12307         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12308         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12309         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12310         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12311         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12312         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12313         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12314
12315 2009-12-09  Bruno Haible  <bruno@clisp.org>
12316
12317         fchdir: Optimize away rpl_fstat when possible.
12318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12319         REPLACE_OPEN_DIRECTORY.
12320         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12321
12322 2009-12-09  Bruno Haible  <bruno@clisp.org>
12323
12324         * lib/fchdir.c: Update comment.
12325
12326 2009-12-09  Bruno Haible  <bruno@clisp.org>
12327
12328         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12329
12330 2009-12-08  Eric Blake  <ebb9@byu.net>
12331
12332         fchdir: avoid memory leak on re-registration.
12333         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12334
12335 2009-12-08  Jim Meyering  <meyering@redhat.com>
12336
12337         init.sh: avoid Solaris 10 /bin/sh portability problem
12338         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12339         sourced script:
12340           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12341           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12342           bar
12343         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12344         and two tests used that idiom.
12345         * tests/init.sh: Update suggested usage comments.
12346         (path_prepend_): New function, to be used in place
12347         of the --src-path=DIR option.
12348         (setup_): Move PATH-prepending code into path_prepend_.
12349         * tests/test-pread.sh: Adapt to new usage.
12350         * tests/test-xalloc-die.sh: Likewise.
12351
12352 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12353
12354         * doc/gnulib.texi (Glibc pty.h): Add.
12355         * doc/glibc-functions/forkpty.texi: Add.
12356         * doc/glibc-functions/openpty.texi: Add.
12357         Suggested by Bruno Haible.
12358
12359 2009-12-08  Eric Blake  <ebb9@byu.net>
12360
12361         fchdir: fix logic bugs
12362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12363         * tests/test-fchdir.c (main): Enhance test.
12364         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12365         is in use.
12366
12367         dup2: fix logic bugs
12368         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12369         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12370         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12371         exists.
12372         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12373
12374 2009-12-07  Eric Blake  <ebb9@byu.net>
12375
12376         unlink: fix m4 detection
12377         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12378
12379         unistd-safer: add unit test
12380         * modules/unistd-safer-tests: New file.
12381         * tests/test-dup-safer.c: Likewise.
12382         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12383         * tests/test-dup2.c (setmode): Likewise.
12384         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12385
12386         cloexec: preserve text vs. binary across dup_cloexec
12387         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12388         mode.
12389         * modules/dup2-tests (Depends-on): Add binary-io.
12390         * modules/cloexec-tests (Depends-on): Likewise.
12391         * tests/test-dup2.c (setmode, is_mode): New helpers.
12392         (main): Add tests that translation mode is preserved.
12393         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12394         Reported by Bruno Haible.
12395
12396         mgetgroups: reduce duplicate listings
12397         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12398         resulting array.
12399         * tests/test-chown.h (test_chown): Simplify client.
12400         * tests/test-lchown.h (test_lchown): Likewise.
12401
12402 2009-12-06  Bruno Haible  <bruno@clisp.org>
12403
12404         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12405         value.
12406
12407 2009-12-06  Bruno Haible  <bruno@clisp.org>
12408
12409         * lib/progname.c: Include stdio.h, stdlib.h.
12410         (set_program_name): Reject a NULL argument.
12411
12412 2009-12-05  Eric Blake  <ebb9@byu.net>
12413
12414         pipe2-safer: new module
12415         * modules/pipe2-safer: New file.
12416         * lib/unistd-safer.h (pipe2_safer): New prototype.
12417         * lib/unistd--.h (pipe2): New wrapper.
12418         * lib/pipe-safer.c (pipe2_safer): New function.
12419         * modules/pipe (Depends-on): Add pipe2-safer.
12420         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12421
12422         stdlib-safer: preserve cloexec flag for mkostemp[s]
12423         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12424         fd_safer_flag.
12425
12426         unistd-safer: allow preservation of cloexec status via flag
12427         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12428         prototypes.
12429         * lib/dup-safer.c (dup_safer_flag): New function.
12430         * lib/fd-safer.c (fd_safer_flag): Likewise.
12431         * modules/cloexec (configure.ac): Set witness.
12432
12433         test-dup2: enhance test
12434         * modules/dup2-tests (Depends-on): Add cloexec.
12435         * tests/test-dup2.c (main): Enhance test.
12436
12437         cloexec: add dup_cloexec
12438         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12439         header and comments.
12440         * lib/cloexec.c (set_cloexec_flag): Add comments.
12441         (dup_cloexec): New function, with mingw implementation borrowed
12442         from...
12443         * lib/w32spawn.h (dup_noinherit): ...here.
12444         * modules/execute (Depends-on): Add cloexec.
12445         * modules/pipe (Depends-on): Likewise.
12446         * modules/cloexec (Depends-on): Add dup2.
12447         * modules/cloexec-tests (Files): New file.
12448         * tests/test-cloexec.c: Likewise.
12449
12450         test-xalloc-die: fix test for mingw
12451         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12452         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12453         directory and .exe suffix off argv[0] output.
12454
12455         test-fseeko: fix test for mingw
12456         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12457         than undefining fseek, so test will pass on mingw.
12458
12459 2009-12-05  Bruno Haible  <bruno@clisp.org>
12460
12461         * lib/progname.h (set_program_name): Clarify specification.
12462         * lib/progname.c (set_program_name): Likewise.
12463         Reported by Jim Meyering.
12464
12465 2009-12-05  Jim Meyering  <meyering@redhat.com>
12466
12467         maint.mk: backslash-escape parens in default regexp
12468         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12469         backslash-escape the literal parentheses.
12470
12471         maint.mk: news-date-check: use grep -E
12472         * top/maint.mk (today): Define a Make variable, not a...
12473         (news-date-check): ...shell variable.
12474         (news-date-regexp): Use the Make variable.
12475         Use grep's -E option.  Change the failing diagnostic to mention
12476         the variable, $(news-date-regexp).
12477
12478 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12479
12480         maintainer-makefile: allow customization of NEWS entry format
12481         * top/maint.mk (news-date-regexp): New overridable variable.
12482         (news-date-check): Use it.
12483
12484 2009-12-04  Eric Blake  <ebb9@byu.net>
12485
12486         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12487         * lib/mgetgroups.h (xgetgroups): New prototype.
12488         * lib/mgetgroups.c (xgetgroups): New wrapper.
12489         (mgetgroups): Handle ENOSYS.
12490         * modules/mgetgroups (Depends-on): Add realloc.
12491         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12492
12493         mgetgroups: avoid argument promotion issues with -1
12494         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12495         for invalid gid_t.
12496         * tests/test-chown.h (getegid, test_chown): Likewise.
12497         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12498
12499 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12500
12501         exclude: Fix header file problems.
12502         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12503
12504 2009-12-01  Jim Meyering  <meyering@redhat.com>
12505
12506         fts: fts_open: do not let an empty string cause immediate failure
12507         This is required in support of GNU rm, for which the command
12508         "rm A '' B" must process and remove both A and B, in spite of
12509         the empty string argument.
12510         * lib/fts.c (fts_open): Do not let the presence of an empty string
12511         cause fts_open to fail immediately.  Most fts-using tools must be
12512         able to process all arguments, in order, and can be expected to
12513         diagnose such arguments themselves.
12514
12515 2009-11-30  Eric Blake  <ebb9@byu.net>
12516
12517         utimens: fix compilation error
12518         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12519         Declare variable at right scope.
12520
12521 2009-11-29  Jim Meyering  <meyering@redhat.com>
12522
12523         bootstrap: handle perl-5.11's changed --version output
12524         * build-aux/bootstrap (get_version): Handle perl separately,
12525         since perl-5.11's --version output is different.
12526
12527 2009-11-28  Jim Meyering  <meyering@redhat.com>
12528
12529         userspec: depend on the inttostr module, too
12530         * modules/userspec (Depends-on): Add inttostr.
12531
12532         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12533         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12534         number of MAXUID when it evaluates to (uid_t) -1.
12535         Likewise for group ID.  Reported by Matt McCutchen in
12536         <http://savannah.gnu.org/bugs/?28113>
12537
12538         userspec: reformat to use spaces, not TABs
12539         * lib/userspec.c: Expand TABs to spaces.
12540         Add Emacs' "indent-tabs-mode: nil" hint.
12541
12542 2009-11-27  Eric Blake  <ebb9@byu.net>
12543
12544         getopt-gnu: flush out another BSD bug
12545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12546         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12547         flush out BSD bug.
12548         * tests/test-getopt.h (test_getopt): End lists with NULL.
12549         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12550         (test_getopt_long_posix): Enhance test.
12551         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12552         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12553         getopt-gnu.
12554         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12555         Likewise.
12556
12557 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12558
12559         * modules/idpriv-droptemp-tests (Notice): Fix text.
12560
12561 2009-11-27  Jim Meyering  <meyering@redhat.com>
12562
12563         test-xalloc-die: avoid spurious failure due to libtool argv difference
12564         In a libtool-enabled project, this test would fail due to a difference
12565         in the emitted program name, e.g.,
12566         -test-xalloc-die: memory exhausted
12567         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12568         Use program to avoid that.
12569         * modules/xalloc-die-tests (Depends-on): Add progname.
12570         * tests/test-xalloc-die.c: Include progname.h".
12571         (program_name): Remove decl.
12572         (main): Call set_program_name.
12573         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12574
12575 2009-11-26  Richard Jones  <rjones@redhat.com>
12576
12577         w32sock: leave win32 error in place.
12578         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12579
12580 2009-11-26  Eric Blake  <ebb9@byu.net>
12581
12582         init.sh: suggest to use skip_ and fail_ functions in comments
12583         * tests/init.sh: Add a sentence.
12584
12585 2009-11-25  Bruno Haible  <bruno@clisp.org>
12586
12587         init.sh: add documentation in comments
12588         * tests/init.sh: Add some developer and user documentation.
12589
12590 2009-11-26  Jim Meyering  <meyering@redhat.com>
12591
12592         init.sh: accommodate even those who specify bogus srcdir manually
12593         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12594         configure-time tests to be sanitized, so that there is no need to
12595         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12596         (with no double quotes) suffices.  However, since tests may be
12597         invoked manually, and since you may explicitly set srcdir to the
12598         name of a directory containing spaces, do quote its uses here.
12599         * tests/test-pread.sh: Likewise.
12600         Suggested by Bruno Haible.
12601
12602         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12603         * tests/test-pread.sh: Write no data into the pipe, because
12604         test-pread actually reads none.  This avoids a diagnostic,
12605         "bash: echo: write error: Broken pipe", that arises in the unusual
12606         event something is ignoring SIGPIPE, and might be interpreted
12607         as some sort of failure.  Reported by Bruno Haible.
12608
12609 2009-11-25  Jim Meyering  <meyering@redhat.com>
12610
12611         test-pread: cover failure with ESPIPE and EINVAL
12612         * tests/test-pread.c (main): Test for failure, too.
12613         * tests/test-pread.sh: Invoke with stdin on a pipe.
12614         Suggested by Eric Blake.
12615
12616         pread: improvement and fix
12617         * modules/pread (Depends-on): Depend on lseek, for portability to
12618         e.g., mingw.  Suggested by Eric Blake.
12619         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12620
12621         unistd.in.h: correct declaration of pread
12622         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12623         Reported by Richard W.M. Jones.
12624
12625         test-pread.sh: distribute the test script
12626         * modules/pread-tests (Files): Include test-pread.sh.
12627
12628         test-pread.sh: clean up
12629         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12630         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12631         That is unnecessary, since it's always ".".
12632         Suggestion from Eric Blake.
12633
12634         test-pread.sh: make executable
12635         * tests/test-pread.sh: Set executable bit.
12636         Reported by Eric Blake.
12637
12638         correct typo in test-pread.sh
12639         * tests/test-pread.sh: Add #! line.
12640
12641         test pread
12642         * tests/test-pread.c: New file.
12643         * tests/test-pread.sh: Likewise.
12644         * modules/pread-tests: Likewise.
12645
12646         pread: new module
12647         * modules/pread: New file.
12648         * lib/unistd.in.h (pread): Define/declare.
12649         * lib/pread.c (pread): New file.
12650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12651         * modules/unistd (Makefile.am): Substitute witnesses.
12652         * doc/posix-functions/pread.texi (pread): Update.
12653         * MODULES.html.sh: Add pread.
12654
12655 2009-11-25  Jim Meyering  <meyering@redhat.com>
12656
12657         tests/init.sh: new file to be used via most *.sh tests
12658         * tests/init.sh: New file.
12659
12660 2009-11-25  Eric Blake  <ebb9@byu.net>
12661
12662         utimens: work around older Linux failure with symlinks
12663         * lib/utimens.c (lutimensat_works_really): New variable.
12664         (fdutimens, lutimens): Use it to manage kernels that support
12665         nanosecond times on files, but not on symlinks.
12666         Reported by Ondřej Vašík.
12667
12668         utimes: fix configure grammar
12669         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12670
12671 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12672
12673         regex: Fix fastmap for multibyte character ranges.
12674         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12675         characters when a multibyte character range is included.
12676
12677 2009-11-22  Andy Wingo  <wingo@pobox.com>
12678
12679         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12680         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12681
12682 2009-11-24  Bruno Haible  <bruno@clisp.org>
12683
12684         doc: Most *_l functions exist in MacOS X 10.5.
12685         * doc/posix-functions/duplocale.texi: Update platforms list.
12686         * doc/posix-functions/freelocale.texi: Likewise.
12687         * doc/posix-functions/newlocale.texi: Likewise.
12688         * doc/posix-functions/uselocale.texi: Likewise.
12689         * doc/posix-functions/isalnum_l.texi: Likewise.
12690         * doc/posix-functions/isalpha_l.texi: Likewise.
12691         * doc/posix-functions/isblank_l.texi: Likewise.
12692         * doc/posix-functions/iscntrl_l.texi: Likewise.
12693         * doc/posix-functions/isdigit_l.texi: Likewise.
12694         * doc/posix-functions/isgraph_l.texi: Likewise.
12695         * doc/posix-functions/islower_l.texi: Likewise.
12696         * doc/posix-functions/isprint_l.texi: Likewise.
12697         * doc/posix-functions/ispunct_l.texi: Likewise.
12698         * doc/posix-functions/isspace_l.texi: Likewise.
12699         * doc/posix-functions/isupper_l.texi: Likewise.
12700         * doc/posix-functions/iswalnum_l.texi: Likewise.
12701         * doc/posix-functions/iswalpha_l.texi: Likewise.
12702         * doc/posix-functions/iswblank_l.texi: Likewise.
12703         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12704         * doc/posix-functions/iswctype_l.texi: Likewise.
12705         * doc/posix-functions/iswdigit_l.texi: Likewise.
12706         * doc/posix-functions/iswgraph_l.texi: Likewise.
12707         * doc/posix-functions/iswlower_l.texi: Likewise.
12708         * doc/posix-functions/iswprint_l.texi: Likewise.
12709         * doc/posix-functions/iswpunct_l.texi: Likewise.
12710         * doc/posix-functions/iswspace_l.texi: Likewise.
12711         * doc/posix-functions/iswupper_l.texi: Likewise.
12712         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12713         * doc/posix-functions/isxdigit_l.texi: Likewise.
12714         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12715         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12716         * doc/posix-functions/strcoll_l.texi: Likewise.
12717         * doc/posix-functions/strfmon_l.texi: Likewise.
12718         * doc/posix-functions/strftime_l.texi: Likewise.
12719         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12720         * doc/posix-functions/strxfrm_l.texi: Likewise.
12721         * doc/posix-functions/tolower_l.texi: Likewise.
12722         * doc/posix-functions/toupper_l.texi: Likewise.
12723         * doc/posix-functions/towctrans_l.texi: Likewise.
12724         * doc/posix-functions/towlower_l.texi: Likewise.
12725         * doc/posix-functions/towupper_l.texi: Likewise.
12726         * doc/posix-functions/wcscoll_l.texi: Likewise.
12727         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12728         * doc/posix-functions/wctrans_l.texi: Likewise.
12729         * doc/posix-functions/wctype_l.texi: Likewise.
12730         * doc/glibc-functions/strptime_l.texi: Likewise.
12731         * doc/glibc-functions/strtod_l.texi: Likewise.
12732         * doc/glibc-functions/strtof_l.texi: Likewise.
12733         * doc/glibc-functions/strtol_l.texi: Likewise.
12734         * doc/glibc-functions/strtold_l.texi: Likewise.
12735         * doc/glibc-functions/strtoll_l.texi: Likewise.
12736         * doc/glibc-functions/strtoul_l.texi: Likewise.
12737         * doc/glibc-functions/strtoull_l.texi: Likewise.
12738         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12739         * doc/glibc-functions/wcstod_l.texi: Likewise.
12740         * doc/glibc-functions/wcstof_l.texi: Likewise.
12741         * doc/glibc-functions/wcstol_l.texi: Likewise.
12742         * doc/glibc-functions/wcstold_l.texi: Likewise.
12743         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12744         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12745         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12746
12747 2009-11-24  Bruno Haible  <bruno@clisp.org>
12748
12749         duplocale: Fix logic bug.
12750         * lib/duplocale.c: Don't include <langinfo.h>.
12751         (_NL_LOCALE_NAME): Remove macro.
12752         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12753         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12754
12755 2009-11-23  Jim Meyering  <meyering@redhat.com>
12756
12757         test-update-copyright: don't hard-code /usr/bin/perl
12758         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12759         perl to print the current year.  Gilles Espinasse reported that
12760         the replaced use of perl was hard-coded as /usr/bin/perl.
12761
12762 2009-11-23  Bruno Haible  <bruno@clisp.org>
12763
12764         duplocale: Add support for glibc 2.3.x.
12765         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12766
12767 2009-11-22  Bruno Haible  <bruno@clisp.org>
12768
12769         vasnprintf: Tiny optimization.
12770         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12771         MacOS X.
12772
12773 2009-11-22  Bruno Haible  <bruno@clisp.org>
12774
12775         Tests for module 'duplocale'.
12776         * modules/duplocale-tests: New file.
12777         * tests/test-duplocale.c: New file.
12778
12779         New module 'duplocale'.
12780         * m4/duplocale.m4: New file.
12781         * lib/locale.in.h (duplocale): New declaration.
12782         * lib/duplocale.c: New file.
12783         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12784         gl_LOCALE_H_DEFAULTS): New macros.
12785         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12786         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12787         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12788         REPLACE_DUPLOCALE.
12789         * modules/duplocale: New file.
12790         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12791
12792 2009-11-22  Bruno Haible  <bruno@clisp.org>
12793
12794         * modules/locale-tests (configure.ac): Test for newlocale function.
12795         * tests/test-locale.c: When the system has extended locale functions,
12796         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12797
12798         locale: Make locale_t available when possible.
12799         * lib/locale.in.h: Include <xlocale.h> when it exists.
12800         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12801         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12802         * modules/locale (Depends-on): Add extensions.
12803         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12804         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12805
12806 2009-11-22  Bruno Haible  <bruno@clisp.org>
12807
12808         Add comments.
12809         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12810         invocation.
12811         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12812         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12813         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12814
12815 2009-11-22  Bruno Haible  <bruno@clisp.org>
12816
12817         error: account for the possibility of freopen (stdout).
12818         * lib/error.c: Include <unistd.h>.
12819         (flush_stdout): New function, extracted from error and error_at_line.
12820         Determine stdout's fd dynamically.
12821         (error, error_at_line): Invoke flush_stdout.
12822         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12823         * modules/error (Depends-on): Add unistd.
12824
12825 2009-11-22  Bruno Haible  <bruno@clisp.org>
12826
12827         diffseq: Add comment.
12828         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12829
12830 2009-11-22  Jim Meyering  <meyering@redhat.com>
12831
12832         c-stack: avoid defining an unused static function
12833         * lib/c-stack.c (find_stack_direction): Do not define this function
12834         when it will not be used.
12835
12836         diffseq: avoid spurious gcc warnings
12837         * lib/diffseq.h (IF_LINT2): Define.
12838         (compareseq): Use it to initialize two members of "part".
12839         This avoids two used-uninitialized warnings.
12840
12841 2009-11-21  Jim Meyering  <meyering@redhat.com>
12842
12843         c-stack: avoid "ignoring return value of `write'" warning
12844         * lib/c-stack.c: Include "ignore-value.h".
12845         (die): Explicitly ignore each write return value.
12846         * modules/c-stack (Depends-on): Add ignore-value.
12847
12848 2009-11-21  Bruno Haible  <bruno@clisp.org>
12849
12850         diffseq: reduce scope of variable 'best'.
12851         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
12852         variable, earlier used for two different purposes.
12853
12854 2009-11-21  Jim Meyering  <meyering@redhat.com>
12855
12856         diffseq: remove useless assignment to "best"
12857         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
12858         assignment.  At that point "best" is already guaranteed to be zero.
12859
12860 2009-11-20  Eric Blake  <ebb9@byu.net>
12861
12862         build: mention ftp redirector in release announcements
12863         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
12864         values that used to come from cfg.mk; mention FTP redirect URL.
12865         * build-aux/announce-gen: Mention the mirror list.
12866         Suggested by Karl Berry.
12867
12868         nanosleep: improve port to mingw
12869         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
12870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
12871         LIB_NANOSLEEP, but only when needed.
12872         * modules/select (Link): Document LIBSOCKET.
12873         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
12874         enough.
12875
12876         nanosleep: work around cygwin bug
12877         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
12878         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
12879         bug.
12880         (getnow): Delete, not needed.
12881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
12882         LIB_CLOCK_GETTIME.
12883         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
12884         clock-time, gettime.
12885         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
12886         bug.
12887         * modules/nanosleep-tests: New test.
12888         * tests/test-nanosleep.c: New file.
12889
12890         sleep: work around cygwin bug
12891         * lib/sleep.c (rpl_sleep): Work around the bug.
12892         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
12893         (gl_PREREQ_SLEEP): Delete unused macro.
12894         * modules/sleep (Depends-on): Add verify.
12895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
12896         * modules/unistd (Makefile.am): Substitute witness.
12897         * lib/unistd.in.h (sleep): Update prototype.
12898         * doc/posix-functions/sleep.texi (sleep): Document the bug.
12899         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
12900         * modules/sleep-tests (Depends-on): Check for alarm.
12901
12902 2009-11-20  Jim Meyering  <meyering@redhat.com>
12903
12904         maint.mk: improve sc_prohibit_magic_number_exit
12905         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
12906         so it does not match uses like System.exit(1).
12907         Add comments showing how to correct all offenders.
12908
12909 2009-11-19  Eric Blake  <ebb9@byu.net>
12910
12911         xalloc-die-tests: add missing library
12912         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
12913
12914         test-xvasprintf: silence compiler warnings
12915         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
12916         empty string from gcc.
12917
12918 2009-11-19  Jim Meyering  <meyering@redhat.com>
12919
12920         xfreopen: new module, from coreutils
12921         * modules/xfreopen: New module.
12922         * lib/xfreopen.c: New file.
12923         * lib/xfreopen.h: New file.
12924         * MODULES.html.sh (File stream based Input/Output"): Add it.
12925
12926 2009-11-19  Eric Blake  <ebb9@byu.net>
12927
12928         manywarnings: depend on warnings
12929         * modules/manywarnings (Depends-on): Add warnings.
12930
12931         build: avoid compiler warnings
12932         * lib/select.c (rpl_select): Delete unused variable.
12933         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
12934
12935 2009-11-18  Eric Blake  <ebb9@byu.net>
12936
12937         tests: avoid false negative with --with-packager
12938         * tests/test-version-etc.sh: Discard packager information.
12939         * tests/test-argp-version-etc-1.sh: Likewise.
12940         Reported by Mike Frysinger.
12941
12942         utimens: fix regression on Solaris
12943         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
12944         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
12945         can only change fd timestamps via futimesat.  Instead, use an
12946         additional witness macro to avoid BSD bug.
12947         Reported by Jim Meyering.
12948
12949 2009-11-17  Eric Blake  <ebb9@byu.net>
12950
12951         usleep: use it to simplify tests
12952         * modules/stat-time-tests (Depends-on): Add usleep.
12953         (configure.ac): Drop usleep check.
12954         * modules/chown-tests (Depends-on, configure.ac): Likewise.
12955         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
12956         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
12957         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
12958         * modules/openat-tests (Depends-on, configure.ac): Likewise.
12959         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
12960         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
12961         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
12962         Likewise.
12963         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
12964         * tests/test-lchown.h (nap): Likewise.
12965         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
12966         * tests/test-stat-time.c (nap): Likewise.
12967         * tests/test-utimens-common.h (nap): Update comments.
12968
12969         usleep: new module
12970         * modules/usleep: New file.
12971         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12972         * lib/usleep.c (usleep): Likewise.
12973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
12974         * modules/unistd (Makefile.am): Substitute witnesses.
12975         * lib/unistd.in.h (usleep): Add declaration.
12976         * doc/pastposix-functions/usleep.texi (usleep): Document this.
12977         * MODULES.html.sh (Date and time): Likewise.
12978         * modules/usleep-tests (Depends-on): New test.
12979         * tests/test-usleep.c: New file.
12980
12981         chown: work around OpenBSD bug
12982         * lib/chown.c (rpl_chown): Work around the bug.
12983         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
12984         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
12985         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
12986         * modules/chown (Depends-on): Add stdbool.
12987         * modules/lchown (Depends-on): Likewise.
12988         * doc/posix-functions/chown.texi (chown): Document the bug.
12989         * doc/posix-functions/lchown.texi (lchown): Likewise.
12990         * tests/test-lchown.h (test_chown): Relax test.
12991
12992         mkstemp: avoid conflict with C++ keyword template
12993         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
12994         * lib/mkostemp.c (mkostemp): Likewise.
12995         * lib/mkostemps.c (mkostemps): Likewise.
12996         * lib/mkstemp.c (mkstemp): Likewise.
12997         * lib/mkstemps.c (mkstemps): Likewise.
12998
12999         xalloc-die-tests: optimize
13000         * tests/test-xalloc-die.sh: Reduce number of processes.
13001
13002 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13003
13004         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13005         patch from ludo@gnu.org (Ludovic Courtès).
13006
13007 2009-11-17  Jim Meyering  <meyering@redhat.com>
13008
13009         version-etc: use proper license string
13010         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13011         * modules/version-etc-fsf: Likewise.
13012
13013 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13014
13015         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13016         printed to stdout.  Deal with EOL differences.
13017
13018 2009-11-17  Eric Blake  <ebb9@byu.net>
13019
13020         unsetenv: work around Solaris bug
13021         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13022         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13023         Reported by Jim Meyering.
13024
13025         vasnprintf: avoid compiler warnings
13026         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13027         variables.
13028         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13029
13030 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13031
13032         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13033         settings since xalloc-die is no longer the self test,
13034         xalloc-die.sh is.
13035
13036 2009-11-17  Jim Meyering  <meyering@redhat.com>
13037
13038         test-xalloc-die.sh: make the code agree with the commit log
13039         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13040         at the end, just in case you happen to have a test-xalloc-die
13041         program in some other PATH directory.
13042
13043         test-xalloc-die.sh: fix a portability bug
13044         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13045         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13046         Otherwise, argv[0] (as often seen in diagnostics) would be too
13047         system-dependent, sometimes with, and sometimes without the leading "./".
13048
13049         version-etc-fsf: relax license to LGPLv3+
13050         * modules/version-etc-fsf (License): Relax license.
13051
13052 2009-11-16  Eric Blake  <ebb9@byu.net>
13053
13054         xalloc-die-tests: avoid printing null pointer
13055         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13056         shell script.
13057         * tests/test-xalloc-die.c (program_name): Declare.
13058         * tests/test-xalloc-die.sh (tmpfiles): New file.
13059
13060         setenv, unsetenv: work around various bugs
13061         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13062         (setenv) [HAVE_SETENV]: Work around bugs.
13063         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13065         for bugs.
13066         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13067         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13069         * modules/stdlib (Makefile.am): Update substitutions.
13070         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13071         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13072         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13073         * modules/setenv-tests: New test.
13074         * modules/unsetenv-tests: Likewise.
13075         * tests/test-setenv.c: New file.
13076         * tests/test-unsetenv.c: Likewise.
13077
13078 2009-11-16  Jim Meyering  <meyering@redhat.com>
13079
13080         version-etc: relax license to LGPLv3+
13081         * modules/version-etc (License): Relax license.
13082
13083         better AC_REQUIRE expanded-before-required-warning avoidance
13084         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13085         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13086         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13087         which is no longer needed.
13088
13089 2009-11-16  Eric Blake  <ebb9@byu.net>
13090
13091         test-freading: clean up temporary file
13092         * tests/test-freading.c (main): Remove file on success, and use
13093         ASSERT more liberally.
13094         Reported by Jim Meyering.
13095
13096 2009-11-16  Jim Meyering  <meyering@redhat.com>
13097
13098         avoid new AC_REQUIRE expanded-before-required warnings
13099         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13100         merely using it.
13101         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13102         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13103
13104 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13105
13106         * tests/test-xalloc-die.c: New file.
13107         * modules/xalloc-die-tests: New file.
13108         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13109         XFAIL_TESTS so it can be appended by modules.
13110
13111 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13112
13113         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13114         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13115
13116 2009-11-14  Eric Blake  <ebb9@byu.net>
13117
13118         fnmatch: avoid compiler warning
13119         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13120         to silence compiler warning about mismatch signedness in ?:.
13121         Reported by Robert Millan.
13122
13123         intprops: add double-inclusion guard
13124         * lib/intprops.h: Allow idempotent includes.
13125         Suggested by Bruce Korb.
13126
13127         openat: detect Solaris fchownat bug
13128         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13129         penalizing glibc chownat when only lchownat is broken.
13130         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13131         trailing slash bugs.
13132         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13133         * modules/openat-tests (Files): Include more files.
13134         (Depends-on): Add mgetgroups, sleep, stat-time.
13135         (configure.ac): Add additional checks.
13136         (Makefile.am): Build new test.
13137         * tests/test-fchownat.c: New file.
13138
13139         lchown: detect Solaris and FreeBSD bug
13140         * lib/lchown.c (rpl_lchown): Work around bug.
13141         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13143         * modules/unistd (Makefile.am): Populate it.
13144         * lib/unistd.in.h (lchown): Update declaration.
13145         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13146         * modules/lchown-tests: New file.
13147         * tests/test-lchown.h (test_lchown): Likewise.
13148         * tests/test-lchown.c (main): Likewise.
13149
13150         chown: detect Solaris and FreeBSD bug
13151         * lib/chown.c (rpl_chown): Work around bug.
13152         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13153         (gl_PREREQ_CHOWN): Delete.
13154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13155         * modules/unistd (Makefile.am): Populate it.
13156         * lib/unistd.in.h (chown): Update declaration.
13157         * lib/lchown.c (chown): Update client.
13158         * modules/lchown (Depends-on): Add lstat.
13159         * doc/posix-functions/chown.texi (chown): Document the bug.
13160         * doc/posix-functions/getgroups.texi (getgroups): Document
13161         getgroups pitfall.
13162         * modules/chown-tests: New file.
13163         * tests/test-chown.h (test_chown): Likewise.
13164         * tests/test-chown.c (main): Likewise.
13165
13166 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13167
13168         gnulib-tool: correctly detect absence of m4 directories
13169         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13170
13171 2009-11-14  Jim Meyering  <meyering@redhat.com>
13172
13173         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13174         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13175
13176 2009-11-14  John W. Eaton  <jwe@gnu.org>
13177
13178         strftime.h: wrap funtion declaration in extern "C" block
13179         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13180
13181 2009-11-13  Eric Blake  <ebb9@byu.net>
13182
13183         getgroups: avoid compiler warning
13184         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13185
13186         getgroups: work around FreeBSD bug
13187         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13188         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13189         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13190         * tests/test-getgroups.c (main): Fix buffer overrun.
13191
13192         getgroups: avoid compilation failure
13193         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13194         * modules/getgroups (Depends-on): Add stdint.
13195
13196 2009-11-13  Jim Meyering  <meyering@redhat.com>
13197
13198         test-getgroups: avoid compilation failure
13199         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13200
13201 2009-11-13  Eric Blake  <ebb9@byu.net>
13202
13203         mgetgroups: new module, taken from coreutils
13204         * modules/mgetgroups: New file.
13205         * lib/mgetgroups.h: Likewise.
13206         * lib/mgetgroups.c (mgetgroups): Likewise.
13207         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13208         * MODULES.html.sh (Users and groups): Mention it.
13209
13210         getgroups: don't expose GETGROUPS_T to user
13211         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13212         an element at a time if GETGROUPS_T is wrong size.
13213         * lib/getugroups.h (getugroups): Change signature.
13214         * lib/unistd.in.h (getgroups): Likewise.
13215         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13216         signature needs fixing.
13217         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13218         AC_TYPE_GETGROUPS.
13219         * modules/group-member (Depends-on): Add getgroups.
13220         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13221         (group_member): Rely on getgroups replacement.
13222         * lib/getugroups.c (getugroups): Use gid_t.
13223         * tests/test-getgroups.c (main): Likewise.
13224         * NEWS: Mention the signature change.
13225         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13226         problem with signature.
13227         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13228         GETGROUPS_T is still useful for setgroups.
13229
13230         getgroups, getugroups: provide stubs for mingw
13231         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13232         * lib/getugroups.c (getugroups): Likewise.
13233         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13234         function.  Modernize replacement scheme.
13235         (gl_PREREQ_GETGROUPS): Delete.
13236         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13237         * modules/getgroups (configure.ac): Declare witness.
13238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13239         * modules/unistd (Depends-on): Substitute witness.
13240         * lib/unistd.in.h (getgroups): Declare replacement.
13241
13242         getgroups: avoid calling exit
13243         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13244         drop xalloc.
13245         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13246         dependencies.
13247         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13248         exiting, in the rare case of malloc failure.
13249
13250         getgroups: fix logic error
13251         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13252         has more than 20 groups.
13253         * modules/getgroups-tests: New test.
13254         * tests/test-getgroups.c: New file.
13255
13256 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13257
13258         * tests/test-base64.c: Improve.
13259
13260 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13261
13262         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13263         Blake <ebb9@byu.net>.
13264
13265 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13266
13267         * tests/test-xvasprintf.c: Add %s%s related checks.
13268
13269 2009-11-12  Eric Blake  <ebb9@byu.net>
13270
13271         version-etc: match standards.texi style
13272         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13273         and use <> only for URLs.
13274
13275 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13276
13277         fts: do not fail on a submount during traversal
13278         * lib/fts.c (fts_build): Read the stat info again after opening
13279         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13280         Original report at http://bugzilla.redhat.com/501848.
13281
13282 2009-11-12  Jim Meyering  <meyering@redhat.com>
13283
13284         bootstrap: sync from coreutils
13285         * build-aux/bootstrap (bootstrap_epilogue): New function.
13286         Use git_modules_config in one more place.  This make bootstrap's
13287         --gnulib-srcdir option more useful for testing.
13288
13289         bootstrap: generalize autoheader check
13290         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13291         AC_CONFIG_HEADERS.
13292
13293 2009-11-11  Eric Blake  <ebb9@byu.net>
13294
13295         mkfifoat: use new modules for Solaris and BSD bugs
13296         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13297         * lib/mkfifoat.c (mknodat): Split...
13298         * lib/mknodat.c (mknodat): ...into new file.
13299         * modules/mkfifoat (Files): Ship new file.
13300         (Depends-on): Add mkfifo, mknod.
13301         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13302         (Depends-on): Add symlink.
13303         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13304         redundant with test_mkfifo.h.
13305         (do_mkfifoat, do_mknodat): New helpers.
13306
13307         mknod: new module
13308         * modules/mknod: New file.
13309         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13310         * lib/mknod.c (mknod): Likewise.
13311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13312         defaults.
13313         * modules/sys_stat (Makefile.am): Substitute them.
13314         * lib/sys_stat.in.h (mknod): Declare replacement.
13315         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13316         Document it.
13317         * doc/posix-functions/mknod.texi (mknod): Likewise.
13318         * modules/mknod-tests: New test.
13319         * tests/test-mknod.c: Likewise.
13320
13321         mkfifo: new module
13322         * modules/mkfifo: New file.
13323         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13324         * lib/mkfifo.c (mkfifo): Likewise.
13325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13326         defaults.
13327         * modules/sys_stat (Makefile.am): Substitute them.
13328         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13329         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13330         Document it.
13331         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13332         * modules/mkfifo-tests: New test.
13333         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13334         from test-mkfifoat.c.
13335         * tests/test-mkfifo.c: New file.
13336
13337         readlink: detect FreeBSD bug
13338         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13339         slash on symlink.
13340         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13341         * tests/test-readlink.h (test_readlink): Enhance test.
13342
13343         symlink: detect FreeBSD bug
13344         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13345         slash on symlink.
13346         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13347         * tests/test-symlink.h (test_symlink): Enhance test.
13348
13349 2009-11-10  Eric Blake  <ebb9@byu.net>
13350
13351         link: detect FreeBSD bug
13352         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13353         symlink.
13354         * doc/posix-functions/link.texi (link): Document the bug.
13355         * tests/test-link.h (test_link): Enhance test.
13356         * tests/test-linkat.c (main): Update caller.
13357
13358         unlink, remove: detect FreeBSD bug
13359         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13360         slash on symlink.
13361         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13362         * doc/posix-functions/remove.texi (remove): Likewise.
13363         * tests/test-unlink.h (test_unlink): Enhance test.
13364         * tests/test-remove.c (main): Likewise.
13365
13366 2009-11-09  Eric Blake  <ebb9@byu.net>
13367
13368         rename: detect FreeBSD bug
13369         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13370         slash on symlink.
13371         * modules/renameat-tests (Depends-on): Add filenamecat.
13372         * tests/test-rename.h (test_rename): Allow one more errno.
13373         * tests/test-renameat.c (main): Likewise.
13374         * doc/posix-functions/rename.texi (rename): Document the bug.
13375
13376         open: detect FreeBSD bug
13377         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13378         symlink.
13379         * doc/posix-functions/open.texi (open): Document the bug.
13380         * doc/posix-functions/utimes.texi (utimes): Likewise.
13381         * tests/test-open.h (test_open): Add parameters, and test symlink
13382         handling.
13383         * tests/test-open.c (main): Adjust caller.
13384         * tests/test-fcntl-safer.c (main): Likewise.
13385         * modules/open-tests (Depends-on): Add stdbool, symlink.
13386         * modules/fcntl-safer-tests (Depends-on): Likewise.
13387         * tests/test-openat.c (main): Add test-open tests.
13388
13389         stat: detect FreeBSD bug
13390         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13391         symlink.
13392         * doc/posix-functions/stat.texi (stat): Document the bug.
13393         * tests/test-stat.h (test_stat_func): Add argument.
13394         * tests/test-stat.c (main): Adjust caller.
13395         * tests/test-fstatat.c (main): Likewise.
13396         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13397         Reported by Jim Meyering.
13398
13399 2009-11-09  James Youngman  <jay@gnu.org>
13400
13401         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13402         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13403
13404 2009-11-08  Jim Meyering  <meyering@redhat.com>
13405
13406         utimens: remove invalid futimesat call
13407         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13408         It used the file descriptor of the target file as the DIR_FD
13409         parameter and NULL as the file name.  That caused failure with
13410         errno == EFAULT on FreeBSD-8.0-rc2
13411
13412 2009-11-07  Eric Blake  <ebb9@byu.net>
13413
13414         fflush, freadseek: use fseeko, not fseek
13415         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13416         (clear_ungetc_buffer): Avoid potential problems on large files.
13417         * lib/freadseek.c (freadseek): Likewise.
13418         * modules/freadseek (Depends-on): Add fseeko.
13419         * modules/fseek (configure.ac): Set a witness.
13420         * tests/test-fflush.c (main): Use fseeko.
13421         * tests/test-fpurge.c (fseek): Disable link warning.
13422         * tests/test-freadable.c (fseek): Likewise.
13423         * tests/test-freading.c (fseek): Likewise.
13424         * tests/test-fseeko.c (fseek): Likewise.
13425         * tests/test-ftell.c (fseek): Likewise.
13426         * tests/test-ftello.c (fseek): Likewise.
13427         * tests/test-fwritable.c (fseek): Likewise.
13428         * tests/test-fwriting.c (fseek): Likewise.
13429
13430 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13431
13432         * modules/memchr (Depends-on): Drop getpagesize dependency.
13433
13434 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13435
13436         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13437         Reported by Ludovic Courtès.
13438         * build-aux/pmccabe2html: Improve example usage.
13439         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13440
13441 2009-11-06  Jim Meyering  <meyering@redhat.com>
13442
13443         do-release-commit-and-tag: New module.
13444         Automate the release-commit and tag process.
13445         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13446         * modules/do-release-commit-and-tag: New file.
13447         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13448
13449 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13450
13451         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13452         because test-select.c uses inet_pton.
13453
13454 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13455
13456         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13457         GETADDRINFO_LIB.  Bump serial number.
13458         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13459         Suggested by Eric Blake <ebb9@byu.net>.
13460
13461 2009-11-05  Eric Blake  <ebb9@byu.net>
13462
13463         strtod: detect darwin bug
13464         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13465         Reported by Leo Davis.
13466
13467         freopen-safer: new module
13468         * modules/freopen-safer: New module.
13469         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13470         * lib/freopen-safer.c (freopen_safer): New file.
13471         * lib/stdio-safer.h (freopen_safer): New declaration.
13472         * lib/stdio--.h (freopen): New override.
13473         * MODULES.html.sh (File stream based Input/Output): Mention it.
13474         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13475         freopen-safer module.
13476         * doc/posix-functions/stderr.texi (stderr): Likewise.
13477         * doc/posix-functions/stdin.texi (stdin): Likewise.
13478         * doc/posix-functions/stdout.texi (stdout): Likewise.
13479         * modules/freopen-safer-tests: New test.
13480         * tests/test-reopen-safer.c: New file.
13481
13482 2009-11-05  Jim Meyering  <meyering@redhat.com>
13483
13484         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13485         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13486
13487 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13488
13489         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13490
13491 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13492
13493         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13494
13495 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13496
13497         Fix link error.
13498         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13499         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13500
13501 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13502
13503         * tests/test-func.c: Also test value of __func__.
13504
13505 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13506
13507         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13508         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13509
13510 2009-11-05  Bruno Haible  <bruno@clisp.org>
13511
13512         Fix link error.
13513         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13514         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13515         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13516
13517 2009-11-05  Bruno Haible  <bruno@clisp.org>
13518
13519         Tests for module 'inet_pton'.
13520         * modules/inet_pton-tests: New file.
13521         * tests/test-inet_pton.c: New file.
13522
13523 2009-11-05  Bruno Haible  <bruno@clisp.org>
13524
13525         Tests for module 'inet_ntop'.
13526         * modules/inet_ntop-tests: New file.
13527         * tests/test-inet_ntop.c: New file.
13528
13529 2009-11-04  Eric Blake  <ebb9@byu.net>
13530
13531         stdlib-safer: wrap all mkstemp variants
13532         * modules/mkostemp (configure.ac): Set witness.
13533         * modules/mkostemps (configure.ac): Likewise.
13534         * modules/mkstemps (configure.ac): Likewise.
13535         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13536         (mkstemps_safer): Wrap more functions.
13537         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13538         wrapping.
13539         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13540         (mkstemps_safer): Implement the wrappers.
13541
13542         mkstemps, mkostemps: new modules
13543         * modules/mkostemps: New module.
13544         * modules/mkstemps: Likewise.
13545         * lib/mkostemps.c (mkostemps): New file.
13546         * lib/mkstemps.c (mkstemps): Likewise.
13547         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13548         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13550         * modules/stdlib (Makefile.am): Substitute them.
13551         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13552         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13553         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13554         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13555         * MODULES.html.sh (File system functions): Mention them.
13556
13557         tempname: resync from glibc
13558         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13559         same values for __GT_FILE as glibc.  Abort even when assertions
13560         are disabled.
13561         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13562         match its value otherwise.  Allow idempotent inclusion.
13563         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13564         * lib/mkostemp.c (mkostemp): Likewise.
13565         * lib/mkstemp.c (mkstemp): Likewise.
13566         * lib/tmpfile.c (tmpfile): Likewise.
13567         * NEWS: Document this.
13568
13569         utimens: fix use of futimens on older Linux
13570         * lib/utimens.c (fdutimens): Use updated, rather than original,
13571         timespec to avoid bug in older Linux kernel.
13572         Reported by Simon Josefsson.
13573
13574 2009-11-04  Bruno Haible  <bruno@clisp.org>
13575
13576         Make num_processors more flexible and consistent.
13577         * lib/nproc.h (enum nproc_query): New type.
13578         (num_processors): Add a 'query' argument.
13579         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13580         (num_processors): Add a 'query' argument. Test the value of the
13581         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13582         mingw, count the number of CPUs available for the current process.
13583         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13584         Check for sched_getaffinity and sched_getaffinity_np.
13585         * modules/nproc (Depends-on): Add c-ctype, extensions.
13586         * NEWS: Mention the change.
13587
13588 2009-11-03  Bruno Haible  <bruno@clisp.org>
13589
13590         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13591
13592 2009-11-03  Jim Meyering  <meyering@redhat.com>
13593
13594         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13595         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13596         if it is defined.
13597
13598 2009-11-02  Eric Blake  <ebb9@byu.net>
13599
13600         mktime, timegm: share common declaration
13601         * lib/mktime-internal.h: New file.
13602         * lib/mktime.c: Use it rather than open-coding a declaration.
13603         * lib/timegm.c: Likewise.
13604         * modules/mktime (Files): Ship it.
13605         * modules/timegm (Files): Likewise.
13606         Suggested by Bruno Haible.
13607
13608         test-update-copyright: update test to match script changes
13609         * tests/test-update-copyright.sh: Avoid hard-coding perl
13610         location.  Don't update *.bak created by earlier runs.
13611
13612 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13613             Simon Josefsson  <simon@josefsson.org>
13614             Bruno Haible  <bruno@clisp.org>
13615
13616         Fix link error on Solaris 8.
13617         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13618         also in libnsl. Define also INET_PTON_LIB.
13619         * modules/inet_pton (Link): New section.
13620
13621 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13622             Bruno Haible  <bruno@clisp.org>
13623
13624         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13625         * modules/inet_ntop (Link): New section.
13626         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13627
13628 2009-11-02  Eric Blake  <ebb9@byu.net>
13629
13630         maint: avoid compiler warnings in m4 macros
13631         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13632         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13633
13634 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13635
13636         * m4/pmccabe2html.m4: Remove file.
13637         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13638         function.  Change maintainer.
13639         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13640         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13641         Courtès).
13642
13643 2009-10-31  Eric Blake  <ebb9@byu.net>
13644
13645         fseeko: fix m4 regression
13646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13647         regression from 2009-10-27.
13648         Reported by Ralf Wildenhues.
13649
13650 2009-10-31  Jim Meyering  <meyering@redhat.com>
13651
13652         inttostr: aesthetics and improved (compile-time) safety
13653         Define inttype_is_signed rather than inttype_is_unsigned,
13654         since the sole use is via "#if inttype_is_signed".
13655         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13656         inttype_is_unsigned.
13657         * lib/offtostr.c (inttype_is_signed): Likewise.
13658         * lib/uinttostr.c (inttype_is_signed): Likewise.
13659         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13660         * lib/inttostr.c (inttostr): Use verify to cross-check the
13661         inttype_is_signed value and the signedness of the actual type.
13662         * modules/inttostr (Depends-on): Add verify.
13663
13664 2009-10-30  Eric Blake  <ebb9@byu.net>
13665
13666         build: avoid compiler warnings
13667         * lib/fchmodat.c (lchmod): Mark unused variables.
13668         * lib/getopt.c (_getopt_initialize): Likewise.
13669         * lib/mktime.c (__mktime_internal): Provide prototype.
13670         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13671         older gcc that do not understand #pragma GCC diagnostic.
13672         * lib/uinttostr.c (inttype_is_unsigned): Define.
13673         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13674
13675 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13676
13677         stat: fix compilation on AIX
13678         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13679         only see struct stat64.
13680
13681 2009-10-30  Eric Blake  <ebb9@byu.net>
13682
13683         exclude: make more robust
13684         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13685         rather than masking a coding bug.
13686         Suggested by Bruno Haible.
13687
13688 2009-10-30  Jim Meyering  <meyering@redhat.com>
13689
13690         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13691         Rather than putting #!/usr/bin/perl on the first line,
13692         start with a variant of what's recommended by "man perlrun" that
13693         invokes the first "perl" program from your shell's search path.
13694         * build-aux/gitlog-to-changelog: Replace #!... as above.
13695         Add a "Local Variables" perl mode setting.
13696         Prompted by a patch from Ludovic Courtès.
13697         Improved by Eric Blake.
13698         * build-aux/useless-if-before-free: Likewise.
13699         * build-aux/announce-gen: Likewise.
13700         * build-aux/update-copyright: Likewise.
13701
13702 2009-10-29  Eric Blake  <ebb9@byu.net>
13703
13704         filenamecat-lgpl: adjust clients
13705         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13706         filenamecat.
13707         * modules/renameat (Depends-on): Likewise.
13708
13709         filenamecat: split into filenamecat-lgpl
13710         * modules/filenamecat-lgpl: New module.
13711         * modules/filenamecat (Files): Move library-safe files into
13712         filenamecat-lgpl.
13713         (Depends-on): Add filenamecat-lgpl.
13714         (configure.ac): Declare witness.
13715         * lib/filenamecat.h (file_name_concat): Only declare when using
13716         GPL module.
13717         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13718         Move...
13719         * lib/filenamecat-lgpl.c: ...into new file.
13720         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13721         (gl_FILE_NAME_CONCAT): Use it.
13722         * MODULES.html.sh (File system functions): Mention new module.
13723
13724         argp: avoid memory leak
13725         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13726         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13727         base_name, since the latter malloc()s and can call exit().
13728         Leak introduced 2006-07-03.
13729
13730         dirname-lgpl: adjust clients that don't need full dirname
13731         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13732         * modules/filenamecat (Depends-on): Likewise.
13733         * modules/linkat (Depends-on): Likewise.
13734         * modules/mkancesdirs (Depends-on): Likewise.
13735         * modules/mkdir (Depends-on): Likewise.
13736         * modules/openat (Depends-on): Likewise.
13737         * modules/savewd (Depends-on): Likewise.
13738         * modules/rename (Depends-on): Likewise.
13739         (License): Relax license.
13740         * modules/mkdir-tests (Depends-on): Drop progname.
13741         (Makefile.am): Delete unneeded LDADD.
13742         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13743
13744         dirname: split into dirname-lgpl
13745         * modules/dirname-lgpl: New module.
13746         * modules/dirname (Files): Move library-safe files into
13747         dirname-lgpl.
13748         (Depends-on): Add dirname-lgpl.
13749         (configure.ac): Declare witness.
13750         * modules/double-slash-root (License): Relax license.
13751         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13752         module.
13753         * lib/dirname.c (dir_len, mdir_name): Move...
13754         * lib/dirname-lgpl.c: ...into new file.
13755         * lib/basename.c (last_component, base_len): Move...
13756         * lib/basename-lgpl.c: ...into new file.
13757         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13758         (gl_DIRNAME): Use it.
13759         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13760         Mention new module.
13761         * modules/dirname-tests (Depends-on): Add progname.
13762         * tests/test-dirname.c (program_name): Delete.
13763
13764         mkdir: make safe for libraries
13765         * modules/mkdir (Depends-on): Drop xalloc.
13766         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13767         exit.
13768
13769         tests: avoid some compiler warnings
13770         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13771         literals.
13772         * tests/test-memchr.c (main): Avoid type mismatch.
13773         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13774         * tests/test-base64.c (main): Likewise.
13775         * tests/test-getdelim.c (main): Likewise.
13776         * tests/test-gethostname.c (main): Likewise.
13777         * tests/test-getline.c (main): Likewise.
13778         * tests/test-netinet_in.c (main): Likewise.
13779         * tests/test-select.c (open_server_socket, main): Likewise.
13780         * tests/test-select-stdin.c (main): Likewise.
13781         * tests/test-sockets.c (main): Likewise.
13782         * tests/test-strsignal.c (main): Likewise.
13783         * tests/test-sys_select.c (main): Likewise.
13784         * tests/test-sys_socket.c (main): Likewise.
13785         * tests/test-u64.c (main): Likewise.
13786         * tests/test-xfprintf-posix.c (main): Likewise.
13787         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13788
13789         sockets: avoid compiler warning
13790         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13791
13792         maint: detect usage(1) and other suspicious exits
13793         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13794
13795 2009-10-29  Jim Meyering  <meyering@redhat.com>
13796
13797         timespec: long-to-int truncation could make timespec_cmp malfunction
13798         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13799         a multiple of 2^32 nanoseconds as no difference.
13800
13801 2009-10-28  Jim Meyering  <meyering@redhat.com>
13802
13803         fprintftime: wrap macro code argument in "do {...} while(0)"
13804         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13805         cpy macro must be a statement that can be followed by a semicolon.
13806         Now that the else clause contains a comment and is hence longer
13807         than one line, I require curly braces.  That in turn requires
13808         that we wrap this code block in the standard do...while(0).
13809
13810         fprintftime: remove stray semicolon from previous change
13811         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13812
13813         fprintftime: avoid a warning about ignored fwrite return value
13814         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13815         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13816         that is unsafe.
13817         * modules/fprintftime (Depends-on): Add ignore-value.
13818
13819         exclude: avoid an unwarranted warning
13820         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13821
13822 2009-10-27  Eric Blake  <ebb9@byu.net>
13823
13824         fseek: avoid compilation failure when fflush is replaced
13825         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13826         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13827         module is in use.
13828         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13829         module is not in use; since REPLACE_FSEEK worked otherwise.
13830         (GNULIB_FTELLO): Likewise for ftell.
13831         Reported by Ian Beckwith and others.
13832
13833 2009-10-27  Bruno Haible  <bruno@clisp.org>
13834
13835         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13836         Reported by Jim Meyering.
13837
13838 2009-10-27  Jim Meyering  <jim@meyering.net>
13839             Bruno Haible  <bruno@clisp.org>
13840
13841         Avoid warning despite dropping the return value of fwrite.
13842         * lib/unicodeio.c: Include ignore-value.h.
13843         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13844         * modules/unicodeio (Depends-on): Add ignore-value.
13845
13846 2009-10-26  Eric Blake  <ebb9@byu.net>
13847
13848         areadlinkat: fix fallback path
13849         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
13850         pointer and zero.
13851
13852 2009-10-22  Pádraig Brady  <P@draigBrady.com>
13853
13854         Use a better IO block size for modern systems
13855         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
13856         * lib/md2.c: Likewise.
13857         * lib/md4.c: Likewise.
13858         * lib/md5.c: Likewise.
13859         * lib/sha1.c: Likewise.
13860         * lib/sha256.c: Likewise.
13861         * lib/sha512.c: Likewise.
13862
13863 2009-10-22  Eric Blake  <ebb9@byu.net>
13864
13865         tests: avoid several compiler warnings
13866         * tests/test-getcwd.c (main): Avoid buffer underflow.
13867         * tests/test-getdate.c (main): String literals are not safe with
13868         putenv, so use setenv.  Declare unused argument.
13869         * modules/getdate-tests (Depends-on): Add setenv.
13870         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
13871         problems with string literals in char *.
13872         * tests/test-hash.c (main): Avoid shadowing declaration.
13873         (insert_new): Treat string literals as char const *.
13874         * tests/test-getopt.h (test_getopt): Likewise.
13875         (getopt_loop): Alter types to minimize casting elsewhere.
13876         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
13877         (test_getopt_long_posix): Likewise.
13878         (do_getopt_long): Add wrapper to minimize casting.
13879         * tests/test-atexit.c (clear_temp_file): Use void.
13880         * tests/test-areadlink-with-size.c (main): Declare unused
13881         arguments.
13882         * tests/test-areadlink.c (main): Likewise.
13883         * tests/test-areadlinkat-with-size.c (main): Likewise.
13884         * tests/test-areadlinkat.c (main): Likewise.
13885         * tests/test-canonicalize-lgpl.c (main): Likewise.
13886         * tests/test-canonicalize.c (main): Likewise.
13887         * tests/test-dirent-safer.c (main): Likewise.
13888         * tests/test-dirname.c (main): Likewise.
13889         * tests/test-dup2.c (main): Likewise.
13890         * tests/test-fchdir.c (main): Likewise.
13891         * tests/test-fcntl-h.c (main): Likewise.
13892         * tests/test-fcntl-safer.c (main): Likewise.
13893         * tests/test-fdopendir.c (main): Likewise.
13894         * tests/test-fdutimensat.c (main): Likewise.
13895         * tests/test-fflush.c (main): Likewise.
13896         * tests/test-filenamecat.c (main): Likewise.
13897         * tests/test-filevercmp.c (main): Likewise.
13898         * tests/test-fopen-safer.c (main): Likewise.
13899         * tests/test-fopen.c (main): Likewise.
13900         * tests/test-fpending.c (main): Likewise.
13901         * tests/test-fpurge.c (main): Likewise.
13902         * tests/test-freading.c (main): Likewise.
13903         * tests/test-fstatat.c (main): Likewise.
13904         * tests/test-fsync.c (main): Likewise.
13905         * tests/test-futimens.c (main): Likewise.
13906         * tests/test-getndelim2.c (main): Likewise.
13907         * tests/test-gettimeofday.c (main): Likewise.
13908         * tests/test-getopt.c (main): Likewise.
13909         * tests/test-i-ring.c (main): Likewise.
13910         * tests/test-inttypes.c (main): Likewise.
13911         * tests/test-link.c (main): Likewise.
13912         * tests/test-lstat.c (main): Likewise.
13913         * tests/test-math.c (main): Likewise.
13914         * tests/test-md5.c (main): Likewise.
13915         * tests/test-memchr2.c (main): Likewise.
13916         * tests/test-memrchr.c (main): Likewise.
13917         * tests/test-mkdir.c (main): Likewise.
13918         * tests/test-mkdirat.c (main): Likewise.
13919         * tests/test-mkfifoat.c (main): Likewise.
13920         * tests/test-open.c (main): Likewise.
13921         * tests/test-openat-safer.c (main): Likewise.
13922         * tests/test-openat.c (main): Likewise.
13923         * tests/test-quotearg.c (main): Likewise.
13924         * tests/test-rawmemchr.c (main): Likewise.
13925         * tests/test-readlink.c (main): Likewise.
13926         * tests/test-remove.c (main): Likewise.
13927         * tests/test-rename.c (main): Likewise.
13928         * tests/test-renameat.c (main): Likewise.
13929         * tests/test-rmdir.c (main): Likewise.
13930         * tests/test-sha1.c (main): Likewise.
13931         * tests/test-signal.c (main): Likewise.
13932         * tests/test-sigaction.c (main): Likewise.
13933         * tests/test-stat.c (main): Likewise.
13934         * tests/test-stat-time.c (main): Likewise.
13935         * tests/test-stddef.c (main): Likewise.
13936         * tests/test-stdint.c (main): Likewise.
13937         * tests/test-stdio.c (main): Likewise.
13938         * tests/test-stdlib.c (main): Likewise.
13939         * tests/test-strchrnul.c (main): Likewise.
13940         * tests/test-strerror.c (main): Likewise.
13941         * tests/test-string.c (main): Likewise.
13942         * tests/test-strtod.c (main): Likewise.
13943         * tests/test-strverscmp.c (main): Likewise.
13944         * tests/test-symlink.c (main): Likewise.
13945         * tests/test-symlinkat.c (main): Likewise.
13946         * tests/test-sys_stat.c (main): Likewise.
13947         * tests/test-sys_time.c (main): Likewise.
13948         * tests/test-time.c (main): Likewise.
13949         * tests/test-unistd.c (main): Likewise.
13950         * tests/test-unlink.c (main): Likewise.
13951         * tests/test-unlinkat.c (main): Likewise.
13952         * tests/test-utimens.c (main): Likewise.
13953         * tests/test-utimensat.c (main): Likewise.
13954         * tests/test-version-etc.c (main): Likewise.
13955         * tests/test-wchar.c (main): Likewise.
13956         * tests/test-wctype.c (main): Likewise.
13957         * tests/test-xprintf-posix.c (main): Likewise.
13958         * tests/test-posixtm.c (main): Likewise.
13959         (STREQ): Delete unused macro.
13960         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
13961         shadowed variables.
13962         * tests/test-memchr.c (main): Likewise.
13963
13964 2009-10-21  Eric Blake  <ebb9@byu.net>
13965
13966         areadlinkat: avoid failure on older glibc
13967         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
13968         rather than mis-comparing 0 against FUNC_RESULT of char*.
13969
13970 2009-10-21  Bruno Haible  <bruno@clisp.org>
13971
13972         * modules/stpncpy (License): Relicense under LGPLv2+.
13973         Reported by David Lutterkort <lutter@redhat.com>.
13974
13975 2009-10-20  Eric Blake  <ebb9@byu.net>
13976
13977         utimensat: work around Solaris 9 bug
13978         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
13979         has trailing slash bugs.
13980         * tests/test-lutimens.h (test_lutimens): Enhance test.
13981         * tests/test-utimens.h (test_utimens): Likewise.
13982         * doc/posix-functions/utime.texi (utime): Enhance documentation.
13983         * doc/posix-functions/utimes.texi (utimes): Likewise.
13984         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13985         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
13986         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
13987         * doc/posix-functions/futimens.texi (futimens): Likewise.
13988
13989         fdutimensat: new module
13990         * modules/fdutimensat: New file.
13991         * lib/fdutimensat.c (fdutimensat): Likewise.
13992         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
13993         * MODULES.html.sh (File system functions): Mention module.
13994         * modules/fdutimensat-tests: New test.
13995         * tests/test-fdutimensat.c: Likewise.
13996
13997         doc: regenerate INSTALL
13998         * doc/INSTALL: Reflect recent autoconf update.
13999         * doc/INSTALL.ISO: Likewise.
14000         * doc/INSTALL.UTF-8: Likewise.
14001
14002 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14003
14004         acl: warn if ACL support is not detected
14005         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14006
14007 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14008
14009         * lib/nproc.h: Add extern "C" block for C++.
14010
14011 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14012             Bruno Haible  <bruno@clisp.org>
14013
14014         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14015         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14016         * doc/posix-functions/isalpha.texi: Likewise.
14017         * doc/posix-functions/isblank.texi: Likewise.
14018         * doc/posix-functions/iscntrl.texi: Likewise.
14019         * doc/posix-functions/isdigit.texi: Likewise.
14020         * doc/posix-functions/isgraph.texi: Likewise.
14021         * doc/posix-functions/islower.texi: Likewise.
14022         * doc/posix-functions/isprint.texi: Likewise.
14023         * doc/posix-functions/ispunct.texi: Likewise.
14024         * doc/posix-functions/isspace.texi: Likewise.
14025         * doc/posix-functions/isupper.texi: Likewise.
14026         * doc/posix-functions/isxdigit.texi: Likewise.
14027
14028 2009-10-18  Bruno Haible  <bruno@clisp.org>
14029
14030         Tests for module 'isblank'.
14031         * modules/isblank-tests: New file.
14032         * tests/test-isblank.c: New file.
14033
14034         New module 'isblank'.
14035         * lib/isblank.c: New file.
14036         * m4/isblank.m4: New file.
14037         * modules/isblank: New file.
14038         * doc/posix-functions/isblank.texi: Mention the new module.
14039
14040 2009-10-18  Bruno Haible  <bruno@clisp.org>
14041
14042         New module 'ctype'.
14043         * lib/ctype.in.h: New file.
14044         * m4/ctype.m4: New file.
14045         * modules/ctype: New file.
14046         * doc/posix-headers/ctype.texi: Mention the new module.
14047
14048 2009-10-18  Jim Meyering  <meyering@redhat.com>
14049
14050         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14051         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14052         right after its initialization, rather than farther down.
14053         Keeping these in close proximity makes it easier to ensure
14054         that each such variable is initialized.  E.g.,
14055
14056             LIB_CLOCK_GETTIME=
14057             AC_SUBST([LIB_CLOCK_GETTIME])
14058
14059         This change also increments these serial numbers.
14060         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14061         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14063
14064 2009-10-18  Bruno Haible  <bruno@clisp.org>
14065
14066         Don't let environment variables perturb build.
14067         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14068         (gl_PREREQ_GETHRXTIME): ... not here.
14069
14070 2009-10-18  Bruno Haible  <bruno@clisp.org>
14071
14072         Avoid symlink attack in localcharset module.
14073         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14074         (O_NOFOLLOW): Define fallback.
14075         (get_charset_aliases): Don't open the file if it is a symbolic link.
14076         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14077         gl_FCNTL_H.
14078         (gl_FCNTL_H): Require it.
14079         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14080         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14081         Reported by Fergal Glynn <fglynn@veracode.com>.
14082
14083 2009-10-18  Bruno Haible  <bruno@clisp.org>
14084
14085         Implement nproc for mingw.
14086         * lib/nproc.c: Include <windows.h>
14087         (num_processors): On native Windows platforms, try GetSystemInfo.
14088
14089 2009-10-18  Bruno Haible  <bruno@clisp.org>
14090
14091         Implement nproc for IRIX.
14092         * lib/nproc.c: Include <sys/sysmp.h>.
14093         (num_processors): On IRIX systems, try sysmp.
14094         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14095
14096 2009-10-18  Bruno Haible  <bruno@clisp.org>
14097
14098         Implement nproc for HP-UX.
14099         * lib/nproc.c: Include <sys/pstat.h>
14100         (num_processors): On HP-UX systems, try pstat_getdynamic.
14101         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14102         pstat_getdynamic.
14103
14104 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14105             Bruno Haible  <bruno@clisp.org>
14106
14107         Implement nproc for NetBSD, OpenBSD.
14108         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14109         (ARRAY_SIZE): New macro.
14110         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14111         * m4/nproc.m4: New file.
14112         * modules/nproc (Files): Add m4/nproc.m4.
14113         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14114         (Makefile.am): Instead, augment lib_SOURCES.
14115
14116 2009-10-18  Bruno Haible  <bruno@clisp.org>
14117
14118         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14119         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14120         sys/param.h.
14121
14122 2009-10-16  Eric Blake  <ebb9@byu.net>
14123
14124         utimensat: new module
14125         * modules/utimensat: New file.
14126         * lib/utimensat.c (utimensat): Likewise.
14127         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14128         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14129         so we can work around Linux bugs.
14130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14131         * modules/sys_stat (Makefile.am): Substitute them.
14132         * lib/sys_stat.in.h (utimensat): Declare it.
14133         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14134         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14135         * modules/utimensat-tests: New test.
14136         * tests/test-utimensat.c: Likewise.
14137
14138         utimens: let lutimens work on non-symlinks
14139         * lib/utimens.c (lutimens): Fall back to utimens rather than
14140         failing with ENOSYS, when file is not a symlink.
14141         (utimens): Reduce redirection.
14142         * tests/test-lutimens.h (test_lutimens): Update test to cover
14143         non-symlinks.
14144         * tests/test-utimens.h (test_utimens): Update test to cover
14145         symlinks.
14146         * tests/test-utimens.c (main): Update caller.
14147
14148         utimens: cache whether utimensat syscall works
14149         * lib/utimens.c (utimensat_works_really): New cache variable.
14150         (fdutimens, lutimens): Use it to avoid failing syscall.
14151
14152         test-stat-time, test-utimens: improve portability
14153         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14154         ext4 on alpha, and for cygwin.
14155         * tests/test-utimens-common.h: New file.
14156         (nap): Factor delays into single function.
14157         * tests/test-lutimens.h (test_lutimens): Use new header.
14158         * tests/test-futimens.h (test_futimens): Likewise.
14159         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14160         timestamps to occur from same machine, as was done previously for
14161         test_utimens.
14162         * modules/utimens-tests (Files): Ship new file.
14163         * modules/futimens-tests (Files): Likewise.
14164         Reported in part by Jim Meyering.
14165
14166         sys_stat: sort replacement declarations
14167         * lib/sys_stat.in.h: Sort declarations.
14168         * lib/futimens.c (futimens): Fix typo.
14169
14170 2009-10-15  Jim Meyering  <meyering@redhat.com>
14171
14172         don't let environment settings perturb build
14173         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14174         could cause a configure-time and/or build-time malfunction.
14175         Typically, a configure-time function-in-library test is performed
14176         via code like this:
14177
14178           LIB_VAR=
14179           AC_SUBST([LIB_VAR])
14180           prefix_saved_LIBS=$LIBS
14181             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14182                        [test "$ac_cv_search_FUNC" = "none required" ||
14183                         LIB_VAR=$ac_cv_search_FUNC])
14184           LIBS=$prefix_saved_LIBS
14185
14186         However, in each of the files affected by this change, the LIB_VAR=
14187         initialization was omitted.  Thus, when set in the environment, its
14188         value would propagate into generated Makefiles when FUNC is not found
14189         in LIB_NAME.
14190         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14191         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14193
14194 2009-10-14  Eric Blake  <ebb9@byu.net>
14195
14196         fchdir: avoid infinite recursion in mingw
14197         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14198         recursing.
14199
14200         test-stat-time: port to mingw
14201         * tests/test-stat-time.c (force_unlink): Return a value.
14202         (test_ctime) [W32]: Fix compilation error.
14203         (nap): Don't call usleep with too large an argument.  Use
14204         force_unlink.
14205         * doc/pastposix-functions/usleep.texi (usleep): Document the
14206         portability issue.
14207
14208 2009-10-13  Jim Meyering  <meyering@redhat.com>
14209
14210         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14211         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14212         * modules/pipe-filter-ii: Likewise.
14213         * modules/sys_socket-tests: Likewise.
14214         * modules/tsearch-tests: Likewise.
14215         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14216         (check): Depend on it.
14217
14218 2009-10-12  Eric Blake  <ebb9@byu.net>
14219
14220         utimens-tests: port to NFS file systems
14221         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14222         comparisons to avoid spurious failures from timestamp drift
14223         between NFS machines.
14224
14225 2009-10-12  Eric Blake  <ebb9@byu.net>
14226
14227         stat-time-tests: minor cleanups
14228         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14229         * tests/test-stat-time.c (nap): Separate assignment from call.
14230         Suggested by Paolo Bonzini and Bruno Haible.
14231
14232         sys_stat: guarantee struct timespec
14233         * lib/sys_stat.in.h (includes): Always include <time.h>
14234         * modules/sys_stat (Depends-on): Add time.
14235         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14236         mode_t permission values.
14237         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14238         get at subsecond timestamps.
14239
14240 2009-10-10  Eric Blake  <ebb9@byu.net>
14241
14242         futimens: new module
14243         * modules/futimens: New file.
14244         * lib/futimens.c (futimens): Likewise.
14245         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14246         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14247         we can work around Linux bugs.
14248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14249         * modules/sys_stat (Makefile.am): Substitute them.
14250         * lib/sys_stat.in.h (futimens): Declare it.
14251         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14252         * doc/posix-functions/futimens.texi (futimens): Likewise.
14253         * modules/futimens-tests: New test.
14254         * tests/test-futimens.c: Likewise.
14255
14256         utimens: introduce fdutimens
14257         * lib/utimens.h (fdutimens): New prototype.
14258         * lib/utimens.c (gl_futimens): Move guts...
14259         (fdutimens): ...to new interface.
14260         * tests/test-utimens.c (do_fdutimens): Use it.
14261
14262         utimens: add UTIME_NOW and UTIME_OMIT support
14263         * lib/utimens.c (validate_timespec, update_timespec): New helper
14264         functions.
14265         (gl_futimens, lutimens): Use them.
14266         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14267         stdbool, sys_stat.
14268         (Link): Mention resulting library dependency.
14269         * modules/utimecmp (Link): Likewise.
14270         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14271         (Makefile.am): Pick up library dependency.
14272         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14273         definition.
14274         * tests/test-sys_stat.c: Test the definitions.
14275         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14276         * NEWS: Document library dependency.
14277
14278         utimecmp: support symlink timestamps
14279         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14280         hashing when possible.  Use pathconf when available.
14281         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14282         * modules/utimecmp (Depends-on): Add lstat.
14283
14284         utimens: add lutimens interface
14285         * lib/utimens.c (lutimens): New function.
14286         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14287         * lib/utimens.h (lutimens): Declare new interface.
14288         * tests/test-utimens.c (main): Enhance test.
14289         * tests/test-lutimens.h (test_lutimens): New file.
14290         * modules/utimens-tests (Files): Distribute it.
14291         (Depends-on): Add symlink.
14292         (configure.ac): Check for usleep.
14293
14294         utimens: validate futimens usage
14295         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14296         fewer syscalls on failure later on.  Avoid compiler warning on
14297         mingw.
14298         * modules/utimens (Depends-on): Add dup2.
14299
14300         utimens: add test
14301         * modules/utimens-tests: New test.
14302         * tests/test-utimens.h: New file.
14303         * tests/test-futimens.h: Likewise.
14304         * tests/test-utimens.c: Likewise.
14305
14306         doc: mention timestamp portability issues
14307         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14308         instead.
14309         * doc/posix-functions/utime.texi (utime): Likewise.
14310         * doc/posix-functions/utimes.texi (utimes): Likewise.
14311         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14312         instead.
14313         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14314         module.
14315         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14316         Mention weakness with symlink timestamps.
14317         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14318         to utimensat/futimens instead.
14319         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14320
14321         test-dup2: enhance test
14322         * tests/test-dup2.c (main): Also check AT_FDCWD.
14323
14324         test-stat-time: avoid more spurious failures
14325         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14326         xfs; and avoid race if the two timestamps cross quantization edge.
14327
14328         relocatable: prefer 'file system' over 'filesystem'
14329         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14330         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14331         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14332         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14333         * lib/relocatable.c (compute_curr_prefix): Likewise.
14334
14335 2009-10-10  Jim Meyering  <meyering@redhat.com>
14336
14337         stat-time-tests: check for the usleep function
14338         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14339
14340 2009-10-10  Bruno Haible  <bruno@clisp.org>
14341
14342         * modules/xnanosleep: Put the Link section after the Include section.
14343
14344 2009-10-09  Eric Blake  <ebb9@byu.net>
14345
14346         dup2: work around FreeBSD 6.1 bug
14347         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14348         * doc/posix-functions/dup2.texi (dup2): Document it.
14349         Reported by Nelson H. F. Beebe and Jim Meyering.
14350
14351         test-stat-time: port to buggy NFS clients
14352         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14353         (test_ctime): Also skip test if mtime and ctime are skewed.
14354
14355         maint: prefer 'file system' over 'filesystem'
14356         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14357         * doc/posix-functions/lstat.texi (lstat): Likewise.
14358         * lib/file-has-acl.c (file_has_acl): Likewise.
14359         * lib/fwriteerror.c [TEST]: Likewise.
14360         * tests/test-areadlink.h (test_areadlink): Likewise.
14361         * tests/test-areadlinkat-with-size.c (main): Likewise.
14362         * tests/test-areadlinkat.c (main): Likewise.
14363         * tests/test-canonicalize-lgpl.c (main): Likewise.
14364         * tests/test-canonicalize.c (main): Likewise.
14365         * tests/test-fstatat.c (main): Likewise.
14366         * tests/test-linkat.c (main): Likewise.
14367         * tests/test-lstat.h (test_lstat_func): Likewise.
14368         * tests/test-mkdir.h (test_mkdir): Likewise.
14369         * tests/test-readlink.h (test_readlink): Likewise.
14370         * tests/test-remove.c (main): Likewise.
14371         * tests/test-rename.h (test_rename): Likewise.
14372         * tests/test-renameat.c (main): Likewise.
14373         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14374         * tests/test-symlink.h (test_symlink): Likewise.
14375         * tests/test-symlinkat.c (main): Likewise.
14376         * tests/test-unlink.h (test_unlink_func): Likewise.
14377         * tests/test-unlinkat.c (main): Likewise.
14378
14379         maint: make realtime library usage explicit
14380         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14381         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14382         * modules/settime (Link): Likewise.
14383         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14384
14385         test-stat-time: speed up execution
14386         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14387         warning on mingw.
14388         (nap): New helper function.
14389         (prepare_test): Use it to reduce sleep time.
14390         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14391         execution.
14392         * modules/stat-time-tests (configure.ac): Check for usleep.
14393
14394 2009-10-09  Jim Meyering  <meyering@redhat.com>
14395
14396         selinux-h: always use getfilecon wrappers
14397         * lib/getfilecon.c: New file.
14398         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14399         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14400         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14401         (fgetfilecon): Provide a stub.
14402         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14403         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14404         file unconditionally.
14405         When <selinux/selinux.h> is found, arrange to use wrappers.
14406         * modules/selinux-h (Files): Add getfilecon.c.
14407         (Makefile.am): Substitute include-next-related bits
14408         into the now-always-generated selinux/selinux.h file.
14409         * doc/glibc-functions/lgetfilecon.texi: New file.
14410         * doc/glibc-functions/fgetfilecon.texi: New file.
14411         * doc/glibc-functions/getfilecon.texi: New file.
14412         * doc/glibc-functions/getfilecon-desc.texi: New file.
14413         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14414         which to pull in the new files.
14415         * MODULES.html.sh (Misc): Add selinux-h.
14416
14417 2009-10-08  Jim Meyering  <meyering@redhat.com>
14418
14419         unistd: fix comment typo
14420         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14421
14422 2009-10-08  Eric Blake  <ebb9@byu.net>
14423
14424         areadlink: use SIZE_MAX consistently
14425         * modules/areadlink (Depends-on): Add stdint.
14426         * modules/areadlink-with-size (Depends-on): Likewise.
14427         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14428         gives NULL; drop sys/types, since unistd gives size_t; and add
14429         stdint for SIZE_MAX.
14430         (SIZE_MAX): Rely on headers.
14431         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14432         and add stdint.
14433         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14434         (SIZE_MAX): Likewise.
14435         (INITIAL_BUF_SIZE): Turn into enum.
14436         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14437
14438 2009-10-08  Jim Meyering  <meyering@redhat.com>
14439
14440         areadlinkat: avoid compilation failure
14441         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14442         Fix typo in comment.
14443
14444 2009-10-07  Eric Blake  <ebb9@byu.net>
14445
14446         areadlinkat-with-size: new module
14447         * modules/areadlinkat-with-size: New module.
14448         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14449         * lib/areadlink.h (areadlinkat): Declare it.
14450         * MODULES.html.sh (File system functions): Mention it.
14451         * modules/areadlinkat-with-size-tests: New test.
14452         * tests/test-areadlinkat-with-size.c: New file.
14453
14454         xreadlinkat: new module
14455         * modules/xreadlinkat: New module.
14456         * lib/xreadlinkat.c (xreadlinkat): New file.
14457         * lib/xreadlink.h (xreadlinkat): Declare it.
14458         * MODULES.html.sh (File system functions): Mention it.
14459
14460         areadlinkat: new module
14461         * lib/at-func.c (FUNC_FAIL): New define.
14462         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14463         * modules/areadlinkat: New module.
14464         * lib/linkat.c (areadlinkat): Move...
14465         * lib/areadlinkat.c (areadlinkat): ...to new file.
14466         * lib/areadlink.h (areadlinkat): Declare it.
14467         * modules/linkat (Depends-on): Add areadlinkat.
14468         * MODULES.html.sh (File system functions): Mention it.
14469         * modules/areadlinkat-tests: New test.
14470         * tests/test-areadlinkat.c: New file.
14471
14472         areadlink, areadlink-with-size: add tests
14473         * modules/areadlink-tests: New test.
14474         * modules/areadlink-with-size-tests: Likewise.
14475         * tests/test-areadlink.h: New file.
14476         * tests/test-areadlink.c: Likewise.
14477         * tests/test-areadlink-with-size.c: Likewise.
14478
14479         maint: minor cleanups
14480         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14481         _UNUSED_PARAMETER_ instead.
14482         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14483         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14484         * modules/linkat-tests (Files): Distribute test-link.h.
14485
14486         openat, utimens: whitespace cleanup
14487         * lib/openat.c: Prefer space throughout, rather than mix of 8
14488         spaces vs. tabs.
14489         * lib/at-func.c: Likewise.
14490         * lib/utimens.c: Likewise.
14491
14492         openat: avoid using wrong fd
14493         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14494         working directory chooses same fd.
14495         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14496
14497         mkdir, mkdirat: fix cygwin 1.5.x bug
14498         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14499         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14500         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14501         bug.
14502         (gl_PREREQ_MKDIR): Delete unused macro.
14503         * modules/mkdir (Files): Track file rename.
14504         (configure.ac): Update macro name.
14505         * modules/openat (Depends-on): Add mkdir.
14506         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14507
14508         mkdir, mkdirat: add tests
14509         * modules/mkdir-tests: New test.
14510         * tests/test-mkdir.h: New file.
14511         * tests/test-mkdir.c: Likewise.
14512         * tests/test-mkdirat.c: Likewise.
14513         * modules/openat-tests (Files): Add new files.
14514         (Makefile.am): Run new test.
14515
14516 2009-10-06  Eric Blake  <ebb9@byu.net>
14517
14518         doc: tweak *at function documentation
14519         * doc/posix-functions/faccessat.texi (faccessat): Mention
14520         known issue with replacement.
14521         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14522         * doc/posix-functions/linkat.texi (linkat): Likewise.
14523         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14524         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14525         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14526         * doc/posix-functions/renameat.texi (renameat): Likewise.
14527         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14528
14529         openat: fix GNU/Hurd bug in unlinkat
14530         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14531         broken.
14532         * doc/posix-functions/unlink.texi (unlink): Document this.
14533         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14534
14535         fdopendir: fix GNU/Hurd bug
14536         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14537         allowing non-directory fds.
14538         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14539         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14540         * modules/dirent (Makefile.am): Substitute it.
14541         * lib/dirent.in.h (fdopendir): Declare replacement.
14542         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14543         * tests/test-fdopendir.c (main): Test something other than
14544         /dev/null, since on Hurd that behaves like a directory.
14545
14546         test-symlink: port to GNU/Hurd
14547         * tests/test-symlink.h (test_symlink): Relax expected errno.
14548
14549         doc: tweak more cygwin information
14550         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14551         now compatible with glibc.
14552         * doc/posix-functions/getopt.texi (getopt): Likewise.
14553
14554         getopt-gnu: add another test
14555         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14556         guarantee behavior relied on by m4.
14557         * tests/test-getopt.c (main): Use it.
14558         * modules/getopt-posix-tests (Depends-on): Add setenv.
14559         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14560
14561         getopt: fix compilation on darwin
14562         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14563         include.
14564         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14565         Reported by Ludovic Courtès.
14566
14567 2009-10-06  Bruno Haible  <bruno@clisp.org>
14568
14569         * modules/size_max (Description): Discourage its use.
14570         Reported by Simon Josefsson.
14571
14572 2009-10-06  Jim Meyering  <meyering@redhat.com>
14573
14574         linkat: avoid compilation failure
14575         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14576
14577 2009-10-05  Eric Blake  <ebb9@byu.net>
14578
14579         linkat: support Linux 2.6.17
14580         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14581         linkat on Linux, but allow cache variable override.
14582         * lib/linkat.c (rpl_linkat): Define override.
14583         * modules/linkat (Depends-on): Add symlinkat.
14584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14585         * modules/unistd (Makefile.am): Substitute it.
14586         * lib/unistd.in.h (linkat): Declare replacement.
14587         Reported by Pádraig Brady.
14588
14589         quotearg: port test to systems with C.UTF-8 locale
14590         * tests/test-quotearg.c (struct result_strings): Add another
14591         member, differentiating between C.ASCII and C.UTF-8 handling.
14592         (compare_strings): Add parameter.
14593         (main): Adjust all callers.
14594
14595         getopt: avoid clash with FreeBSD _getopt_internal
14596         * lib/getopt.in.h (_getopt_internal): Override the name.
14597         * lib/getopt_int.h (includes): Pick up any overrides.
14598         Reported by Reuben Thomas.
14599
14600         hash: allow C89 compilation
14601         * lib/hash.c (check_tuning): Move declaration before statement.
14602         Reported by Reuben Thomas.
14603
14604 2009-10-05  Karl Berry  <karl@gnu.org>
14605
14606         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14607
14608 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14609             Bruno Haible  <bruno@clisp.org>
14610
14611         * lib/uname.c (uname): Use a table-driven algorithm to compute
14612         Windows NT versions.
14613
14614 2009-10-04  Bruno Haible  <bruno@clisp.org>
14615
14616         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14617         program_invocation_short_name.
14618         * modules/progname (configure.ac): Test for presence of
14619         program_invocation_short_name.
14620         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14621
14622 2009-10-04  Bruno Haible  <bruno@clisp.org>
14623
14624         * lib/progname.c (set_program_name): Fix comment.
14625         Reported by Jim Meyering.
14626
14627 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14628             Bruno Haible  <bruno@clisp.org>
14629
14630         * lib/uname.c: Include <string.h>.
14631         (uname): Do only one call to GetVersionEx in the common case.
14632
14633 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14634             Bruno Haible  <bruno@clisp.org>
14635
14636         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14637         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14638         (uname): Add support for Windows CE and various non-x86 CPU types.
14639
14640 2009-10-03  Bruno Haible  <bruno@clisp.org>
14641
14642         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14643         invocation to tests/configure.ac.
14644         Reported by Ian Beckwith <ianb@erislabs.net>.
14645
14646 2009-10-02  Eric Blake  <ebb9@byu.net>
14647
14648         fchdir: avoid compiler warning
14649         * lib/fchdir.c (canonicalize_file_name)
14650         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14651
14652         test-open: support mingw errno values
14653         * tests/test-open.h (test_open): Relax test.
14654         * tests/test-fopen.h (test_fopen): Likewise.
14655         * tests/test-openat-safer.c (main): Likewise.
14656
14657         open: fix opening directory on mingw
14658         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14659
14660         test-open: on GNU/Hurd, /dev/null is a directory
14661         * tests/test-fopen.h (main): Rename...
14662         (test_fopen): ...to this.  Use a guaranteed non-directory when
14663         confirming open behavior on trailing slash.
14664         * tests/test-openat-safer.c (main): Likewise.
14665         * tests/test-open.h (main): Likewise....
14666         (test_open): ...to this.
14667         * tests/test-fopen.c (main): Adjust caller.
14668         * tests/test-fopen-safer.c (main): Likewise.
14669         * tests/test-open.c (main): Likewise.
14670         * tests/test-fcntl-safer.c (main): Likewise.
14671         Reported by Samuel Thibault.
14672
14673         rename, fchdir: don't ignore chdir failure
14674         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14675         * lib/rename.c (rpl_rename) [W32]: Likewise.
14676         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14677         an empty destination directory if source cannot be renamed,
14678         although there is still possibility for failure.
14679         * doc/posix-functions/rename.texi (rename): Document the race.
14680         Reported by Jim Meyering.
14681
14682         maint: cleanup whitespace in recent commits
14683         * lib/rename.c (rpl_rename): Remove tabs.
14684         * tests/test-link.h (test_link): Likewise.
14685         * lib/fchdir.c (get_name): Likewise.
14686         Reported by Jim Meyering.
14687
14688 2009-10-02  Ben Pfaff  <blp@gnu.org>
14689
14690         relocatable-prog-wrapper: Add missing dependency on
14691         double-slash-root.
14692         * modules/relocatable-prog-wrapper: Add dependency.
14693         Reported by Ian Beckwith <ianb@erislabs.net>.
14694
14695 2009-10-02  Eric Blake  <ebb9@byu.net>
14696
14697         renameat: fix Solaris bugs
14698         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14699         needed fixing.
14700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14701         * modules/stdio (Makefile.am): Substitute it.
14702         * lib/stdio.in.h (renameat): Declare replacement.
14703         * lib/renameat.c (rpl_renameat): Implement fix.
14704
14705         renameat: new module
14706         * modules/renameat: New file.
14707         * lib/renameat.c (renameat): Likewise.
14708         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14710         * modules/stdio (Makefile.am): Substitute them.
14711         * lib/stdio.in.h (renameat): Declare it.
14712         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14713         * doc/posix-functions/renameat.texi (renameat): Likewise.
14714         * modules/renameat-tests: New test.
14715         * tests/test-renameat.c: Likewise.
14716
14717         rename: fix mingw bugs
14718         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14719         directory overwrite bugs.
14720
14721         rename: fix another cygwin 1.5 bug
14722         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14723         checks.
14724         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14725         unnecessary cygwin workarounds.  Also work around bug with moving
14726         full directory onto an empty one.
14727         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14728
14729         rename-dest-slash: merge into rename module
14730         * modules/rename-dest-slash (Status): Mark obsolete.
14731         (Depends-on): Add rename.
14732         (Files): Let rename do it all.
14733         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14734         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14735         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14736         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14737         * lib/rename.c (rpl_rename): Update comments.
14738
14739         rename: fix cygwin 1.5.x bugs
14740         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14741         * lib/rename.c (rpl_rename): Work around them.
14742         * modules/rename (Depends-on): Add same-inode.
14743
14744         rename: fix Solaris 10 bug
14745         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14746         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14747         was the only bug.
14748
14749         rename: fix Solaris 9 bug
14750         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14751         on non-directory.  Avoid calling exit.
14752         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14753         strdup.
14754         * modules/rename-tests (Depends-on): Drop lstat.
14755         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14756         (gl_PREREQ_RENAME): Delete unused macro.
14757
14758         rename-dest-slash: fix NetBSD bug
14759         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14760         links.
14761         * modules/rename-dest-slash (Depends-on): Add same-inode.
14762
14763         rename-tests: new test, exposes several platform bugs
14764         * modules/rename-tests: New file.
14765         * tests/test-rename.h: Likewise.
14766         * tests/test-rename.c: Likewise.
14767         * doc/posix-functions/rename.texi (rename): Improve documentation,
14768         including bugs that will eventually be fixed in gnulib.
14769
14770 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14771
14772         * lib/uname.c: Include <stdlib.h>
14773         (uname): Assume version info is available.
14774
14775 2009-10-02  Jim Meyering  <meyering@redhat.com>
14776
14777         gnu-web-doc-update: correct --help output
14778         * build-aux/gnu-web-doc-update: Make --help output relevant.
14779
14780         gnu-web-doc-update: add standard options
14781         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14782
14783         gnu-web-doc-update: New module.
14784         Use this script to automatically update the on-line web documentation
14785         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14786         * modules/gnu-web-doc-update: New file, from coreutils.
14787         * build-aux/gnu-web-doc-update: New script.
14788
14789 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14790
14791         link: LoadLibrary is not needed.
14792         * lib/link.c: Use GetModuleHandle.
14793
14794 2009-10-01  Eric Blake  <ebb9@byu.net>
14795
14796         getopt: bump serial number
14797         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14798         change.
14799
14800         tests: tighten link, rmdir, and remove tests
14801         * tests/test-link.h (includes): No need to use <config.h> here.
14802         Clean up if directory hard link was created, otherwise test for
14803         trailing '.'.
14804         * tests/test-linkat.c (main): Simplify.
14805         * tests/test-remove.c (main): Enhance test for trailing '.'.
14806         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14807
14808 2009-10-01  Jim Meyering  <meyering@redhat.com>
14809
14810         maint.mk: requiring "make major" was annoying, for a "minor" release.
14811         What is intended is "stable", to contrast with alpha and beta,
14812         so require "make stable", not "make major".
14813         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14814         (get_tool_versions): Likewise.
14815         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14816
14817 2009-09-30  Ben Pfaff  <blp@gnu.org>
14818
14819         Fix broken build of replacement for Windows tmpfile().
14820         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14821         flags argument added along with the 'mkostemp' module.
14822
14823 2009-09-28  Bruno Haible  <bruno@clisp.org>
14824
14825         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14826         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14827         to 'remove_elt'.
14828         (gl_list_remove): Update.
14829         * lib/gl_list.c (gl_list_remove): Update.
14830         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14831         to 'remove_elt'.
14832         (gl_oset_remove): Update.
14833         * lib/gl_list.c (gl_oset_remove): Update.
14834         Reported by Eric Blake.
14835
14836 2009-09-28  Eric Blake  <ebb9@byu.net>
14837
14838         doc: mention yet more cygwin 1.7 status
14839         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14840         cygwin.
14841         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14842         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14843
14844         argp: fix test failure
14845         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
14846         that are not upper-case.  Pass correct range to tolower.
14847
14848 2009-09-27  Jim Meyering  <meyering@redhat.com>
14849
14850         test-yesno: work around sparc-dash here-document infelicity
14851         Without this change, the literal \177 byte in a here document
14852         would make dash 0.5.5.1-3 access uninitialized memory.
14853         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
14854         Instead, use a marker, "@", and filter through tr to create the desired
14855         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
14856
14857 2009-09-27  Bruno Haible  <bruno@clisp.org>
14858
14859         Disable untested support for new flavours of ACLs on AIX.
14860         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
14861         progress.
14862         * lib/set-mode-acl.c (qset_acl): Likewise.
14863
14864 2008-12-07  Bruno Haible  <bruno@clisp.org>
14865
14866         Add support for new flavours of ACLs on AIX. (Untested.)
14867         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
14868         (file_has_acl): Add support for newer AIX.
14869         * lib/set-mode-acl.c (qset_acl): Likewise.
14870         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
14871         Rainer Tammer <tammer@tammer.net>.
14872
14873 2009-09-26  Eric Blake  <ebb9@byu.net>
14874
14875         argp: fix compilation of getopt
14876         * lib/getopt.in.h (includes): Use different guard than glibc.
14877         Reported by Sergey Poznyakoff.
14878
14879         doc: mention more cygwin 1.7 status
14880         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
14881         bug.
14882         * doc/posix-functions/execl.texi (execl): Likewise.
14883         * doc/posix-functions/execle.texi (execle): Likewise.
14884         * doc/posix-functions/execlp.texi (execlp): Likewise.
14885         * doc/posix-functions/execv.texi (execv): Likewise.
14886         * doc/posix-functions/execve.texi (execve): Likewise.
14887         * doc/posix-functions/execvp.texi (execvp): Likewise.
14888         * doc/glibc-functions/canonicalize_file_name.texi
14889         (canonicalize_file_name): Cygwin 1.7 now provides this.
14890         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
14891         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
14892         on AT_SYMLINK_NOFOLLOW.
14893
14894 2009-09-24  Eric Blake  <ebb9@byu.net>
14895
14896         test-linkat: make test more robust
14897         * tests/test-linkat.c (main): Avoid collision with EEXIST.
14898
14899         getopt: fix inclusion guards for cygwin
14900         * modules/getopt-posix (Depends-on): Add include-next.
14901         (Makefile.am): Substitute more items in replacement header.
14902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
14903         <getopt.h>.
14904         * lib/getopt.in.h (includes): Use split inclusion guard, and
14905         prefer <getopt.h> over include <unistd.h> when one is present.
14906         (option): Also override name of 'struct option'.
14907
14908         same-inode: revert prior change; it is not yet ready
14909         * NEWS: Undo mention of this change.
14910         * lib/same-inode.h (same-inode.h): Undo tri-state change.
14911         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14912         * lib/cycle-check.c (cycle_check): Likewise.
14913         * lib/same.c (same_name): Likewise.
14914         * lib/at-func2.c (at_func2): Likewise.
14915
14916 2009-09-23  Eric Blake  <ebb9@byu.net>
14917
14918         linkat: new module
14919         * modules/linkat: New file.
14920         * lib/at-func2.c (at_func2): Likewise.
14921         * lib/linkat.c (linkat): Likewise.
14922         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14923         * lib/openat-priv.h (at_func2): Add declaration.
14924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14925         * modules/unistd (Makefile.am): Substitute them.
14926         * lib/unistd.in.h (linkat): Declare it.
14927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14928         * doc/posix-functions/linkat.texi (linkat): Likewise.
14929         * doc/posix-functions/link.texi (link): Tweak wording.
14930         * tests/test-link.c (main): Move guts...
14931         * tests/test-link.h (test_link): ...into new file.
14932         * modules/linkat-tests: New test.
14933         * tests/test-linkat.c: Likewise.
14934         * modules/link-tests (Files): Ship new file.
14935         (Depends-on): Add stdbool.
14936
14937         dirname: add library-safe mdir_name
14938         * lib/dirname.h (mdir_name): New prototype.
14939         * lib/dirname.c (dir_name): Move guts...
14940         (mdir_name): ...to new function that avoids xalloc_die.
14941
14942         fchdir: another mingw fix
14943         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
14944         * lib/fchdir.c (get_name): New helper method; skips canonicalize
14945         on mingw (where it has not yet been ported), and make it optional
14946         elsewhere.
14947         (_gl_register_fd): Use it.
14948
14949         same-inode: make SAME_INODE tri-state, to port to mingw
14950         * NEWS: Mention this change.
14951         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
14952         st_ino always being 0.
14953         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
14954         * lib/cycle-check.c (cycle_check): Likewise.
14955         * lib/same.c (same_name): Likewise.
14956
14957         lstat: avoid mingw compilation error
14958         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
14959         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
14960         lstat ourselves.
14961         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
14962         was adequate.
14963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
14964         the checks for lstat.
14965         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
14966
14967         link: fix test failure on Solaris 9
14968         * lib/link.c (rpl_link): Don't assume link will catch bogus
14969         trailing slash on source.
14970
14971         test-symlinkat: enhance test
14972         * tests/test-readlink.c (main): Move guts...
14973         * tests/test-readlink.h (test_readlink): ...into new file.
14974         * tests/test-symlink.c (main): Move guts...
14975         * tests/test-symlink.h (test_symlink): ...into new file.
14976         * tests/test-symlinkat.c (main): Use new files for further
14977         coverage.
14978         (do_symlink, do_readlink): New helper functions.
14979         * modules/symlink-tests (Files): Ship new file.
14980         (Depends-on): Add stdbool.
14981         * modules/readlink-tests (Files): Ship new file.
14982         (Depends-on): Add stdbool.
14983         * modules/symlinkat-tests (Files): Use new files.
14984
14985 2009-09-23  Eric Blake  <ebb9@byu.net>
14986
14987         readlink: document portability issue with symlink length
14988         * doc/posix-functions/lstat.texi (lstat): Mention that some file
14989         systems have bogus st_size on symlinks, and mention the
14990         areadlink-with-size module.
14991         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14992         * doc/posix-functions/readlink.texi (readlink): Mention the
14993         areadlink module, and ERANGE failure.
14994         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14995         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
14996
14997         readlink: fix Solaris 9 bug with trailing slash
14998         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
14999         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15000         * doc/posix-functions/readlink.texi (readlink): Document this.
15001         * modules/readlink-tests: New test.
15002         * tests/test-readlink.c: Likewise.
15003
15004         readlink: fix cygwin 1.5.x bug with return type
15005         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15006         * lib/unistd.in.h (readlink): Use ssize_t.
15007         * lib/readlink.c (readlink): Likewise.
15008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15009         * modules/unistd (Makefile.am): Substitute it.
15010         * lib/unistd.in.h (readlink): Declare replacement.
15011         * doc/posix-functions/readlink.texi (readlink): Document this.
15012
15013         symlink: use throughout gnulib
15014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15015         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15016         symlink is not used.
15017         * modules/symlinkat (Depends-on): Add symlink.
15018         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15019         * modules/canonicalize-tests (Depends-on): Likewise.
15020         * modules/lstat-tests (Depends-on): Likewise.
15021         * modules/openat-tests (Depends-on): Likewise.
15022         * modules/remove-tests (Depends-on): Likewise.
15023         * modules/rmdir-tests (Depends-on): Likewise.
15024         * modules/unlink-tests (Depends-on): Likewise.
15025         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15026         * tests/test-canonicalize.c (symlink): Likewise.
15027         * tests/test-fstatat.c (symlink): Likewise.
15028         * tests/test-lstat.c (symlink): Likewise.
15029         * tests/test-remove.c (symlink): Likewise.
15030         * tests/test-rmdir.c (symlink): Likewise.
15031         * tests/test-unlink.c (symlink): Likewise.
15032         * tests/test-unlinkat.c (symlink): Likewise.
15033
15034         symlink: new module, for Solaris 9 bug
15035         * modules/symlink: New file.
15036         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15037         * lib/symlink.c: Likewise.
15038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15039         * modules/unistd (Makefile.am): Substitute them.
15040         * lib/unistd.in.h (symlink): Declare replacement.
15041         * MODULES.html.sh (File system functions): Mention it.
15042         * doc/posix-functions/symlink.texi (symlink): Likewise.
15043         * modules/symlink-tests: New test.
15044         * tests/test-symlink.c: Likewise.
15045
15046 2009-09-23  Bruno Haible  <bruno@clisp.org>
15047
15048         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15049         when needed.
15050         Test case: gnulib-tool --import --with-tests atexit inttypes.
15051         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15052
15053 2009-09-23  Bruno Haible  <bruno@clisp.org>
15054
15055         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15056         subcommand, not in a subshell.
15057
15058 2009-09-22  Eric Blake  <ebb9@byu.net>
15059
15060         unistd: sort replacement declarations
15061         * lib/unistd.in.h: Sort declarations.
15062
15063         open, openat: minor optimization
15064         * lib/open.c (open): If open succeeded, len is non-zero.
15065         * lib/openat.c (rpl_openat): Likewise.
15066
15067         link-follow: ensure correct result
15068         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15069         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15070         distinguish between possible failures.
15071
15072 2009-09-21  Eric Blake  <ebb9@byu.net>
15073
15074         fts: avoid compiler warning
15075         * lib/fts.c (dirent_inode_sort_may_be_useful)
15076         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15077
15078 2009-09-19  Bruno Haible  <bruno@clisp.org>
15079
15080         * lib/progreloc.c (canonicalize_file_name): New declaration.
15081
15082 2009-09-19  Eric Blake  <ebb9@byu.net>
15083
15084         link: fix quoting
15085         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15086
15087         openat: fix openat bugs on Solaris 9
15088         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15089         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15090         * modules/openat (Depends-on): Add open.
15091         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15092         * modules/fcntl-h (Makefile.am): Substitute it.
15093         * lib/fcntl.in.h (openat): Declare replacement.
15094         * doc/posix-functions/openat.texi (openat): Document this.
15095
15096         openat: move fstatat and unlinkat into correct files
15097         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15098         compiled.
15099         * lib/openat.c (fstatat, unlinkat): Move...
15100         * lib/fstatat.c (fstatat): ...into correct files.
15101         * lib/unlinkat.c (unlinkat): Likewise.
15102
15103         openat: fix unlinkat bugs on Solaris 9
15104         * lib/unlinkat.c (unlinkat): New file.
15105         * modules/openat (Depends-on): Add unlink.
15106         (Files): Distribute it.
15107         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15108         trailing slash behavior is broken.
15109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15110         * modules/unistd (Makefile.am): Substitute it.
15111         * lib/unistd.in.h (unlinkat): Declare replacement.
15112         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15113
15114         openat: fix fstatat bugs on Solaris 9
15115         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15116         stat.
15117         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15118
15119         test-unlinkat: enhance test, to expose Solaris 9 bug
15120         * tests/test-unlink.c (main): Factor guts...
15121         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15122         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15123         * tests/test-rmdir.c (main): Adjust caller.
15124         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15125         (unlinker): New helper function.
15126         (rmdirat): Enhance check.
15127         * modules/rmdir-tests (Depends-on): Add stdbool.
15128         * modules/unlink-tests (Depends-on): Likewise.
15129         (Files): Add test-unlink.h.
15130         * modules/openat-tests (Files): Likewise.
15131         (Depends-on): Add unlinkdir.
15132
15133         test-fstatat: new test, to expose Solaris 9 bugs
15134         * tests/test-stat.c (main): Factor guts...
15135         * tests/test-stat.h (test_stat_func): ...into new file.
15136         * tests/test-lstat.c (main): Factor guts...
15137         * tests/test-lstat.h (test_lstat_func): ...into new file.
15138         * tests/test-fstatat.c: New file.
15139         * modules/stat-tests (Files): Add test-stat.h.
15140         * modules/lstat-tests (Files): Add test-lstat.h.
15141         (Depends-on): Add stdbool.
15142         * modules/openat-tests (Depends-on): Add pathmax.
15143         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15144         (Makefile.am): Run new test.
15145
15146         remove: new module, for mingw and Solaris 9 bugs
15147         * modules/remove: New file.
15148         * lib/remove.c: Likewise.
15149         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15151         * modules/stdio (Makefile.am): Use them.
15152         * lib/stdio.in.h (remove): Declare replacement.
15153         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15154         * doc/posix-functions/remove.texi (remove): Likewise.
15155         * modules/remove-tests: New test.
15156         * tests/test-remove.c: Likewise.
15157
15158         unlink: new module, for Solaris 9 bug
15159         * modules/unlink: New file.
15160         * lib/unlink.c: Likewise.
15161         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15163         * modules/unistd (Makefile.am): Use them.
15164         * lib/unistd.in.h (stat): Declare replacement.
15165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15166         * doc/posix-functions/unlink.texi (unlink): Likewise.
15167         * modules/unlink-tests: New test.
15168         * tests/test-unlink.c: Likewise.
15169
15170         lstat: fix Solaris 9 bug
15171         * lib/lstat.c (lstat): Also check for trailing slash on
15172         non-symlink, non-directories.  Use stat module to simplify logic.
15173         * doc/posix-functions/lstat.texi (lstat): Document it.
15174         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15175         (configure.ac): Check for symlink.
15176         * tests/test-lstat.c (main): Add more tests.
15177
15178         stat: add as dependency to other modules
15179         * modules/chown (Depends-on): Add stat.
15180         * modules/euidaccess (Depends-on): Likewise.
15181         * modules/fchdir (Depends-on): Likewise.
15182         * modules/isdir (Depends-on): Likewise.
15183         * modules/link (Depends-on): Likewise.
15184         * modules/lstat (Depends-on): Likewise.
15185         * modules/mkdir-p (Depends-on): Likewise.
15186         * modules/modechange (Depends-on): Likewise.
15187         * modules/open (Depends-on): Likewise.
15188         * modules/readlink (Depends-on): Likewise.
15189         * modules/same (Depends-on): Likewise.
15190
15191         stat: fix Solaris 9 bug
15192         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15193         slash.
15194         * lib/stat.c (rpl_stat): Work around it.
15195         * doc/posix-functions/stat.texi (stat): Update documentation.
15196
15197         stat: new module, for mingw bug
15198         * modules/stat: New file.
15199         * lib/stat.c: Likewise.
15200         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15202         * modules/sys_stat (Makefile.am): Use them.
15203         * lib/sys_stat.in.h (stat): Declare replacement.
15204         * lib/openat.c (fstatat): Deal with lstat and stat being function
15205         macros.
15206         * modules/openat (Depends-on): Add inline.
15207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15208         * doc/posix-functions/stat.texi (stat): Likewise.
15209         * modules/stat-tests: New test.
15210         * tests/test-stat.c: Likewise.
15211
15212 2009-09-19  Jim Meyering  <meyering@redhat.com>
15213
15214         syntax-check: detect unnecessary inclusion of canonicalize.h
15215         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15216
15217 2009-09-19  Eric Blake  <ebb9@byu.net>
15218
15219         canonicalize-lgpl: adjust clients to use correct header
15220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15221         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15222         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15223         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15224         * lib/progreloc.c (includes): Likewise.
15225
15226 2009-09-19  Jim Meyering  <meyering@redhat.com>
15227
15228         test-posixtm.c: correct a comment
15229         * tests/test-posixtm.c: Correct first-line comment.
15230         Spotted by Eric Blake.
15231
15232 2009-09-16  Jim Meyering  <meyering@redhat.com>
15233
15234         posixtm-tests: make T const-correct; add a test case
15235         * tests/test-posixtm.c (T): Declare const.
15236         Add a test for -(2^31+1).
15237         Remove useless can-succeed-only-in-2002 test.
15238
15239         posixtm-tests: adjust the sole failing test
15240         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15241         expected output matches what mktime now produces.  Cross-checked via
15242         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15243
15244         posixtm: move #ifdef'd tests into a new module
15245         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15246         * tests/test-posixtm.c: ... this new file.
15247         * modules/posixtm-tests: New module.
15248
15249 2009-09-19  Eric Blake  <ebb9@byu.net>
15250
15251         openat: simplify use of at-func.c
15252         * lib/at-func.c (includes): Include prerequisites here, to
15253         simplify requirements on client files.
15254         * lib/openat-priv.h: Add double-inclusion guard.
15255         * lib/faccessat.c (includes): Simplify.
15256         * lib/fchmodat.c (includes): Likewise.
15257         * lib/fchownat.c (includes): Likewise.
15258         * lib/mkdirat.c (includes): Likewise.
15259         * lib/mkfifoat.c (includes): Likewise.
15260         * lib/symlinkat.c (includes): Likewise.
15261
15262         openat: allow return of fd 0
15263         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15264         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15265         unistd-safer.
15266         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15267         <fcntl.h>; this module does not leak fds.
15268         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15269         must be allowed to return 0, leaving openat_safer to add the
15270         safety.
15271         (openat_permissive): Avoid writing to just-opened fd 2 if
15272         restoring the current directory fails.
15273         * lib/openat-die.c (openat_restore_fail): Add comment.
15274         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15275         (save_cwd): Guarantee safe fd, but without use of open_safer.
15276         * tests/test-openat.c: New test.
15277         * modules/openat-tests (Files, Makefile.am): Distribute and build
15278         new file.
15279
15280         relocatable-prog-wrapper: fix build
15281         * modules/relocatable-prog-wrapper (Files): Update name of
15282         canonicalize m4 file, broken on 2009-09-17.
15283         Reported by emad hajjar <aleppos@hotmail.com>.
15284
15285 2009-09-19  Bruno Haible  <bruno@clisp.org>
15286
15287         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15288         * lib/safe-alloc.c: Likewise.
15289         Reported by Ian Beckwith <ianb@erislabs.net>.
15290
15291 2009-09-18  Bruno Haible  <bruno@clisp.org>
15292
15293         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15294         Reported by <erobles@sensacd.com.mx>.
15295
15296 2009-09-17  Eric Blake  <ebb9@byu.net>
15297
15298         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15299         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15300         slashes when checking if last component is missing.
15301         * tests/test-canonicalize.c (main): Test this.
15302
15303         canonicalize, canonicalize-lgpl: honor // if distinct from /
15304         * modules/canonicalize (Files): Add double-slash-root.m4.
15305         * modules/canonicalize-lgpl (Files): Likewise.
15306         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15307         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15308         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15309         fallback definition.
15310         (canonicalize_filename_mode): Use it to protect //.
15311         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15312         (__realpath): Likewise.
15313         * tests/test-canonicalize.c (main): Test this.
15314         * tests/test-canonicalize-lgpl.c (main): Likewise.
15315         * modules/canonicalize-tests (Depends-on): Add same-inode.
15316         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15317
15318         canonicalize-lgpl: fix glibc bug with trailing slash
15319         * m4/canonicalize-lgpl.m4: Move contents...
15320         * m4/canonicalize.m4: ...here.
15321         (gl_CANONICALIZE_LGPL): Factor realpath check...
15322         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15323         glibc 2.3.5 bug, fixed 2005-04-27.
15324         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15325         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15326         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15327         * modules/canonicalize-lgpl (Files): Manage file rename.
15328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15329         * modules/stdlib (Makefile.am): Substitute witness.
15330         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15331         is needed.
15332         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15333         replacement is required.
15334         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15335         * doc/glibc-functions/canonicalize_file_name.texi
15336         (canonicalize_file_name): Document this.
15337         * doc/posix-functions/realpath.texi (realpath): Likewise.
15338
15339         canonicalize-lgpl: reject non-directory with trailing slash
15340         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15341         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15342         catches failures in glibc 2.3.5.
15343         * tests/test-canonicalize.c (main): Likewise.
15344
15345         canonicalize-lgpl: use native realpath if it works
15346         * lib/canonicalize-lgpl.c (realpath): Guard with
15347         FUNC_REALPATH_WORKS.
15348         * lib/stdlib.in.h (realpath): Make declaration optional based on
15349         HAVE_REALPATH.
15350         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15351         native realpath works.
15352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15353         * modules/stdlib (Makefile.am): Substitute witness.
15354
15355         canonicalize, canonicalize-lgpl: use <stdlib.h>
15356         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15357         (Include): Mention <stdlib.h>.
15358         (configure.ac): Mention functions we provide.
15359         * modules/canonicalize (configure.ac): Likewise.
15360         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15361         realpath if canonicalize_file_name is missing.
15362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15363         * modules/stdlib (Makefile.am): Substitute witnesses.
15364         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15365         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15366         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15367         * NEWS: Document this.
15368         * doc/glibc-functions/canonicalize_file_name.texi
15369         (canonicalize_file_name): Likewise.
15370         * doc/posix-functions/realpath.texi (realpath): Likewise.
15371         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15372
15373         test-canonicalize: consolidate into single C program
15374         * tests/test-canonicalize.sh: Delete; move setup into...
15375         * tests/test-canonicalize.c (main): ...the program, making it
15376         easier to run in debugger.  Add some tests.
15377         * modules/canonicalize-tests (Files): Remove unused file.
15378         (Depends-on): Add progname.
15379         (configure.ac, Makefile.am): Simplify.
15380
15381         test-canonicalize-lgpl: consolidate into single C program
15382         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15383         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15384         easier to run in debugger.  Add some tests.
15385         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15386         (configure.ac, Makefile.am): Simplify.
15387
15388         canonicalize: avoid resolvepath
15389         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15390         unnecessary checks.
15391         * lib/canonicalize.c (includes): Simplify.
15392         (canonicalize_file_name): Drop resolvepath implementation.
15393         * modules/canonicalize (Depends-on): Drop filenamecat.
15394
15395         canonicalize: don't lose errno
15396         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15397         over calls to free.
15398
15399         canonicalize: simplify errno handling
15400         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15401         assignment.
15402
15403         canonicalize, canonicalize-lgpl: update module dependencies
15404         * modules/canonicalize (Depends-on): Add extensions, lstat,
15405         pathmax, stdlib.
15406         (Files): Drop pathmax.h.
15407         (configure.ac): Adjust macro name.
15408         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15409         lstat, stdlib, sys_stat.
15410         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15411         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15412         extensions.
15413         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15414         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15415         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15416         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15417         declaration, if available.
15418         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15419         we can rely on the readlink module.
15420         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15421         (includes): Use <unistd.h> unconditionally.
15422
15423 2009-09-17  Eric Blake  <ebb9@byu.net>
15424
15425         maint: make Include sections of modules consistent
15426         * modules/alloca: Use only header name; no need to list #include.
15427         * modules/alloca-opt: Likewise.
15428         * modules/arpa_inet: Likewise.
15429         * modules/canon-host: Likewise.
15430         * modules/configmake: Likewise.
15431         * modules/dirent: Likewise.
15432         * modules/eealloc: Likewise.
15433         * modules/environ: Likewise.
15434         * modules/fchdir: Likewise.
15435         * modules/fcntl: Likewise.
15436         * modules/fcntl-h: Likewise.
15437         * modules/gethrxtime: Likewise.
15438         * modules/gettime: Likewise.
15439         * modules/ignore-value: Likewise.
15440         * modules/inet_ntop: Likewise.
15441         * modules/inet_pton: Likewise.
15442         * modules/inttypes: Likewise.
15443         * modules/isnand-nolibm: Likewise.
15444         * modules/isnanf-nolibm: Likewise.
15445         * modules/mbchar: Likewise.
15446         * modules/mbfile: Likewise.
15447         * modules/mbiter: Likewise.
15448         * modules/mbuiter: Likewise.
15449         * modules/netdb: Likewise.
15450         * modules/netinet_in: Likewise.
15451         * modules/nproc: Likewise.
15452         * modules/pagealign_alloc: Likewise.
15453         * modules/poll: Likewise.
15454         * modules/printf-frexp: Likewise.
15455         * modules/pthread: Likewise.
15456         * modules/putenv: Likewise.
15457         * modules/random_r: Likewise.
15458         * modules/relocatable-prog: Likewise.
15459         * modules/search: Likewise.
15460         * modules/select: Likewise.
15461         * modules/selinux-h: Likewise.
15462         * modules/settime: Likewise.
15463         * modules/signal: Likewise.
15464         * modules/size_max: Likewise.
15465         * modules/socklen: Likewise.
15466         * modules/ssize_t: Likewise.
15467         * modules/stdarg: Likewise.
15468         * modules/stdbool: Likewise.
15469         * modules/stddef: Likewise.
15470         * modules/stdint: Likewise.
15471         * modules/stdio: Likewise.
15472         * modules/stdlib: Likewise.
15473         * modules/string: Likewise.
15474         * modules/strings: Likewise.
15475         * modules/sys_file: Likewise.
15476         * modules/sys_ioctl: Likewise.
15477         * modules/sys_select: Likewise.
15478         * modules/sys_socket: Likewise.
15479         * modules/sys_stat: Likewise.
15480         * modules/sys_time: Likewise.
15481         * modules/sys_times: Likewise.
15482         * modules/sys_utsname: Likewise.
15483         * modules/sys_wait: Likewise.
15484         * modules/sysexits: Likewise.
15485         * modules/time: Likewise.
15486         * modules/times: Likewise.
15487         * modules/tmpfile: Likewise.
15488         * modules/trim: Likewise.
15489         * modules/unistd: Likewise.
15490         * modules/wchar: Likewise.
15491         * modules/wctype: Likewise.
15492
15493 2009-09-17  Bruno Haible  <bruno@clisp.org>
15494
15495         Make getdate.y compile on QNX and NetBSD 5 / i386.
15496         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15497         TIME_T_FITS_IN_LONG_INT.
15498         * lib/getdate.y (long_time_t): New type.
15499         (relative_time): Change type of 'seconds' field to long_time_t.
15500         (get_date): Update types of local variables. Check against overflow
15501         during conversion from long_time_t to time_t.
15502         Reported by Matt Kraai <kraai@ftbfs.org>
15503         and Hasso Tepper <hasso@netbsd.org>.
15504
15505 2009-09-17  Bruno Haible  <bruno@clisp.org>
15506
15507         * modules/COPYING: Update copyright years.
15508         * modules/README: Likeiwse.
15509         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15510         Reported by Ian Beckwith <ianb@erislabs.net>.
15511
15512 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15513
15514         * users.txt: Update references for gnuit package.
15515
15516 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15517
15518         * m4/getdelim.m4: Fix typo in copyright line.
15519
15520 2009-09-17  Bruno Haible  <bruno@clisp.org>
15521
15522         * lib/atoll.c: Use the standard header with GPL copyright.
15523         * lib/argz.in.h: Likewise.
15524         * lib/glob.c: Likewise.
15525         * lib/glob-libc.h: Likewise.
15526         * lib/random_r.c: Likewise.
15527         * lib/siglist.h: Likewise.
15528         * lib/strsignal.c: Likewise.
15529         Reported by Ian Beckwith <ianb@erislabs.net>.
15530
15531 2009-09-17  Eric Blake  <ebb9@byu.net>
15532
15533         rmdir: ensure correct dependency order
15534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15535
15536 2009-09-17  Bruno Haible  <bruno@clisp.org>
15537
15538         Disable assertion that fails on NetBSD 5 / i386.
15539         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15540         Reported by Sam Steingold <sds@gnu.org>
15541         and Hasso Tepper <hasso@netbsd.org>.
15542
15543 2009-09-16  Eric Blake  <ebb9@byu.net>
15544
15545         unlinkdir: port to mingw
15546         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15547         on which no one can unlink a directory.
15548
15549         stdlib: sort witness names
15550         * modules/stdlib (Makefile.am): Sort replacements.
15551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15552         * lib/stdlib.in.h: Likewise.
15553
15554         parse-duration-tests: avoid link failure
15555         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15556         LIBINTL.
15557         Reported by Tom G. Christensen.
15558
15559         openat-tests: ensure unlinkat behaves like rmdir
15560         * tests/test-rmdir.c (main): Factor guts...
15561         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15562         * modules/rmdir-tests (Files): Ship new file.
15563         * modules/openat-tests: New test.
15564         * tests/test-unlinkat.c: Likewise.
15565
15566         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15567         * modules/rmdir-errno (Status, Notice): Now obsolete.
15568
15569         rmdir: work around cygwin 1.5.x and mingw bugs
15570         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15571         * lib/rmdir.c (rmdir): Work around it.
15572         * modules/rmdir (Status, Notice): No longer obsolete.
15573         (Files): Add dos.m4.
15574         (Depends-on): Add unistd.
15575         (configure.ac): Set witnesses.
15576         (License): Relax to LGPLv2+.
15577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15578         * modules/unistd (Makefile.am): Substitute witnesses.
15579         * lib/unistd.in.h (rmdir): Declare replacement.
15580         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15581         * modules/rmdir-tests: New tests.
15582         * tests/test-rmdir.c: Likewise.
15583
15584 2009-09-15  Eric Blake  <ebb9@byu.net>
15585
15586         fchdir: improve use of replacement functions
15587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15590         REPLACE_CLOSEDIR.
15591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15592         * modules/sys_stat (Makefile.am): Substitute correct witness.
15593         * modules/dirent (Makefile.am): Likewise.
15594         * modules/unistd (Makefile.am): Likewise.
15595         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15596         * lib/unistd.in.h (dup): Likewise.
15597         * lib/sys_stat.in.h (fstat): Likewise.
15598
15599         maint: ignore gnulib-tool temp files
15600         * .gitignore: Ignore files created during gnulib-tool --test.
15601
15602 2009-09-13  Jim Meyering  <meyering@redhat.com>
15603
15604         posixtm: don't reject a time that specify "60" as the number of seconds
15605         * lib/posixtm.c (posixtime): The code to reject invalid dates
15606         would also reject a time specified with the .60 suffix.
15607         But POSIX allows that, in order to accommodate leap seconds.
15608         So don't reject it.
15609         (main): Adjust tests accordingly.
15610         * modules/posixtm (Depends-on): Add stpcpy.
15611
15612 2009-09-11  Jim Meyering  <meyering@redhat.com>
15613
15614         announce-gen: include [$release_type] in emitted Subject:
15615         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15616         e.g., [stable] in the emitted Subject: line.
15617
15618 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15619
15620         Remove obsolete macros from several modules.
15621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15622         obsolete Autoconf macros with their modern counterparts.
15623         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15624         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15626         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15628         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15630         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15631         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15632         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15633         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15634         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15635         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15636         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15637         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15638         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15639         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15640         * m4/time_r.m4 (gl_TIME_R): Likewise.
15641         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15642         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15643         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15644
15645         Fix copyright header in build-aux scripts.
15646         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15647         recommendation.
15648         * build-aux/ncftpput-ftp: Likewise.
15649         * build-aux/update-copyright: Likewise.
15650
15651 2009-09-09  Eric Blake  <ebb9@byu.net>
15652
15653         test-link: allow Linux choice of errno
15654         * tests/test-link.c (main): Relax test for alternate error.
15655
15656         strndup: fix improper m4 caching
15657         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15658         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15659         (gl_PREREQ_STRNDUP): Delete.
15660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15661         * modules/string (Makefile.am): Substitute it.
15662         * lib/string.in.h (strndup): Modernize prototype.
15663
15664         getcwd: port to mingw
15665         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15666         different from the POSIX assumptions made throughout the getcwd
15667         module; fortunately, the mingw getcwd does not need replacement.
15668         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15669         * modules/getcwd-tests: New test.
15670         * tests/test-getcwd.c: Likewise.
15671
15672         link: fix platform bugs
15673         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15674         * lib/link.c (link): Work around them.  Fix related mingw bug.
15675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15676         * modules/unistd (Makefile.am): Substitute it.
15677         * lib/unistd.in.h (link): Declare replacement.
15678         * doc/posix-functions/link.texi (link): Document this.
15679         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15680
15681         test-link: consolidate into single C program, test more cases
15682         * tests/test-link.sh: Delete.
15683         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15684         at least Cygwin and Solaris.
15685         * modules/link-tests (Files): Remove unused file.
15686         (Depends-on): Add errno, sys_stat.
15687         (Makefile.am): Simplify.
15688
15689 2009-09-08  Bruno Haible  <bruno@clisp.org>
15690
15691         Work around towlower, towupper bug on mingw.
15692         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15693         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15694         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15695         * doc/posix-functions/towupper.texi: Likewise.
15696         Reported by Eric Blake.
15697
15698 2009-09-08  Jim Meyering  <meyering@redhat.com>
15699
15700         build: don't try to run autoheader if we don't use it
15701         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15702         is not used in configure.ac.
15703
15704 2009-09-08  Eric Blake  <ebb9@byu.net>
15705
15706         euidaccess: fix compilation error
15707         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15708
15709         rawmemchr: relax license
15710         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15711         okay.
15712         Reported by Jim Meyering.
15713
15714         mkfifoat: new module
15715         * modules/mkfifoat: New file.
15716         * lib/mkfifoat.c: Likewise.
15717         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15719         * modules/sys_stat (Makefile.am): Use them.
15720         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15721         * MODULES.html.sh (File system functions): Mention module.
15722         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15723         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15724         * modules/mkfifoat-tests: New test.
15725         * tests/test-mkfifoat.c: Likewise.
15726
15727         strchrnul: relax license
15728         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15729         okay.
15730         Reported by Jim Meyering.
15731
15732 2009-09-08  Eric Blake  <ebb9@byu.net>
15733
15734         fstatat: fix compilation on Solaris
15735         * lib/fstatat.c (includes): Add fcntl.h.
15736         Reported by Pádraig Brady.
15737
15738 2009-09-07  Eric Blake  <ebb9@byu.net>
15739
15740         rename: modernize replacement
15741         * modules/rename (Depends-on): Add stdio.
15742         (configure.ac): Declare witness.
15743         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15744         stdio take care of replacement.
15745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15746         * modules/stdio (Makefile.am): Substitute them.
15747         * lib/stdio.in.h (rename): Declare replacement.
15748         * lib/rename.c (includes): Allow cross-compilation to non-windows
15749         machines.
15750         * doc/posix-functions/rename.texi (rename): Improve
15751         documentation.
15752
15753         stdio: sort witness names
15754         * modules/stdio (Makefile.am): Sort replacements.
15755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15756         * lib/stdio.in.h: Likewise.
15757
15758         getcwd: minor cleanups
15759         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15760         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15761
15762         openat: provide more convenience names
15763         * modules/faccessat (configure.ac): Add C witness.
15764         * lib/unistd.in.h (readlinkat): Fix typo.
15765         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15766         convenience wrappers.
15767         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15768         wrappers in syntax checks.
15769
15770 2009-09-06  Eric Blake  <ebb9@byu.net>
15771
15772         doc: fix comments in recent patches
15773         * lib/faccessat.c: Mention correct function.
15774         * lib/fchmodat.c: Likewise.
15775         * lib/fchownat.c: Likewise.
15776         * lib/symlinkat.c: Likewise.
15777         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15778         constants.
15779
15780         faccessat, symlinkat: continue cleanup of previous patch
15781         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15782         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15783         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15785         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15786         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15787         set.
15788
15789 2009-09-06  Bruno Haible  <bruno@clisp.org>
15790
15791         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15792         (fstatat): Declare if GNULIB_FSTATAT is set.
15793         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15794         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15795         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15796         * modules/fcntl-h (Files): Remove m4/openat.m4.
15797         * modules/sys_stat (Files): Remove m4/openat.m4.
15798         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15799         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15800         * modules/unistd (Files): Remove m4/openat.m4.
15801         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15802         GNULIB_OPENAT.
15803         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15804         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15806         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15807         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15808         gl_OPENAT_DEFAULTS.
15809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15810         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15811         Don't require gl_OPENAT_DEFAULTS.
15812         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15813         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15814         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15815         (gl_OPENAT_DEFAULTS): Remove macro.
15816
15817 2009-09-06  Bruno Haible  <bruno@clisp.org>
15818
15819         * modules/openat (configure.ac): Remove unneeded witness.
15820
15821 2009-09-06  Bruno Haible  <bruno@clisp.org>
15822
15823         Set errno to ENOSYS when a function is entirely unsupported.
15824         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15825         EOPNOTSUPP.
15826         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15827         * modules/chown (Depends-on): Remove errno.
15828
15829 2009-09-06  Bruno Haible  <bruno@clisp.org>
15830
15831         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15832
15833 2009-09-06  Bruno Haible  <bruno@clisp.org>
15834
15835         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15836
15837 2009-09-06  Ben Pfaff  <blp@gnu.org>
15838             Bruno Haible  <bruno@clisp.org>
15839
15840         Work around a glibc bug in strtok_r.
15841         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15842         Undefine if UNDEFINE_STRTOK_R is set.
15843         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15845         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
15846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
15847         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
15848         UNDEFINE_STRTOK_R.
15849         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
15850
15851 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15852
15853         exclude: minor fix
15854         * lib/exclude.c: Include wctype.h
15855
15856 2009-09-06  Akim Demaille  <demaille@gostai.com>
15857
15858         bootstrap: improve error message
15859         * build-aux/bootstrap (find_tool): Upon failure, report the list
15860         of candidates.
15861         Honor the initial value of the envvar.
15862
15863 2009-09-05  Eric Blake  <ebb9@byu.net>
15864
15865         symlinkat: new module
15866         * modules/symlinkat: New file.
15867         * lib/symlinkat.c: Likewise.
15868         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15870         * modules/unistd (Makefile.am): Use them.
15871         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
15872         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
15873         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
15874         * MODULES.html.sh (File system functions): Mention module.
15875         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15876         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15877         * modules/symlinkat-tests: New test.
15878         * tests/test-symlinkat.c: Likewise.
15879
15880         test-openat-safer: add more checks
15881         * tests/test-openat-safer.c (main): Check more code paths.
15882
15883 2009-09-05  Jim Meyering  <meyering@redhat.com>
15884
15885         syntax-check: detect unnecessary inclusion of openat.h
15886         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
15887
15888 2009-09-05  Bruno Haible  <bruno@clisp.org>
15889
15890         Support towlower, towupper.
15891         * doc/posix-functions/towlower.texi: Mention module wctype.
15892         * doc/posix-functions/towupper.texi: Likewise.
15893         * lib/wctype.in.h (towlower, towupper): New functions.
15894         * tests/test-wctype.c: Include stdio.h, stdlib.h.
15895         (ASSERT): New macro.
15896         (e): New variable.
15897         (main): Test also towlower, towupper. Test WEOF argument.
15898         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15899
15900 2009-09-05  Bruno Haible  <bruno@clisp.org>
15901
15902         Fix conversion behaviour when the input is invalid.
15903         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
15904         mark occurring in first pass of indirect conversion.
15905         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
15906         input.
15907         Found by clang's static analyzer.
15908
15909 2009-09-05  Bruno Haible  <bruno@clisp.org>
15910
15911         * tests/test-striconveh.c (main): Test indirect conversion on platforms
15912         where direct conversion is possible.
15913
15914 2009-09-04  Eric Blake  <ebb9@byu.net>
15915
15916         openat: fail with ENOENT on empty name
15917         * lib/openat-proc.c (openat_proc_name): Special-case the empty
15918         buffer.
15919
15920         link-follow: fix logic bug in prior patch
15921         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
15922         reversed sense of yes and no in prior patch.  Avoid confusing
15923         compilation failure with desired semantics.
15924
15925         link-follow: accomodate mingw and cross-compilation
15926         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
15927         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
15928         cross-compilation results to -1, to make linkat easier to
15929         implement when cross-compiling.  Trivially support mingw.
15930         * modules/link-follow (configure.ac): Call new name.
15931         * NEWS: Mention this.
15932
15933 2009-09-03  Eric Blake  <ebb9@byu.net>
15934
15935         faccessat: compile replacement
15936         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
15937         needed.
15938
15939         fts: fix compilation error
15940         * lib/fts.c (includes): Re-add "openat.h", for
15941         openat_needs_fchdir.
15942
15943         faccessat: new module
15944         * modules/faccessat: New file.
15945         * lib/faccessat.c: Likewise.
15946         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15948         * modules/unistd (Makefile.am): Use it.
15949         * lib/unistd.in.h (faccessat): Declare it.
15950         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
15951         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
15952         * MODULES.html.sh (File system functions): Mention it.
15953         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
15954         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
15955
15956         euidaccess: prefer POSIX over non-standard implementation
15957         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
15958         * lib/euidaccess.c (euidaccess): Use it if available.
15959
15960         openat: make template easier to use
15961         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
15962         AT_FUNC_F2 to be undefined.
15963         (VALIDATE_FLAG): New macro; use it to reject bad flags.
15964         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
15965         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
15966         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
15967         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
15968         Likewise.
15969         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
15970         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
15971         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
15972         Likewise.
15973
15974         openat: declare in POSIX headers
15975         * NEWS: Mention this.
15976         * modules/openat (configure.ac): Declare witnesses.
15977         (Depends-on): Add fcntl-h, sys_stat, unistd.
15978         (Include): Mention correct headers.
15979         * modules/fcntl-h (Depends-on): Add link-warning.
15980         (Files): Add openat.m4.
15981         (Makefile.am): Substitute witnesses.
15982         * modules/sys_stat (Files, Makefile.am): Likewise.
15983         * modules/unistd (Files, Makefile.am): Likewise.
15984         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
15985         (gl_OPENAT_DEFAULTS): New macro.
15986         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
15987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
15988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
15989         (SYS_STAT_H): Remove unused variable.
15990         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
15991         * lib/fcntl--.h (includes): Remove unneeded header.
15992         * lib/openat-safer.c (includes): Likewise.
15993         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
15994         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
15995         appropriate headers.
15996         (__OPENAT_PREFIX): Delete.
15997         * lib/fcntl.in.h (openat): Provide declaration.
15998         (AT_FDCWD): Fix Solaris bug.
15999         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16000         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16001         * lib/fchmodat.c (includes):  Adjust to find declaration.
16002         * lib/fchownat.c (includes): Likewise.
16003         * lib/mkdirat.c (includes): Likewise.
16004         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16005         still visible.
16006
16007 2009-09-02  Eric Blake  <ebb9@byu.net>
16008
16009         errno: use consistently
16010         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16011         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16012         * lib/canonicalize.c (ELOOP): Likewise.
16013         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16014         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16015         * lib/lchown.c (EOPNOTSUPP): Likewise.
16016         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16017         * lib/savewd.c (ESTALE): Likewise.
16018         * lib/settime.c (ENOSYS): Likewise.
16019         * lib/utimens.c (ENOSYS): Likewise.
16020         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16021         * lib/chdir-safer.c (ELOOP): Likewise.
16022         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16023         * modules/c-stack (Depends-on): Add errno.
16024         * modules/canonicalize (Depends-on): Likewise.
16025         * modules/chdir-safer (Depends-on): Likewise.
16026         * modules/fdopendir (Depends-on): Likewise.
16027         * modules/inet_ntop (Depends-on): Likewise.
16028         * modules/inet_pton (Depends-on): Likewise.
16029         * modules/lchown (Depends-on): Likewise.
16030         * modules/openat (Depends-on): Likewise.
16031         * modules/savewd (Depends-on): Likewise.
16032         * modules/settime (Depends-on): Likewise.
16033         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16034
16035         fts: avoid leaking fds
16036         * modules/fts (Depends-on): Add cloexec.
16037         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16038         flag.
16039
16040         fts: make directory fds more robust
16041         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16042         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16043
16044         backupfile, chdir-long, fts, savedir: make safer
16045         * lib/backupfile.c (includes): Use "dirent--.h", since
16046         numbered_backup can write to stderr during readdir.
16047         * lib/savedir.c (includes): Likewise.
16048         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16049         emulation can write to stderr on failure.
16050         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16051         * lib/getcwd.c: Document why opendir_safer is unused.
16052         * lib/glob.c: Likewise.
16053         * lib/scandir.c: Likewise.
16054         * lib/openat-proc.c: Likewise, for open_safer.
16055         * modules/backupfile (Depends-on): Add dirent-safer.
16056         * modules/savedir (Depends-on): Likewise.
16057         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16058         * modules/chdir-long (Depends-on): Add openat-safer.
16059
16060         openat-safer: new module
16061         * modules/openat-safer: New file.
16062         * lib/openat-safer.c: Likewise.
16063         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16064         * lib/fcntl-safer.h (openat_safer): Declare.
16065         * lib/fcntl--.h (openat): Override.
16066         * MODULES.html.sh (File descriptor based I/O): Mention it.
16067         * lib/openat.h: Add double-inclusion guards.
16068         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16069         "fcntl--.h", so we can implement openat.
16070         * modules/openat-safer-tests: New test.
16071         * tests/test-openat-safer.c: New file.
16072
16073         dirent-safer: new module
16074         * modules/dirent-safer: New file.
16075         * lib/dirent--.h: Likewise.
16076         * lib/dirent-safer.h: Likewise.
16077         * lib/opendir-safer.c: Likewise.
16078         * m4/dirent-safer.m4: Likewise.
16079         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16080         * modules/dirent-safer-tests: New test.
16081         * tests/test-dirent-safer.c: New file.
16082         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16083
16084         fdopendir: optimize on mingw
16085         * lib/unistd.in.h (_gl_directory_name): New prototype.
16086         * lib/fchdir.c (_gl_directory_name): Implement it.
16087         (fchdir): Use it to simplify implementation.
16088         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16089         fchdir, when available, to avoid calling [f]chdir().
16090
16091         fdopendir: split into its own module
16092         * lib/openat.c (fdopendir): Move...
16093         * lib/fdopendir.c: ...into new file.
16094         * modules/fdopendir: New module.
16095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16096         * modules/openat (Depends-on): Add fdopendir.
16097         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16098         fdopendir here.
16099         * modules/savedir (Depends-on): Only need fdopendir, not full
16100         openat.
16101         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16102         * lib/openat.h (fdopendir): Drop prototype.
16103         * lib/dirent.in.h (fdopendir): Provide prototype.
16104         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16105         * modules/dirent (Makefile.am): Substitute them.
16106         * MODULES.html.sh (File system functions): Mention it.
16107         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16108         * modules/fdopendir-tests: New file.
16109         * tests/test-fdopendir.c: Likewise.
16110
16111         fchdir: use more consistent macro convention
16112         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16113         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16114         REPLACE_FCHDIR, rather than relying on config.h macros.
16115         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16116         inside a single make-time REPLACE_FCHDIR block, rather than using
16117         the config.h FCHDIR_REPLACEMENT.
16118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16119         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16120         Manage fstat replacement.
16121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16122         REPLACE_FCHDIR.
16123         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16124         (Makefile.am): Substitute REPLACE_FCHDIR.
16125         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16126         FCHDIR_REPLACEMENT.
16127         * lib/dup-safer.c (dup_safer): Likewise.
16128         * lib/dup2.c (rpl_dup2): Likewise.
16129         * lib/dup3.c (rpl_dup3): Likewise.
16130         * lib/open.c (rpl_open): Likewise.
16131
16132         fchdir: simplify error handling, and support dup3
16133         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16134         stdbool, malloc-posix, realloc-posix.
16135         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16136         (ensure_dirs_slot): Return false on allocation failure.
16137         (rpl_dup2): Delete.
16138         (_gl_register_dup): New function.
16139         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16140         (_gl_register_fd): Close fd on allocation failure.
16141         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16142         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16143         prototype.
16144         (rpl_dup2_fchdir): Delete prototype.
16145         * lib/open.c (open): Update caller.
16146         * lib/dup2.c (dup2): Track fchdir metadata.
16147         * lib/dup3.c (dup3): Likewise.
16148         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16150
16151 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16152
16153         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16154         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16155         don't pass arguments to AC_OUTPUT.
16156
16157 2009-09-02  Bruno Haible  <bruno@clisp.org>
16158
16159         * modules/mkdtemp (License): Relicense under LGPLv2+.
16160         Reported by Paolo Bonzini.
16161
16162 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16163
16164         Replace uses of obsolete autoconf macros in Jim's modules.
16165         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16166         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16167         can evoke a warning from autoconf when run with -Wobsolete
16168         enabled.  They were declared obsolete for good reasons (see
16169         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16170         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16171         should not continue using the deprecated macros.
16172         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16173         obsolete Autoconf macros with modern counterparts.
16174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16175         * m4/dos.m4 (gl_AC_DOS): Likewise.
16176         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16178         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16179         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16180         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16181         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16182         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16183         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16184         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16185         Likewise.
16186         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16187         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16188         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16189         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16190         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16191         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16192
16193 2009-09-01  Eric Blake  <ebb9@byu.net>
16194
16195         fchdir: fix off-by-one bug in previous patch
16196         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16197         (_gl_unregister_fd): Delete useless if.
16198
16199 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16200
16201         maint.mk: sort the list of syntax-check rules
16202         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16203         easier to get a sense of progress when the rules are run sequentially
16204         and take a long time.
16205
16206 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16207
16208         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16209         * modules/netinet_in: Likewise.
16210         * modules/sys_file: Likewise.
16211         * modules/sys_ioctl: Likewise.
16212         * modules/sys_select: Likewise.
16213         * modules/sys_socket: Likewise.
16214         * modules/sys_stat: Likewise.
16215         * modules/sys_time: Likewise.
16216         * modules/sys_times: Likewise.
16217         * modules/sys_utsname: Likewise.
16218         * modules/sys_wait: Likewise.
16219
16220 2009-09-01  Jim Meyering  <meyering@redhat.com>
16221
16222         fts: help ensure that return values are not ignored
16223         * lib/fts_.h (__GNUC_PREREQ): Define.
16224         (__attribute_warn_unused_result__): Define.
16225         (fts_children, fts_close, fts_open, fts_read): Declare with
16226         __attribute_warn_unused_result__.
16227
16228         fts: fts_close now fails also when closing a dir file descriptor fails
16229         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16230         and propagate to caller, along with errno.
16231
16232         announce-gen: correct formatting in --help output
16233         * build-aux/announce-gen (usage): Move the one-line description in
16234         --help output "up", to where it belongs, just after Usage:.
16235
16236 2009-08-31  Eric Blake  <ebb9@byu.net>
16237
16238         fchdir: port to mingw
16239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16240         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16241         opened, then use a substitute.
16242         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16243         replacement.
16244         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16245         (_gl_register_fd): No need to check stat if open already filters
16246         all directories.
16247         (fchdir): Fix error condition to match POSIX.
16248         * modules/fchdir (Depends-on): Add sys_stat.
16249         * doc/posix-functions/open.texi (open): Document the limitation.
16250         * modules/fchdir-tests: New file.
16251         * tests/test-fchdir.c: Likewise.
16252
16253         canonicalize: allow cross-testing from cygwin to mingw
16254         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16255         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16256         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16257         Likewise.
16258         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16259         target does not support symlinks.
16260         * tests/test-canonicalize-lgpl.sh: Likewise.
16261
16262         chown: avoid compilation warning on mingw
16263         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16264         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16265         mingw.
16266         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16267         * modules/chown (Depends-on): Add errno.
16268
16269 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16270
16271         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16272         command.
16273
16274 2009-08-31  Jim Meyering  <meyering@redhat.com>
16275
16276         canonicalize: remove useless initialization
16277         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16278         initialization of local, "end".
16279
16280 2009-08-30  Bruno Haible  <bruno@clisp.org>
16281
16282         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16283         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16284         ENOSYS.
16285
16286 2009-08-30  Bruno Haible  <bruno@clisp.org>
16287
16288         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16289         /usr/xpg4/bin/tr when it exists.
16290         * tests/test-pipe-filter-gi1.sh: Likewise.
16291
16292 2009-08-30  Bruno Haible  <bruno@clisp.org>
16293
16294         Work around deficient /usr/bin/id program on Solaris.
16295         * tests/test-file-has-acl.sh (ID): New variable.
16296         * tests/test-set-mode-acl.sh (ID): Likewise.
16297         * tests/test-copy-acl.sh (ID): Likewise.
16298         * tests/test-copy-file.sh (ID): Likewise.
16299
16300 2009-08-30  Bruno Haible  <bruno@clisp.org>
16301
16302         New module 'xstriconveh'.
16303         * lib/xstriconveh.h: New file.
16304         * lib/xstriconveh.c: New file.
16305         * modules/xstriconveh: New file.
16306
16307 2009-08-30  Bruno Haible  <bruno@clisp.org>
16308
16309         Make it easier to use mem_cd_iconveh.
16310         * lib/striconveh.h (iconveh_t): New type.
16311         (iconveh_open, iconveh_close): New declarations.
16312         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16313         with a single 'const iconveh_t *' argument.
16314         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16315         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16316         with a single 'const iconveh_t *' argument.
16317         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16318         * tests/test-striconveh.c (main): Update.
16319         * NEWS: Mention the change.
16320
16321 2009-08-30  Bruno Haible  <bruno@clisp.org>
16322
16323         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16324         problem.
16325
16326 2009-08-30  Bruno Haible  <bruno@clisp.org>
16327
16328         Work around iconv_open problem on Solaris.
16329         * lib/iconv_open-solaris.gperf: New file.
16330         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16331         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16332         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16333         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16334         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16335         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16336
16337 2009-08-29  Jim Meyering  <meyering@redhat.com>
16338
16339         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16340         * top/maint.mk (cvs-check): Remove target; it was just an alias
16341         to the better-named vc-diff-check.
16342         (maintainer-distcheck): Remove rule.  It was used only from
16343         the (alpha/beta/major) target, and all of its commands but one
16344         were coreutils-specific.
16345         (vc-dist): Remove rule.
16346         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16347         Run vc-diff-check, not vc-dist.
16348         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16349
16350 2009-08-27  Bruno Haible  <bruno@clisp.org>
16351
16352         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16353         of 0.
16354
16355 2009-08-27  Bruno Haible  <bruno@clisp.org>
16356
16357         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16358         compilers.
16359         * doc/func.texi: Document the SunPRO C bug.
16360
16361 2009-08-27  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix link error on Solaris.
16364         * tests/test-parse-duration.c (xstrdup): Remove function.
16365
16366 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16367
16368         ignore-value: handle pointer types, too
16369         * lib/ignore-value.h (__attribute__): Remove definition.
16370         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16371         of a more concise and more-often effective "(void) i" statement.
16372         (ignore_ptr): New function to suppress warnings from functions that
16373         return pointers, and to make it explicit that one function doesn't
16374         handle all cases.
16375
16376 2009-08-25  Bruno Haible  <bruno@clisp.org>
16377
16378         dup2: work around a Linux bug.
16379         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16380         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16381         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16382         Reported by Simon Josefsson.
16383
16384 2009-08-25  Jim Meyering  <meyering@redhat.com>
16385
16386         libguestfs uses gnulib
16387         * users.txt: Add libguestfs.
16388
16389 2009-08-24  Eric Blake  <ebb9@byu.net>
16390
16391         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16392         * lib/pipe2.c (includes): Add binary-io.h.
16393         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16394
16395 2009-08-24  Bruno Haible  <bruno@clisp.org>
16396
16397         Tolerate declared but missing accept4 syscall.
16398         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16399         available.
16400         * lib/sys_socket.in.h (accept4): If the function is already present,
16401         override it.
16402         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16403         * modules/accept4 (Makefile.am): Compile accept4.c always.
16404         Reported by Paolo Bonzini and Eric Blake.
16405
16406 2009-08-23  Bruno Haible  <bruno@clisp.org>
16407
16408         New module 'accept4'.
16409         * lib/sys_socket.in.h (accept4): New declaration.
16410         * lib/accept4.c: New file.
16411         * m4/accept4.m4: New file.
16412         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16413         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16414         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16415         HAVE_ACCEPT4.
16416         * modules/accept4: New file.
16417         * doc/glibc-functions/accept4.texi: Mention the new module.
16418
16419 2009-08-24  Jim Meyering  <meyering@redhat.com>
16420
16421         progname: also set global program_invocation_name, when possible
16422         Before this change, a libtool-enabled program that calls glibc's
16423         error function would report the program name as
16424         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16425         * modules/progname (configure.ac): Check for a declaration of
16426         program_invocation_name.
16427         * lib/progname.c:  Include <errno.h>.
16428         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16429         Set program_invocation_name.
16430
16431 2009-08-23  Bruno Haible  <bruno@clisp.org>
16432
16433         * lib/dup3.c: Include <string.h>.
16434
16435 2009-08-23  Bruno Haible  <bruno@clisp.org>
16436
16437         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16438         * lib/pipe2.c (pipe2): Likewise.
16439         Suggested by Eric Blake.
16440
16441 2009-08-23  Bruno Haible  <bruno@clisp.org>
16442
16443         Tolerate declared but missing dup3 syscall.
16444         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16445         * lib/unistd.in.h (dup3): If the function is already present,
16446         override it.
16447         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16448         * modules/dup3 (Makefile.am): Compile dup3.c always.
16449         Reported by Paolo Bonzini.
16450
16451 2009-08-23  Bruno Haible  <bruno@clisp.org>
16452
16453         Tolerate declared but missing pipe2 syscall.
16454         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16455         available.
16456         * lib/unistd.in.h (pipe2): If the function is already present,
16457         override it.
16458         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16459         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16460         Reported by Paolo Bonzini.
16461
16462 2009-08-23  Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/pipe2.c (pipe2): Move #ifs inside function.
16465
16466 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16467
16468         quotearg: document limitations of quote_these_too
16469         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16470         those limitations are created.
16471         * lib/quotearg.h (set_char_quoting): Document that digits and
16472         letters that are special after backslash are not permitted.
16473         (quotearg_char): Cross-reference set_char_quoting documentation.
16474
16475 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16476
16477         quotearg: implement custom_quoting_style
16478         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16479         right_quote fields.
16480         (set_custom_quoting): New public function.
16481         (quotearg_buffer_restyled): Add left_quote and right_quote
16482         arguments, handle them very much like locale quoting, and update
16483         all uses.
16484         (quotearg_n_custom): New public function.
16485         (quotearg_n_custom_mem): New public function.
16486         (quotearg_custom): New public function.
16487         (quotearg_custom_mem): New public function.
16488         * lib/quotearg.h: Prototype and document new public functions.
16489         (enum quoting_style): For escape_quoting_style and
16490         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16491         ignored even though they're otherwise like c_quoting_style.
16492         Add custom_quoting_style member and document with comparison to
16493         clocale_quoting_style.
16494         * tests/test-quotearg.c (custom_quotes): New array.
16495         (custom_results): New array.
16496         (main): Extend to test custom quoting.
16497
16498 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16499
16500         quotearg: fix right quote escaping when it's in quote_these_too
16501         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16502         quote, be sure to prepend only one backslash.
16503         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16504         (main): Test it.
16505
16506 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16507
16508         quotearg-tests: test escaping of embedded locale quotes
16509         * tests/test-quotearg.c (struct result_strings): Add member for
16510         new input.
16511         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16512         (inputs): Add new input.
16513         (results_g): Add expected results.
16514         (flag_results): Likewise.
16515         (locale_results): Likewise.
16516         (compare_strings): Check those.
16517
16518 2009-08-23  Bruno Haible  <bruno@clisp.org>
16519
16520         Tests for module 'dup3'.
16521         * modules/dup3-tests: New file.
16522         * tests/test-dup3.c: New file.
16523
16524         New module 'dup3'.
16525         * lib/unistd.in.h (dup3): New declaration.
16526         * lib/dup3.c: New file.
16527         * m4/dup3.m4: New file.
16528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16529         HAVE_DUP3.
16530         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16531         * modules/dup3: New file.
16532         * doc/glibc-functions/dup3.texi: Mention the new module.
16533
16534 2009-08-23  Bruno Haible  <bruno@clisp.org>
16535
16536         Tweak the dup2 test.
16537         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16538         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16539         the test file is still empty. Fix argument order of lseek.
16540
16541 2009-08-23  Bruno Haible  <bruno@clisp.org>
16542
16543         Avoid test link errors when the modules getopt-gnu, gettext are used.
16544         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16546
16547 2009-08-23  Bruno Haible  <bruno@clisp.org>
16548
16549         Fix getdtablesize() on mingw.
16550         * lib/getdtablesize.c (getdtablesize): Implement differently.
16551         * lib/unistd.in.h (getdtablesize): Improve comment.
16552
16553 2009-08-23  Bruno Haible  <bruno@clisp.org>
16554
16555         New module 'mkostemp'.
16556         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16557         * lib/stdlib.in.h (mksotemp): New declaration.
16558         * lib/mkostemp.c: New file, from glibc with modifications.
16559         * lib/tempname.h (GT_FILE): Remove outdated comment.
16560         (gen_tempname): Add flags argument.
16561         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16562         (__GT_FILE): Map to 1.
16563         (small_open, large_open): Remove macros.
16564         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16565         * lib/mkstemp.c (mkstemp): Update.
16566         * lib/mkdtemp.c (mkdtemp): Likewise.
16567         * m4/mkostemp.m4: New file.
16568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16569         HAVE_MKOSTEMP.
16570         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16571         HAVE_MKOSTEMP.
16572         * modules/mkostemp: New file, based on modules/mkstemp.
16573         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16574         * NEWS: Mention the change.
16575
16576 2009-08-23  Bruno Haible  <bruno@clisp.org>
16577
16578         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16579         Reported by Eric Blake.
16580
16581 2009-08-23  Bruno Haible  <bruno@clisp.org>
16582
16583         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16584         Reported by Eric Blake.
16585
16586 2009-08-23  Bruno Haible  <bruno@clisp.org>
16587
16588         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16589         * modules/pipe2 (Depends-on): Likewise.
16590
16591 2009-08-23  Eric Blake  <ebb9@byu.net>
16592
16593         fcntl-h: add O_TTY_INIT support
16594         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16595         * tests/test-fcntl-h.c (o): Test it.
16596         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16597
16598         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16599         * modules/fcntl: Move <fcntl.h> header replacement...
16600         * modules/fcntl-h: ...to new name, so as not to collide with
16601         like-named function.
16602         * tests/test-fcntl.c: Rename...
16603         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16604         * modules/fcntl-tests: Rename...
16605         * modules/fcntl-h-tests: ...to this.  Update test file name.
16606         * modules/chdir-long (Depends-on): Update clients.
16607         * modules/chdir-safer (Depends-on): Likewise.
16608         * modules/fcntl-safer (Depends-on): Likewise.
16609         * modules/fts (Depends-on): Likewise.
16610         * modules/mkancesdirs (Depends-on): Likewise.
16611         * modules/mkdir-p (Depends-on): Likewise.
16612         * modules/open (Depends-on): Likewise.
16613         * modules/savewd (Depends-on): Likewise.
16614         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16615         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16616
16617 2009-08-22  Bruno Haible  <bruno@clisp.org>
16618
16619         * modules/binary-io (License): Relicense under LGPL.
16620         * modules/pipe2 (License): Likewise.
16621
16622 2009-08-22  Bruno Haible  <bruno@clisp.org>
16623
16624         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16625         return value.
16626         * lib/pipe-filter-gi.c (filter_init): Likewise.
16627         Reported by Eric Blake.
16628
16629 2009-08-22  Bruno Haible  <bruno@clisp.org>
16630
16631         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16632         * modules/pipe (Depends-on): Add pipe2.
16633
16634 2009-08-22  Bruno Haible  <bruno@clisp.org>
16635
16636         Tests for module 'pipe2'.
16637         * modules/pipe2-tests: New file.
16638         * tests/test-pipe2.c: New file.
16639
16640         New module 'pipe2'.
16641         * lib/unistd.in.h (pipe2): New declaration.
16642         * lib/pipe2.c: New file.
16643         * m4/pipe2.m4: New file.
16644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16645         HAVE_PIPE2.
16646         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16647         * modules/pipe2: New file.
16648         * doc/glibc-functions/pipe2.texi: Mention the new module.
16649
16650 2009-08-22  Bruno Haible  <bruno@clisp.org>
16651
16652         Reference some new glibc functions.
16653         * doc/glibc-functions/accept4.texi: New file.
16654         * doc/glibc-functions/dup3.texi: New file.
16655         * doc/glibc-functions/mkostemp.texi: New file.
16656         * doc/glibc-functions/pipe2.texi: New file.
16657         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16658         (Glibc sys/socket.h): Refer to accept4.
16659         (Glibc unistd.h): Refer to dup3, pipe2.
16660         Reported by Eric Blake.
16661
16662 2009-08-22  Jim Meyering  <meyering@redhat.com>
16663             Bruno Haible  <bruno@clisp.org>
16664
16665         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16666         This makes it so packages using automake-1.11's silent-rules option
16667         can print e.g., a single "GEN    configmake.h" line, rather than
16668         the 30+ statements that perform the job.  If you want to see the
16669         actual commands, you can still run "make V=1".
16670         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16671         so that make output is abbreviated when those variables are defined
16672         appropriately.
16673         * modules/argz: Likewise.
16674         * modules/arpa_inet: Likewise.
16675         * modules/byteswap: Likewise.
16676         * modules/configmake: Likewise.
16677         * modules/dirent: Likewise.
16678         * modules/errno: Likewise.
16679         * modules/fcntl: Likewise.
16680         * modules/float: Likewise.
16681         * modules/fnmatch: Likewise.
16682         * modules/getopt-posix: Likewise.
16683         * modules/glob: Likewise.
16684         * modules/iconv_open: Likewise.
16685         * modules/inttypes: Likewise.
16686         * modules/localcharset: Likewise.
16687         * modules/locale: Likewise.
16688         * modules/math: Likewise.
16689         * modules/netdb: Likewise.
16690         * modules/netinet_in: Likewise.
16691         * modules/poll: Likewise.
16692         * modules/posix_spawnp-tests: Likewise.
16693         * modules/sched: Likewise.
16694         * modules/search: Likewise.
16695         * modules/selinux-h: Likewise.
16696         * modules/signal: Likewise.
16697         * modules/spawn: Likewise.
16698         * modules/stdarg: Likewise.
16699         * modules/stdbool: Likewise.
16700         * modules/stddef: Likewise.
16701         * modules/stdint: Likewise.
16702         * modules/stdio: Likewise.
16703         * modules/stdlib: Likewise.
16704         * modules/string: Likewise.
16705         * modules/strings: Likewise.
16706         * modules/sys_file: Likewise.
16707         * modules/sys_ioctl: Likewise.
16708         * modules/sys_select: Likewise.
16709         * modules/sys_socket: Likewise.
16710         * modules/sys_stat: Likewise.
16711         * modules/sys_time: Likewise.
16712         * modules/sys_times: Likewise.
16713         * modules/sys_utsname: Likewise.
16714         * modules/sys_wait: Likewise.
16715         * modules/sysexits: Likewise.
16716         * modules/time: Likewise.
16717         * modules/unistd: Likewise.
16718         * modules/wchar: Likewise.
16719         * modules/wctype: Likewise.
16720
16721 2009-08-22  Jim Meyering  <meyering@redhat.com>
16722
16723         announce-gen: detect write failure
16724         * build-aux/announce-gen: Add Coda at end.
16725         Remove equivalent-but-more-verbose block at top.
16726
16727 2009-08-19  Akim Demaille  <demaille@gostai.com>
16728
16729         bootstrap: --help to stdout.
16730         * bootstrap (usage): Don't send --help to stderr.
16731         Use a here doc instead of a long string.
16732
16733 2009-08-21  Eric Blake  <ebb9@byu.net>
16734
16735         test-popen-safer: split from test-popen
16736         * tests/test-popen.c (main): Move...
16737         * tests/test-popen.h: ...into new file.
16738         * tests/test-popen-safer2.c: New file.
16739         * modules/popen-tests (Files): Add test-popen.h.
16740         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16741         Suggested by Bruno Haible.
16742
16743         test-fcntl-safer: split from test-open
16744         * tests/test-open.c (main): Move...
16745         * tests/test-open.h: ...into new file.
16746         * tests/test-fcntl-safer.c: New file.
16747         * modules/open-tests (Files): Add test-open.h.
16748         * modules/fcntl-safer-tests: New file.
16749         Suggested by Bruno Haible.
16750
16751         test-fopen-safer: split from test-fopen
16752         * tests/test-fopen.c (main): Move...
16753         * tests/test-fopen.h: ...into new file.
16754         * tests/test-fopen-safer.c: New file.
16755         * modules/fopen-tests (Files): Add test-fopen.h.
16756         * modules/fopen-safer-tests: New file.
16757         Suggested by Bruno Haible.
16758
16759 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16760
16761         popen-safer: test O_CLOEXEC at run-time.
16762         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16763
16764 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16765
16766         fcntl: move more flags to the header
16767         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16768         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16769         * lib/fcntl.in.h: Do both things here.
16770
16771 2009-08-21  Jim Meyering  <meyering@redhat.com>
16772
16773         consistently remove $@-t before redirecting to it
16774         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16775         * modules/alloca-opt: Likewise.
16776         * modules/byteswap: Likewise.
16777         * modules/fnmatch: Likewise.
16778         * modules/getopt-posix: Likewise.
16779         * modules/glob: Likewise.
16780         * modules/poll: Likewise.
16781         * modules/posix_spawnp-tests: Likewise.
16782         * modules/sys_socket: Likewise.
16783         * modules/sysexits: Likewise.
16784
16785 2009-08-21  Eric Blake  <ebb9@byu.net>
16786
16787         popen: simplify access to original popen
16788         * lib/popen.c (rpl_popen): No need to worry about popen being a
16789         macro.
16790         Reported by Bruno Haible.
16791
16792 2009-08-20  Eric Blake  <ebb9@byu.net>
16793
16794         build: avoid some compiler warnings
16795         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16796         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16797         type.
16798         (new_exclude_segment, excluded_file_pattern_p)
16799         (excluded_file_name_p): Reduce scope.
16800         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16801         old-style declaration.
16802
16803 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16804
16805         * tests/test-exclude1.sh: Handle Windows EOL.
16806         * tests/test-exclude2.sh: Likewise.
16807         * tests/test-exclude3.sh: Likewise.
16808         * tests/test-exclude4.sh: Likewise.
16809         * tests/test-exclude5.sh: Likewise.
16810         * tests/test-exclude6.sh: Likewise.
16811         * tests/test-exclude7.sh: Likewise.
16812
16813 2009-08-19  Akim Demaille  <demaille@gostai.com>
16814
16815         bootstrap: find sha1sum when named gsha1sum.
16816         * bootstrap (find_tool): New.
16817         ($SHA1SUM): New.
16818         Use it.
16819
16820 2009-08-20  Jim Meyering  <meyering@redhat.com>
16821
16822         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16823         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16824         expression that converts "." in a file name to "\." in the resulting
16825         regexp.  Start with a dummy statement, so that prior shell variable
16826         definitions are expanded portably.  Reported by Simon Josefsson.
16827
16828 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16829
16830         Fix polling for writeability of a screen buffer.
16831         * lib/poll.c: Distinguish input and screen buffers for the
16832         Win32 implementation.
16833         * lib/select.c: Likewise.
16834
16835 2009-08-19  Eric Blake  <ebb9@byu.net>
16836
16837         popen-safer: prevent popen from clobbering std descriptors
16838         * modules/popen-safer: New file.
16839         * lib/popen-safer.c: Likewise.
16840         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16841         * lib/stdio--.h (popen): Provide override.
16842         * lib/stdio-safer.h (popen_safer): Provide declaration.
16843         * tests/test-popen.c (includes): Partially test this.
16844         * modules/popen-safer-tests: New file, for more tests.
16845         * tests/test-popen-safer.c: Likewise.
16846         * MODULES.html.sh (file stream based Input/Output): Mention it.
16847
16848         tests: test some of the *-safer modules
16849         * modules/fopen-safer (Depends-on): Add fopen.
16850         * modules/fcntl-safer (Depends-on): Add fcntl.
16851         * modules/stdlib-safer (Depends-on): Add stdlib.
16852         (configure.ac): Set indicator.
16853         * modules/unistd-safer (configure.ac): Likewise.
16854         * modules/tmpfile-safer (configure.ac): Likewise.
16855         (Depends-on): Add tmpfile.
16856         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
16857         active.
16858         * tests/test-fopen.c (includes): Test safer versions when they are
16859         in use.
16860         * tests/test-open.c (includes): Likewise.
16861
16862         popen: fix cygwin 1.5 bug when stdin closed
16863         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
16864         * modules/popen: New file.
16865         * modules/popen-tests: Likewise.
16866         * tests/test-popen.c: Likewise.
16867         * m4/popen.m4: Likewise.
16868         * lib/popen.c: Likewise.
16869         * lib/stdio.in.h (popen): New declaration.
16870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
16871         * modules/stdio (Makefile.am): Likewise.
16872         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
16873
16874 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
16875
16876         maint.mk: give full control over update-copyright exclusions
16877         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
16878         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
16879         (update-copyright): Don't force inclusion of top-level
16880         ChangeLog.  Don't force exclusion of all COPYING files, but make
16881         them the default exclusion instead.
16882
16883 2009-08-16  Bruno Haible  <bruno@clisp.org>
16884
16885         Fix test failures on Solaris 10.
16886         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
16887         tests when Solaris iconv() is used.
16888         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16889         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16890         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16891         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16892         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16893
16894 2009-08-16  Bruno Haible  <bruno@clisp.org>
16895
16896         Fix test failures on Solaris 10.
16897         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
16898         'tr' program and pass it as first argument.
16899         * tests/test-pipe-filter-gi1.sh: Likewise.
16900         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
16901         program as first argument.
16902         * tests/test-pipe-filter-gi1.c (main): Likewise.
16903
16904 2009-08-16  Eric Blake  <ebb9@byu.net>
16905
16906         fpurge: fix previous commits
16907         * modules/fpurge (Makefile.am): Make replacement conditional,
16908         partially reverting 2007-04-29 change; missed in previous
16909         attempt.
16910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
16911         is missing.
16912
16913 2009-08-16  Bruno Haible  <bruno@clisp.org>
16914
16915         Clarify fpurge's effect on the file position.
16916         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
16917         * tests/test-fpurge.c (main): Make a second pass for checking the file
16918         position.
16919
16920 2009-08-16  Bruno Haible  <bruno@clisp.org>
16921
16922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
16923         declaration of fpurge is missing.
16924         * tests/test-fpurge.c (main): Check that the file has not more contents
16925         than expected. Close the file before removing it.
16926
16927 2009-08-15  Eric Blake  <ebb9@byu.net>
16928
16929         fpurge: don't wrap working cygwin implementation
16930         * lib/fpurge.c (fpurge): Fix comment typo.
16931         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
16932         1.7 to avoid replacement.
16933         * tests/test-fpurge.c (main): Enhance test.
16934
16935 2009-08-15  Eric Blake  <ebb9@byu.net>
16936         and Jim Meyering  <meyering@redhat.com>
16937
16938         test-update-copyright: skip if perl is insufficient
16939         * tests/test-update-copyright.sh: Failure to run maintainer tool
16940         should not cause testsuite failure on cygwin 1.5.
16941
16942 2009-08-14  Eric Blake  <ebb9@byu.net>
16943
16944         doc: mention more functions added in cygwin 1.7.0
16945         * doc/posix-headers/limits.texi (limits.h): Update for recent
16946         cygwin additions.
16947         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
16948         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16949         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
16950         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
16951         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
16952
16953 2009-08-14  Eric Blake  <ebb9@byu.net>
16954
16955         maint.mk: simplify update-copyright rule
16956         * top/maint.mk (update-copyright-local): Delete, and document how
16957         to do it in cfg.mk instead.
16958         (update-copyright-exclude-regexp): Delete, and document how to do
16959         it in .x-update-copyright instead.
16960         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
16961         exclude ChangeLog.
16962
16963 2009-08-14  Bruno Haible  <bruno@clisp.org>
16964
16965         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
16966
16967 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16968
16969         maint.mk: support update-copyright-env
16970         * top/maint.mk (update-copyright-env): Define place-holder.
16971         (update-copyright): Expand $(update-copyright-env) before
16972         invoking update-copyright.
16973
16974 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
16975
16976         update-copyright: implement forced reformatting
16977         * build-aux/update-copyright: Implement and document
16978         UPDATE_COPYRIGHT_FORCE.
16979         * tests/test-update-copyright.sh: Test it.
16980
16981 2009-08-14  Eric Blake  <ebb9@byu.net>
16982         and Bruno Haible  <bruno@clisp.org>
16983
16984         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
16985         * tests/test-locale.c: Revert previous patch related to NULL.
16986         * tests/test-stdio.c: Likewise.
16987         * tests/test-stdlib.c: Likewise.
16988         * tests/test-string.c: Likewise.
16989         * tests/test-unistd.c: Likewise.
16990         * modules/time-tests (Depends-on): Add verify.
16991         * modules/wchar-tests (Depends-on): Likewise.
16992         * tests/test-time.c: Test for NULL compliance.
16993         * tests/test-wchar.c: Likewise.
16994         * modules/locale (Depends-on): Add stddef.
16995         * modules/stdio (Depends-on): Likewise.
16996         * modules/stdlib (Depends-on): Likewise.
16997         * modules/string (Depends-on): Likewise.
16998         * modules/time (Depends-on): Likewise.
16999         * modules/unistd (Depends-on): Likewise.
17000         * modules/wchar (Depends-on): Likewise.
17001         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17002         * lib/stdlib.in.h (includes): Likewise.
17003         * lib/string.in.h (includes): Likewise.
17004         * lib/time.in.h (includes): Likewise.
17005         * lib/unistd.in.h (includes): Likewise.
17006         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17007         replaced.
17008         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17009         * m4/stddef_h.m4: New file.
17010         * modules/stddef: Likewise.
17011         * lib/stddef.in.h: Likewise.
17012         * modules/stddef-tests: Likewise.
17013         * tests/test-stddef.c: Likewise.
17014         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17015         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17016         * doc/posix-headers/locale.texi (locale.h): Likewise.
17017         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17018         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17019         * doc/posix-headers/string.texi (string.h): Likewise.
17020         * doc/posix-headers/time.texi (time.h): Likewise.
17021         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17022         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17023
17024 2009-08-14  Eric Blake  <ebb9@byu.net>
17025
17026         doc: improve git diff of texinfo files
17027         * .gitattributes: Add rule for *.texi files, with hint on how to
17028         use it.
17029         Copied from m4, and based on a report by Bruno Haible.
17030
17031 2009-08-14  Bruno Haible  <bruno@clisp.org>
17032
17033         Disable multithread support by default on Cygwin 1.5.x for real.
17034         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17035
17036 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17037
17038         update-copyright: much ado about intervals
17039         * build-aux/update-copyright: Implement and document
17040         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17041         of copyright year intervals.
17042         Also, document UPDATE_COPYRIGHT_YEAR.
17043         * tests/test-update-copyright.sh: Test it.
17044
17045         update-copyright: convert 2-digit to 4-digit years
17046         * build-aux/update-copyright: Implement and document.
17047         * tests/test-update-copyright.sh: Update.
17048
17049 2009-08-14  Jim Meyering  <meyering@redhat.com>
17050
17051         test-exclude: avoid coreutils "make check" failure
17052         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17053         just as in test-argmatch.c.
17054
17055 2009-08-13  Eric Blake  <ebb9@byu.net>
17056
17057         test-dup2: fix bad assumption
17058         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17059         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17060
17061         test-version-etc: fix CRLF portability issue
17062         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17063         recognize \r.
17064         * tests/test-argp-version-etc-1.sh: Likewise.
17065
17066         getopt: update client modules
17067         * modules/argp (Depends-on): Use getopt-gnu.
17068         * modules/git-merge-changelog (Depends-on): Likewise.
17069         * modules/long-options (Depends-on): Likewise.
17070         * modules/xstrtol (Depends-on): Likewise.
17071
17072 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17073
17074         * tests/test-version-etc.sh: Don't fail on different
17075         project/version.  Don't fail on CRLF differences.  Rewrite to use
17076         multiple -e instead of multiple sed forks, suggested by Eric Blake
17077         <ebb9@byu.net>.
17078         * tests/test-argp-version-etc-1.sh: Likewise.
17079
17080 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17081
17082         * tests/test-version-etc.sh: Don't fail on different
17083         project/version.
17084
17085 2009-08-12  Bruno Haible  <bruno@clisp.org>
17086
17087         Tests for modules 'getopt-posix', 'getopt-gnu'.
17088         * modules/getopt-posix-tests: New file.
17089         * tests/test-getopt.c: New file.
17090         * tests/test-getopt.h: New file.
17091         * tests/test-getopt_long.h: New file.
17092
17093         New modules 'getopt-posix', 'getopt-gnu'.
17094         * modules/getopt-gnu: New file, renamed from modules/getopt.
17095         * modules/getopt-posix: New file.
17096         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17097         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17098         (gl_GETOPT): Remove macro.
17099         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17100         Disable the test against BSD systems that declare optreset. Test
17101         against mingw bug. Test against lack of support of optional arguments
17102         on many platforms.
17103         * doc/glibc-headers/getopt.texi: Update module name and list of
17104         relevant platforms.
17105         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17106         'getopt-gnu' and more portability problems.
17107         * NEWS: Mention the changes.
17108
17109 2009-08-12  Bruno Haible  <bruno@clisp.org>
17110
17111         Ensure that optarg etc. get declared by <unistd.h>.
17112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17113         AC_USE_SYSTEM_EXTENSIONS.
17114         * modules/getopt (Depends-on): Add 'extensions'.
17115
17116 2009-08-12  Bruno Haible  <bruno@clisp.org>
17117
17118         Avoid test link errors.
17119         * modules/pipe-filter-ii-tests (Makefile.am): Define
17120         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17121         * modules/pipe-filter-gi-tests (Makefile.am): Define
17122         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17124
17125 2009-08-12  Bruno Haible  <bruno@clisp.org>
17126
17127         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17128         gl_GETOPT_SUBSTITUTE before.
17129         (gl_GETOPT): Use it.
17130         * m4/argp.m4 (gl_ARGP): Update.
17131         Reported by Sergey Poznyakoff.
17132
17133         * m4/getopt.m4: Reorder macros.
17134         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17135         (gl_GETOPT_SUBSTITUTE): Remove macro.
17136
17137 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17138
17139         Minor improvement in gitlog-to-changelog
17140
17141         * build-aux/gitlog-to-changelog: New option `--format' makes
17142         output format string configurable.
17143
17144 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17145
17146         Optimize exclude: use hash tables for non-wildcard patterns.
17147
17148         * lib/exclude.c: Include hash.h and mbuiter.h
17149         (struct exclude_pattern, exclude_segment): New data types.
17150         (struct exclude): Rewrite.
17151         (fnmatch_pattern_has_wildcards): New function.
17152         (new_exclude_segment, free_exclude_segment): New functions.
17153         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17154         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17155         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17156         * modules/exclude: Depend on hash and mbuiter.
17157
17158         * modules/exclude-tests: New file.
17159         * tests/test-exclude.c: New file.
17160         * tests/test-exclude1.sh: New file.
17161         * tests/test-exclude2.sh: New file.
17162         * tests/test-exclude3.sh: New file.
17163         * tests/test-exclude4.sh: New file.
17164         * tests/test-exclude5.sh: New file.
17165         * tests/test-exclude6.sh: New file.
17166         * tests/test-exclude7.sh: New file.
17167
17168 2009-08-12  Bruno Haible  <bruno@clisp.org>
17169
17170         Ensure that getopt() gets declared by <unistd.h>.
17171         * lib/unistd.in.h: Conditionally include getopt.h.
17172         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17173         Set GNULIB_UNISTD_H_GETOPT.
17174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17175         GNULIB_UNISTD_H_GETOPT.
17176         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17177
17178 2009-08-12  Bruno Haible  <bruno@clisp.org>
17179
17180         Clarify logic.
17181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17182         gl_replace_getopt instead of GETOPT_H.
17183
17184 2009-08-12  Bruno Haible  <bruno@clisp.org>
17185
17186         * m4/getopt.m4: Add comments.
17187
17188 2009-08-12  Bruno Haible  <bruno@clisp.org>
17189
17190         Disable multithread support by default on Cygwin 1.5.x.
17191         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17192         set gl_use_threads=no if not specified otherwise.
17193
17194 2009-08-11  Bruno Haible  <bruno@clisp.org>
17195
17196         Avoid compilation error on NetBSD 5.0.
17197         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17198         * tests/test-stdio.c: Likewise.
17199         * tests/test-stdlib.c: Likewise.
17200         * tests/test-string.c: Likewise.
17201         * tests/test-unistd.c: Likewise.
17202         Reported by Greg Troxel <gdt@ir.bbn.com>
17203         at <https://savannah.gnu.org/support/?106973>.
17204
17205 2009-08-11  Bruno Haible  <bruno@clisp.org>
17206
17207         * modules/dup2-tests (Depends-on): Remove close.
17208
17209         Undo 2009-07-19 commit.
17210         * modules/acl-tests (Depends-on): Remove close.
17211         * modules/binary-io-tests (Depends-on): Likewise.
17212         * modules/closein-tests (Depends-on): Likewise.
17213         * modules/flock-tests (Depends-on): Likewise.
17214         * modules/fsync-tests (Depends-on): Likewise.
17215         * modules/lseek-tests (Depends-on): Likewise.
17216         * modules/pipe-tests (Depends-on): Likewise.
17217         * modules/posix_spawn-tests (Depends-on): Likewise.
17218         * modules/posix_spawnp-tests (Depends-on): Likewise.
17219         * modules/stat-time-tests (Depends-on): Likewise.
17220         * modules/yesno-tests (Depends-on): Likewise.
17221
17222 2009-08-10  Bruno Haible  <bruno@clisp.org>
17223
17224         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17225
17226 2009-08-10  Bruno Haible  <bruno@clisp.org>
17227
17228         Fix a gcc warning.
17229         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17230
17231 2009-08-10  Bruno Haible  <bruno@clisp.org>
17232
17233         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17234         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17235         not only the first time.
17236         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17237         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17238         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17239         is 1, not only the the first time.
17240
17241 2009-08-10  Bruno Haible  <bruno@clisp.org>
17242
17243         Make it possible to use module 'gethostname' without module 'close'.
17244         * lib/unistd.in.h (close): Evoke a link error only if
17245         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17247         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17248         * modules/unistd (Makefile.am): Substitute
17249         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17250         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17251         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17252         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17253         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17254         * modules/sys_ioctl (Makefile.am): Substitute
17255         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17256         * modules/socket (configure.ac): On native Windows, set
17257         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17258         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17259         Reported by Sam Steingold <sds@gnu.org>.
17260
17261 2009-08-10  Bruno Haible  <bruno@clisp.org>
17262
17263         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17264         * modules/ioctl (configure.ac): Likewise.
17265
17266 2009-08-10  Bruno Haible  <bruno@clisp.org>
17267
17268         Avoid collision between gnulib wrapper and libintl wrapper.
17269         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17270         already defined in intl/printf.c.
17271         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17272         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17273
17274 2009-08-09  Bruno Haible  <bruno@clisp.org>
17275
17276         Make <sys/select.h> really self-contained, also on Solaris 10.
17277         * lib/sys_select.in.h: Include <string.h>.
17278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17279         Solaris 10 problem.
17280         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17281         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17282         Reported by Jim Meyering.
17283
17284 2009-08-09  Bruno Haible  <bruno@clisp.org>
17285
17286         Avoid warnings from 'aclocal' that are due to a use of macro name
17287         AM_XGETTEXT_OPTION that is not defined in automake.
17288         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17289         automake.
17290         * modules/error (configure.ac): Likewise.
17291         * modules/propername (configure.ac): Likewise.
17292         * modules/vasprintf (configure.ac): Likewise.
17293         * modules/verror (configure.ac): Likewise.
17294         * modules/xprintf (configure.ac): Likewise.
17295         * modules/xvasprintf (configure.ac): Likewise.
17296
17297 2009-08-08  Bruno Haible  <bruno@clisp.org>
17298
17299         Avoid compilation error in C++ mode.
17300         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17301         Reported by Sam Steingold <sds@gnu.org>.
17302
17303 2009-08-08  Bruno Haible  <bruno@clisp.org>
17304
17305         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17306         for the various Unix platforms.
17307         * doc/posix-headers/limits.texi: Update platforms list regarding
17308         HOST_NAME_MAX.
17309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17310
17311 2009-08-07  Jim Meyering  <meyering@redhat.com>
17312
17313         selinux-at: fix typo in a comment
17314         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17315         Spotted by Paolo Bonzini.
17316
17317         selinux-at: remove redundant m4 code, add documentation
17318         * modules/selinux-at (configure.ac): Remove redundant code.
17319         LIB_SELINUX is already set via the dependent module, selinux-h.
17320         (Include): Add quotes around selinux-at.h.
17321         * lib/selinux-at.h: Add documentation.
17322         Reported by Bruno Haible in
17323         http://marc.info/?l=gnulib-bug&m=124958988300749
17324
17325 2009-08-07  Bruno Haible  <bruno@clisp.org>
17326
17327         Avoid link error on MacOS X 10.3 and 10.4.
17328         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17329         on non-ELF systems.
17330         * lib/argp-pv.c (argp_program_version): Likewise.
17331         Reported by Simon Josefsson.
17332
17333 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17334
17335         * tests/test-version-etc.sh: Use $EXEEXT.
17336
17337 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17338
17339         update-copyright: update documentation to point to maint.mk
17340         * build-aux/update-copyright: Here.
17341
17342 2009-08-06  Jim Meyering  <meyering@redhat.com>
17343
17344         maint.mk: support update-copyright-local
17345         * top/maint.mk (update-copyright-local): Define place-holder.
17346         (update-copyright): Depend on $(update-copyright-local).
17347
17348 2009-08-06  Jim Meyering  <meyering@redhat.com>
17349
17350         selinux-at: new module
17351         Initially written for coreutils, this module will soon be
17352         used by findutils, too.
17353         * MODULES.html.sh [Misc]: Add selinux-at.
17354         * lib/selinux-at.h: New file, from coreutils.
17355         * lib/selinux-at.c: Likewise.
17356         * modules/selinux-at: Likewise.
17357         (License): Change from LGPL to GPL, since it depends
17358         on the GPL'd openat module.
17359
17360         doc: update README
17361         * README: Remove references to cogito.
17362         Remove cvs-repo-updating instructions from 2007.
17363         Don't imply that CVS is better if you have limited disk space.
17364
17365 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17366
17367         update-copyright: support C-style comments
17368         * build-aux/update-copyright: Implement and document.
17369         * tests/test-update-copyright.sh: Test.
17370
17371 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17372
17373         update-copyright: support omitted "(C)"
17374         * build-aux/update-copyright: Implement and document.  Also,
17375         allow variable whitespace before "(C)".
17376         * tests/test-update-copyright.sh: Test.
17377
17378 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17379
17380         update-copyright: don't trip on non-FSF copyright statements
17381         * build-aux/update-copyright: Fix so that the first correctly
17382         formatted FSF copyright statement is recognized no matter what
17383         appears before it.  Update documentation.
17384         * tests/test-update-copyright.sh: Test that.
17385
17386 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17387
17388         update-copyright: clean up code a little
17389         * build-aux/update-copyright: Append "_re" to the name of any
17390         variable holding a regular expression.
17391         Replace "old" and "new" with "stmt" in variable names.
17392         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17393         handled correctly.
17394         Format code more consistently.
17395
17396 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17397
17398         update-copyright-tests: improve portability
17399         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17400         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17401
17402 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17403
17404         update-copyright: support @copyright{} and &copy;
17405         * build-aux/update-copyright: Implement and document.
17406         * tests/test-update-copyright.sh: Test.
17407
17408 2009-08-04  Jim Meyering  <meyering@redhat.com>
17409
17410         update-copyright-tests: correctly test EOL=\r\n handling
17411         * tests/test-update-copyright.sh: Put \r at the end of some lines
17412         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17413
17414         maint.mk: make update-copyright exclusion list more configurable
17415         * top/maint.mk (update-copyright): Default to excluding COPYING,
17416         but allow an override, in case someone does want to update that file.
17417
17418         maint.mk: don't update copyright date in COPYING
17419         * top/maint.mk (update-copyright): Exclude COPYING.
17420
17421         maint.mk: add a copyright-updating rule
17422         * top/maint.mk (update-copyright): New rule.
17423         Derived from coreutils/Makefile.am.
17424
17425         update-copyright: rename some variables
17426         * build-aux/update-copyright: Rename a few variables for clarity.
17427         Tweak syntax.  List Joel E. Denny as coauthor.
17428
17429 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17430
17431         update-copyright: fix bug for 2-digit last year and add tests
17432         * build-aux/update-copyright: Fix bug.
17433         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17434         specified.
17435         * modules/update-copyright-tests: New
17436         * tests/test-update-copyright.sh: New.
17437
17438 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17439
17440         update-copyright: handle leading tabs in line prefix
17441         * build-aux/update-copyright: Count leading tabs as 8 spaces
17442         when computing margin.  This helps with the formatting of
17443         ChangeLogs, for example.
17444         Fix documentation a little.
17445
17446 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17447
17448         update-copyright: support EOL=\r\n
17449         * build-aux/update-copyright: Implement that.
17450
17451 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17452
17453         update-copyright: automatically format copyright statements
17454         * build-aux/update-copyright: Implement that.
17455         Also, be a little more predictable and safer by always failing
17456         when the full copyright format is not perfectly recognized as an
17457         unbroken whole.  Discussed at
17458         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17459         Rewrite documentation.
17460
17461 2009-08-03  Bruno Haible  <bruno@clisp.org>
17462
17463         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17464
17465 2009-08-02  Bruno Haible  <bruno@clisp.org>
17466
17467         Tests for module 'uname'.
17468         * modules/uname-tests: New file.
17469         * tests/test-uname.c: New file.
17470
17471         New module 'uname'.
17472         * lib/uname.c: New file.
17473         * m4/uname.m4: New file.
17474         * modules/uname: New file.
17475         * doc/posix-functions/uname.texi: Mention the new module.
17476
17477 2009-08-02  Bruno Haible  <bruno@clisp.org>
17478
17479         Tests for module 'sys_utsname'.
17480         * modules/sys_utsname-tests: New file.
17481         * tests/test-sys_utsname.c: New file.
17482
17483         New module 'sys_utsname'.
17484         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17485         * m4/sys_utsname_h.m4: New file.
17486         * modules/sys_utsname: New file.
17487         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17488
17489 2009-08-02  Bruno Haible  <bruno@clisp.org>
17490
17491         Implicitly initialize the sockets library.
17492         * lib/gethostname.c: Include sockets.h.
17493         (rpl_gethostname): Invoke gl_sockets_startup.
17494         * lib/socket.c: Include sockets.h.
17495         (rpl_socket): Invoke gl_sockets_startup.
17496         * modules/gethostname (Depends-on): Add sockets.
17497         * modules/socket (Depends-on): Likewise.
17498         * tests/test-poll.c: Don't include sockets.h.
17499         (main): Don't invoke gl_sockets_startup.
17500         * tests/test-select.c: Don't include sockets.h.
17501         (main): Don't invoke gl_sockets_startup.
17502
17503 2009-08-02  Bruno Haible  <bruno@clisp.org>
17504
17505         Allow multiple calls to gl_sockets_startup.
17506         * lib/sockets.c (initialized_sockets_version): New variable.
17507         (gl_sockets_startup): Do nothing if already called for this or a higher
17508         version.
17509         (gl_sockets_cleanup): Reset initialized_sockets_version.
17510
17511 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17512
17513         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17514         different project/version.
17515
17516 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17517             Bruno Haible  <bruno@clisp.org>
17518
17519         Tests for module 'pipe-filter-gi'.
17520         * modules/pipe-filter-gi-tests: New file.
17521         * tests/test-pipe-filter-gi1.sh: New file.
17522         * tests/test-pipe-filter-gi1.c: New file.
17523         * tests/test-pipe-filter-gi2.sh: New file.
17524         * tests/test-pipe-filter-gi2-main.c: New file.
17525         * tests/test-pipe-filter-gi2-child.c: New file.
17526
17527         New module 'pipe-filter-gi'.
17528         * lib/pipe-filter-gi.c: New file.
17529         * modules/pipe-filter-gi: New file.
17530
17531 2009-08-02  Bruno Haible  <bruno@clisp.org>
17532             Paolo Bonzini  <bonzini@gnu.org>
17533
17534         Tests for module 'pipe-filter-ii'.
17535         * modules/pipe-filter-ii-tests: New file.
17536         * tests/test-pipe-filter-ii1.sh: New file.
17537         * tests/test-pipe-filter-ii1.c: New file.
17538         * tests/test-pipe-filter-ii2.sh: New file.
17539         * tests/test-pipe-filter-ii2-main.c: New file.
17540         * tests/test-pipe-filter-ii2-child.c: New file.
17541
17542         New module 'pipe-filter-ii'.
17543         * lib/pipe-filter.h: New file.
17544         * lib/pipe-filter-ii.c: New file.
17545         * lib/pipe-filter-aux.h: New file.
17546         * modules/pipe-filter-ii: New file.
17547
17548 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17549
17550         * lib/gc-libgcrypt.c: Change copyright to FSF.
17551         * lib/gc-gnulib.c: Likewise.
17552
17553 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17554
17555         * lib/gethostname.c: Include limits.h.
17556
17557 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17558             Bruno Haible  <bruno@clisp.org>
17559
17560         Ensure HOST_NAME_MAX as part of the gethostname module.
17561         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17562         define also HOST_NAME_MAX.
17563         * tests/test-gethostname.c: Include <limits.h>.
17564         (main): Check also HOST_NAME_MAX.
17565         * doc/posix-headers/limits.texi: Document the mingw problem.
17566
17567 2009-08-02  Bruno Haible  <bruno@clisp.org>
17568
17569         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17570         Add comments.
17571
17572 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17573
17574         * lib/gethostname.c: Add Windows wrapper.
17575         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17576         * modules/gethostname: Depend on sys_socket & errno, for also
17577         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17578         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17579
17580 2009-07-31  Jim Meyering  <meyering@redhat.com>
17581
17582         getloadavg: fix symbol name in comment
17583         * lib/getloadavg.c: Correct a typo I introduced when adding
17584         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17585         Matt Kraai spotted the problem.
17586
17587 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17588
17589         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17590         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17591         code also if ! defined N_NAME_POINTER.
17592         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17593         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17594         but the n_name member is a 12-byte array.
17595
17596 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17597
17598         update-copyright: generalize comment handling
17599         * build-aux/update-copyright: Handle copyright statements
17600         within more comment styles.
17601         Document usage.
17602         Report any file with an external copyright holder or parse failure.
17603
17604 2009-07-29  Jim Meyering  <meyering@redhat.com>
17605
17606         mktime: correct setting of REPLACE_MKTIME
17607         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17608
17609         update-copyright: new module
17610         * modules/update-copyright: New file.
17611         * build-aux/update-copyright: New file.
17612         * MODULES.html.sh (maint+release support): Add update-copyright.
17613
17614 2009-07-27  Bruno Haible  <bruno@clisp.org>
17615
17616         Fix compilation error when <ctime> is used and mktime is replaced.
17617         * lib/time.in.h (mktime): New declaration.
17618         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17619         REPLACE_MKTIME instead of defining mktime in config.h.
17620         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17621         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17622         Reported by Ross McFarland <rwmcfa1@neces.com>.
17623
17624 2009-07-27  Bruno Haible  <bruno@clisp.org>
17625
17626         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17627         Reported by Matt Kraai <mkraai@beckman.com>.
17628
17629 2009-07-25  Jim Meyering  <meyering@redhat.com>
17630
17631         maint.mk: avoid warnings about missing files
17632         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17633         diagnostic when .prev-version does not exist.
17634         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17635         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17636         nonexistent cfg.mk.
17637         Suggestions from Simon Josefsson.
17638
17639 2009-07-25  Bruno Haible  <bruno@clisp.org>
17640
17641         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17642         defined as macros. Needed on QNX 6.4.1.
17643         Reported by Matt Kraai <mkraai@beckman.com>.
17644
17645 2009-07-23  Jim Meyering  <meyering@redhat.com>
17646
17647         maint.mk: invoke "make dist" with a working value of XZ_OPT
17648         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17649
17650 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17651
17652         Make fseeko.c compile on QNX.
17653         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17654
17655 2009-07-22  Peter Simons  <simons@cryp.to>
17656
17657         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17658         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17659         * lib/md4.h: Likewise.
17660         * lib/md5.h: Likewise.
17661         * lib/sha1.h: Likewise.
17662         * lib/sha256.h: Likewise.
17663         * lib/sha512.h: Likewise.
17664
17665         tests-sha1: don't assign literal string to 'char *' variable
17666         * tests/test-sha1.c (main): Declare locals with "const" to match
17667         attributes of the right hand side.
17668
17669 2009-07-21  Eric Blake  <ebb9@byu.net>
17670
17671         dup2: fix more mingw problems
17672         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17673         fd to itself.
17674         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17675         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17676         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17677         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17678         care of mingw bugs.
17679
17680 2009-07-21  Jim Meyering  <meyering@redhat.com>
17681
17682         vc-list-files: avoid failure when /bin/sh is dash
17683         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17684         On some Debian based systems, /bin/sh is a symlink to dash, and running
17685         this command would omit the "/" following each 'tests' prefix:
17686           dash -x build-aux/vc-list-files -C . tests
17687         That is because bash and dash work differently:
17688           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17689           bash ok
17690           dash odd
17691
17692 2009-07-21  Eric Blake  <ebb9@byu.net>
17693
17694         dup2-tests: test previous patch
17695         * modules/dup2-tests: New file.
17696         * tests/test-dup2.c: Likewise.
17697         * tests/test-open.c (main): Avoid unspecified behavior.
17698         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17699         test.
17700
17701         dup2: work around mingw and cygwin 1.5 bug
17702         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17704         * modules/unistd (Makefile.am): Substitute it.
17705         * lib/unistd.in.h (dup2): Declare the replacement.
17706         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17707         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17708         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17709         * modules/execute (Depends-on): Add dup2.
17710         * modules/fseterr (Depends-on): Likewise.
17711         * modules/pipe (Depends-on): Likewise.
17712         * modules/posix_spawn-internal (Depends-on): Likewise.
17713
17714 2009-07-21  Bruno Haible  <bruno@clisp.org>
17715
17716         * modules/.gitattributes: New file.
17717
17718 2009-07-20  Bruno Haible  <bruno@clisp.org>
17719
17720         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17721         (main): Use it.
17722
17723 2009-07-20  Eric Blake  <ebb9@byu.net>
17724
17725         test-pipe: make a bit more robust.
17726         * tests/test-pipe.c (myerr): Allow error messages regardless of
17727         what we do to stderr.
17728         (test_pipe): Rearrange to avoid deadlock.
17729         (child_main): Try a larger read, to ensure we avoided deadlock.
17730         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17731         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17732         if misused.
17733
17734 2009-07-19  Jim Meyering  <meyering@redhat.com>
17735
17736         fts: avoid false-positive cycle-detection
17737         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17738         for each new command line argument.
17739
17740 2009-07-19  Bruno Haible  <bruno@clisp.org>
17741
17742         Fix build error on mingw with the modules sys_select and unistd.
17743         * modules/acl-tests (Depends-on): Add close.
17744         * modules/binary-io-tests (Depends-on): Likewise.
17745         * modules/closein-tests (Depends-on): Likewise.
17746         * modules/flock-tests (Depends-on): Likewise.
17747         * modules/fsync-tests (Depends-on): Likewise.
17748         * modules/lseek-tests (Depends-on): Likewise.
17749         * modules/pipe-tests (Depends-on): Likewise.
17750         * modules/posix_spawn-tests (Depends-on): Likewise.
17751         * modules/posix_spawnp-tests (Depends-on): Likewise.
17752         * modules/stat-time-tests (Depends-on): Likewise.
17753         * modules/yesno-tests (Depends-on): Likewise.
17754
17755 2009-07-19  Bruno Haible  <bruno@clisp.org>
17756
17757         Unify conditionals.
17758         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17759         macros, not at the compiler macros.
17760         * lib/pipe.c: Likewise.
17761         * lib/execute.c: Likewise.
17762         * lib/spawni.c: Likewise.
17763
17764 2009-07-19  Bruno Haible  <bruno@clisp.org>
17765
17766         Fix handling of closed stdin/stdout/stderr on mingw.
17767         * lib/w32spawn.h: Include unistd.h.
17768         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17769         file descriptor with O_NOINHERIT flag.
17770         (fd_safer_noinherit): New function, based on fd-safer.c.
17771         (dup_safer_noinherit): New function, based on dup-safer.c.
17772         (undup_safer_noinherit): New function.
17773         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17774         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17775         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17776         instead of fd_safer.
17777         * tests/test-pipe.c: Include <windows.h>.
17778         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17779
17780         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17781         from main.
17782         (test_pipe): Pass an extra argument for disambiguation.
17783         (main): Invoke parent_main or child_main.
17784
17785         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17786         consistently.
17787
17788 2009-07-18  Eric Blake  <ebb9@byu.net>
17789
17790         test-pipe: fix mingw build
17791         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17792
17793 2009-07-18  Bruno Haible  <bruno@clisp.org>
17794
17795         * modules/pipe-tests (Makefile.am): Fix typo.
17796
17797 2009-07-18  Eric Blake  <ebb9@byu.net>
17798
17799         error: fix mingw build
17800         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17801         Reported by Bruno Haible.
17802
17803         error: avoid undefined use of stdout
17804         * lib/error.c (error, error_at_line): Check that fd 1 is open
17805         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17806         is handling faults and the close_stdout module wants to report the
17807         detection of closed stdout as an error.
17808
17809 2009-07-17  Eric Blake  <ebb9@byu.net>
17810
17811         pipe: be robust in face of closed fds
17812         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17813         should cause child to misbehave.
17814         * modules/pipe-tests: New module.
17815         * tests/test-pipe.c: New file.
17816         * tests/test-pipe.sh: New file.
17817         Reported by Akim Demaille.
17818
17819 2009-07-14  Bruno Haible  <bruno@clisp.org>
17820
17821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17822         Reported by anonymous kc.
17823
17824 2009-07-07  Jim Meyering  <meyering@redhat.com>
17825
17826         maint.mk: don't look for translatable strings in *.m4 or *.mk
17827         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17828         when searching for translatable strings.
17829
17830 2009-07-05  Jim Meyering  <meyering@redhat.com>
17831
17832         remove superfluous parentheses in STREQ definition
17833         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17834         * lib/getugroups.c (STREQ): Likewise.
17835         * lib/fnmatch.c (STREQ): Likewise.
17836         Spotted by Bruno Haible.
17837
17838 2009-07-04  Jim Meyering  <meyering@redhat.com>
17839
17840         argv-iter: new module
17841         * MODULES.html.sh: Add argv-iter.
17842         * lib/argv-iter.c, lib/argv-iter.h: New files.
17843         * modules/argv-iter: New file.
17844         * modules/argv-iter-tests: New file.
17845         * tests/test-argv-iter.c: Test it.
17846
17847 2009-07-04  Bruno Haible  <bruno@clisp.org>
17848
17849         Fix assertion.
17850         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
17851         contains more exact copies of a given entry than file2, leave the extra
17852         copies unpaired rather than aborting.
17853         Reported by Eric Blake.
17854
17855 2009-07-02  Bruno Haible  <bruno@clisp.org>
17856
17857         Speedup git-merge-changelog for git cherry-pick.
17858         * lib/git-merge-changelog.c (struct entries_mapping): New type.
17859         (entries_mapping_get): New function, extracted from compute_mapping.
17860         (entries_mapping_reverse_get): New function.
17861         (compute_mapping): Add a 'full' argument. Return the result in a
17862         'struct entries_mapping'.
17863         (main): Update. Access the mappings through entries_mapping_get.
17864         Reported by Eric Blake.
17865
17866 2009-07-02  Bruno Haible  <bruno@clisp.org>
17867
17868         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
17869         best_i.
17870
17871 2009-07-02  Bruno Haible  <bruno@clisp.org>
17872
17873         Speed up approximate search for matching ChangeLog entries.
17874         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
17875         argument. Call fstrcmp_bounded instead of fstrcmp.
17876         (compute_mapping, try_split_merged_entry, main): Update callers.
17877
17878 2009-07-02  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
17881
17882 2009-06-30  Bruno Haible  <bruno@clisp.org>
17883
17884         Reduce the number of uc_is_cased calls.
17885         * lib/unicase.h (casing_suffix_context_t): Add
17886         'first_char_except_ignorable' field.
17887         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
17888         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
17889         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
17890         Update initializer.
17891         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
17892         case-ignorable characters.
17893         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
17894         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
17895         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
17896         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
17897         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
17898
17899 2009-06-30  Bruno Haible  <bruno@clisp.org>
17900
17901         Tests for module 'unicase/ignorable'.
17902         * modules/unicase/ignorable-tests: New file.
17903         * tests/unicase/test-ignorable.c: New file, generated by
17904         gen-uni-tables.
17905
17906         Tests for module 'unicase/cased'.
17907         * modules/unicase/cased-tests: New file.
17908         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
17909         * tests/unicase/test-predicate-part1.h: New file, derived from
17910         tests/unictype/test-predicate-part1.h.
17911         * tests/unicase/test-predicate-part2.h: New file, same as
17912         tests/unictype/test-predicate-part2.h.
17913
17914         Fix evaluation of "Before C" condition of FINAL_SIGMA.
17915         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
17916         (output_casing_properties): New function.
17917         (main): Call it.
17918         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
17919         * lib/unicase/cased.c: Include unictype/bitmap.h.
17920         (uc_is_cased): Define through a bitmap lookup.
17921         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
17922         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
17923         (uc_is_case_ignorable): Define through a bitmap lookup.
17924         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
17925         lib/unictype/bitmap.h.
17926         (Depends-on): Add inline. Clean up.
17927         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
17928         lib/unictype/bitmap.h.
17929         (Depends-on): Add inline. Clean up.
17930         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
17931         recognition.
17932         * tests/unicase/test-u16-tolower.c (main): Likewise.
17933         * tests/unicase/test-u32-tolower.c (main): Likewise.
17934
17935 2009-06-30  Bruno Haible  <bruno@clisp.org>
17936
17937         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
17938         * lib/unicase/u16-casemap.c: Likewise.
17939         * lib/unicase/u32-casemap.c: Likewise.
17940
17941 2009-06-29  Bruno Haible  <bruno@clisp.org>
17942
17943         Define u32_casefold as a wrapper around u32_ct_casefold.
17944         * lib/unicase/u32-casefold.c: Update.
17945         * modules/unicase/u32-casefold (Depends-on): Add
17946         unicase/u32-ct-casefold, unicase/empty-prefix-context,
17947         unicase/empty-suffix-context. Clean up.
17948
17949         Define u16_casefold as a wrapper around u16_ct_casefold.
17950         * lib/unicase/u16-casefold.c: Update.
17951         * modules/unicase/u16-casefold (Depends-on): Add
17952         unicase/u16-ct-casefold, unicase/empty-prefix-context,
17953         unicase/empty-suffix-context. Clean up.
17954
17955         Define u8_casefold as a wrapper around u8_ct_casefold.
17956         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
17957         * lib/unicase/u8-casefold.c: Update.
17958         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
17959         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17960
17961         Define u32_totitle as a wrapper around u32_ct_totitle.
17962         * lib/unicase/u32-totitle.c: Update.
17963         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
17964         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17965
17966         Define u16_totitle as a wrapper around u16_ct_totitle.
17967         * lib/unicase/u16-totitle.c: Update.
17968         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
17969         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17970
17971         Define u8_totitle as a wrapper around u8_ct_totitle.
17972         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
17973         functions.
17974         (FUNC): Delegate to U_CT_TOTITLE.
17975         * lib/unicase/u8-totitle.c: Update.
17976         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
17977         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
17978
17979         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
17980         invocation.
17981         * modules/unicase/u32-tolower (Depends-on): Add
17982         unicase/empty-prefix-context, unicase/empty-suffix-context.
17983
17984         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
17985         invocation.
17986         * modules/unicase/u16-tolower (Depends-on): Add
17987         unicase/empty-prefix-context, unicase/empty-suffix-context.
17988
17989         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
17990         * modules/unicase/u8-tolower (Depends-on): Add
17991         unicase/empty-prefix-context, unicase/empty-suffix-context.
17992
17993         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
17994         invocation.
17995         * modules/unicase/u32-toupper (Depends-on): Add
17996         unicase/empty-prefix-context, unicase/empty-suffix-context.
17997
17998         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
17999         invocation.
18000         * modules/unicase/u16-toupper (Depends-on): Add
18001         unicase/empty-prefix-context, unicase/empty-suffix-context.
18002
18003         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18004         * modules/unicase/u8-toupper (Depends-on): Add
18005         unicase/empty-prefix-context, unicase/empty-suffix-context.
18006
18007         New module 'unicase/u32-ct-casefold'.
18008         * lib/unicase/u32-ct-casefold.c: New file.
18009         * modules/unicase/u32-ct-casefold: New file.
18010
18011         New module 'unicase/u16-ct-casefold'.
18012         * lib/unicase/u16-ct-casefold.c: New file.
18013         * modules/unicase/u16-ct-casefold: New file.
18014
18015         New module 'unicase/u8-ct-casefold'.
18016         * lib/unicase/u8-ct-casefold.c: New file.
18017         * lib/unicase/u-ct-casefold.h: New file, derived from
18018         lib/unicase/u-casefold.h.
18019         * modules/unicase/u8-ct-casefold: New file.
18020
18021         New module 'unicase/u32-ct-totitle'.
18022         * lib/unicase/u32-ct-totitle.c: New file.
18023         * modules/unicase/u32-ct-totitle: New file.
18024
18025         New module 'unicase/u16-ct-totitle'.
18026         * lib/unicase/u16-ct-totitle.c: New file.
18027         * modules/unicase/u16-ct-totitle: New file.
18028
18029         New module 'unicase/u8-ct-totitle'.
18030         * lib/unicase/u8-ct-totitle.c: New file.
18031         * lib/unicase/u-ct-totitle.h: New file, derived from
18032         lib/unicase/u-totitle.h.
18033         * modules/unicase/u8-ct-totitle: New file.
18034
18035         New module 'unicase/u32-ct-tolower'.
18036         * lib/unicase/u32-ct-tolower.c: New file.
18037         * modules/unicase/u32-ct-tolower: New file.
18038
18039         New module 'unicase/u16-ct-tolower'.
18040         * lib/unicase/u16-ct-tolower.c: New file.
18041         * modules/unicase/u16-ct-tolower: New file.
18042
18043         New module 'unicase/u8-ct-tolower'.
18044         * lib/unicase/u8-ct-tolower.c: New file.
18045         * modules/unicase/u8-ct-tolower: New file.
18046
18047         New module 'unicase/u32-ct-toupper'.
18048         * lib/unicase/u32-ct-toupper.c: New file.
18049         * modules/unicase/u32-ct-toupper: New file.
18050
18051         New module 'unicase/u16-ct-toupper'.
18052         * lib/unicase/u16-ct-toupper.c: New file.
18053         * modules/unicase/u16-ct-toupper: New file.
18054
18055         New module 'unicase/u8-ct-toupper'.
18056         * lib/unicase/u8-ct-toupper.c: New file.
18057         * modules/unicase/u8-ct-toupper: New file.
18058
18059         Add context arguments to u*_casemap functions.
18060         * lib/unicase/unicasemap.h: Include unicase.h.
18061         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18062         suffix_context arguments.
18063         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18064         functions.
18065         (FUNC): Add prefix_context and suffix_context arguments. Use
18066         uc_is_cased and uc_is_case_ignorable.
18067         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18068         * lib/unicase/u16-casemap.c: Likewise.
18069         * lib/unicase/u32-casemap.c: Likewise.
18070         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18071         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18072         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18073         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18074         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18075         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18076
18077         New module 'unicase/u32-suffix-context'.
18078         * lib/unicase/u32-suffix-context.c: New file.
18079         * modules/unicase/u32-suffix-context: New file.
18080
18081         New module 'unicase/u16-suffix-context'.
18082         * lib/unicase/u16-suffix-context.c: New file.
18083         * modules/unicase/u16-suffix-context: New file.
18084
18085         New module 'unicase/u8-suffix-context'.
18086         * lib/unicase/u8-suffix-context.c: New file.
18087         * lib/unicase/u-suffix-context.h: New file.
18088         * modules/unicase/u8-suffix-context: New file.
18089
18090         New module 'unicase/empty-suffix-context'.
18091         * lib/unicase/empty-suffix-context.c: New file.
18092         * modules/unicase/empty-suffix-context: New file.
18093
18094         New module 'unicase/u32-prefix-context'.
18095         * lib/unicase/u32-prefix-context.c: New file.
18096         * modules/unicase/u32-prefix-context: New file.
18097
18098         New module 'unicase/u16-prefix-context'.
18099         * lib/unicase/u16-prefix-context.c: New file.
18100         * modules/unicase/u16-prefix-context: New file.
18101
18102         New module 'unicase/u8-prefix-context'.
18103         * lib/unicase/u8-prefix-context.c: New file.
18104         * lib/unicase/u-prefix-context.h: New file.
18105         * lib/unicase/context.h: New file.
18106         * modules/unicase/u8-prefix-context: New file.
18107
18108         New module 'unicase/empty-prefix-context'.
18109         * lib/unicase/empty-prefix-context.c: New file.
18110         * modules/unicase/empty-prefix-context: New file.
18111
18112         New module 'unicase/ignorable'.
18113         * lib/unicase/ignorable.c: New file.
18114         * modules/unicase/ignorable: New file.
18115
18116         New module 'unicase/cased'.
18117         * lib/unicase/caseprop.h: New file.
18118         * lib/unicase/cased.c: New file.
18119         * modules/unicase/cased: New file.
18120
18121         New functions for case mapping of substrings.
18122         * lib/unicase.h (casing_prefix_context_t): New type.
18123         (unicase_empty_prefix_context): New variable.
18124         (u8_casing_prefix_context, u16_casing_prefix_context,
18125         u32_casing_prefix_context, u8_casing_prefixes_context,
18126         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18127         declarations.
18128         (casing_suffix_context_t): New type.
18129         (unicase_empty_suffix_context): New variable.
18130         (u8_casing_suffix_context, u16_casing_suffix_context,
18131         u32_casing_suffix_context, u8_casing_suffixes_context,
18132         u16_casing_suffixes_context, u32_casing_suffixes_context,
18133         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18134         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18135         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18136         declarations.
18137
18138 2009-06-28  Jim Meyering  <meyering@redhat.com>
18139
18140         boostrap: indent only with spaces
18141         * build-aux/bootstrap: Indent only with spaces, never TABs.
18142
18143         bootstrap: split long lines
18144         * build-aux/bootstrap: Keep line length < 80.
18145
18146         bootstrap: sync from coreutils
18147         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18148         just as autoreconf does.  Verify a list of prerequisite
18149         package-name,version-number pairs if defined in bootstrap.conf.
18150         Refer to README-prereq, if prerequisites are not satisfied.
18151
18152 2009-06-27  Eric Blake  <ebb9@byu.net>
18153
18154         tests: add test for bogus NULL definition
18155         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18156         * tests/test-stdlib.c: Likewise.
18157         * tests/test-string.c: Likewise.
18158         * tests/test-locale.c: Likewise.
18159         * tests/test-unistd.c: Likewise.
18160         * modules/stdio-tests (Depends-on): Add verify.
18161         * modules/stdlib-tests (Depends-on): Likewise.
18162         * modules/string-tests (Depends-on): Likewise.
18163         * modules/locale-tests (Depends-on): Likewise.
18164         * modules/unistd-tests (Depends-on): Likewise.
18165
18166 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18167
18168         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18169         self-explaining comment.
18170         * m4/selinux-selinux-h: Update serial.
18171         (gl_LIBSELINUX): New macro, adding a warning for missing development
18172         packages to code extracted from...
18173         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18174         Add warning for missing development packages here, too.
18175
18176 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18177
18178         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18179
18180 2009-06-25  Eric Blake  <ebb9@byu.net>
18181
18182         version-etc: fix regression
18183         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18184         gcc.
18185         (version_etc): Use it, to catch bugs with trailing NULL.
18186         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18187         (version_etc_va): Fix logic bug.
18188         * modules/version-etc-tests: Add test.
18189         * tests/test-version-etc.c: New file.
18190         * tests/test-version-etc.sh: Likewise.
18191
18192 2009-06-25  Sam Steingold  <sds@gnu.org>
18193
18194         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18195         mbtowc declaration.
18196
18197 2009-06-25  Eric Blake  <ebb9@byu.net>
18198
18199         fpurge: migrate into <stdio.h>
18200         * lib/fpurge.h: Delete...
18201         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18202         * lib/fpurge.c (fpurge): Change declaring header.
18203         * modules/fpurge (Files): Drop deleted file.
18204         (Depends-on): Add stdio.
18205         (configure.ac): Set witness.
18206         * modules/stdio (Makefile.am): Support fpurge macros.
18207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18209         * lib/fflush.c: Update client.
18210         * tests/test-fpurge.c: Likewise.
18211         * NEWS: Mention the change.
18212
18213 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18214
18215         * lib/argp-version-etc.c (program_authors): Add const
18216         qualifier.
18217         * lib/version-etc.c: Fix typos in the comments.
18218         * modules/argp-version-etc: Depends on version-etc.
18219
18220 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18221
18222         argp-version-etc: new module.
18223
18224         * lib/argp-version-etc.c: New file.
18225         * lib/argp-version-etc.h: New file.
18226         * modules/argp-version-etc: New file.
18227         * modules/argp-version-etc-tests: New file.
18228         * tests/test-argp-version-etc.c: New test.
18229         * tests/test-argp-version-etc-1.sh: New test.
18230
18231 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18232
18233         Provide additional interfaces and documentation for version-etc
18234         module.
18235
18236         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18237         interfaces.
18238         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18239         prototypes.
18240
18241 2009-06-24  Bruno Haible  <bruno@clisp.org>
18242
18243         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18244         HAVE_LIB${NAME} macro.
18245         Reported by Sam Steingold <sds@gnu.org>.
18246
18247 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18248
18249         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18250         needed.
18251
18252 2009-06-21  Bruno Haible  <bruno@clisp.org>
18253
18254         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18255         work.
18256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18257         together with LIB${NAME}, LTLIB${NAME}.
18258         Reported by Sam Steingold <sds@gnu.org>.
18259
18260 2009-06-20  Jim Meyering  <meyering@redhat.com>
18261
18262         tests: make sc_require_test_exit_idiom more generic
18263         * top/maint.mk (Exit_witness_file): New overridable variable.
18264         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18265         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18266
18267 2009-06-19  Jim Meyering  <meyering@redhat.com>
18268
18269         hash: reverse order of src/dst parameters in an internal interface
18270         * lib/hash.c (transfer_entries): Reverse order of parameters to
18271         put DST before SRC.  Adjust callers.
18272
18273         tests: test-hash: avoid wholesale duplication
18274         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18275         Instead, use a loop and add a single conditional.
18276
18277         tests: test-hash: allow seed selection via a command line argument
18278         * tests/test-hash.c (get_seed): New function.
18279         (main): Use it.
18280
18281 2009-06-19  Eric Blake  <ebb9@byu.net>
18282
18283         hash: avoid memory leak on allocation failure
18284         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18285         failure.  Factor repeated algorithm...
18286         (transfer_entries): ...into new helper routine.
18287         (hash_delete): React to hash_rehash return value.
18288
18289         hash: reduce memory pressure in hash_rehash no-op case
18290         * lib/hash.c (next_prime): Avoid overflow.
18291         (hash_initialize): Factor bucket size computation...
18292         (compute_bucket_size): ...into new helper function.
18293         (hash_rehash): Use new function and open coding to reduce memory
18294         pressure, and avoid a memory leak in USE_OBSTACK code.
18295         Reported by Jim Meyering.
18296
18297 2009-06-18  Eric Blake  <ebb9@byu.net>
18298
18299         hash: make rotation more obvious
18300         * modules/hash (Depends-on): Add bitrotate and stdint.
18301         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18302         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18303         (SIZE_MAX): Rely on headers for definition.
18304         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18305         (raw_hasher): Use rotr_sz.
18306         Suggested by Jim Meyering.
18307
18308         hash: fix memory leak in last patch
18309         * lib/hash.c (hash_rehash): Avoid memory leak.
18310
18311         hash: avoid no-op rehashing
18312         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18313
18314         hash: provide default callback functions
18315         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18316         (hash_initialize): Use them as defaults.
18317         * tests/test-hash.c (main): Test this.
18318
18319         hash: minor optimization
18320         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18321         when possible.
18322         (hash_initialize): Document this promise.
18323         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18324         * tests/test-hash.c (hash_compare_strings): Test this.
18325
18326 2009-06-18  Bruno Haible  <bruno@clisp.org>
18327
18328         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18329         going to be replaced anyway.
18330
18331 2009-06-18  Bruno Haible  <bruno@clisp.org>
18332
18333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18334         in one place.
18335         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18336         be replaced anyway.
18337
18338 2009-06-18  Eric Blake  <ebb9@byu.net>
18339
18340         hash: check for resize before insertion
18341         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18342         threshold before insertion, so that a pathological hash_rehash
18343         that fills every bucket can still trigger another rehash.
18344
18345 2009-06-18  Jim Meyering  <meyering@redhat.com>
18346
18347         hash-tests: add a loop around the small tests
18348         * tests/test-hash.c (main): Repeat small tests with selected
18349         small initial table sizes.
18350
18351 2009-06-17  Eric Blake  <ebb9@byu.net>
18352
18353         hash: minor cleanups
18354         * lib/hash.h (hash_entry): Make opaque, by moving...
18355         * lib/hash.c (hash_entry): ...here.
18356         (hash_insert): Clarify restrictions on what can be inserted.
18357         (hash_get_next): Clarify when it is safe to remove an element
18358         during traversal.
18359         (check_tuning): Skip verification when tuning is known safe.
18360         (hash_initialize): Clarify restrictions on tuning.
18361
18362 2009-06-17  Jim Meyering  <jim@meyering.net>
18363         and Eric Blake  <ebb9@byu.net>
18364
18365         hash-tests: new module
18366         * modules/hash-tests: New file.
18367         * tests/test-hash.c: New file.
18368
18369 2009-06-17  Eric Blake  <ebb9@byu.net>
18370
18371         strstr-simple: document new module
18372         * MODULES.html.sh: Document new module.
18373
18374         strstr, strcasestr: replace on platforms with broken memchr
18375         * modules/strstr: Split into...
18376         * modules/strstr-simple: ...new module that does not care about
18377         performance, but does care about glibc bug.
18378         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18379         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18380         if platform memchr is broken, per Debian bug 521737.
18381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18382         memchr.
18383         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18384         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18385         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18386         * modules/mountlist (Depends-on): Add strstr-simple.
18387         * modules/gen-uni-tables (Depends-on): Likewise.
18388         * modules/argz (Depends-on): Add strstr.
18389
18390 2009-06-17  Bruno Haible  <bruno@clisp.org>
18391
18392         * modules/posix_spawn-internal (Depends-on): Add errno.
18393
18394 2009-06-17  Bruno Haible  <bruno@clisp.org>
18395
18396         Define missing ESTALE on Interix 3.5.
18397         * lib/errno.in.h (ESTALE): Assign a value if missing.
18398         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18400         missing.
18401         * doc/posix-headers/errno.texi: Mention the Interix bug.
18402         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18403
18404 2009-06-15  Eric Blake  <ebb9@byu.net>
18405
18406         memchr, memchr2: add valgrind exception
18407         * lib/memchr.valgrind: New file.
18408         * lib/memchr2.valgrind: New file.
18409         * modules/memchr (Files): Distribute valgrind file.
18410         * modules/memchr2 (Files): Likewise.
18411
18412         docs: memchr is no longer obsolete
18413         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18414         * lib/string.in.h (memchr): Simplify logic.
18415
18416 2009-06-14  Jim Meyering  <meyering@redhat.com>
18417
18418         link-follow: fix the "checking..." message to not mention trailing slash
18419         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18420         never considered trailing slashes.
18421
18422 2009-06-14  Bruno Haible  <bruno@clisp.org>
18423
18424         * m4/memchr.m4: Mention also the bug on IA-64.
18425         * doc/posix-functions/memchr.texi: Likewise.
18426
18427 2009-06-12  Eric Blake  <ebb9@byu.net>
18428
18429         memchr: detect broken x86_64 and alpha implementations
18430         * modules/memchr-tests (Depends-on): Move mmap detection...
18431         * modules/memchr (Depends-on): ...here.
18432         (configure.ac): Set indicator.
18433         * lib/string.in.h (memchr): Declare replacement.
18434         * modules/string (Makefile.am): Trigger replacement.
18435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18436         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18437         bugs.
18438         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18439         * modules/getpagesize (License): Relax license.
18440
18441 2009-06-11  Bruno Haible  <bruno@clisp.org>
18442
18443         * lib/idpriv.h: Add more references.
18444
18445 2009-06-08  Bruno Haible  <bruno@clisp.org>
18446
18447         Tests for module 'idpriv-droptemp'.
18448         * modules/idpriv-droptemp-tests: New file.
18449         * tests/test-idpriv-droptemp.sh: New file.
18450         * tests/test-idpriv-droptemp.su.sh: New file.
18451         * tests/test-idpriv-droptemp.c: New file.
18452
18453         New module 'idpriv-droptemp'.
18454         * lib/idpriv-droptemp.c: New file.
18455         * modules/idpriv-droptemp: New file.
18456
18457 2009-06-08  Bruno Haible  <bruno@clisp.org>
18458
18459         Tests for module 'idpriv-drop'.
18460         * modules/idpriv-drop-tests: New file.
18461         * tests/test-idpriv-drop.sh: New file.
18462         * tests/test-idpriv-drop.su.sh: New file.
18463         * tests/test-idpriv-drop.c: New file.
18464
18465         New module 'idpriv-drop'.
18466         * lib/idpriv.h: New file.
18467         * lib-idpriv-drop.c: New file.
18468         * m4/idpriv.m4: New file.
18469         * modules/idpriv-drop: New file.
18470
18471 2009-06-08  Bruno Haible  <bruno@clisp.org>
18472
18473         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18480
18481 2009-06-08  Eric Blake  <ebb9@byu.net>
18482
18483         test-strstr: use memory fence, when possible
18484         * tests/test-strstr.c (main): Use memory fence, in order to be
18485         more likely to trigger Debian bug 521737.
18486         * modules/strstr-tests (Files): Pull in additional files.
18487
18488         memchr: no longer obsolete, for wider field testing
18489         * modules/memchr (Status, Notice): Delete, this module is no
18490         longer obsolete.
18491         * modules/vasnprintf (Depends-on): Add memchr.
18492
18493 2009-06-07  Jim Meyering  <meyering@redhat.com>
18494
18495         hash: declare some functions with the warn_unused_result attribute
18496         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18497
18498 2009-06-07  Bruno Haible  <bruno@clisp.org>
18499
18500         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18501         Reported by Eric Blake.
18502
18503 2009-06-06  Eric Blake  <ebb9@byu.net>
18504
18505         test-alignof: fix typo with long double
18506         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18507         compiler error.
18508
18509 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18510
18511         Escape non-texinfo { and }s.
18512         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18513         markup error.
18514
18515 2009-06-04  Jim Meyering  <meyering@redhat.com>
18516
18517         gitlog-to-changelog: don't infloop on an empty commit log
18518         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18519         Reported by Boris Petersen <transacid@centerim.org>.
18520
18521 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18522
18523         version-etc: extend for packagers
18524         Add three new configure options, intended for packagers:
18525           --with-packager="packager name"
18526           --with-packager-version="packager-specific version"
18527           --with-packager-bug-reports="packager bug reporting"
18528         An example with coreutils:
18529           $ ./configure \
18530             --with-packager=Gentoo \
18531             --with-packager-bug-report=http://bugs.gentoo.org/ \
18532             --with-packager-version="patchset 1.6"
18533           $ ./src/ls --version | head -n2
18534           ls (GNU coreutils) 7.1-dirty
18535           Packaged by Gentoo (patchset 1.6)
18536         Note that the bug reporting info via --help doesn't show up because
18537         coreutils uses its own custom emit_bug_reporting_address() implementation
18538         in src/system.h.  If it didn't, it'd look like:
18539           $ ./src/ls --help | tail -n4
18540           Report bugs to <bug-coreutils@gnu.org>.
18541           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18542           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18543           General help using GNU software: <http://www.gnu.org/gethelp/>.
18544         * lib/version-etc.c: Print new information, if provided.
18545         * m4/version-etc.m4: New file.
18546         * modules/version-etc (Files): Add m4/version-etc.m4.
18547         (configure.ac): Add gl_VERSION_ETC.
18548
18549 2009-05-31  Bruno Haible  <bruno@clisp.org>
18550
18551         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18552         and 'int64_t'.
18553         * modules/alignof-tests (Dependencies): Add stdint.
18554         Reported by Eric Blake.
18555
18556 2009-05-31  Bruno Haible  <bruno@clisp.org>
18557
18558         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18559         restriction due to compiler bugs.
18560         Reported by Eric Blake.
18561
18562 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18563             Bruno Haible  <bruno@clisp.org>
18564
18565         Fix test-alignof failure.
18566         * lib/alignof.h (alignof_slot): New macro.
18567         (alignof_type): New macro, with the same semantics as the previous
18568         'alignof'.
18569         (alignof): Alias to alignof_slot.
18570         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18571         check that the results are usable as constant expressions.
18572
18573 2009-05-31  Bruno Haible  <bruno@clisp.org>
18574
18575         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18576         * tests/test-memchr.c (main): Check that memchr does not read past the
18577         first occurrence of the byte.
18578         * tests/test-strstr.c (main): Update comment.
18579         Suggested by Eric Blake.
18580
18581 2009-05-30  Bruno Haible  <bruno@clisp.org>
18582
18583         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18584         detail how to use dumpbin.
18585         Reported by David Byron <dbyron@dbyron.com>.
18586
18587 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18588
18589         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18590
18591 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18592
18593         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18594
18595 2009-05-28  Bruno Haible  <bruno@clisp.org>
18596
18597         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18598         build-aux/ files.
18599
18600 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18601
18602         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18603
18604 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18605
18606         * gnulib-tool (sed_transform_main_lib_file)
18607         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18608         regexps.
18609
18610 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18611
18612         * tests/test-strstr.c: Add another self-test.
18613         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18614         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18615
18616 2009-05-23  Bruno Haible  <bruno@clisp.org>
18617
18618         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18619         change.
18620
18621 2009-05-21  Bruno Haible  <bruno@clisp.org>
18622
18623         Simplify use of mode_t varargs.
18624         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18625         uses 'mode_t' or 'int'.
18626         * lib/openat.c (openat): Likewise.
18627         * lib/open-safer.c (open_safer): Likewise.
18628         * m4/mode_t.m4: New file.
18629         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18630         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18631         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18632         * modules/open (Files): Add m4/mode_t.m4.
18633         * modules/openat (Files): Likewise.
18634         * modules/fcntl-safer (Files): Likewise.
18635         Suggested by Eric Blake.
18636
18637 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18638
18639         * doc/glibc-functions/fallocate.texi: New file.
18640         * doc/gnulib.texi: Include it.
18641
18642 2009-05-21  Eric Blake  <ebb9@byu.net>
18643             Bruno Haible  <bruno@clisp.org>
18644
18645         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18646         invocations.
18647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18648
18649 2009-05-21  Eric Blake  <ebb9@byu.net>
18650             Bruno Haible  <bruno@clisp.org>
18651
18652         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18653         include_next. Fix of 2008-11-20 commit.
18654         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18655         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18656         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18657         NEXT_MATH_H.
18658         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18659         instead of NEXT_MATH_H.
18660
18661 2009-05-21  Bruno Haible  <bruno@clisp.org>
18662
18663         Avoid redefinition warnings for SIZE_MAX.
18664         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18665         Reported by Simon Josefsson.
18666
18667 2009-05-21  Bruno Haible  <bruno@clisp.org>
18668
18669         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18670         AC_CACHE_VAL.
18671
18672 2009-05-20  Bruno Haible  <bruno@clisp.org>
18673
18674         Make zeroptr.h work on mingw.
18675         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18676         mprotect.
18677         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18678         * modules/memchr2-tests (configure.ac): Likewise.
18679         * modules/memcmp-tests (configure.ac): Likewise.
18680         * modules/memmem-tests (configure.ac): Likewise.
18681         * modules/memrchr-tests (configure.ac): Likewise.
18682         Reported by Simon Josefsson.
18683
18684 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18685
18686         * tests/test-glob.c: Include string.h for strcmp prototype.
18687
18688 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18689
18690         * modules/getdelim (Depends-on): Add explicit stdint, although it
18691         was implicitly already pulled in via realloc-posix.
18692         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18693
18694 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18695
18696         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18697         G. Christensen" <tgc@jupiterrise.com>.
18698         * m4/sys_socket_h.m4: Check for sa_family_t.
18699         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18700         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18701         * tests/test-sys_socket.c: Check that sa_family_t works.
18702
18703 2009-05-18  Eric Blake  <ebb9@byu.net>
18704
18705         maint.mk: allow gnulib_dir in VPATH build
18706         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18707
18708 2009-05-15  Jim Meyering  <meyering@redhat.com>
18709
18710         maint.mk: Give gnulib_dir a default definition.
18711         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18712         Thus, most packages no longer need to specify this variable in cfg.mk
18713
18714 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18715
18716         rename.m4: fix typos that would make non-mingw cross-configure fail
18717         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18718
18719 2009-05-13  Eric Blake  <ebb9@byu.net>
18720
18721         mmap-anon: avoid out-of-order autoconf expansion
18722         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18723         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18724         * modules/memchr-tests (Depends-on): Add extensions.
18725         * modules/memchr2-tests (Depends-on): Add extensions.
18726         * modules/memcmp-tests (Depends-on): Add extensions.
18727         * modules/memmem-tests (Depends-on): Add extensions.
18728         * modules/memrchr-tests (Depends-on): Add extensions.
18729
18730 2009-05-13  Bruno Haible  <bruno@clisp.org>
18731
18732         Make some tests ISO C 99 compliant.
18733         * tests/zerosize-ptr.h: New file.
18734         * tests/test-memchr.c: Include zerosize-ptr.h.
18735         (main): Use a zero-size object pointer instead of NULL.
18736         * tests/test-memchr2.c: Include zerosize-ptr.h.
18737         (main): Use a zero-size object pointer instead of NULL.
18738         * tests/test-memcmp.c: Include zerosize-ptr.h.
18739         (main): Use a zero-size object pointer instead of NULL.
18740         * tests/test-memmem.c: Include zerosize-ptr.h.
18741         (main): Use a zero-size object pointer instead of NULL.
18742         * tests/test-memrchr.c: Include zerosize-ptr.h.
18743         (main): Use a zero-size object pointer instead of NULL.
18744         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18745         m4/mmap-anon.m4.
18746         (Depends-on): Add getpagesize.
18747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18748         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18749         m4/mmap-anon.m4.
18750         (Depends-on): Add getpagesize.
18751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18752         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18753         m4/mmap-anon.m4.
18754         (Depends-on): Add getpagesize.
18755         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18756         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18757         m4/mmap-anon.m4.
18758         (Depends-on): Add getpagesize.
18759         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18760         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18761         m4/mmap-anon.m4.
18762         (Depends-on): Add getpagesize.
18763         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18764
18765 2009-05-12  Bruno Haible  <bruno@clisp.org>
18766
18767         Tests for module 'alignof'.
18768         * modules/alignof-tests: New file.
18769         * tests/test-alignof.c: New file.
18770
18771 2009-05-12  Bruno Haible  <bruno@clisp.org>
18772
18773         Fix alignof macro.
18774         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18775         vendor compilers that are always correct.
18776
18777 2009-05-12  Bruno Haible  <bruno@clisp.org>
18778
18779         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18781         not whether its fully works.
18782
18783 2009-05-12  Bruno Haible  <bruno@clisp.org>
18784
18785         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18786
18787 2009-05-12  Jim Meyering  <meyering@redhat.com>
18788
18789         * top/maint.mk: Adjust backslash alignment.
18790
18791 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18792
18793         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18794
18795 2009-05-11  Eric Blake  <ebb9@byu.net>
18796
18797         argp: avoid undefined behavior
18798         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18799         macros.
18800
18801 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18802
18803         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18804         user.name to prevent git commit from complaining.
18805
18806 2009-05-10  Bruno Haible  <bruno@clisp.org>
18807
18808         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18809         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18810         it rewrites every file name only once.
18811         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18812
18813 2009-05-08  Bruno Haible  <bruno@clisp.org>
18814
18815         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18816         instead of 'max'.
18817
18818 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18819
18820         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18821         sockaddr_storage test.
18822
18823 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18824
18825         * modules/sys_socket (Makefile.am): Substitute
18826         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18827         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18828         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18829         * tests/test-sys_socket.c: Check sockaddr_storage.
18830
18831 2009-05-08  Bruno Haible  <bruno@clisp.org>
18832
18833         New module 'alignof'.
18834         * lib/alignof.h: New file.
18835         * modules/alignof: New file.
18836
18837 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18838             Bruno Haible  <bruno@clisp.org>
18839
18840         Fix test-file-has-acl on FreeBSD.
18841         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18842         mask is implicitly added.
18843         * tests/test-file-has-acl.c: Include <signal.h>.
18844         (main): Terminate the test after 5 seconds.
18845         * modules/acl-tests (configure.ac): Check for alarm function.
18846
18847 2009-05-04  Bruno Haible  <bruno@clisp.org>
18848
18849         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
18850         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
18851         * modules/errno (configure.ac): Drop AC_REQUIRE.
18852         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
18853         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
18854
18855 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18856
18857         * modules/glob-tests: New module.
18858         * tests/test-glob.c: Add.
18859
18860 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18861
18862         * modules/fnmatch-tests: New module.
18863         * tests/test-fnmatch.c: Add.
18864
18865 2009-05-04  Eric Blake  <ebb9@byu.net>
18866
18867         maint: make the new no-submodule-changes rule VPATH-safe
18868         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
18869
18870 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18871             Bruno Haible  <bruno@clisp.org>
18872
18873         acl: Fix infinite loop on FreeBSD.
18874         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
18875         of return value from acl_get_entry.
18876         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
18877         Likewise.
18878
18879 2009-05-03  Bruno Haible  <bruno@clisp.org>
18880
18881         * lib/acl-internal.h (acl_entries): Clarify return value.
18882         * lib/acl_entries.c (acl_entries): Likewise.
18883
18884 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18885
18886         Bug fix in acl module.
18887         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
18888
18889 2009-05-03  Bruno Haible  <bruno@clisp.org>
18890
18891         Create gperf-generated file in the source dir, not in the build dir.
18892         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
18893         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
18894         * modules/unicase/locale-language (unicase/locale-languages.h):
18895         Likewise.
18896         * modules/unicase/special-casing (unicase/special-casing-table.h):
18897         Likewise.
18898         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
18899         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
18900         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
18901         Reported by Ralf Wildenhues.
18902
18903 2009-05-03  Bruno Haible  <bruno@clisp.org>
18904
18905         * modules/fnmatch (Description, configure.ac): Taken from
18906         fnmatch-posix.
18907         * modules/fnmatch-posix: Turn into a symbolic reference to the
18908         'fnmatch' module, and deprecate.
18909         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
18910
18911 2009-05-03  Bruno Haible  <bruno@clisp.org>
18912
18913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
18914         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
18915         Reported by Ralf Wildenhues.
18916
18917 2009-05-04  Simon Josefsson  <simon@josefsson.org>
18918
18919         * m4/fnmatch.m4: Fix fnmatch re-define.
18920
18921 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18922
18923         priv-set: new module and tests; adapt write-any-file
18924         * lib/priv-set.c: New file.
18925         * lib/priv-set.h: New file.
18926         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
18927         * lib/write-any-file.c: Simplify by using priv-set module.
18928         * m4/priv-set.m4: New file.
18929         * modules/priv-set: New file.
18930         * modules/unlinkdir: Add dependency on priv-set module.
18931         * modules/write-any-file: Likewise.
18932
18933         Tests for module 'priv-set'.
18934         * modules/priv-set-tests: New file.
18935         * tests/test-priv-set.c: New file.
18936
18937 2009-05-03  Jim Meyering  <meyering@redhat.com>
18938             Bruno Haible  <bruno@clisp.org>
18939
18940         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
18941         use the converted UTF-8 variant of the name instead.
18942
18943 2009-05-03  Jim Meyering  <meyering@redhat.com>
18944
18945         tests: tighten some getdate tests
18946         * tests/test-getdate.c (main): Tighten tests: require equality,
18947         not just greater than.  Set TZ envvar to UTC0.
18948
18949 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18950
18951         getdate: correctly interpret "next monday" when run on a Monday
18952         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
18953         that e.g., "next tues" (when run on a tuesday) results in a date
18954         that is one week in the future, and not today's date.
18955         I.e., add a week when the wday is the same as the current one.
18956         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
18957         and earlier by Martin Bernreuther and Jan Minář.
18958         * tests/test-getdate.c (main): Check that "next DAY" is always in
18959         the future and that "last DAY" is always in the past.
18960
18961 2009-05-02  Jim Meyering  <meyering@redhat.com>
18962
18963         build: ensure that a release build fails when a submodule is unclean
18964         * top/maint.mk (no-submodule-changes): New rule.
18965         (alpha beta major): Depend on it.
18966
18967 2009-05-02  Bruno Haible  <bruno@clisp.org>
18968
18969         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
18970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
18971         shell variable gl_fnmatch_required to detect which variant is
18972         requested.
18973         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
18974         gl_FUNC_FNMATCH_POSIX.
18975         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
18976         exclude fnmatch-posix.
18977
18978 2009-05-02  Bruno Haible  <bruno@clisp.org>
18979
18980         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
18981         * modules/mbsrtowcs (License): Change to LGPLv2+.
18982         * modules/strnlen1 (License): Likewise.
18983         Reported by Simon Josefsson.
18984
18985 2009-05-02  Bruno Haible  <bruno@clisp.org>
18986
18987         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
18988         "cross".
18989         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
18990         gnulib-tool was called with option --source-base=lib.
18991
18992 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18993
18994         Use automake *-local hooks without commands, for extensibility.
18995         * modules/localcharset (Makefile.am): Rename install-exec-local
18996         rule to install-exec-localcharset, and make it a prerequisite of
18997         install-exec-local.  Likewise, rename the uninstall-local rule to
18998         uninstall-localcharset, and make it a prerequisite of the former.
18999
19000 2009-05-01  Bruno Haible  <bruno@clisp.org>
19001
19002         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19003         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19004         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19006         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19007         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19008         m4/locale-zh.m4, m4/codeset.m4.
19009
19010         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19011         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19012         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19013         m4/locale-zh.m4.
19014
19015         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19016         REPLACE_WCRTOMB if mbstate_t must be replaced.
19017         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19018         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19019
19020 2009-05-01  Bruno Haible  <bruno@clisp.org>
19021
19022         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19023         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19024         dngettext, dcngettext, textdomain, bindtextdomain,
19025         bind_textdomain_codeset): Undefine before redefining.
19026
19027 2009-04-30  Bruno Haible  <bruno@clisp.org>
19028
19029         Fix bug introduced on 2009-04-25.
19030         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19031         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19032         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19033         is defined.
19034         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19035         is defined.
19036         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19037         is defined.
19038         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19039
19040 2009-04-28  Bruno Haible  <bruno@clisp.org>
19041
19042         Comment tweaks.
19043         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19044         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19045         * lib/unicase.h (u*_casexfrm): Likewise.
19046         Reported by Paolo Bonzini.
19047
19048 2009-04-28  Bruno Haible  <bruno@clisp.org>
19049
19050         Fix a compilation error.
19051         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19052         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19053         Reported by Jim Meyering.
19054
19055 2009-04-27  Bruno Haible  <bruno@clisp.org>
19056
19057         New module 'libunistring'.
19058         * modules/libunistring: New file.
19059         * m4/libunistring.m4: New file.
19060         * MODULES.html.sh (Unicode string functions): Add it.
19061
19062 2009-04-27  Eric Blake  <ebb9@byu.net>
19063
19064         maint.mk: allow package-specific header to provide <config.h>
19065         * top/maint.mk (sc_require_config_h): New variable.
19066         (sc_require_config_h, sc_require_config_h_first): Use it.
19067
19068 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19069
19070         * top/maint.mk (sc_avoid_if_before_free): Except
19071         useless-if-before-free script.
19072
19073 2009-04-27  Eric Blake  <ebb9@byu.net>
19074
19075         maintainer-makefile: depend on all required helper scripts
19076         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19077         useless-if-before-free.
19078         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19079         version, rather than assuming gnulib checkout is available.
19080         Reported by Simen Josefsson.
19081
19082 2009-04-26  Bruno Haible  <bruno@clisp.org>
19083
19084         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19085         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19086         "../" or "..".
19087
19088 2009-04-26  Bruno Haible  <bruno@clisp.org>
19089
19090         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19091         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19092         AC_LIB_HAVE_LINKFLAGS.
19093
19094 2009-04-26  Bruno Haible  <bruno@clisp.org>
19095
19096         Simplify calling convention of u*_conv_from_encoding.
19097         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19098         u32_conv_from_encoding): Expect a resultbuf argument and return the
19099         result directly as a pointer.
19100         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19101         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19102         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19103         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19104         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19105         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19106         Update.
19107         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19108         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19109         * lib/vasnprintf.c (VASNPRINTF): Update.
19110         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19111         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19112         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19113         * NEWS: Mention the change.
19114
19115 2009-04-26  Bruno Haible  <bruno@clisp.org>
19116
19117         Simplify calling convention of u*_conv_to_encoding.
19118         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19119         u32_conv_to_encoding): Expect a resultbuf argument and return the
19120         result directly as a pointer.
19121         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19122         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19123         freeing scaled_offsets if mem_iconveha failed.
19124         * lib/unicase/u-casexfrm.h (FUNC): Update.
19125         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19126         * lib/vasnprintf.c (VASNPRINTF): Update.
19127         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19128         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19129         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19130         * NEWS: Mention the change.
19131
19132 2009-04-26  Bruno Haible  <bruno@clisp.org>
19133
19134         Avoid test failures on AIX and OSF/1.
19135         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19136         malloc(0).
19137         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19138         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19139         Likewise.
19140         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19141         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19142         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19143         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19144         * doc/posix-functions/malloc.texi: Document the portability problem
19145         related to malloc(0).
19146
19147 2009-04-26  Bruno Haible  <bruno@clisp.org>
19148
19149         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19150         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19151         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19152
19153 2009-04-25  Bruno Haible  <bruno@clisp.org>
19154
19155         Avoid link error when creating a namespace clean library.
19156         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19157         as macro with arguments if already defined as an alias.
19158         * lib/signbitf.c (gl_signbitf): Don't undefine.
19159         * lib/signbitd.c (gl_signbitd): Don't undefine.
19160         * lib/signbitl.c (gl_signbitl): Don't undefine.
19161
19162 2009-04-25  Jim Meyering  <meyering@redhat.com>
19163
19164         vc-list-files: fix another quoting bug
19165         * build-aux/vc-list-files: Avoid sed backslash expansion
19166         of pathological directory names.
19167
19168 2009-04-25  Eric Blake  <ebb9@byu.net>
19169
19170         vc-list-files: fix shell quoting error
19171         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19172         timestamp.
19173
19174 2009-04-25  Jim Meyering  <meyering@redhat.com>
19175
19176         vc-list-files: restore lost functionality with subdir argument
19177         * build-aux/vc-list-files: When given a non-"." sub-directory
19178         argument, substitute the $dir/ prefix back onto each resulting name.
19179         Otherwise, coreutils' root_tests check would fail.
19180
19181 2009-04-24  Eric Blake  <ebb9@byu.net>
19182
19183         vc-list-files: ignore git symlinks
19184         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19185         than ls-files, to ignore git symlinks.
19186
19187         maint.mk: import improvements from m4
19188         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19189         (move_if_change): Delete unused macro.
19190         (news-date-check, vc-diff-check): Support VPATH builds.
19191         (announcement): Likewise.  Split --bootstrap-tools list...
19192         (boostrap-tools): ...into separate list, which can be overridden
19193         in cfg.mk.
19194         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19195         requiring dependency on useless-if-before-free module.
19196         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19197         Support VPATH builds.
19198
19199 2009-04-24  Jim Meyering  <meyering@redhat.com>
19200
19201         maint.mk: remove coreutils-specific rules and variables
19202         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19203         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19204         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19205
19206         maint.mk: remove obsolete rule
19207         * top/maint.mk (rel-check): Remove rule.
19208         (WGET, WGETFLAGS): Remove now-unused variables.
19209
19210 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19211
19212         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19213         consistency.
19214
19215         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19216         '$(PATH_SEPARATOR)' instead of ':'.
19217
19218 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19219
19220         * lib/getopt1.c (main): Use 'const' for static array.
19221
19222 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19223
19224         * top/maint.mk: Sync with coreutils.
19225         * NEWS: Explain incompatibilities.
19226
19227 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19228             Bruno Haible  <bruno@clisp.org>
19229
19230         Fix cross-compilation results.
19231         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19232         statement, as third argument of AC_TRY_RUN.
19233         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19234         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19235         Likewise.
19236         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19237         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19238         Likewise.
19239         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19241         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19242
19243 2009-04-20  Bruno Haible  <bruno@clisp.org>
19244
19245         Avoid test failure on mingw.
19246         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19247
19248 2009-04-20  Bruno Haible  <bruno@clisp.org>
19249
19250         Avoid compilation error on mingw.
19251         * modules/localename-tests (Depends-on): Add locale.
19252
19253 2009-04-19  Bruno Haible  <bruno@clisp.org>
19254
19255         Support for building a shared library on Windows platforms.
19256         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19257         (main): Test the presence of UNINORM_NFC here.
19258         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19259         (main): Test the presence of UNINORM_NFD here.
19260         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19261         (main): Test the presence of UNINORM_NFKC here.
19262         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19263         (main): Test the presence of UNINORM_NFKD here.
19264
19265 2009-04-19  Bruno Haible  <bruno@clisp.org>
19266
19267         Avoid a compiler warning.
19268         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19269         Change type of variable 'sequence'.
19270
19271 2009-04-19  Bruno Haible  <bruno@clisp.org>
19272
19273         * modules/configmake (Makefile.am): When the contents of configmake.h
19274         does not change, arrange to preserve its modification time.
19275
19276 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19277
19278         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19279         gettext domain.
19280
19281 2009-04-16  Jim Meyering  <meyering@redhat.com>
19282
19283         useless-if-before-free: improve conversion code
19284         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19285         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19286
19287 2009-04-14  Bruno Haible  <bruno@clisp.org>
19288
19289         * modules/fcntl (Depends-on): Add extensions.
19290         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19291
19292 2009-04-12  Ben Pfaff  <blp@gnu.org>
19293
19294         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19295         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19296
19297 2009-03-20  Ben Pfaff  <blp@gnu.org>
19298
19299         Make rename replace existing destinations on Windows.
19300         * m4/rename.m4: Add test for Mingw.
19301         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19302         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19303         * doc/posix-functions/rename.texi: Document.
19304
19305 2009-04-10  Bruno Haible  <bruno@clisp.org>
19306
19307         New include file "iconveh.h".
19308         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19309         * lib/striconveh.h: Include it.
19310         (enum iconv_ilseq_handler): Remove definition.
19311         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19312         striconveh.h.
19313         * lib/striconveha.c: Include striconveh.h.
19314         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19315         * modules/striconveh (Files): Add lib/iconveh.h.
19316         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19317         lib/striconveh.h.
19318
19319 2009-04-10  Bruno Haible  <bruno@clisp.org>
19320
19321         * lib/uniconv.h: Update comment.
19322
19323 2009-04-10  Bruno Haible  <bruno@clisp.org>
19324
19325         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19326         always.
19327         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19328         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19329         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19330         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19331         "unistring-notinline.h", so that the function gets defined always.
19332         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19333         * lib/unistr/u8-uctomb.c: Likewise.
19334         * lib/unistr/u16-mbtouc.c: Likewise.
19335         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19336         * lib/unistr/u16-uctomb.c: Likewise.
19337         * lib/unistr/u32-mbtouc.c: Likewise.
19338         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19339         * lib/unistr/u32-uctomb.c: Likewise.
19340
19341 2009-04-10  Bruno Haible  <bruno@clisp.org>
19342
19343         Mark 'utime' obsolete.
19344         * modules/utime (Status, Notice): New sections.
19345         Suggested by Jim Meyering.
19346
19347         Fix cross-compile guess for utime test.
19348         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19349         autoconf.
19350         * doc/posix-functions/utime.texi: Give more precisions.
19351         Reported by Jan <ipif@ymail.com>.
19352
19353 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19354
19355         filevercmp: correct today's change
19356         * lib/filevercmp.c: Also handle coreutils' test inputs.
19357         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19358
19359         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19360         for reporting it.
19361         * lib/filevercmp.c: Special handle for "", "." and "..".
19362         * tests/test-filevercmp.c: Enlarge the set suite.
19363
19364 2009-04-07  Jim Meyering  <meyering@redhat.com>
19365
19366         useless-if-before-free: show how to remove braced useless free, too
19367         * build-aux/useless-if-before-free: still only in a comment, though.
19368
19369 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19370
19371         maint.mk: import changes to syntax-check macros from coreutils
19372         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19373         Use them in the relevant macros.
19374
19375 2009-04-06  Bruno Haible  <bruno@clisp.org>
19376
19377         Fix unportable use of bit-fields.
19378         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19379         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19380         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19381
19382 2009-04-06  Bruno Haible  <bruno@clisp.org>
19383
19384         Avoid test failures on AIX and OSF/1.
19385         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19386         that malloc(0) = NULL.
19387         * tests/unicase/test-u8-tolower.c (check): Likewise.
19388         * tests/unicase/test-u8-totitle.c (check): Likewise.
19389         * tests/unicase/test-u8-toupper.c (check): Likewise.
19390         * tests/unicase/test-u16-casefold.c (check): Likewise.
19391         * tests/unicase/test-u16-tolower.c (check): Likewise.
19392         * tests/unicase/test-u16-totitle.c (check): Likewise.
19393         * tests/unicase/test-u16-toupper.c (check): Likewise.
19394         * tests/unicase/test-u32-casefold.c (check): Likewise.
19395         * tests/unicase/test-u32-tolower.c (check): Likewise.
19396         * tests/unicase/test-u32-totitle.c (check): Likewise.
19397         * tests/unicase/test-u32-toupper.c (check): Likewise.
19398         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19399         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19400         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19401         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19402         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19403         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19404         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19405         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19406         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19407         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19408         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19409         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19410
19411 2009-04-05  Bruno Haible  <bruno@clisp.org>
19412
19413         Work around an autoconf limitation.
19414         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19415         comment line if it would be longer than 3 KB.
19416
19417 2009-04-05  Bruno Haible  <bruno@clisp.org>
19418
19419         Avoid test failure with libiconv-1.13.
19420         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19421         of the expected test results.
19422
19423 2009-04-05  Bruno Haible  <bruno@clisp.org>
19424
19425         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19426         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19427         that it should be installed.
19428
19429 2009-04-05  Bruno Haible  <bruno@clisp.org>
19430
19431         * gnulib-tool: New option --copy-file.
19432         (func_usage): Document it.
19433         (func_dest_tmpfilename): Moved out of func_import.
19434         (func_add_file, func_update_file): New functions, extracted from
19435         func_import.
19436         (func_import): Update.
19437
19438 2009-04-05  Karl Berry  <karl@gnu.org>
19439
19440         * README: prominently mention gnulib-tool.
19441         Rearrange sections so getting the code is near the top.
19442
19443 2009-04-05  Bruno Haible  <bruno@clisp.org>
19444
19445         * lib/unicase.h: Mention u*_cmp2.
19446         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19447         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19448         * lib/unicase/ulc-casecmp.c: Likewise.
19449         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19450         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19451         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19452         unistr/u8-cmp.
19453         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19454         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19455         unistr/u16-cmp.
19456         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19457         unistr/u32-cmp.
19458
19459         * lib/uninorm.h: Mention u*_cmp2.
19460         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19461         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19462         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19463         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19464         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19465         unistr/u8-cmp.
19466         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19467         unistr/u16-cmp.
19468         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19469         unistr/u32-cmp.
19470
19471         New module 'unistr/u32-cmp2'.
19472         * lib/unistr/u32-cmp2.c: New file.
19473         * modules/unistr/u32-cmp2: New file.
19474
19475         New module 'unistr/u16-cmp2'.
19476         * lib/unistr/u16-cmp2.c: New file.
19477         * modules/unistr/u16-cmp2: New file.
19478
19479         New module 'unistr/u8-cmp2'.
19480         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19481         * lib/unistr/u8-cmp2.c: New file.
19482         * lib/unistr/u-cmp2.h: New file.
19483         * modules/unistr/u8-cmp2: New file.
19484
19485 2009-04-05  Bruno Haible  <bruno@clisp.org>
19486
19487         * lib/unictype.h (uc_property_is_valid): New macro.
19488         * tests/unictype/test-pr_byname.c (main): Use it.
19489
19490         * lib/unistr.h: Doc fixes.
19491         * lib/uniconv.h: Doc fixes.
19492         * lib/unictype.h: Doc fixes.
19493
19494 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19495
19496         Port coreutils 7.2 to Solaris 8.
19497
19498         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19499         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19500         for Solaris 8.  This is a bit of a hack, as it means it's the
19501         caller's responsibility to add -lnsl if needed, but most likely it
19502         won't be needed since only getaddrinfo uses this and getaddrinfo
19503         isn't needed on Solaris 8.
19504
19505         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19506         problem to Solaris 8 encountered with coreutils 7.2, which
19507         resulted in a message "fnmatch.c:292: warning: passing argument 4
19508         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19509         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19510
19511 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19512
19513         * m4/ld-version-script.m4: Add FIXME comment.
19514
19515 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19516
19517         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19518         SOVERSION variable.
19519
19520 2009-04-02  Bruno Haible  <bruno@clisp.org>
19521
19522         * Makefile (info, html, dvi, pdf): Combine the rules.
19523         Suggested by Jim Meyering.
19524
19525 2009-04-01  Bruno Haible  <bruno@clisp.org>
19526
19527         * Makefile (info, html, dvi, pdf): New targets.
19528         Reported by Reuben Thomas <rrt@sc3d.org>.
19529
19530 2009-04-01  Bruno Haible  <bruno@clisp.org>
19531
19532         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19533         can be put into PATH.
19534         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19535
19536 2009-04-01  Bruno Haible  <bruno@clisp.org>
19537
19538         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19539
19540 2009-04-01  Bruno Haible  <bruno@clisp.org>
19541
19542         Rename module 'visibility'.
19543         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19544         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19545         * doc/gnulib.texi: Update.
19546         * MODULES.html.sh (Misc): Update.
19547         * NEWS: Mention the change.
19548
19549 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19550
19551         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19552         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19553         Eric Blake <ebb9@byu.net> for review.
19554         * MODULES.html.sh: Add lib-msvc-compat.
19555         * doc/gnulib.texi: Link to new section.
19556         * m4/ld-output-def.m4: New file.
19557         * doc/ld-output-def.texi: New file.
19558
19559 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19560
19561         Rename ld-version-script to lib-symbol-versions.  Suggested by
19562         Bruno Haible <bruno@clisp.org>.
19563         * modules/ld-version-script: Renamed to lib-symbol-versions.
19564         * doc/ld-version-script.texi: Fix module name.
19565         * MODULES.html.sh: Add lib-symbol-versions.
19566
19567 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19568
19569         * modules/u64-tests: New file.
19570         * tests/test-u64.c: New file.
19571
19572 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19573
19574         * MODULES.html.sh: Mention u64.
19575         * modules/u64: New module.
19576         * modules/crypto/sha512: Depend on u64 module instead of providing
19577         u64.h.
19578
19579 2009-03-27  Eric Blake  <ebb9@byu.net>
19580
19581         test-strerror: make debugging EAI_SYSTEM easier
19582         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19583         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19584         failure was EAI_SYSTEM.
19585
19586 2009-03-25  Bruno Haible  <bruno@clisp.org>
19587
19588         Fix a problem with --enable-relocatable on Solaris 7.
19589         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19590         since 2008-02-24.
19591
19592 2009-03-25  Eric Blake  <ebb9@byu.net>
19593
19594         test-sockets: avoid gcc warning
19595         * tests/test-sockets.c (main): Silence compiler warning.
19596
19597 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         New modules nproc, pthread, contributed by Glen Lenker.
19600
19601         * MODULES.html.sh: Add pthread, nproc.
19602         * lib/nproc.c: New file.
19603         * lib/nproc.h: New file.
19604         * lib/pthread.in.h: New file.
19605         * m4/pthread.m4: New file.
19606         * modules/nproc: New file.
19607         * modules/pthread: New file.
19608
19609 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19610
19611         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19612         New variable.
19613
19614 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19615
19616         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19617         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19618         * tests/test-filevercmp.c: Add tests for backup suffixes.
19619
19620 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19621
19622         * modules/stdlib (Depends-on): Add stdint, needed when defining
19623         struct random_data on, for example, HP-UX 10.20.  Reported by
19624         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19625
19626 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19627
19628         * lib/readline.c (readline): Call fflush on stdout after printing
19629         prompt.
19630
19631 2009-03-20  Bruno Haible  <bruno@clisp.org>
19632
19633         Remove dependency from 'close' module to -lws2_32 on native Windows.
19634         * lib/close-hook.h: New file.
19635         * lib/close-hook.c: New file.
19636         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19637         w32sock.h.
19638         (_gl_close_fd_maybe_socket): Remove function.
19639         (rpl_close): Invoke execute_all_close_hooks instead of
19640         _gl_close_fd_maybe_socket.
19641         * lib/sockets.c: Include close-hook.h, w32sock.h.
19642         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19643         (close_sockets_hook): New variable.
19644         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19645         (gl_sockets_cleanup): Unregister it.
19646         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19647         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19648         * modules/close-hook: New file.
19649         * modules/close (Files): Remove lib/w32sock.h.
19650         (Depends-on): Add close-hook.
19651         (Link): Remove section.
19652         * modules/sockets (Files): Add lib/w32sock.h.
19653         (Depends-on): Add close-hook.
19654         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19655         invocation.
19656         * NEWS: Mention that LIB_CLOSE is gone.
19657
19658 2009-03-23  Eric Blake  <ebb9@byu.net>
19659
19660         signal-tests: test previous patch
19661         * tests/test-signal.c: New file.
19662         * modules/signal-tests: Likewise.
19663
19664         signal.h: always support 'volatile sig_atomic_t'
19665         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19666         (gl_SIGNAL_H_DEFAULTS): Add a default.
19667         * modules/signal (Makefile.am): Substitute if needed.
19668         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19669         users can blindly add volatile.
19670         * doc/posix-headers/signal.texi (signal.h): Document it.
19671         Reported by Matthew Woehlke.
19672
19673 2009-03-23  Jim Meyering  <meyering@redhat.com>
19674
19675         pathmax: PATH_MAX: use pathconf only when available
19676         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19677         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19678         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19679         This avoids a link failure in a PSP cross-compilation environment
19680         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19681
19682         * lib/vasnprintf.c (divide): Fix typo in comment.
19683
19684 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19685
19686         * gnulib-tool (func_filter_filelist): Fix comment.
19687
19688 2009-03-20  Bruno Haible  <bruno@clisp.org>
19689
19690         Make sockets.h self-contained.
19691         * lib/sockets.c: Include sockets.h first.
19692         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19693
19694 2009-03-19  Eric Blake  <ebb9@byu.net>
19695
19696         doc: mention more functions added in cygwin 1.7.0
19697         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19698         addition.
19699         * doc/posix-functions/log2f.texi: Likewise.
19700
19701 2009-03-19  Jim Meyering  <meyering@redhat.com>
19702
19703         fsusage: avoid syntax error due to statement-before-declaration
19704         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19705         after all declarations.  Reported by Matthew Woehlke in
19706         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19707
19708 2009-03-18  Eric Blake  <ebb9@byu.net>
19709
19710         build-aux/compile: sync from automake
19711         * build-aux/compile: New file, from automake.
19712         * config/srclist.txt: Mention build-aux/compile.
19713
19714 2009-03-17  Bruno Haible  <bruno@clisp.org>
19715
19716         * lib/git-merge-changelog.c: Fix typo in comment.
19717         Reported by Reuben Thomas <rrt@sc3d.org>.
19718
19719 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19720
19721         * m4/regex.m4: update and improve help for
19722         --without-included-regex.
19723
19724 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19725
19726         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19727         failure on missing include files.
19728
19729 2009-03-17  Eric Blake  <ebb9@byu.net>
19730
19731         doc: mention more functions added in cygwin 1.7.0
19732         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19733         addition.
19734         * doc/posix-functions/fwscanf.texi: Likewise.
19735         * doc/posix-functions/swprintf.texi: Likewise.
19736         * doc/posix-functions/swscanf.texi: Likewise.
19737         * doc/posix-functions/vfwprintf.texi: Likewise.
19738         * doc/posix-functions/vfwscanf.texi: Likewise.
19739         * doc/posix-functions/vswprintf.texi: Likewise.
19740         * doc/posix-functions/vswscanf.texi: Likewise.
19741         * doc/posix-functions/vwprintf.texi: Likewise.
19742         * doc/posix-functions/vwscanf.texi: Likewise.
19743         * doc/posix-functions/wcscasecmp.texi: Likewise.
19744         * doc/posix-functions/wcsdup.texi: Likewise.
19745         * doc/posix-functions/wcsftime.texi: Likewise.
19746         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19747         * doc/posix-functions/wprintf.texi: Likewise.
19748         * doc/posix-functions/wscanf.texi: Likewise.
19749         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19750
19751 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19752
19753         maint.mk: really add $(AM_MAKEFLAGS)
19754         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19755         was inadvertently omitted in the last commit.
19756         Spotted by Bruno Haible.
19757
19758         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19759         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19760         $(AM_MAKEFLAGS)' rather than plain `make'.
19761
19762         gnulib-tool: execute $MAKE not make
19763         * gnulib-tool: Default $MAKE to 'make'.
19764         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19765         than make.  Initialize $MAKE in the do-autobuild script.
19766
19767         gnulib-tool: use $MAKE not make in generated files
19768         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19769         make, in generated files.  Initialize $MAKE in the do-autobuild
19770         script.
19771
19772         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19773
19774         GNUmakefile: disable parallelism only for multiple, recursive targets
19775         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19776         additions in the Makefile.
19777         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19778         by Automake.
19779         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19780         are listed on the command line and at least one of them is
19781         listed in $(ALL_RECURSIVE_TARGETS).
19782
19783 2009-03-14  Bruno Haible  <bruno@clisp.org>
19784
19785         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19786         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19787         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19788         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19789         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19790         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19791         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19792         unistr/u8-uctomb.
19793         * modules/unistr/u8-strchr (Depends-on): Likewise.
19794         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19795         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19796         unistr/u16-uctomb.
19797         * modules/unistr/u16-strchr (Depends-on): Likewise.
19798         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19799
19800 2009-03-12  Bruno Haible  <bruno@clisp.org>
19801
19802         Work around select() bug on Interix 3.5.
19803         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19804         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19805         * m4/select.m4: New file.
19806         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19807         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19808         * modules/select (Files): Add m4/select.m4.
19809         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19810         * modules/nanosleep (Depends-on): Add select.
19811         * modules/poll (Depends-on): Likewise.
19812         * doc/posix-functions/select.texi: Mention the Interix bug.
19813         Reported by Markus Duft <mduft@gentoo.org>.
19814
19815         * lib/select.c: Renamed from lib/winsock-select.c.
19816         * modules/select (Files): Add lib/select.c, remove
19817         lib/winsock-select.c.
19818         (configure.ac): Update.
19819
19820 2009-03-12  Jim Meyering  <meyering@redhat.com>
19821
19822         avoid gcc warnings about unused macro definitions
19823         * lib/readtokens.c (STREQ): Remove unused definition.
19824         * lib/xmalloc.c (SIZE_MAX): Likewise.
19825         * lib/openat-die.c (N_): Likewise.
19826         * lib/mountlist.c (SIZE_MAX): Remove definition.
19827         Instead, include <stdint.h>.
19828         * lib/readutmp.c: Likewise.
19829         * modules/readutmp (Depends-on): Add stdint.
19830         * modules/mountlist (Depends-on): Add stdint.
19831         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19832
19833 2009-03-10  Bruno Haible  <bruno@clisp.org>
19834
19835         Tests for module 'mbmemcasecoll'.
19836         * modules/mbmemcasecoll-tests: New file.
19837         * tests/test-mbmemcasecoll1.sh: New file.
19838         * tests/test-mbmemcasecoll2.sh: New file.
19839         * tests/test-mbmemcasecoll3.sh: New file.
19840         * tests/test-mbmemcasecoll.c: New file.
19841
19842         New module 'mbmemcasecoll'.
19843         * lib/mbmemcasecoll.h: New file.
19844         * lib/mbmemcasecoll.c: New file.
19845         * modules/mbmemcasecoll: New file.
19846
19847         * tests/test-mbmemcasecmp.h: New file, extracted from
19848         tests/test-mbmemcasecmp.c.
19849         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
19850         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
19851         (main): Update.
19852         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
19853
19854 2009-03-09  Bruno Haible  <bruno@clisp.org>
19855
19856         Tests for module 'mbmemcasecmp'.
19857         * modules/mbmemcasecmp-tests: New file.
19858         * tests/test-mbmemcasecmp1.sh: New file.
19859         * tests/test-mbmemcasecmp2.sh: New file.
19860         * tests/test-mbmemcasecmp3.sh: New file.
19861         * tests/test-mbmemcasecmp.c: New file.
19862
19863         New module 'mbmemcasecmp'.
19864         * lib/mbmemcasecmp.h: New file.
19865         * lib/mbmemcasecmp.c: New file.
19866         * modules/mbmemcasecmp: New file.
19867
19868 2009-03-09  Bruno Haible  <bruno@clisp.org>
19869
19870         Tests for module 'unicase/ulc-casecoll'.
19871         * modules/unicase/ulc-casecoll-tests: New file.
19872         * tests/unicase/test-ulc-casecoll1.sh: New file.
19873         * tests/unicase/test-ulc-casecoll2.sh: New file.
19874         * tests/unicase/test-ulc-casecoll.c: New file.
19875
19876         New module 'unicase/ulc-casecoll'.
19877         * lib/unicase.h (ulc_casecoll): New declaration.
19878         * lib/unicase/ulc-casecoll.c: New file.
19879         * modules/unicase/ulc-casecoll: New file.
19880
19881         New module 'unicase/ulc-casexfrm'.
19882         * lib/unicase.h (ulc_casexfrm): New declaration.
19883         * lib/unicase/ulc-casexfrm.c: New file.
19884         * modules/unicase/ulc-casexfrm: New file.
19885
19886 2009-03-09  Bruno Haible  <bruno@clisp.org>
19887
19888         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
19889         invocations.
19890
19891         * m4/mbscasecmp.m4: Remove file.
19892         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
19893         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
19894
19895         * m4/mbscasestr.m4: Remove file.
19896         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
19897         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
19898
19899         * m4/mbschr.m4: Remove file.
19900         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
19901         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
19902
19903         * m4/mbscspn.m4: Remove file.
19904         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
19905         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
19906
19907         * m4/mbslen.m4: Remove file.
19908         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
19909         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
19910
19911         * m4/mbsncasecmp.m4: Remove file.
19912         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
19913         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
19914
19915         * m4/mbsnlen.m4: Remove file.
19916         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
19917         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
19918
19919         * m4/mbspbrk.m4: Remove file.
19920         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
19921         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
19922
19923         * m4/mbspcasecmp.m4: Remove file.
19924         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
19925         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
19926
19927         * m4/mbsrchr.m4: Remove file.
19928         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
19929         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
19930
19931         * m4/mbssep.m4: Remove file.
19932         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
19933         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
19934
19935         * m4/mbsspn.m4: Remove file.
19936         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
19937         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
19938
19939         * m4/mbsstr.m4: Remove file.
19940         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
19941         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
19942
19943         * m4/mbstok_r.m4: Remove file.
19944         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
19945         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
19946
19947         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
19948
19949         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
19950         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
19951
19952         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
19953
19954 2009-03-08  Bruno Haible  <bruno@clisp.org>
19955
19956         Tests for module 'unicase/ulc-casecmp'.
19957         * modules/unicase/ulc-casecmp-tests: New file.
19958         * tests/unicase/test-ulc-casecmp1.sh: New file.
19959         * tests/unicase/test-ulc-casecmp2.sh: New file.
19960         * tests/unicase/test-ulc-casecmp.c: New file.
19961
19962         New module 'unicase/ulc-casecmp'.
19963         * lib/unicase.h (ulc_casecmp): New declaration.
19964         * lib/unicase/ulc-casecmp.c: New file.
19965         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
19966         'const SRC_UNIT *'.
19967         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
19968         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
19969         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
19970         * modules/unicase/ulc-casecmp: New file.
19971
19972         Tests for module 'unicase/u32-is-cased'.
19973         * modules/unicase/u32-is-cased-tests: New file.
19974         * tests/unicase/test-u32-is-cased.c: New file.
19975
19976         Tests for module 'unicase/u16-is-cased'.
19977         * modules/unicase/u16-is-cased-tests: New file.
19978         * tests/unicase/test-u16-is-cased.c: New file.
19979
19980         Tests for module 'unicase/u8-is-cased'.
19981         * modules/unicase/u8-is-cased-tests: New file.
19982         * tests/unicase/test-u8-is-cased.c: New file.
19983         * tests/unicase/test-is-cased.h: New file.
19984
19985         New module 'unicase/u32-is-cased'.
19986         * lib/unicase/u32-is-cased.c: New file.
19987         * modules/unicase/u32-is-cased: New file.
19988
19989         New module 'unicase/u16-is-cased'.
19990         * lib/unicase/u16-is-cased.c: New file.
19991         * modules/unicase/u16-is-cased: New file.
19992
19993         New module 'unicase/u8-is-cased'.
19994         * lib/unicase/u8-is-cased.c: New file.
19995         * lib/unicase/u-is-cased.h: New file.
19996         * modules/unicase/u8-is-cased: New file.
19997
19998         Tests for module 'unicase/u32-is-casefolded'.
19999         * modules/unicase/u32-is-casefolded-tests: New file.
20000         * tests/unicase/test-u32-is-casefolded.c: New file.
20001
20002         Tests for module 'unicase/u16-is-casefolded'.
20003         * modules/unicase/u16-is-casefolded-tests: New file.
20004         * tests/unicase/test-u16-is-casefolded.c: New file.
20005
20006         Tests for module 'unicase/u8-is-casefolded'.
20007         * modules/unicase/u8-is-casefolded-tests: New file.
20008         * tests/unicase/test-u8-is-casefolded.c: New file.
20009         * tests/unicase/test-is-casefolded.h: New file.
20010
20011         New module 'unicase/u32-is-casefolded'.
20012         * lib/unicase/u32-is-casefolded.c: New file.
20013         * modules/unicase/u32-is-casefolded: New file.
20014
20015         New module 'unicase/u16-is-casefolded'.
20016         * lib/unicase/u16-is-casefolded.c: New file.
20017         * modules/unicase/u16-is-casefolded: New file.
20018
20019         New module 'unicase/u8-is-casefolded'.
20020         * lib/unicase/u8-is-casefolded.c: New file.
20021         * modules/unicase/u8-is-casefolded: New file.
20022
20023         Tests for module 'unicase/u32-is-titlecase'.
20024         * modules/unicase/u32-is-titlecase-tests: New file.
20025         * tests/unicase/test-u32-is-titlecase.c: New file.
20026
20027         Tests for module 'unicase/u16-is-titlecase'.
20028         * modules/unicase/u16-is-titlecase-tests: New file.
20029         * tests/unicase/test-u16-is-titlecase.c: New file.
20030
20031         Tests for module 'unicase/u8-is-titlecase'.
20032         * modules/unicase/u8-is-titlecase-tests: New file.
20033         * tests/unicase/test-u8-is-titlecase.c: New file.
20034         * tests/unicase/test-is-titlecase.h: New file.
20035
20036         New module 'unicase/u32-is-titlecase'.
20037         * lib/unicase/u32-is-titlecase.c: New file.
20038         * modules/unicase/u32-is-titlecase: New file.
20039
20040         New module 'unicase/u16-is-titlecase'.
20041         * lib/unicase/u16-is-titlecase.c: New file.
20042         * modules/unicase/u16-is-titlecase: New file.
20043
20044         New module 'unicase/u8-is-titlecase'.
20045         * lib/unicase/u8-is-titlecase.c: New file.
20046         * modules/unicase/u8-is-titlecase: New file.
20047
20048         Tests for module 'unicase/u32-is-lowercase'.
20049         * modules/unicase/u32-is-lowercase-tests: New file.
20050         * tests/unicase/test-u32-is-lowercase.c: New file.
20051
20052         Tests for module 'unicase/u16-is-lowercase'.
20053         * modules/unicase/u16-is-lowercase-tests: New file.
20054         * tests/unicase/test-u16-is-lowercase.c: New file.
20055
20056         Tests for module 'unicase/u8-is-lowercase'.
20057         * modules/unicase/u8-is-lowercase-tests: New file.
20058         * tests/unicase/test-u8-is-lowercase.c: New file.
20059         * tests/unicase/test-is-lowercase.h: New file.
20060
20061         New module 'unicase/u32-is-lowercase'.
20062         * lib/unicase/u32-is-lowercase.c: New file.
20063         * modules/unicase/u32-is-lowercase: New file.
20064
20065         New module 'unicase/u16-is-lowercase'.
20066         * lib/unicase/u16-is-lowercase.c: New file.
20067         * modules/unicase/u16-is-lowercase: New file.
20068
20069         New module 'unicase/u8-is-lowercase'.
20070         * lib/unicase/u8-is-lowercase.c: New file.
20071         * modules/unicase/u8-is-lowercase: New file.
20072
20073         Tests for module 'unicase/u32-is-uppercase'.
20074         * modules/unicase/u32-is-uppercase-tests: New file.
20075         * tests/unicase/test-u32-is-uppercase.c: New file.
20076
20077         Tests for module 'unicase/u16-is-uppercase'.
20078         * modules/unicase/u16-is-uppercase-tests: New file.
20079         * tests/unicase/test-u16-is-uppercase.c: New file.
20080
20081         Tests for module 'unicase/u8-is-uppercase'.
20082         * modules/unicase/u8-is-uppercase-tests: New file.
20083         * tests/unicase/test-u8-is-uppercase.c: New file.
20084         * tests/unicase/test-is-uppercase.h: New file.
20085
20086         New module 'unicase/u32-is-uppercase'.
20087         * lib/unicase/u32-is-uppercase.c: New file.
20088         * modules/unicase/u32-is-uppercase: New file.
20089
20090         New module 'unicase/u16-is-uppercase'.
20091         * lib/unicase/u16-is-uppercase.c: New file.
20092         * modules/unicase/u16-is-uppercase: New file.
20093
20094         New module 'unicase/u8-is-uppercase'.
20095         * lib/unicase/u8-is-uppercase.c: New file.
20096         * modules/unicase/u8-is-uppercase: New file.
20097
20098         New module 'unicase/u32-is-invariant'.
20099         * lib/unicase/u32-is-invariant.c: New file.
20100         * modules/unicase/u32-is-invariant: New file.
20101
20102         New module 'unicase/u16-is-invariant'.
20103         * lib/unicase/u16-is-invariant.c: New file.
20104         * modules/unicase/u16-is-invariant: New file.
20105
20106         New module 'unicase/u8-is-invariant'.
20107         * lib/unicase/u8-is-invariant.c: New file.
20108         * lib/unicase/invariant.h: New file.
20109         * lib/unicase/u-is-invariant.h: New file.
20110         * modules/unicase/u8-is-invariant: New file.
20111
20112         Tests for module 'unicase/u32-casecoll'.
20113         * modules/unicase/u32-casecoll-tests: New file.
20114         * tests/unicase/test-u32-casecoll.c: New file.
20115
20116         Tests for module 'unicase/u16-casecoll'.
20117         * modules/unicase/u16-casecoll-tests: New file.
20118         * tests/unicase/test-u16-casecoll.c: New file.
20119
20120         Tests for module 'unicase/u8-casecoll'.
20121         * modules/unicase/u8-casecoll-tests: New file.
20122         * tests/unicase/test-u8-casecoll.c: New file.
20123
20124         New module 'unicase/u32-casecoll'.
20125         * lib/unicase/u32-casecoll.c: New file.
20126         * modules/unicase/u32-casecoll: New file.
20127
20128         New module 'unicase/u16-casecoll'.
20129         * lib/unicase/u16-casecoll.c: New file.
20130         * modules/unicase/u16-casecoll: New file.
20131
20132         New module 'unicase/u8-casecoll'.
20133         * lib/unicase/u8-casecoll.c: New file.
20134         * lib/unicase/u-casecoll.h: New file.
20135         * modules/unicase/u8-casecoll: New file.
20136
20137         New module 'unicase/u32-casexfrm'.
20138         * lib/unicase/u32-casexfrm.c: New file.
20139         * modules/unicase/u32-casexfrm: New file.
20140
20141         New module 'unicase/u16-casexfrm'.
20142         * lib/unicase/u16-casexfrm.c: New file.
20143         * modules/unicase/u16-casexfrm: New file.
20144
20145         New module 'unicase/u8-casexfrm'.
20146         * lib/unicase/u8-casexfrm.c: New file.
20147         * lib/unicase/u-casexfrm.h: New file.
20148         * modules/unicase/u8-casexfrm: New file.
20149
20150         Tests for module 'unicase/u32-casecmp'.
20151         * modules/unicase/u32-casecmp-tests: New file.
20152         * tests/unicase/test-u32-casecmp.c: New file.
20153
20154         Tests for module 'unicase/u16-casecmp'.
20155         * modules/unicase/u16-casecmp-tests: New file.
20156         * tests/unicase/test-u16-casecmp.c: New file.
20157
20158         Tests for module 'unicase/u8-casecmp'.
20159         * modules/unicase/u8-casecmp-tests: New file.
20160         * tests/unicase/test-u8-casecmp.c: New file.
20161         * tests/unicase/test-casecmp.h: New file.
20162
20163         New module 'unicase/u32-casecmp'.
20164         * lib/unicase/u32-casecmp.c: New file.
20165         * modules/unicase/u32-casecmp: New file.
20166
20167         New module 'unicase/u16-casecmp'.
20168         * lib/unicase/u16-casecmp.c: New file.
20169         * modules/unicase/u16-casecmp: New file.
20170
20171         New module 'unicase/u8-casecmp'.
20172         * lib/unicase/u8-casecmp.c: New file.
20173         * lib/unicase/u-casecmp.h: New file.
20174         * modules/unicase/u8-casecmp: New file.
20175
20176         Tests for module 'unicase/u32-casefold'.
20177         * modules/unicase/u32-casefold-tests: New file.
20178         * tests/unicase/test-u32-casefold.c: New file.
20179
20180         Tests for module 'unicase/u16-casefold'.
20181         * modules/unicase/u16-casefold-tests: New file.
20182         * tests/unicase/test-u16-casefold.c: New file.
20183
20184         Tests for module 'unicase/u8-casefold'.
20185         * modules/unicase/u8-casefold-tests: New file.
20186         * tests/unicase/test-u8-casefold.c: New file.
20187
20188         New module 'unicase/u32-casefold'.
20189         * lib/unicase/u32-casefold.c: New file.
20190         * modules/unicase/u32-casefold: New file.
20191
20192         New module 'unicase/u16-casefold'.
20193         * lib/unicase/u16-casefold.c: New file.
20194         * modules/unicase/u16-casefold: New file.
20195
20196         New module 'unicase/u8-casefold'.
20197         * lib/unicase/u8-casefold.c: New file.
20198         * lib/unicase/u-casefold.h: New file.
20199         * modules/unicase/u8-casefold: New file.
20200
20201         New module 'unicase/tocasefold'.
20202         * lib/unicase/casefold.h: New file.
20203         * lib/unicase/tocasefold.c: New file.
20204         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20205         * modules/unicase/tocasefold: New file.
20206
20207         Tests for module 'unicase/u32-totitle'.
20208         * modules/unicase/u32-totitle-tests: New file.
20209         * tests/unicase/test-u32-totitle.c: New file.
20210
20211         Tests for module 'unicase/u16-totitle'.
20212         * modules/unicase/u16-totitle-tests: New file.
20213         * tests/unicase/test-u16-totitle.c: New file.
20214
20215         Tests for module 'unicase/u8-totitle'.
20216         * modules/unicase/u8-totitle-tests: New file.
20217         * tests/unicase/test-u8-totitle.c: New file.
20218
20219         New module 'unicase/u32-totitle'.
20220         * lib/unicase/u32-totitle.c: New file.
20221         * modules/unicase/u32-totitle: New file.
20222
20223         New module 'unicase/u16-totitle'.
20224         * lib/unicase/u16-totitle.c: New file.
20225         * modules/unicase/u16-totitle: New file.
20226
20227         New module 'unicase/u8-totitle'.
20228         * lib/unicase/u8-totitle.c: New file.
20229         * lib/unicase/u-totitle.h: New file.
20230         * modules/unicase/u8-totitle: New file.
20231
20232         Tests for module 'unicase/u32-tolower'.
20233         * modules/unicase/u32-tolower-tests: New file.
20234         * tests/unicase/test-u32-tolower.c: New file.
20235
20236         Tests for module 'unicase/u16-tolower'.
20237         * modules/unicase/u16-tolower-tests: New file.
20238         * tests/unicase/test-u16-tolower.c: New file.
20239
20240         Tests for module 'unicase/u8-tolower'.
20241         * modules/unicase/u8-tolower-tests: New file.
20242         * tests/unicase/test-u8-tolower.c: New file.
20243
20244         New module 'unicase/u32-tolower'.
20245         * lib/unicase/u32-tolower.c: New file.
20246         * modules/unicase/u32-tolower: New file.
20247
20248         New module 'unicase/u16-tolower'.
20249         * lib/unicase/u16-tolower.c: New file.
20250         * modules/unicase/u16-tolower: New file.
20251
20252         New module 'unicase/u8-tolower'.
20253         * lib/unicase/u8-tolower.c: New file.
20254         * modules/unicase/u8-tolower: New file.
20255
20256         Tests for module 'unicase/u32-toupper'.
20257         * modules/unicase/u32-toupper-tests: New file.
20258         * tests/unicase/test-u32-toupper.c: New file.
20259
20260         Tests for module 'unicase/u16-toupper'.
20261         * modules/unicase/u16-toupper-tests: New file.
20262         * tests/unicase/test-u16-toupper.c: New file.
20263
20264         Tests for module 'unicase/u8-toupper'.
20265         * modules/unicase/u8-toupper-tests: New file.
20266         * tests/unicase/test-u8-toupper.c: New file.
20267
20268         New module 'unicase/u32-toupper'.
20269         * lib/unicase/u32-toupper.c: New file.
20270         * modules/unicase/u32-toupper: New file.
20271
20272         New module 'unicase/u16-toupper'.
20273         * lib/unicase/u16-toupper.c: New file.
20274         * modules/unicase/u16-toupper: New file.
20275
20276         New module 'unicase/u8-toupper'.
20277         * lib/unicase/u8-toupper.c: New file.
20278         * modules/unicase/u8-toupper: New file.
20279
20280         New module 'unicase/u32-casemap'.
20281         * lib/unicase/u32-casemap.c: New file.
20282         * modules/unicase/u32-casemap: New file.
20283
20284         New module 'unicase/u16-casemap'.
20285         * lib/unicase/u16-casemap.c: New file.
20286         * modules/unicase/u16-casemap: New file.
20287
20288         New module 'unicase/u8-casemap'.
20289         * lib/unicase/unicasemap.h: New file.
20290         * lib/unicase/u8-casemap.c: New file.
20291         * lib/unicase/u-casemap.h: New file.
20292         * modules/unicase/u8-casemap: New file.
20293
20294         New module 'unicase/special-casing'.
20295         * lib/unicase/special-casing.h: New file.
20296         * lib/unicase/special-casing.c: New file.
20297         * lib/unicase/special-casing-table.gperf: New file, generated by
20298         gen-uni-tables.c.
20299         * modules/unicase/special-casing: New file.
20300
20301         Tests for module 'unicase/locale-language'.
20302         * modules/unicase/locale-language-tests: New file.
20303         * tests/unicase/test-locale-language.sh: New file.
20304         * tests/unicase/test-locale-language.c: New file.
20305
20306         New module 'unicase/locale-language'.
20307         * lib/unicase/locale-language.c: New file.
20308         * lib/unicase/locale-languages.gperf: New file.
20309         * modules/unicase/locale-language: New file.
20310
20311         Generate more tables for case conversion and case folding.
20312         * lib/gen-uni-tables.c (SCC_*): New enum items.
20313         (struct special_casing_rule): New type.
20314         (casing_rules, num_casing_rules, allocated_casing_rules): New
20315         variables.
20316         (add_casing_rule, fill_casing_rules): New functions.
20317         (struct casefold_rule): New type.
20318         (casefolding_rules, num_casefolding_rules,
20319         allocated_casefolding_rules): New variables.
20320         (fill_casefolding_rules): New function.
20321         (unicode_casefold): New variable.
20322         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20323         sort_casing_rules, output_casing_rules): New functions.
20324         (main): Accept to more arguments: SpecialCasing.txt and
20325         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20326         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20327         Output mapping for casefolding.
20328
20329         * lib/unicase.h: Include stdbool.h, uninorm.h.
20330         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20331         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20332         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20333         arguments.
20334         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20335         resultp arguments.
20336         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20337         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20338         resultp arguments.
20339         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20340         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20341         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20342         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20343         declarations.
20344         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20345
20346 2009-03-08  Bruno Haible  <bruno@clisp.org>
20347
20348         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20349         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20350         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20351         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20352
20353 2009-03-07  Bruno Haible  <bruno@clisp.org>
20354
20355         Adjust u*_normcmp, u*_normcoll API.
20356         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20357         u16_normcoll, u32_normcoll): Change failure conventions.
20358         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20359         errno and return -1.
20360         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20361
20362 2009-03-07  Bruno Haible  <bruno@clisp.org>
20363
20364         Tests for module 'uninorm/u32-normcoll'.
20365         * modules/uninorm/u32-normcoll-tests: New file.
20366         * tests/uninorm/test-u32-normcoll.c: New file.
20367
20368         Tests for module 'uninorm/u16-normcoll'.
20369         * modules/uninorm/u16-normcoll-tests: New file.
20370         * tests/uninorm/test-u16-normcoll.c: New file.
20371
20372         Tests for module 'uninorm/u8-normcoll'.
20373         * modules/uninorm/u8-normcoll-tests: New file.
20374         * tests/uninorm/test-u8-normcoll.c: New file.
20375
20376 2009-03-07  Bruno Haible  <bruno@clisp.org>
20377
20378         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20379         tests/uninorm/test-u32-normcmp.c.
20380         * tests/uninorm/test-u32-normcmp.c: Include it.
20381         (test_nonascii): New function, extracted from main. Add some more
20382         tests.
20383         (main): Invoke test_ascii and test_nonascii.
20384         * modules/uninorm/u32-normcmp-tests (Files): Add
20385         tests/uninorm/test-u32-normcmp.h.
20386         (Depends-on): Remove uninorm/u32-normcmp.
20387
20388         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20389         tests/uninorm/test-u16-normcmp.c.
20390         * tests/uninorm/test-u16-normcmp.c: Include it.
20391         (test_nonascii): New function, extracted from main. Add some more
20392         tests.
20393         (main): Invoke test_ascii and test_nonascii.
20394         * modules/uninorm/u16-normcmp-tests (Files): Add
20395         tests/uninorm/test-u16-normcmp.h.
20396         (Depends-on): Remove uninorm/u16-normcmp.
20397
20398         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20399         tests/uninorm/test-u8-normcmp.c.
20400         * tests/uninorm/test-u8-normcmp.c: Include it.
20401         (test_nonascii): New function, extracted from main. Add some more
20402         tests.
20403         (main): Invoke test_ascii and test_nonascii.
20404         * modules/uninorm/u8-normcmp-tests (Files): Add
20405         tests/uninorm/test-u8-normcmp.h.
20406         (Depends-on): Remove uninorm/u8-normcmp.
20407
20408 2009-03-07  Bruno Haible  <bruno@clisp.org>
20409
20410         New module 'uninorm/u32-normcoll'.
20411         * lib/uninorm/u32-normcoll.c: New file.
20412         * modules/uninorm/u32-normcoll: New file.
20413
20414         New module 'uninorm/u16-normcoll'.
20415         * lib/uninorm/u16-normcoll.c: New file.
20416         * modules/uninorm/u16-normcoll: New file.
20417
20418         New module 'uninorm/u8-normcoll'.
20419         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20420         declarations.
20421         * lib/uninorm/u8-normcoll.c: New file.
20422         * lib/uninorm/u-normcoll.h: New file.
20423         * modules/uninorm/u8-normcoll: New file.
20424
20425         New module 'uninorm/u32-normxfrm'.
20426         * lib/uninorm/u32-normxfrm.c: New file.
20427         * modules/uninorm/u32-normxfrm: New file.
20428
20429         New module 'uninorm/u16-normxfrm'.
20430         * lib/uninorm/u16-normxfrm.c: New file.
20431         * modules/uninorm/u16-normxfrm: New file.
20432
20433         New module 'uninorm/u8-normxfrm'.
20434         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20435         declarations.
20436         * lib/uninorm/u8-normxfrm.c: New file.
20437         * lib/uninorm/u-normxfrm.h: New file.
20438         * modules/uninorm/u8-normxfrm: New file.
20439
20440 2009-03-07  Bruno Haible  <bruno@clisp.org>
20441
20442         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20443         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20444         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20445
20446 2009-03-07  Bruno Haible  <bruno@clisp.org>
20447
20448         New module 'memxfrm'.
20449         * lib/memxfrm.h: New file.
20450         * lib/memxfrm.c: New file.
20451         * modules/memxfrm: New file.
20452
20453 2009-03-07  Bruno Haible  <bruno@clisp.org>
20454
20455         New module 'memcmp2'.
20456         * lib/memcmp2.h: New file.
20457         * lib/memcmp2.c: New file.
20458         * modules/memcmp2: New file.
20459
20460 2009-03-07  Bruno Haible  <bruno@clisp.org>
20461
20462         Tests for module 'uninorm/decomposing-form'.
20463         * modules/uninorm/decomposing-form-tests: New file.
20464         * tests/uninorm/test-decomposing-form.c: New file.
20465
20466         New module 'uninorm/decomposing-form'.
20467         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20468         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20469         Add 'decomposing_variant' field.
20470         * lib/uninorm/decomposing-form.c: New file.
20471         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20472         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20473         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20474         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20475         * modules/uninorm/decomposing-form: New file.
20476         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20477         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20478
20479 2009-03-07  Bruno Haible  <bruno@clisp.org>
20480
20481         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20482         strings.
20483
20484 2009-03-06  Bruno Haible  <bruno@clisp.org>
20485
20486         Tests for module 'uninorm/u32-normcmp'.
20487         * tests/uninorm/test-u32-normcmp.c: New file.
20488         * modules/uninorm/u32-normcmp-tests: New file.
20489
20490         Tests for module 'uninorm/u16-normcmp'.
20491         * tests/uninorm/test-u16-normcmp.c: New file.
20492         * modules/uninorm/u16-normcmp-tests: New file.
20493
20494         Tests for module 'uninorm/u8-normcmp'.
20495         * tests/uninorm/test-u8-normcmp.c: New file.
20496         * modules/uninorm/u8-normcmp-tests: New file.
20497
20498         New module 'uninorm/u32-normcmp'.
20499         * lib/uninorm/u32-normcmp.c: New file.
20500         * modules/uninorm/u32-normcmp: New file.
20501
20502         New module 'uninorm/u16-normcmp'.
20503         * lib/uninorm/u16-normcmp.c: New file.
20504         * modules/uninorm/u16-normcmp: New file.
20505
20506         New module 'uninorm/u8-normcmp'.
20507         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20508         declarations.
20509         * lib/uninorm/u8-normcmp.c: New file.
20510         * lib/uninorm/u-normcmp.h: New file.
20511         * modules/uninorm/u8-normcmp: New file.
20512
20513 2009-03-06  Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20516         Reported by Eric Blake.
20517
20518 2009-03-06  Eric Blake  <ebb9@byu.net>
20519             Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20522         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20523         condition.
20524         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20525         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20526         condition.
20527         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20528
20529 2009-03-06  Eric Blake  <ebb9@byu.net>
20530
20531         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20532         to avoid compiler warnings.
20533         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20534
20535 2009-03-05  Bruno Haible  <bruno@clisp.org>
20536
20537         * tests/test-ftell.c (main): Disable test beyond end of file on
20538         FreeMiNT.
20539         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20540
20541 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20542
20543         * lib/filevercmp.c: Move hidden files up in ordering.
20544         * tests/test-filevercmp.c: Add tests for hidden files.
20545
20546 2009-03-04  Bruno Haible  <bruno@clisp.org>
20547
20548         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20549         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20550         AM_CFLAGS.
20551         Reported by Simon Josefsson.
20552
20553 2009-03-03  Bruno Haible  <bruno@clisp.org>
20554
20555         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20556         Reported by Simon Josefsson.
20557
20558         * doc/ld-version-script.texi: Update node reference.
20559
20560 2009-03-03  Bruno Haible  <bruno@clisp.org>
20561
20562         * modules/visibility (License): Change to 'unlimited'.
20563         Suggested by Simon Josefsson.
20564
20565 2009-03-03  Jim Meyering  <meyering@redhat.com>
20566
20567         unlinkdir: cannot_unlink_dir may modify process state
20568         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20569         it's neither thread-safe nor appropriate for use in a library.
20570
20571 2009-03-03  Eric Blake  <ebb9@byu.net>
20572
20573         test-closein: silence test under Darwin
20574         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20575         care if it dies from EPIPE or EBADF.
20576
20577 2009-03-03  Bruno Haible  <bruno@clisp.org>
20578
20579         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20580         earlier.
20581         * doc/visibility.texi: Fix @node and @section.
20582
20583 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20584
20585         * doc/gnulib.texi: Link to sections for ld version script and
20586         visibility.
20587         * doc/visibility.texi: Add @node and @section.
20588         * modules/ld-version-script: New module.
20589         * m4/ld-version-script.m4: New file.
20590         * doc/ld-version-script.texi: New file.
20591
20592 2009-03-02  David Lutterkort  <lutter@redhat.com>
20593
20594         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20596
20597 2009-03-02  Bruno Haible  <bruno@clisp.org>
20598
20599         * doc/visibility.texi: Mention libtool's -export-symbols option.
20600
20601 2009-03-02  Jim Meyering  <meyering@redhat.com>
20602
20603         announce-gen: new option: --no-print-checksums
20604         * build-aux/announce-gen (usage): Describe it.
20605         (print_checksums): Print a newline here, not in the [*] footnote.
20606         (main): Honor it.
20607
20608 2009-03-01  Bruno Haible  <bruno@clisp.org>
20609
20610         Use socklen_t in the native Windows replacements prototypes.
20611         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20612         instead of 'int'.
20613         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20614         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20615         * modules/getsockopt (Depends-on): Add socklen.
20616         * modules/setsockopt (Depends-on): Add socklen.
20617
20618 2009-03-01  Bruno Haible  <bruno@clisp.org>
20619
20620         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20621         least 4.2.
20622
20623 2009-03-01  Eric Blake  <ebb9@byu.net>
20624             Bruno Haible  <bruno@clisp.org>
20625
20626         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20627         error messages.
20628         * lib/wait-process.c (wait_subprocess): Omit error message about
20629         deadly signal sent to the child of termsigp != NULL.
20630
20631 2009-03-01  Eric Blake  <ebb9@byu.net>
20632
20633         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20634
20635 2009-03-01  Bruno Haible  <bruno@clisp.org>
20636
20637         Avoid a gcc warning.
20638         * tests/test-sched.c (b): Make global.
20639         Reported by Eric Blake.
20640
20641 2009-01-19  Martin Lambers  <marlam@marlam.de>
20642
20643         Provide POSIX semantics for socket timeout options on W32.
20644         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20645         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20646         * modules/setsockopt: Depend on sys_time module for struct timeval.
20647         * modules/getsockopt: Depend on sys_time module for struct timeval.
20648
20649 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20650
20651         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20652         __USE_GNU, for consistency with netdb.in.h.
20653         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20654
20655 2009-03-01  Bruno Haible  <bruno@clisp.org>
20656
20657         More support for FreeMiNT.
20658         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20659         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20660
20661 2009-03-01  Bruno Haible  <bruno@clisp.org>
20662
20663         More support for FreeMiNT.
20664         * lib/fpurge.c (fpurge): Correct last commit.
20665         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20666
20667 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20668
20669         Fix unportable awk script in vc-list-files.
20670         * build-aux/vc-list-files: In the replacement awk script, use
20671         substr with a second argument of 1, not zero.
20672         Report by Simon Josefsson.
20673
20674 2009-02-28  Bruno Haible  <bruno@clisp.org>
20675
20676         More support for FreeMiNT.
20677         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20678         to FreeMiNT today.
20679         * lib/fwriting.c (fwriting): Likewise.
20680         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20681
20682 2009-02-28  Bruno Haible  <bruno@clisp.org>
20683
20684         * tests/test-freadseek.c (main): Disable test beyond end of file on
20685         FreeMiNT.
20686         * tests/test-ftello.c (main): Likewise.
20687         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20688
20689 2009-02-28  Bruno Haible  <bruno@clisp.org>
20690
20691         Add tentative support for FreeMiNT.
20692         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20693         * lib/fpurge.c (fpurge): Likewise.
20694         * lib/freadable.c (freadable): Likewise.
20695         * lib/freading.c (freading): Likewise.
20696         * lib/freadptr.c (freadptr): Likewise.
20697         * lib/freadseek.c (freadptrinc): Likewise.
20698         * lib/fseeko.c (rpl_fseeko): Likewise.
20699         * lib/fseterr.c (fseterr): Likewise.
20700         * lib/fwritable.c (fwritable): Likewise.
20701         * lib/fwriting.c (fwriting): Likewise.
20702         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20703         Hourihane.
20704         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20705
20706 2009-02-28  Bruno Haible  <bruno@clisp.org>
20707
20708         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20709         SIGCHLD.
20710         Reported by Jim Meyering.
20711
20712 2009-02-28  Bruno Haible  <bruno@clisp.org>
20713
20714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20715         Mention the results of these tests on various platforms.
20716         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20717         order.
20718         * doc/posix-functions/printf.texi: Likewise.
20719         * doc/posix-functions/snprintf.texi: Likewise.
20720         * doc/posix-functions/sprintf.texi: Likewise.
20721         * doc/posix-functions/vfprintf.texi: Likewise.
20722         * doc/posix-functions/vprintf.texi: Likewise.
20723         * doc/posix-functions/vsnprintf.texi: Likewise.
20724         * doc/posix-functions/vsprintf.texi: Likewise.
20725         * doc/glibc-functions/obstack_printf.texi: Likewise.
20726         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20727
20728 2009-02-28  Bruno Haible  <bruno@clisp.org>
20729
20730         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20731         Reported by Loïc Minier <lool@dooz.org>.
20732
20733 2009-02-27  Bruno Haible  <bruno@clisp.org>
20734
20735         * gnulib-tool (func_import): Make the sed expression used to create the
20736         sed script for updating the .gitignore file POSIX compliant.
20737         Reported by Eric Blake.
20738
20739 2009-02-27  Bruno Haible  <bruno@clisp.org>
20740
20741         * gnulib-tool (sed): Don't alias as "sed --posix".
20742         Reported by Eric Blake.
20743
20744 2009-02-27  Bruno Haible  <bruno@clisp.org>
20745
20746         Avoid test link errors.
20747         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20748         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20749         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20750         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20752
20753 2009-02-27  Bruno Haible  <bruno@clisp.org>
20754
20755         Avoid spurious "(cached)" in configure output.
20756         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20757         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20758         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20759         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20760         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20761         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20762         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20763         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20764         Reported by Eric Blake.
20765
20766 2009-02-27  Eric Blake  <ebb9@byu.net>
20767
20768         printf: fix regression in previous patch
20769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20770
20771 2009-02-27  Bruno Haible  <bruno@clisp.org>
20772
20773         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20774         value.
20775         * lib/stdint.in.h: Likewise.
20776         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20777
20778 2009-02-27  Eric Blake  <ebb9@byu.net>
20779
20780         doc: mention more functions added in cygwin 1.7.0
20781         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20782         addition.
20783         * doc/posix-functions/open_wmemstream.texi: Likewise.
20784         * doc/posix-functions/wcsnlen.texi: Likewise.
20785         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20786         * doc/posix-functions/wcstod.texi: Likewise.
20787         * doc/posix-functions/wcstof.texi: Likewise.
20788         * doc/posix-functions/wcstoimax.texi: Likewise.
20789         * doc/posix-functions/wcstok.texi: Likewise.
20790         * doc/posix-functions/wcstoumax.texi: Likewise.
20791
20792         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20794         * doc/posix-functions/fprintf.texi: Update.
20795         * doc/posix-functions/printf.texi: Update.
20796         * doc/posix-functions/snprintf.texi: Update.
20797         * doc/posix-functions/sprintf.texi: Update.
20798         * doc/posix-functions/vfprintf.texi: Update.
20799         * doc/posix-functions/vprintf.texi: Update.
20800         * doc/posix-functions/vsnprintf.texi: Update.
20801         * doc/posix-functions/vsprintf.texi: Update.
20802         * doc/glibc-functions/obstack_printf.texi: Update.
20803         * doc/glibc-functions/obstack_vprintf.texi: Update.
20804
20805 2009-02-26  Eric Blake  <ebb9@byu.net>
20806
20807         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20808         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20809         compilation bug by using runtime conversion.
20810         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20811         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20812         * modules/ceill-tests (Files): Use nan.h.
20813         * modules/floorl-tests (Files): Likewise.
20814         * modules/frexpl-tests (Files): Likewise.
20815         * modules/isnanl-tests (Files): Likewise.
20816         * modules/ldexpl-tests (Files): Likewise.
20817         * modules/roundl-tests (Files): Likewise.
20818         * modules/truncl-tests (Files): Likewise.
20819         * tests/test-ceill.c (main): Use a working NaN.
20820         * tests/test-floorl.c (main): Likewise.
20821         * tests/test-frexpl.c (main): Likewise.
20822         * tests/test-isnan.c (test_long_double): Likewise.
20823         * tests/test-isnanl.h (main): Likewise.
20824         * tests/test-ldexpl.h (main): Likewise.
20825         * tests/test-roundl.h (main): Likewise.
20826         * tests/test-truncl.h (main): Likewise.
20827         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20828
20829 2009-02-26  Eric Blake  <ebb9@byu.net>
20830             Bruno Haible  <bruno@clisp.org>
20831
20832         Work around a *printf bug with %ls on Solaris.
20833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20834         precision is specified, sprintf stops converting the wide string
20835         argument when the number of bytes that have been produced by this
20836         conversion equals or exceeds the precision.
20837         * doc/posix-functions/fprintf.texi: Update.
20838         * doc/posix-functions/printf.texi: Update.
20839         * doc/posix-functions/snprintf.texi: Update.
20840         * doc/posix-functions/sprintf.texi: Update.
20841         * doc/posix-functions/vfprintf.texi: Update.
20842         * doc/posix-functions/vprintf.texi: Update.
20843         * doc/posix-functions/vsnprintf.texi: Update.
20844         * doc/posix-functions/vsprintf.texi: Update.
20845         * doc/glibc-functions/obstack_printf.texi: Update.
20846         * doc/glibc-functions/obstack_vprintf.texi: Update.
20847
20848 2009-02-26  Eric Blake  <ebb9@byu.net>
20849
20850         stdlib: favor compiler check of random.h
20851         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
20852         to avoid an ObjC random.h installed by Swarm.
20853
20854 2009-02-26  Bruno Haible  <bruno@clisp.org>
20855
20856         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
20857         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
20858         Reported by Gary V. Vaughan <gary@gnu.org>.
20859
20860 2009-02-26  Bruno Haible  <bruno@clisp.org>
20861
20862         Fix *printf behaviour regarding the %ls directive.
20863         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
20864         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
20865         NEED_PRINTF_DIRECTIVE_LS.
20866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
20867         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20869         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
20870         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
20871         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
20872         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20877         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
20878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20881         * doc/posix-functions/fprintf.texi: Update.
20882         * doc/posix-functions/printf.texi: Update.
20883         * doc/posix-functions/snprintf.texi: Update.
20884         * doc/posix-functions/sprintf.texi: Update.
20885         * doc/posix-functions/vfprintf.texi: Update.
20886         * doc/posix-functions/vprintf.texi: Update.
20887         * doc/posix-functions/vsnprintf.texi: Update.
20888         * doc/posix-functions/vsprintf.texi: Update.
20889         * doc/glibc-functions/obstack_printf.texi: Update.
20890         * doc/glibc-functions/obstack_vprintf.texi: Update.
20891         Reported by Eric Blake.
20892
20893 2009-02-25  Bruno Haible  <bruno@clisp.org>
20894
20895         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
20896         with known value.
20897         Reported by Gary V. Vaughan <gary@gnu.org>.
20898
20899 2009-02-25  Bruno Haible  <bruno@clisp.org>
20900
20901         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
20902         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
20903         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
20904         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
20905         Reported by Gary V. Vaughan <gary@gnu.org>.
20906
20907 2009-02-25  Bruno Haible  <bruno@clisp.org>
20908
20909         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
20910         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
20911         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
20912         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
20913         Reported by Gary V. Vaughan <gary@gnu.org>.
20914
20915 2009-02-25  Eric Blake  <ebb9@byu.net>
20916
20917         tests: skip fseek/ftell tests if ungetc is broken
20918         * m4/ungetc.m4: New file.
20919         * modules/fseek-tests: Split test, so ungetc dependency is
20920         separate from rest of test.
20921         * modules/fseeko-tests: Likewise.
20922         * modules/ftell-tests: Likewise.
20923         * modules/ftello-tests: Likewise.
20924         * tests/test-fseek.c (main): Isolate ungetc dependency.
20925         * tests/test-fseeko.c (main): Likewise.
20926         * tests/test-ftell.c (main): Likewise.
20927         * tests/test-ftello.c (main): Likewise.
20928         * tests/test-fseek2.sh: New file.
20929         * tests/test-fseeko2.sh: Likewise.
20930         * tests/test-ftell2.sh: Likewise.
20931         * tests/test-ftello2.sh: Likewise.
20932
20933 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
20934
20935         test-getaddrinfo: fix usage of skip return code 77
20936         * tests/test-gettaddrinfo.c: Return skip code 77 only
20937         for first occurance of skip (4x77 is not 77)
20938
20939 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
20940
20941         strtod: avoid C99 decl-after-statement
20942         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
20943
20944 2009-02-24  Eric Blake  <ebb9@byu.net>
20945
20946         strtod: detect HP-UX 11.31 bug
20947         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
20948         Reported by Gary V. Vaughan.
20949
20950 2009-02-23  Bruno Haible  <bruno@clisp.org>
20951
20952         Fix invalid read past end of memory block.
20953         * lib/vasnprintf.c (DCHAR_SET): Define.
20954         (local_wcslen): Define only when needed.
20955         (local_strnlen, local_wcsnlen): New functions.
20956         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
20957         directives that involve a conversion ourselves.
20958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
20959         wcsnlen, mbrtowc, wcrtomb.
20960         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
20961         * tests/test-vasprintf-posix.c (test_function): Likewise.
20962         * tests/test-snprintf-posix.h (test_function): Likewise.
20963         * tests/test-sprintf-posix.h (test_function): Likewise.
20964         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20965
20966 2009-02-22  Bruno Haible  <bruno@clisp.org>
20967
20968         Implement new clarified decomposition of Hangul syllables.
20969         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
20970         of type LTV, return only a pairwise decomposition.
20971         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
20972         Likewise.
20973         * tests/uninorm/test-decomposition.c (main): Updated expected result.
20974         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
20975         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
20976
20977 2009-02-22  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
20980         zero-length results and shrink excess allocated memory.
20981         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
20982         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
20983         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
20984         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
20985         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
20986         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
20987         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
20988         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
20989         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
20990         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
20991         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
20992         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
20993
20994 2009-02-21  Bruno Haible  <bruno@clisp.org>
20995
20996         * doc/gnulib.texi: Include safe-alloc.texi earlier.
20997         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
20998         spaces after a period. Put a space between a macro name and its
20999         argument list. Trivial rewordings.
21000         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21001         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21002         (main): Return 0 explicitly.
21003
21004 2009-02-21  Bruno Haible  <bruno@clisp.org>
21005
21006         Tests for module 'uninorm/filter'.
21007         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21008         * modules/uninorm/filter-tests: New file.
21009
21010         New module 'uninorm/filter'.
21011         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21012         uninorm_filter_flush, uninorm_filter_free): New declarations.
21013         * lib/uninorm/uninorm-filter.c: New file.
21014         * modules/uninorm/filter: New file.
21015
21016 2009-02-21  Bruno Haible  <bruno@clisp.org>
21017
21018         Tests for module 'uninorm/nfkc'.
21019         * tests/uninorm/test-nfkc.c: New file.
21020         * tests/uninorm/test-u8-nfkc.c: New file.
21021         * tests/uninorm/test-u16-nfkc.c: New file.
21022         * tests/uninorm/test-u32-nfkc.c: New file.
21023         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21024         * tests/uninorm/test-u32-nfkc-big.c: New file.
21025         * modules/uninorm/nfkc-tests: New file.
21026
21027         New module 'uninorm/nfkc'.
21028         * lib/uninorm/nfkc.c: New file.
21029         * modules/uninorm/nfkc: New file.
21030
21031         Tests for module 'uninorm/nfkd'.
21032         * tests/uninorm/test-nfkd.c: New file.
21033         * tests/uninorm/test-u8-nfkd.c: New file.
21034         * tests/uninorm/test-u16-nfkd.c: New file.
21035         * tests/uninorm/test-u32-nfkd.c: New file.
21036         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21037         * tests/uninorm/test-u32-nfkd-big.c: New file.
21038         * modules/uninorm/nfkd-tests: New file.
21039
21040         New module 'uninorm/nfkd'.
21041         * lib/uninorm/nfkd.c: New file.
21042         * modules/uninorm/nfkd: New file.
21043
21044         Tests for module 'uninorm/nfc'.
21045         * tests/uninorm/test-nfc.c: New file.
21046         * tests/uninorm/test-u8-nfc.c: New file.
21047         * tests/uninorm/test-u16-nfc.c: New file.
21048         * tests/uninorm/test-u32-nfc.c: New file.
21049         * tests/uninorm/test-u32-nfc-big.sh: New file.
21050         * tests/uninorm/test-u32-nfc-big.c: New file.
21051         * modules/uninorm/nfc-tests: New file.
21052
21053         New module 'uninorm/nfc'.
21054         * lib/uninorm/nfc.c: New file.
21055         * modules/uninorm/nfc: New file.
21056
21057         Tests for module 'uninorm/nfd'.
21058         * tests/uninorm/test-nfd.c: New file.
21059         * tests/uninorm/test-u8-nfd.c: New file.
21060         * tests/uninorm/test-u16-nfd.c: New file.
21061         * tests/uninorm/test-u32-nfd.c: New file.
21062         * tests/uninorm/test-u32-nfd-big.sh: New file.
21063         * tests/uninorm/test-u32-nfd-big.c: New file.
21064         * tests/uninorm/test-u32-normalize-big.h: New file.
21065         * tests/uninorm/test-u32-normalize-big.c: New file.
21066         * tests/uninorm/NormalizationTest.txt: New file, created from
21067         Unicode 5.1.0 NormalizationTest.txt.
21068         * modules/uninorm/nfd-tests: New file.
21069
21070         New module 'uninorm/nfd'.
21071         * lib/uninorm/nfd.c: New file.
21072         * modules/uninorm/nfd: New file.
21073
21074         New module 'uninorm/u32-normalize'.
21075         * lib/uninorm/u32-normalize.c: New file.
21076         * modules/uninorm/u32-normalize: New file.
21077
21078         New module 'uninorm/u16-normalize'.
21079         * lib/uninorm/u16-normalize.c: New file.
21080         * modules/uninorm/u16-normalize: New file.
21081
21082         New module 'uninorm/u8-normalize'.
21083         * lib/uninorm/u8-normalize.c: New file.
21084         * lib/uninorm/normalize-internal.h: New file.
21085         * lib/uninorm/u-normalize-internal.h: New file.
21086         * modules/uninorm/u8-normalize: New file.
21087
21088         New module 'uninorm/decompose-internal'.
21089         * lib/uninorm/decompose-internal.c: New file.
21090         * modules/uninorm/decompose-internal: New file.
21091
21092         Tests for module 'uninorm/composition'.
21093         * tests/uninorm/test-composition.c: New file.
21094         * modules/uninorm/composition-tests: New file.
21095
21096         New module 'uninorm/composition'.
21097         * lib/uninorm/composition.c: New file.
21098         * lib/uninorm/composition-table.gperf: New file, generated by
21099         gen-uni-tables.
21100         * modules/uninorm/composition: New file.
21101
21102         Tests for module 'uninorm/compat-decomposition'.
21103         * tests/uninorm/test-compat-decomposition.c: New file.
21104         * modules/uninorm/compat-decomposition-tests: New file.
21105
21106         New module 'uninorm/compat-decomposition'.
21107         * lib/uninorm/decompose-internal.h: New file.
21108         * lib/uninorm/compat-decomposition.c: New file.
21109         * modules/uninorm/compat-decomposition: New file.
21110
21111         Tests for module 'uninorm/canonical-decomposition'.
21112         * tests/uninorm/test-canonical-decomposition.c: New file.
21113         * modules/uninorm/canonical-decomposition-tests: New file.
21114
21115         New module 'uninorm/canonical-decomposition'.
21116         * lib/uninorm/canonical-decomposition.c: New file.
21117         * modules/uninorm/canonical-decomposition: New file.
21118
21119         Tests for module 'uninorm/decomposition'.
21120         * tests/uninorm/test-decomposition.c: New file.
21121         * modules/uninorm/decomposition-tests: New file.
21122
21123         New module 'uninorm/decomposition'.
21124         * lib/uninorm/decomposition.c: New file.
21125         * modules/uninorm/decomposition: New file.
21126
21127         New module 'uninorm/decomposition-table'.
21128         * lib/uninorm/decomposition-table.h: New file.
21129         * lib/uninorm/decomposition-table.c: New file.
21130         * lib/uninorm/decomposition-table1.h: New file, generated by
21131         gen-uni-tables.
21132         * lib/uninorm/decomposition-table2.h: New file, generated by
21133         gen-uni-tables.
21134         * modules/uninorm/decomposition-table: New file.
21135
21136         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21137         (UC_DECOMP_*): New enumeration items.
21138         (get_decomposition): New function.
21139         (struct decomp_table): New type.
21140         (output_decomposition, output_decomposition_tables): New functions.
21141         (unicode_composition_exclusions): New variable.
21142         (fill_composition_exclusions, debug_output_composition_tables): New
21143         functions.
21144         (main): Accept one more argument. Invoke fill_composition_exclusions.
21145         Output decomposition and composition tables.
21146
21147         New module 'uninorm/base'.
21148         * lib/uninorm.h: New file.
21149         * lib/unictype.h: Update comment.
21150         * modules/uninorm/base: New file.
21151
21152 2009-02-21  David Lutterkort  <lutter@redhat.com>
21153
21154         Tests for module 'safe-alloc'.
21155         * tests/test-safe-alloc.c: New file.
21156         * modules/safe-alloc-tests: New file.
21157
21158         New module 'safe-alloc'.
21159         * lib/safe-alloc.h: New file.
21160         * lib/safe-alloc.c: New file.
21161         * m4/safe-alloc.m4: New file.
21162         * modules/safe-alloc: New file.
21163         * doc/safe-alloc.texi: New file.
21164         * doc/gnulib.texi: Include it.
21165         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21166         safe-alloc.
21167
21168 2009-02-18  Bruno Haible  <bruno@clisp.org>
21169
21170         Fix link error on non-glibc systems.
21171         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21172         variable.
21173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21174
21175 2009-02-18  Jim Meyering  <meyering@redhat.com>
21176
21177         fts: avoid used-uninitialized error due to recent change
21178         * lib/fts.c (fts_read): Guard uses of the new member,
21179         parent->fts_n_dirs_remaining, since it's not relevant for
21180         the parent of a directory specified on the command-line.
21181
21182 2009-02-17  James Youngman  <jay@gnu.org>
21183             Bruno Haible  <bruno@clisp.org>
21184
21185         * m4/include_next.m4: Reformulate comment.
21186
21187 2009-02-16  Jim Meyering  <meyering@redhat.com>
21188
21189         fts: add #if guards so that the fts_lgpl module still builds
21190         * lib/fts.c: Guard just-added hash-table-using parts with
21191         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21192         Reported by Simon Josefsson.
21193
21194 2009-02-15  Bruno Haible  <bruno@clisp.org>
21195
21196         * modules/array-mergesort-tests: New file.
21197         * tests/test-array-mergesort.c: New file.
21198
21199         New module 'array-mergesort'.
21200         * modules/array-mergesort: New file.
21201         * lib/array-mergesort.h: New file.
21202
21203 2009-02-15  Bruno Haible  <bruno@clisp.org>
21204
21205         Fix 2009-02-07 commit.
21206         * lib/gen-uni-tables.c (output_predicate, output_category,
21207         output_combclass, output_bidi_category, output_decimal_digit,
21208         output_digit, output_numeric, output_mirror, output_scripts,
21209         output_ident_category, output_simple_mapping): Fix format directives.
21210         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21211
21212 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21213
21214         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21215         fixes are available from IBM.
21216
21217 2009-02-13  Jim Meyering  <meyering@redhat.com>
21218
21219         fts: arrange not to stat non-directories in more cases
21220         This makes GNU find (when it doesn't need to stat each file)
21221         *much* more efficient at traversing reiserfs file systems.
21222         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21223         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21224         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21225         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21226         (leaf_optimization_applies): New function.
21227         (LCO_hash, LCO_compare): New helper functions.
21228         (link_count_optimize_ok): New function.
21229         (fts_stat): Initialize new member (if dir).
21230         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21231         we've just stat'ed a directory.  Skip the stat call when possible.
21232         ---
21233         Note this AFS-related exchange:
21234         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21235         and note find's pioctl call in find/fstype.c.
21236         But that is necessary only if you want to enable the
21237         optimization for AFS, and for now, I don't.
21238
21239         fts: move a function definition "up" (no semantic change)
21240         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21241         "up" to precede upcoming use of a related function.
21242
21243 2009-02-11  Jim Meyering  <meyering@redhat.com>
21244
21245         fts: correct internal computation of nlinks (optimization-related)
21246         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21247         whether the current entry is a directory, so don't test it.
21248
21249 2009-02-10  Bruno Haible  <bruno@clisp.org>
21250
21251         Tests for module 'uniwbrk/ulc-wordbreaks'.
21252         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21253         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21254         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21255
21256         Tests for module 'uniwbrk/u32-wordbreaks'.
21257         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21258         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21259
21260         Tests for module 'uniwbrk/u16-wordbreaks'.
21261         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21262         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21263
21264         Tests for module 'uniwbrk/u8-wordbreaks'.
21265         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21266         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21267
21268 2009-02-10  Bruno Haible  <bruno@clisp.org>
21269
21270         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21271         property.
21272         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21273         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21274         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21275
21276 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21277
21278         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21279         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21280
21281 2009-02-10  Bruno Haible  <bruno@clisp.org>
21282
21283         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21284         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21285         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21286         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21287         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21288         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21289
21290 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21291
21292         * lib/sockets.h (gl_fd_to_handle): New function.
21293
21294         * tests/test-sockets.c: Call gl_fd_to_handle.
21295
21296 2009-02-09  Bruno Haible  <bruno@clisp.org>
21297
21298         * doc/havelib.texi: Document the conventions on bi-arch systems.
21299
21300 2009-02-08  Bruno Haible  <bruno@clisp.org>
21301
21302         Document the AC_LIB_LINKFLAGS macro.
21303         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21304         * doc/gnulib.texi: Include it.
21305
21306 2009-02-08  Bruno Haible  <bruno@clisp.org>
21307
21308         Fix wrong order of sections, compared to TOC.
21309         * doc/gnulib.texi: Include relocatable-maint.texi after the
21310         "Regular expressions" node, not before.
21311
21312 2009-02-08  Bruno Haible  <bruno@clisp.org>
21313
21314         Tests for module 'unicase/totitle'.
21315         * modules/unicase/totitle-tests: New file.
21316
21317         Tests for module 'unicase/tolower'.
21318         * modules/unicase/tolower-tests: New file.
21319
21320         Tests for module 'unicase/toupper'.
21321         * modules/unicase/toupper-tests: New file.
21322         * tests/unicase/test-mapping-part1.h: New file.
21323         * tests/unicase/test-mapping-part2.h: New file.
21324
21325         New module 'unicase/totitle'.
21326         * modules/unicase/totitle: New file.
21327         * lib/unicase/totitle.c: New file.
21328
21329         New module 'unicase/tolower'.
21330         * modules/unicase/tolower: New file.
21331         * lib/unicase/tolower.c: New file.
21332
21333         New module 'unicase/toupper'.
21334         * modules/unicase/toupper: New file.
21335         * lib/unicase/toupper.c: New file.
21336         * lib/unicase/simple-mapping.h: New file.
21337
21338         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21339         (mapping_table): New structure.
21340         (output_simple_mapping): New function.
21341         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21342         * modules/gen-uni-tables (Description): Update.
21343         * lib/unicase/toupper.h: New file, automatically generated by
21344         gen-uni-tables.
21345         * lib/unicase/tolower.h: New file, automatically generated by
21346         gen-uni-tables.
21347         * lib/unicase/totitle.h: New file, automatically generated by
21348         gen-uni-tables.
21349         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21350         gen-uni-tables.
21351         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21352         gen-uni-tables.
21353         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21354         gen-uni-tables.
21355
21356         New module 'unicase/base'.
21357         * modules/unicase/base: New file.
21358         * lib/unicase.h: New file.
21359
21360 2009-02-08  Bruno Haible  <bruno@clisp.org>
21361
21362         New module 'uniwbrk/ulc-wordbreaks'.
21363         * modules/uniwbrk/ulc-wordbreaks: New file.
21364         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21365
21366         New module 'uniwbrk/u32-wordbreaks'.
21367         * modules/uniwbrk/u32-wordbreaks: New file.
21368         * lib/uniwbrk/u32-wordbreaks.c: New file.
21369
21370         New module 'uniwbrk/u16-wordbreaks'.
21371         * modules/uniwbrk/u16-wordbreaks: New file.
21372         * lib/uniwbrk/u16-wordbreaks.c: New file.
21373
21374         New module 'uniwbrk/u8-wordbreaks'.
21375         * modules/uniwbrk/u8-wordbreaks: New file.
21376         * lib/uniwbrk/u8-wordbreaks.c: New file.
21377         * lib/uniwbrk/u-wordbreaks.h: New file.
21378
21379         New module 'uniwbrk/table'.
21380         * modules/uniwbrk/table: New file.
21381         * lib/uniwbrk/wbrktable.h: New file.
21382         * lib/uniwbrk/wbrktable.c: New file.
21383
21384         New module 'uniwbrk/wordbreak-property'.
21385         * modules/uniwbrk/wordbreak-property: New file.
21386         * lib/uniwbrk/wordbreak-property.c: New file.
21387
21388         * lib/gen-uni-tables.c (WBP_*): New enum items.
21389         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21390         (unicode_org_wbp): New variable.
21391         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21392         New functions.
21393         (wbp_table): New structure.
21394         (output_wbp, output_wbrk_tables): New functions.
21395         (main): Accept additional argument. Invoke fill_org_wbp,
21396         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21397         output_wbrk_tables.
21398         * modules/gen-uni-tables (Description): Update.
21399         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21400         gen-uni-tables.
21401
21402         New module 'uniwbrk/base'.
21403         * modules/uniwbrk/base: New file.
21404         * lib/uniwbrk.h: New file.
21405
21406 2009-02-08  Bruno Haible  <bruno@clisp.org>
21407
21408         Update to Unicode 5.1.0.
21409         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21410         U+2185..U+2188.
21411         (is_property_default_ignorable_code_point): Don't include characters
21412         of category Cc or Cs and not-a-characters.
21413         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21414         U+0D79, U+109E, U+109F, U+A60C.
21415         * lib/unictype/bidi_of.h: Regenerated.
21416         * lib/unictype/blocks.h: Regenerated.
21417         * lib/unictype/categ_C.h: Regenerated.
21418         * lib/unictype/categ_Cf.h: Regenerated.
21419         * lib/unictype/categ_Cn.h: Regenerated.
21420         * lib/unictype/categ_L.h: Regenerated.
21421         * lib/unictype/categ_Ll.h: Regenerated.
21422         * lib/unictype/categ_Lm.h: Regenerated.
21423         * lib/unictype/categ_Lo.h: Regenerated.
21424         * lib/unictype/categ_Lu.h: Regenerated.
21425         * lib/unictype/categ_M.h: Regenerated.
21426         * lib/unictype/categ_Mc.h: Regenerated.
21427         * lib/unictype/categ_Me.h: Regenerated.
21428         * lib/unictype/categ_Mn.h: Regenerated.
21429         * lib/unictype/categ_N.h: Regenerated.
21430         * lib/unictype/categ_Nd.h: Regenerated.
21431         * lib/unictype/categ_Nl.h: Regenerated.
21432         * lib/unictype/categ_No.h: Regenerated.
21433         * lib/unictype/categ_P.h: Regenerated.
21434         * lib/unictype/categ_Pd.h: Regenerated.
21435         * lib/unictype/categ_Pe.h: Regenerated.
21436         * lib/unictype/categ_Pf.h: Regenerated.
21437         * lib/unictype/categ_Pi.h: Regenerated.
21438         * lib/unictype/categ_Po.h: Regenerated.
21439         * lib/unictype/categ_Ps.h: Regenerated.
21440         * lib/unictype/categ_S.h: Regenerated.
21441         * lib/unictype/categ_Sk.h: Regenerated.
21442         * lib/unictype/categ_Sm.h: Regenerated.
21443         * lib/unictype/categ_So.h: Regenerated.
21444         * lib/unictype/categ_of.h: Regenerated.
21445         * lib/unictype/combining.h: Regenerated.
21446         * lib/unictype/ctype_alnum.h: Regenerated.
21447         * lib/unictype/ctype_alpha.h: Regenerated.
21448         * lib/unictype/ctype_graph.h: Regenerated.
21449         * lib/unictype/ctype_lower.h: Regenerated.
21450         * lib/unictype/ctype_print.h: Regenerated.
21451         * lib/unictype/ctype_punct.h: Regenerated.
21452         * lib/unictype/ctype_upper.h: Regenerated.
21453         * lib/unictype/decdigit.h: Regenerated.
21454         * lib/unictype/digit.h: Regenerated.
21455         * lib/unictype/mirror.h: Regenerated.
21456         * lib/unictype/numeric.h: Regenerated.
21457         * lib/unictype/pr_alphabetic.h: Regenerated.
21458         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21459         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21460         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21461         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21462         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21463         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21464         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21465         * lib/unictype/pr_combining.h: Regenerated.
21466         * lib/unictype/pr_dash.h: Regenerated.
21467         * lib/unictype/pr_decimal_digit.h: Regenerated.
21468         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21469         * lib/unictype/pr_deprecated.h: Regenerated.
21470         * lib/unictype/pr_diacritic.h: Regenerated.
21471         * lib/unictype/pr_extender.h: Regenerated.
21472         * lib/unictype/pr_format_control.h: Regenerated.
21473         * lib/unictype/pr_grapheme_base.h: Regenerated.
21474         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21475         * lib/unictype/pr_grapheme_link.h: Regenerated.
21476         * lib/unictype/pr_id_continue.h: Regenerated.
21477         * lib/unictype/pr_id_start.h: Regenerated.
21478         * lib/unictype/pr_ideographic.h: Regenerated.
21479         * lib/unictype/pr_ignorable_control.h: Regenerated.
21480         * lib/unictype/pr_lowercase.h: Regenerated.
21481         * lib/unictype/pr_math.h: Regenerated.
21482         * lib/unictype/pr_numeric.h: Regenerated.
21483         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21484         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21485         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21486         * lib/unictype/pr_other_id_continue.h: Regenerated.
21487         * lib/unictype/pr_other_lowercase.h: Regenerated.
21488         * lib/unictype/pr_other_math.h: Regenerated.
21489         * lib/unictype/pr_punctuation.h: Regenerated.
21490         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21491         * lib/unictype/pr_soft_dotted.h: Regenerated.
21492         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21493         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21494         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21495         * lib/unictype/pr_uppercase.h: Regenerated.
21496         * lib/unictype/pr_xid_continue.h: Regenerated.
21497         * lib/unictype/pr_xid_start.h: Regenerated.
21498         * lib/unictype/pr_zero_width.h: Regenerated.
21499         * lib/unictype/scripts.h: Regenerated.
21500         * lib/unictype/scripts_byname.gperf: Regenerated.
21501         * lib/unictype/sy_java_ident.h: Regenerated.
21502         * lib/unilbrk/lbrkprop1.h: Regenerated.
21503         * lib/unilbrk/lbrkprop2.h: Regenerated.
21504         * tests/unictype/test-categ_C.c: Regenerated.
21505         * tests/unictype/test-categ_Cf.c: Regenerated.
21506         * tests/unictype/test-categ_Cn.c: Regenerated.
21507         * tests/unictype/test-categ_L.c: Regenerated.
21508         * tests/unictype/test-categ_Ll.c: Regenerated.
21509         * tests/unictype/test-categ_Lm.c: Regenerated.
21510         * tests/unictype/test-categ_Lo.c: Regenerated.
21511         * tests/unictype/test-categ_Lu.c: Regenerated.
21512         * tests/unictype/test-categ_M.c: Regenerated.
21513         * tests/unictype/test-categ_Mc.c: Regenerated.
21514         * tests/unictype/test-categ_Me.c: Regenerated.
21515         * tests/unictype/test-categ_Mn.c: Regenerated.
21516         * tests/unictype/test-categ_N.c: Regenerated.
21517         * tests/unictype/test-categ_Nd.c: Regenerated.
21518         * tests/unictype/test-categ_Nl.c: Regenerated.
21519         * tests/unictype/test-categ_No.c: Regenerated.
21520         * tests/unictype/test-categ_P.c: Regenerated.
21521         * tests/unictype/test-categ_Pd.c: Regenerated.
21522         * tests/unictype/test-categ_Pe.c: Regenerated.
21523         * tests/unictype/test-categ_Pf.c: Regenerated.
21524         * tests/unictype/test-categ_Pi.c: Regenerated.
21525         * tests/unictype/test-categ_Po.c: Regenerated.
21526         * tests/unictype/test-categ_Ps.c: Regenerated.
21527         * tests/unictype/test-categ_S.c: Regenerated.
21528         * tests/unictype/test-categ_Sk.c: Regenerated.
21529         * tests/unictype/test-categ_Sm.c: Regenerated.
21530         * tests/unictype/test-categ_So.c: Regenerated.
21531         * tests/unictype/test-ctype_alnum.c: Regenerated.
21532         * tests/unictype/test-ctype_alpha.c: Regenerated.
21533         * tests/unictype/test-ctype_graph.c: Regenerated.
21534         * tests/unictype/test-ctype_lower.c: Regenerated.
21535         * tests/unictype/test-ctype_print.c: Regenerated.
21536         * tests/unictype/test-ctype_punct.c: Regenerated.
21537         * tests/unictype/test-ctype_upper.c: Regenerated.
21538         * tests/unictype/test-decdigit.h: Regenerated.
21539         * tests/unictype/test-digit.h: Regenerated.
21540         * tests/unictype/test-numeric.h: Regenerated.
21541         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21542         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21543         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21544         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21545         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21546         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21547         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21548         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21549         * tests/unictype/test-pr_combining.c: Regenerated.
21550         * tests/unictype/test-pr_dash.c: Regenerated.
21551         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21552         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21553         * tests/unictype/test-pr_deprecated.c: Regenerated.
21554         * tests/unictype/test-pr_diacritic.c: Regenerated.
21555         * tests/unictype/test-pr_extender.c: Regenerated.
21556         * tests/unictype/test-pr_format_control.c: Regenerated.
21557         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21558         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21559         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21560         * tests/unictype/test-pr_id_continue.c: Regenerated.
21561         * tests/unictype/test-pr_id_start.c: Regenerated.
21562         * tests/unictype/test-pr_ideographic.c: Regenerated.
21563         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21564         * tests/unictype/test-pr_lowercase.c: Regenerated.
21565         * tests/unictype/test-pr_math.c: Regenerated.
21566         * tests/unictype/test-pr_numeric.c: Regenerated.
21567         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21568         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21569         Regenerated.
21570         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21571         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21572         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21573         * tests/unictype/test-pr_other_math.c: Regenerated.
21574         * tests/unictype/test-pr_punctuation.c: Regenerated.
21575         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21576         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21577         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21578         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21579         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21580         * tests/unictype/test-pr_uppercase.c: Regenerated.
21581         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21582         * tests/unictype/test-pr_xid_start.c: Regenerated.
21583         * tests/unictype/test-pr_zero_width.c: Regenerated.
21584
21585         Update to Unicode 5.1.0.
21586         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21587         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21588         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21589         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21590         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21591         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21592         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21593         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21594         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21595         (nonspacing_table_ind): Update.
21596         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21597
21598         Update to Unicode 5.1.0.
21599         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21600         code transform.
21601         * lib/uniname/uniname.c (unicode_character_name,
21602         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21603         * lib/uniname/uninames.h: Regenerated.
21604         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21605
21606 2009-02-07  Bruno Haible  <bruno@clisp.org>
21607
21608         Merge gen-ctype and gen-lbrk into a single program.
21609         * lib/gen-uni-tables.c: New file, incorporating
21610         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21611         Add directory prefixes to the names of the generated files.
21612         * lib/unictype/gen-ctype.c: Remove file.
21613         * lib/unilbrk/gen-lbrk.c: Remove file.
21614         * modules/gen-uni-tables: New file.
21615         * modules/unictype/gen-ctype: Remove file.
21616         * modules/unilbrk/gen-lbrk: Remove file.
21617
21618 2009-02-07  Bruno Haible  <bruno@clisp.org>
21619
21620         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21621
21622         New module 'unistr/u32-strcoll'.
21623         * modules/unistr/u32-strcoll: New file.
21624         * lib/unistr/u32-strcoll.c: New file.
21625
21626         New module 'unistr/u16-strcoll'.
21627         * modules/unistr/u16-strcoll: New file.
21628         * lib/unistr/u16-strcoll.c: New file.
21629
21630         New module 'unistr/u8-strcoll'.
21631         * modules/unistr/u8-strcoll: New file.
21632         * lib/unistr/u8-strcoll.c: New file.
21633         * lib/unistr/u-strcoll.h: New file.
21634
21635 2009-02-07  Bruno Haible  <bruno@clisp.org>
21636
21637         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21638         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21639         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21640         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21641         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21642         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21643
21644 2009-02-07  Bruno Haible  <bruno@clisp.org>
21645
21646         Make 64-bit clean.
21647         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21648         output_combclass, output_bidi_category, output_decimal_digit,
21649         output_digit, output_numeric, output_mirror, output_scripts,
21650         output_ident_category): Use proper width specifier in format strings.
21651
21652 2009-02-07  Bruno Haible  <bruno@clisp.org>
21653
21654         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21655         failure behaviour.
21656
21657 2009-02-07  Jim Meyering  <meyering@redhat.com>
21658
21659         regex: avoid compilation failure with upcoming gcc-4.4
21660         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21661         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21662         "... error: integer overflow in preprocessor expression".
21663
21664 2009-02-05  Ben Pfaff  <blp@gnu.org>
21665
21666         Fix link errors on Windows when close module is used.
21667         * modules/close: Add $(LIB_CLOSE) to Link section.
21668         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21669         $(LIB_CLOSE) on Windows.
21670
21671 2009-02-05  Jim Meyering  <meyering@redhat.com>
21672
21673         still avoid unused-parameter warnings, but do it cleanly
21674         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21675         (get_fs_usage): Cast to void instead.
21676         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21677         (dev_from_mount_options, read_file_system_list): Cast to void.
21678         Prompted by Bruno Haible.
21679
21680 2009-02-04  Jim Meyering  <meyering@redhat.com>
21681
21682         fsusage.c: correct copyright year
21683         * lib/fsusage.c: Reflect year in which the change is pushed into
21684
21685         avoid misc. warnings
21686         * lib/fsusage.c (UNUSED_PARAM): Define.
21687         (get_fs_usage): Mark parameter "disk" as unused.
21688         * lib/getugroups.c (getgrent): Use "void" in prototype.
21689         * lib/mountlist.c: Mark unused parameters.
21690         (read_file_system_list): Declare a local with "const".
21691         * lib/nanosleep.c (getnow): Declare static.
21692         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21693
21694         dirfd: set errno upon failure
21695         * lib/dirfd.c: Include <errno.h>.
21696         Set errno to ENOTSUP when returning -1.
21697         * modules/dirfd (Depends-on): Add errno.
21698         Suggested by John Kodis <kodis@comcast.net>.
21699
21700 2009-02-01  Bruno Haible  <bruno@clisp.org>
21701
21702         Don't assume sizeof (long) >= sizeof (void *).
21703         * lib/memcmp.c: Include stdint.h.
21704         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21705         srcp2 to 'const byte *'.
21706         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21707         types to uintptr_t.
21708         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21709         * modules/memcmp (Depends-on): Add stdint.
21710         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21711
21712 2009-01-30  Eric Blake  <ebb9@byu.net>
21713
21714         fix more require-before-expand issues
21715         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21716         expand, AC_PROG_AWK.
21717         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21718
21719 2009-01-28  Eric Blake  <ebb9@byu.net>
21720
21721         version-etc: use consistent URL formatting
21722         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21723         Improve formatting.  Use fputs for string without %.
21724
21725 2009-01-28  Jim Meyering  <meyering@redhat.com>
21726
21727         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21728         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21729         "underquoted definition of NAME" from autoconf-2.59.
21730
21731 2009-01-28  Bruno Haible  <bruno@clisp.org>
21732
21733         * doc/gnulib.texi: Add "Obsolete modules" to index.
21734
21735 2009-01-28  Jim Meyering  <meyering@redhat.com>
21736
21737         useless-if-before-free: recognize more variants
21738         * build-aux/useless-if-before-free: Also recognize e.g.,
21739         if (NULL != p) free (p);
21740
21741 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21742
21743         test-getaddrinfo: skip (don't fail) this test when there's no network
21744         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21745         on the presumption that it means you lack network access.
21746
21747 2009-01-26  Jim Meyering  <meyering@redhat.com>
21748
21749         fflush: avoid warnings on modern systems
21750         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21751         pos and result, into scopes where they're used.
21752
21753 2009-01-26  Eric Blake  <ebb9@byu.net>
21754
21755         Silence warning reintroduced by recent extensions patch.
21756         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21757         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21758         autoconf.
21759
21760         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21761         * m4/00gnulib.m4: New file.
21762         * gnulib-tool (func_get_filelist): Always use it.
21763         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21764         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21765
21766 2009-01-25  Bruno Haible  <bruno@clisp.org>
21767
21768         Make test-quotearg work on MacOS X and AIX.
21769         * tests/test-quotearg.sh: New file.
21770         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21771         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21772         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21773         include <libintl.h>.
21774         (fake_locale): Remove variable.
21775         (gettext, dgettext, dcgettext): Remove functions.
21776         (main): Instead of setting a fake locale, set a real locale. Call
21777         textdomain and bindtextdomain.
21778         * modules/quotearg-tests (Files): Add the new files.
21779         (Depends-on): Add gettext, setenv, unsetenv.
21780         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21781         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21782         Augment TESTS_ENVIRONMENT.
21783
21784 2009-01-25  Bruno Haible  <bruno@clisp.org>
21785
21786         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21787         fr_FR.ISO8859-1 locale on MacOS X.
21788         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21789         ja_JP.eucJP locale on MacOS X.
21790         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21791         zh_CN.GB18030 locale on MacOS X.
21792
21793 2009-01-25  Bruno Haible  <bruno@clisp.org>
21794
21795         Avoid link errors on MacOS X 10.3.
21796         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21797         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21798
21799 2009-01-25  Bruno Haible  <bruno@clisp.org>
21800
21801         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21802         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21803         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21804         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21805         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21806         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21807         posix_spawnattr_init, posix_spawnattr_setsigmask,
21808         posix_spawnattr_setflags, posix_spawnattr_destroy.
21809
21810         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21811         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21812         * modules/execute (Files): Remove m4/posix_spawn.m4.
21813         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21814         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21815         posix_spawnattr_init, posix_spawnattr_setsigmask,
21816         posix_spawnattr_setflags, posix_spawnattr_destroy.
21817
21818 2009-01-25  Bruno Haible  <bruno@clisp.org>
21819
21820         * lib/glthread/threadlib.c: Include <stdlib.h>.
21821
21822 2009-01-25  Bruno Haible  <bruno@clisp.org>
21823
21824         * lib/glthread/threadlib.c (dummy): New declaration.
21825
21826 2009-01-25  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21829         multibyte characters also for the GB18030 encoding. Don't crash when
21830         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21831
21832 2009-01-25  Bruno Haible  <bruno@clisp.org>
21833
21834         Avoid redefining 'struct random_data' on OSF/1 5.1.
21835         * lib/stdlib.in.h: Include <random.h> if it exists.
21836         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21837         HAVE_RANDOM_H. Include <random.h> when testing whether
21838         'struct random_data' exists.
21839         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21840
21841 2009-01-25  Bruno Haible  <bruno@clisp.org>
21842
21843         Don't install charset.alias on MacOS X >= 10.3.
21844         * lib/localcharset.c (DARWIN7): New macro.
21845         (get_charset_aliases): Hardcode the result for Darwin7.
21846         * modules/localcharset (install-exec-local): Don't install
21847         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
21848
21849 2009-01-25  Bruno Haible  <bruno@clisp.org>
21850
21851         Don't install charset.alias on mingw and Cygwin.
21852         * modules/localcharset (install-exec-local): Don't install
21853         charset.alias on mingw and Cygwin, if the file does not yet exist.
21854         The result for these platforms is hardcoded in localcharset.c.
21855
21856 2009-01-25  Bruno Haible  <bruno@clisp.org>
21857
21858         Make it possible again to use AC_GNU_SOURCE together with gnulib.
21859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
21860         before requiring AC_USE_SYSTEM_EXTENSIONS.
21861
21862 2009-01-25  Jim Meyering  <meyering@redhat.com>
21863
21864         c-strtod: avoid warnings
21865         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
21866         "assignment discards qualifiers from pointer target type" warnings.
21867
21868 2009-01-24  Bruno Haible  <bruno@clisp.org>
21869
21870         Add support for non-UTF-8 locales on MacOS X.
21871         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
21872         canonical encodings. For Darwin 7 and newer, don't map traditional
21873         encodings to UTF-8.
21874         Reported by Vincent Lefevre <vincent@vinc17.org>
21875         at <http://savannah.gnu.org/bugs/?25235>.
21876
21877 2009-01-24  Bruno Haible  <bruno@clisp.org>
21878
21879         * doc/gnulib.texi (Obsolete modules): New section.
21880         Reported by Mike Frysinger <vapier@gentoo.org>.
21881
21882 2009-01-24  Bruno Haible  <bruno@clisp.org>
21883
21884         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
21885         (%.dvi): New rule.
21886
21887 2009-01-24  Bruno Haible  <bruno@clisp.org>
21888
21889         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
21890         Reported by Eric Blake.
21891
21892 2009-01-24  Bruno Haible  <bruno@clisp.org>
21893
21894         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
21895         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
21896         Reported by Gary V. Vaughan <gary@gnu.org>.
21897
21898 2009-01-24  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
21901
21902 2009-01-23  Bruno Haible  <bruno@clisp.org>
21903
21904         Make c-strtod, c-strtold usable in libraries.
21905         * lib/c-strtod.c: Include string.h instead of xalloc.h.
21906         (C_STRTOD): Call strdup instead of xstrdup.
21907         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
21908         * modules/c-strtold (Depends-on): Likewise.
21909         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
21910         * NEWS: Mention the change.
21911         Reported by Michael Gold <mgold@ncf.ca>.
21912
21913 2009-01-23  Jim Meyering  <meyering@redhat.com>
21914
21915         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
21916         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
21917         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
21918
21919 2009-01-23  Simon Josefsson  <simon@josefsson.org>
21920
21921         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
21922         GNU CoreUtils.
21923         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
21924         * modules/version-etc (Description): Update.
21925
21926 2009-01-22  Bruno Haible  <bruno@clisp.org>
21927
21928         Cache the C locale object.
21929         * lib/c-strtod.c (c_locale_cache): New variable.
21930         (c_locale): New function.
21931         (C_STRTOD): Use it, and don't call freelocale.
21932         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
21933         Suggested by Paolo Bonzini.
21934
21935 2009-01-21  Bruno Haible  <bruno@clisp.org>
21936
21937         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
21938         conditions other than overflow.
21939
21940 2009-01-21  Bruno Haible  <bruno@clisp.org>
21941
21942         * lib/c-strtod.c: Include errno.h.
21943         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
21944         value from STRTOD_L and STRTOD.
21945
21946 2009-01-21  Bruno Haible  <bruno@clisp.org>
21947         and Jim Meyering  <meyering@redhat.com>
21948
21949         nanosleep: skip configure test (fail it) for apple universal builds
21950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
21951         universal builds, assume that nanosleep does not work.
21952         * modules/nanosleep (Depends-on): Add multiarch.
21953
21954         mktime: skip configure test (fail it) for apple universal builds
21955         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
21956         universal builds, assume that mktime does not work.
21957         * modules/mktime (Depends-on): Add multiarch.
21958
21959 2009-01-21  Eric Blake  <ebb9@byu.net>
21960
21961         multiarch: avoid expand-before-require warning
21962         * modules/multiarch (configure.ac): Require, rather than expand,
21963         gl_MULTIARCH.
21964         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
21965         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
21966         enforce that all clients require it.  Partial reversion of
21967         2008-12-29 patch.
21968
21969         error: avoid expand-before-require warning
21970         * modules/errno (configure.ac): Require, rather than expand,
21971         gl_HEADER_ERRNO_H.
21972         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
21973         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
21974         enforce that all clients require it.
21975
21976         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
21977         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
21978         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
21979         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
21980
21981 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
21982
21983         Revert:
21984         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
21985
21986         regex: do not depend on obsolete modules.
21987         * modules/regex: Remove memcmp and memmove.
21988
21989 2009-01-20  Bruno Haible  <bruno@clisp.org>
21990
21991         Make the 'link' module link on Windows NT 4.
21992         * lib/link.c (_WIN32_WINNT): Don't define.
21993         (CreateHardLinkFuncType): New type.
21994         (CreateHardLinkFunc, initialized): New variables.
21995         (initialize): New function.
21996         (link): Invoke CreateHardLink indirectly through the function pointer.
21997
21998 2009-01-20  Bruno Haible  <bruno@clisp.org>
21999
22000         Fix compilation failure on mingw.
22001         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22002
22003 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22004
22005         * doc/c-strtod.texi: Mention a couple of restrictions.
22006
22007 2009-01-20  Jim Meyering  <meyering@redhat.com>
22008
22009         gettimeofday: move more declarations out of functions
22010         * lib/gettimeofday.c: Move extern declarations of tzset and
22011         gmtime out of containing functions.  Prompted by Bruno Haible.
22012
22013 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22014
22015         regex: do not depend on obsolete modules.
22016         * modules/regex: Remove memcmp and memmove.
22017
22018 2009-01-19  Bruno Haible  <bruno@clisp.org>
22019
22020         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22021         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22022         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22023         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22024         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22025
22026 2009-01-19  Bruno Haible  <bruno@clisp.org>
22027
22028         * tests/test-link.c: Include <errno.h>.
22029         (main): Exit with code 77 when a hard link cannot be created due to
22030         the file system.
22031         * tests/test-link.sh: Skip test when a hard link cannot be created due
22032         to the file system.
22033         Suggested by Eric Blake.
22034
22035 2009-01-19  Martin Lambers  <marlam@marlam.de>
22036
22037         * modules/link-tests: New file.
22038         * tests/test-link.sh: New file.
22039         * tests/test-link.c: New file.
22040
22041 2009-01-19  Eric Blake  <ebb9@byu.net>
22042
22043         doc: mention another function added in cygwin 1.7.0
22044         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22045         Another new function in cygwin 1.7.
22046
22047 2009-01-19  Bruno Haible  <bruno@clisp.org>
22048
22049         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22050         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22051         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22052         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22053         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22054         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22056         * m4/md4.m4 (gl_MD4): Likewise.
22057         * m4/md5.m4 (gl_MD5): Likewise.
22058         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22059         * m4/sha1.m4 (gl_SHA1): Likewise.
22060         * m4/sha256.m4 (gl_SHA256): Likewise.
22061         * m4/sha512.m4 (gl_SHA512): Likewise.
22062
22063 2009-01-19  Bruno Haible  <bruno@clisp.org>
22064
22065         * modules/uniname/uniname-tests (Depends-on): Add progname.
22066         * tests/uniname/test-uninames.c: Include progname.h.
22067         (main): Call set_program_name.
22068
22069         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22070         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22071         (main): Call set_program_name.
22072
22073         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22074         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22075         (main): Call set_program_name.
22076
22077         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22078         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22079         (main): Call set_program_name.
22080
22081         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22082         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22083         (main): Call set_program_name.
22084
22085         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22086         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22087         (main): Call set_program_name.
22088
22089         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22090         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22091         (main): Call set_program_name.
22092
22093         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22094         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22095         (main): Call set_program_name.
22096
22097         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22098         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22099         (main): Call set_program_name.
22100
22101 2009-01-19  Eric Blake  <ebb9@byu.net>
22102
22103         test-unistd: test previous patch
22104         * tests/test-unistd.c: Test *_FILENO macros.
22105
22106         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22107         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22108         Guarantee a definition.
22109         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22110         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22111         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22112         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22113         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22114         Likewise.
22115         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22116         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22117         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22118         Likewise.
22119         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22120         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22121         (STDERR_FILENO): Likewise.
22122         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22123         (STDERR_FILENO): Likewise.
22124         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22125         (STDERR_FILENO): Likewise.
22126         Reported by Elbert Pol.
22127
22128 2009-01-19  Eric Blake  <ebb9@byu.net>
22129
22130         doc: mention more functions added in cygwin 1.7.0
22131         * doc/posix-functions/abort.texi (abort): Update wording related
22132         to cygwin.
22133         * doc/posix-functions/daylight.texi (daylight): Likewise.
22134         * doc/posix-functions/optarg.texi (optarg): Likewise.
22135         * doc/posix-functions/optarg.texi (opterr): Likewise.
22136         * doc/posix-functions/optarg.texi (optind): Likewise.
22137         * doc/posix-functions/optarg.texi (optopt): Likewise.
22138         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22139         worked in 1.5.x, and was withdrawn in 1.7.
22140         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22141         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22142         cygwin versions.
22143         * doc/posix-functions/perror.texi (perror): Likewise.
22144         * doc/posix-functions/printf.texi (printf): Likewise.
22145         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22146         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22147         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22148         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22149         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22150         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22151         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22152         Likewise.
22153         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22154         Likewise.
22155         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22156         this function.
22157         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22158         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22159         Likewise.
22160         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22161         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22162         * doc/posix-functions/confstr.texi (confstr): Likewise.
22163         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22164         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22165         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22166         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22167         * doc/posix-functions/fputws.texi (fputws): Likewise.
22168         * doc/posix-functions/fwide.texi (fwide): Likewise.
22169         * doc/posix-functions/getwc.texi (getwc): Likewise.
22170         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22171         * doc/posix-functions/putwc.texi (putwc): Likewise.
22172         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22173         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22174         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22175         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22176         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22177         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22178         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22179         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22180         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22181         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22182         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22183
22184 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22185
22186         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22187         * lib/ioctl.c: Include <sys/ioctl.h>.
22188
22189 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22190
22191         * modules/getdate-tests (Depends-on): Add progname.
22192         * tests/test-getdate.c: Use progname module, to avoid link errors
22193         on non-glibc systems.
22194
22195 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22196
22197         * modules/filenamecat-tests (Depends-on): Add progname.
22198         * modules/fstrcmp-tests (Depends-on): Likewise.
22199
22200         * tests/test-filenamecat.c: Use progname module, to avoid link
22201         errors on non-glibc systems.
22202         * tests/test-fstrcmp.c: Likewise.
22203
22204 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22205
22206         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22207         * lib/gettimeofday.c: Move extern declaration out of function.
22208
22209 2009-01-18  Bruno Haible  <bruno@clisp.org>
22210
22211         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22212         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22213         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22214
22215 2009-01-18  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/strftime.c (MEMPCPY): Remove unused macro.
22218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22219
22220 2009-01-18  Martin Lambers  <marlam@marlam.de>
22221
22222         New module 'link'.
22223         * lib/unistd.in.h (link): New declaration.
22224         * lib/link.c: New file.
22225         * m4/link.m4: New file.
22226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22227         HAVE_LINK.
22228         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22229         * modules/link: New file.
22230         * doc/posix-functions/link.texi: Mention the new module.
22231
22232 2009-01-18  Bruno Haible  <bruno@clisp.org>
22233
22234         * tests/test-avltree_list.c (main): Call set_program_name.
22235         * tests/test-avltree_oset.c (main): Likewise.
22236         * tests/test-obstack-printf.c: Include progname.h.
22237         (main): Call set_program_name.
22238         * tests/test-quotearg.c: Include progname.h.
22239         (main): Call set_program_name.
22240         * tests/test-xmemdup0.c: Include progname.h.
22241         (main): Call set_program_name.
22242
22243 2009-01-18  Bruno Haible  <bruno@clisp.org>
22244
22245         New module 'alphasort'.
22246         * lib/dirent.in.h (alphasort): New declaration.
22247         * lib/alphasort.c: New file, from glibc with modifications.
22248         * m4/alphasort.m4: New file.
22249         * modules/alphasort: New file.
22250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22251         HAVE_ALPHASORT.
22252         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22253         HAVE_ALPHASORT.
22254         * doc/posix-functions/alphasort.texi: Mention the new module and the
22255         portability problems.
22256
22257 2009-01-18  Bruno Haible  <bruno@clisp.org>
22258
22259         New module 'scandir'.
22260         * lib/dirent.in.h (scandir): New declaration.
22261         * lib/scandir.c: New file, from glibc with modifications.
22262         * m4/scandir.m4: New file.
22263         * modules/scandir: New file.
22264         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22265         HAVE_SCANDIR.
22266         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22267         HAVE_SCANDIR.
22268         * doc/posix-functions/scandir.texi: Mention the new module and the
22269         portability problems.
22270
22271 2009-01-17  Bruno Haible  <bruno@clisp.org>
22272
22273         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22274         Update documentation.
22275         (func_remove_suffix): Escape all dots in the suffix. Update
22276         documentation.
22277         (func_filter_filelist): Update documentation.
22278         Reported by Ralf Wildenhues.
22279
22280 2009-01-17  Bruno Haible  <bruno@clisp.org>
22281
22282         * modules/dprintf-posix-tests: New file.
22283         * tests/test-dprintf-posix.sh: New file.
22284         * tests/test-dprintf-posix.c: New file.
22285
22286         New modules 'dprintf', 'dprintf-posix'.
22287         * lib/stdio.in.h (dprintf): New declaration.
22288         * lib/dprintf.c: New file.
22289         * m4/dprintf.m4: New file.
22290         * m4/dprintf-posix.m4: New file.
22291         * modules/dprintf: New file.
22292         * modules/dprintf-posix: New file.
22293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22294         HAVE_DPRINTF, REPLACE_DPRINTF.
22295         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22296         HAVE_DPRINTF, REPLACE_DPRINTF.
22297         * doc/posix-functions/dprintf.texi: Mention the new modules.
22298
22299 2009-01-17  Bruno Haible  <bruno@clisp.org>
22300
22301         * modules/vdprintf-posix-tests: New file.
22302         * tests/test-vdprintf-posix.sh: New file.
22303         * tests/test-vdprintf-posix.c: New file.
22304
22305         New modules 'vdprintf', 'vdprintf-posix'.
22306         * lib/stdio.in.h (vdprintf): New declaration.
22307         * lib/vdprintf.c: New file.
22308         * m4/vdprintf.m4: New file.
22309         * m4/vdprintf-posix.m4: New file.
22310         * modules/vdprintf: New file.
22311         * modules/vdprintf-posix: New file.
22312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22313         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22314         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22315         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22316         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22317
22318 2009-01-17  Bruno Haible  <bruno@clisp.org>
22319
22320         Fix replacement of fopen on mingw.
22321         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22322         mingw.
22323
22324 2009-01-17  Bruno Haible  <bruno@clisp.org>
22325
22326         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22327         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22328
22329 2009-01-17  Bruno Haible  <bruno@clisp.org>
22330
22331         Avoid test-fflush2.sh failure on mingw.
22332         * tests/test-fflush2.c: Include binary-io.h.
22333         (main): Put standard input into binary mode.
22334         * modules/fflush-tests (Depends-on): Add binary-io.
22335
22336 2009-01-17  Bruno Haible  <bruno@clisp.org>
22337
22338         * lib/wchar.in.h: In another particular situation, include only the
22339         system's <wchar.h> file.
22340         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22341         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22342         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22343
22344 2009-01-17  Bruno Haible  <bruno@clisp.org>
22345
22346         Support for stripping executables in --enable-relocatable.
22347         * build-aux/install-reloc: Expect one more argument, or an environment
22348         variable RELOC_STRIP_PROG. If set, strip the destination program and
22349         its wrapper.
22350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22351         RELOC_STRIP_PROG.
22352         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22353         to set RELOCATABLE_STRIP.
22354         * NEWS: Mention the new Makefile requirement.
22355
22356 2009-01-17  Bruno Haible  <bruno@clisp.org>
22357
22358         * build-aux/install-reloc: Remove debugging information left over by
22359         C compiler on MacOS X.
22360
22361 2009-01-17  Bruno Haible  <bruno@clisp.org>
22362
22363         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22364         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22365         _NSGetExecutablePath.
22366
22367 2009-01-16  Jim Meyering  <meyering@redhat.com>
22368
22369         strerror: avoid warnings about discarding "const"
22370         * lib/strerror.c (rpl_strerror): Instead of returning a const
22371         string from each and every "case", use a variable, and add a single
22372         cast after the switch.
22373
22374 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22375
22376         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22377
22378 2009-01-16  Bruno Haible  <bruno@clisp.org>
22379
22380         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22381         array initializer syntax that also works in C++ mode.
22382         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22383
22384 2009-01-16  Jim Meyering  <meyering@redhat.com>
22385
22386         poll: suppress a warning
22387         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22388         to ignore "...unsigned expression < 0 is always false" warnings.
22389
22390 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22391
22392         poll: remove declarations of unused variables
22393         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22394         sockbuf and optlen.
22395
22396 2009-01-15  Bruno Haible  <bruno@clisp.org>
22397
22398         Make fflush-after-ungetc POSIX compliant on BSD systems.
22399         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22400         (clear_ungetc_buffer): Implement also for other systems.
22401         (rpl_fflush): On glibc systems, invoke
22402         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22403         clear_ungetc_buffer after fetching the stream's position, not before.
22404
22405 2009-01-15  Bruno Haible  <bruno@clisp.org>
22406
22407         Make fflush-after-ungetc POSIX compliant on glibc systems.
22408         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22409         after ungetc.
22410         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22411         (rpl_fflush): On glibc systems, simply call the system's fflush
22412         function after clearing the ungetc buffer.
22413         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22414         Instead, lseek only to the end of file, then use the system's fseeko
22415         for the rest. On glibc systems, reset the EOF indicator bit.
22416
22417 2009-01-15  Jim Meyering  <meyering@redhat.com>
22418
22419         openmp.m4: revert quote-adding change, for portability to older autoconf
22420         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22421         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22422         Simon Josefsson noticed the problem when using autoconf-2.61.
22423
22424 2009-01-15  Bruno Haible  <bruno@clisp.org>
22425
22426         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22427         * tests/test-fflush2.c (ASSERT): Always fail.
22428         (main): Add two tests for fflush() after ungetc(), taking into account
22429         the Austin Group's clarification.
22430         Suggested by Eric Blake.
22431
22432 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22433
22434         mktime.m4: remove K&R-style function prototypes
22435         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22436         for the Sun C++ compiler.
22437
22438 2009-01-14  Bruno Haible  <bruno@clisp.org>
22439
22440         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22441         while including <wchar.h>.
22442         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22443         the system's <wchar.h> file.
22444         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22445
22446 2009-01-14  Bruno Haible  <bruno@clisp.org>
22447
22448         * m4/csharp.m4: Don't mention gettext on the serial number line.
22449         * m4/csharpexec.m4: Likewise.
22450         * m4/eaccess.m4: Likewise.
22451         * m4/javaexec.m4: Likewise.
22452         * m4/sig_atomic_t.m4: Likewise.
22453         * m4/tmpdir.m4: Likewise.
22454         * m4/intldir.m4: Bump gettext version.
22455         * m4/lib-ld.m4: Likewise.
22456
22457 2009-01-14  Bruno Haible  <bruno@clisp.org>
22458
22459         * lib/progname.c (set_program_name): Add more comments.
22460         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22461
22462 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22463
22464         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22465         were sys/stat.h does not define it.
22466
22467 2009-01-14  Jim Meyering  <meyering@redhat.com>
22468
22469         many *.m4 files: improve m4 quoting
22470         99% of this change was performed by running the following commands:
22471         git ls-files | grep '\.m4$' | xargs perl -pi \
22472           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22473           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22474           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22475           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22476         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22477         The remainder were to add Copyright dates, increment serial numbers,
22478         undo some changes in comments, exclude m4/intl.m4, and add quotes
22479         around the "1" in ",1" where the unusual spacing prohibited the
22480         above regexps from doing the job.  For more details, see
22481         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22482         * m4/acl.m4: Modified.
22483         * m4/afs.m4: Likewise.
22484         * m4/alloca.m4: Likewise.
22485         * m4/argp.m4: Likewise.
22486         * m4/argz.m4: Likewise.
22487         * m4/atexit.m4: Likewise.
22488         * m4/bison-i18n.m4: Likewise.
22489         * m4/bison.m4: Likewise.
22490         * m4/byteswap.m4: Likewise.
22491         * m4/c-stack.m4: Likewise.
22492         * m4/c-strtod.m4: Likewise.
22493         * m4/calloc.m4: Likewise.
22494         * m4/canonicalize-lgpl.m4: Likewise.
22495         * m4/chown.m4: Likewise.
22496         * m4/clock_time.m4: Likewise.
22497         * m4/codeset.m4: Likewise.
22498         * m4/copy-file.m4: Likewise.
22499         * m4/csharp.m4: Likewise.
22500         * m4/csharpcomp.m4: Likewise.
22501         * m4/csharpexec.m4: Likewise.
22502         * m4/d-ino.m4: Likewise.
22503         * m4/d-type.m4: Likewise.
22504         * m4/dirfd.m4: Likewise.
22505         * m4/double-slash-root.m4: Likewise.
22506         * m4/eaccess.m4: Likewise.
22507         * m4/eealloc.m4: Likewise.
22508         * m4/environ.m4: Likewise.
22509         * m4/errno_h.m4: Likewise.
22510         * m4/euidaccess.m4: Likewise.
22511         * m4/execute.m4: Likewise.
22512         * m4/fatal-signal.m4: Likewise.
22513         * m4/fchdir.m4: Likewise.
22514         * m4/fcntl_h.m4: Likewise.
22515         * m4/fileblocks.m4: Likewise.
22516         * m4/filenamecat.m4: Likewise.
22517         * m4/findprog.m4: Likewise.
22518         * m4/flexmember.m4: Likewise.
22519         * m4/fnmatch.m4: Likewise.
22520         * m4/fopen.m4: Likewise.
22521         * m4/fpending.m4: Likewise.
22522         * m4/fprintf-posix.m4: Likewise.
22523         * m4/free.m4: Likewise.
22524         * m4/frexp.m4: Likewise.
22525         * m4/frexpl.m4: Likewise.
22526         * m4/fsusage.m4: Likewise.
22527         * m4/ftruncate.m4: Likewise.
22528         * m4/gc-camellia.m4: Likewise.
22529         * m4/gc-random.m4: Likewise.
22530         * m4/gc.m4: Likewise.
22531         * m4/getaddrinfo.m4: Likewise.
22532         * m4/getcwd-abort-bug.m4: Likewise.
22533         * m4/getcwd-path-max.m4: Likewise.
22534         * m4/getdate.m4: Likewise.
22535         * m4/getdomainname.m4: Likewise.
22536         * m4/getgroups.m4: Likewise.
22537         * m4/gethostname.m4: Likewise.
22538         * m4/gethrxtime.m4: Likewise.
22539         * m4/getline.m4: Likewise.
22540         * m4/getloadavg.m4: Likewise.
22541         * m4/getndelim2.m4: Likewise.
22542         * m4/getpass.m4: Likewise.
22543         * m4/gettext.m4: Likewise.
22544         * m4/gettime.m4: Likewise.
22545         * m4/gettimeofday.m4: Likewise.
22546         * m4/gnulib-common.m4: Likewise.
22547         * m4/group-member.m4: Likewise.
22548         * m4/host-os.m4: Likewise.
22549         * m4/iconv.m4: Likewise.
22550         * m4/iconv_open.m4: Likewise.
22551         * m4/inet_ntop.m4: Likewise.
22552         * m4/inet_pton.m4: Likewise.
22553         * m4/inline.m4: Likewise.
22554         * m4/intldir.m4: Likewise.
22555         * m4/intlmacosx.m4: Likewise.
22556         * m4/intmax.m4: Likewise.
22557         * m4/intmax_t.m4: Likewise.
22558         * m4/inttypes.m4: Likewise.
22559         * m4/inttypes_h.m4: Likewise.
22560         * m4/inttypes-pri.m4: Likewise.
22561         * m4/isapipe.m4: Likewise.
22562         * m4/isnand.m4: Likewise.
22563         * m4/isnanf.m4: Likewise.
22564         * m4/isnanl.m4: Likewise.
22565         * m4/javacomp.m4: Likewise.
22566         * m4/javaexec.m4: Likewise.
22567         * m4/jm-winsz1.m4: Likewise.
22568         * m4/jm-winsz2.m4: Likewise.
22569         * m4/lchown.m4: Likewise.
22570         * m4/lcmessage.m4: Likewise.
22571         * m4/ldexpl.m4: Likewise.
22572         * m4/lib-ld.m4: Likewise.
22573         * m4/lib-link.m4: Likewise.
22574         * m4/libsigsegv.m4: Likewise.
22575         * m4/link-follow.m4: Likewise.
22576         * m4/localcharset.m4: Likewise.
22577         * m4/locale-fr.m4: Likewise.
22578         * m4/locale-ja.m4: Likewise.
22579         * m4/locale-tr.m4: Likewise.
22580         * m4/locale-zh.m4: Likewise.
22581         * m4/lock.m4: Likewise.
22582         * m4/longlong.m4: Likewise.
22583         * m4/ls-mntd-fs.m4: Likewise.
22584         * m4/lstat.m4: Likewise.
22585         * m4/malloc.m4: Likewise.
22586         * m4/mathl.m4: Likewise.
22587         * m4/mbrtowc.m4: Likewise.
22588         * m4/mbstate_t.m4: Likewise.
22589         * m4/mbswidth.m4: Likewise.
22590         * m4/memchr.m4: Likewise.
22591         * m4/memcmp.m4: Likewise.
22592         * m4/memcpy.m4: Likewise.
22593         * m4/memmem.m4: Likewise.
22594         * m4/memmove.m4: Likewise.
22595         * m4/mempcpy.m4: Likewise.
22596         * m4/memrchr.m4: Likewise.
22597         * m4/memset.m4: Likewise.
22598         * m4/minmax.m4: Likewise.
22599         * m4/mkdir-slash.m4: Likewise.
22600         * m4/mkdtemp.m4: Likewise.
22601         * m4/mktime.m4: Likewise.
22602         * m4/mmap-anon.m4: Likewise.
22603         * m4/mountlist.m4: Likewise.
22604         * m4/nanosleep.m4: Likewise.
22605         * m4/nls.m4: Likewise.
22606         * m4/nocrash.m4: Likewise.
22607         * m4/open.m4: Likewise.
22608         * m4/openat.m4: Likewise.
22609         * m4/openmp.m4: Likewise.
22610         * m4/pathmax.m4: Likewise.
22611         * m4/perl.m4: Likewise.
22612         * m4/physmem.m4: Likewise.
22613         * m4/pipe.m4: Likewise.
22614         * m4/po.m4: Likewise.
22615         * m4/poll.m4: Likewise.
22616         * m4/posixtm.m4: Likewise.
22617         * m4/posixver.m4: Likewise.
22618         * m4/printf-frexp.m4: Likewise.
22619         * m4/printf-frexpl.m4: Likewise.
22620         * m4/printf-posix.m4: Likewise.
22621         * m4/printf-posix-rpl.m4: Likewise.
22622         * m4/printf.m4: Likewise.
22623         * m4/progtest.m4: Likewise.
22624         * m4/putenv.m4: Likewise.
22625         * m4/readline.m4: Likewise.
22626         * m4/readlink.m4: Likewise.
22627         * m4/readutmp.m4: Likewise.
22628         * m4/realloc.m4: Likewise.
22629         * m4/regex.m4: Likewise.
22630         * m4/relocatable.m4: Likewise.
22631         * m4/relocatable-lib.m4: Likewise.
22632         * m4/rename-dest-slash.m4: Likewise.
22633         * m4/rename.m4: Likewise.
22634         * m4/rmdir-errno.m4: Likewise.
22635         * m4/rmdir.m4: Likewise.
22636         * m4/roundf.m4: Likewise.
22637         * m4/roundl.m4: Likewise.
22638         * m4/rpmatch.m4: Likewise.
22639         * m4/save-cwd.m4: Likewise.
22640         * m4/selinux-selinux-h.m4: Likewise.
22641         * m4/setenv.m4: Likewise.
22642         * m4/settime.m4: Likewise.
22643         * m4/sig2str.m4: Likewise.
22644         * m4/sig_atomic_t.m4: Likewise.
22645         * m4/signalblocking.m4: Likewise.
22646         * m4/signbit.m4: Likewise.
22647         * m4/sigpipe.m4: Likewise.
22648         * m4/sockets.m4: Likewise.
22649         * m4/sockpfaf.m4: Likewise.
22650         * m4/st_dm_mode.m4: Likewise.
22651         * m4/stat-time.m4: Likewise.
22652         * m4/stdbool.m4: Likewise.
22653         * m4/stdint.m4: Likewise.
22654         * m4/stdint_h.m4: Likewise.
22655         * m4/stpcpy.m4: Likewise.
22656         * m4/stpncpy.m4: Likewise.
22657         * m4/strcase.m4: Likewise.
22658         * m4/strchrnul.m4: Likewise.
22659         * m4/strcspn.m4: Likewise.
22660         * m4/strdup.m4: Likewise.
22661         * m4/strftime.m4: Likewise.
22662         * m4/strndup.m4: Likewise.
22663         * m4/strnlen.m4: Likewise.
22664         * m4/strpbrk.m4: Likewise.
22665         * m4/strptime.m4: Likewise.
22666         * m4/strsep.m4: Likewise.
22667         * m4/strtod.m4: Likewise.
22668         * m4/strtoimax.m4: Likewise.
22669         * m4/strtok_r.m4: Likewise.
22670         * m4/strtol.m4: Likewise.
22671         * m4/strtoll.m4: Likewise.
22672         * m4/strtoul.m4: Likewise.
22673         * m4/strtoull.m4: Likewise.
22674         * m4/strtoumax.m4: Likewise.
22675         * m4/strverscmp.m4: Likewise.
22676         * m4/threadlib.m4: Likewise.
22677         * m4/timegm.m4: Likewise.
22678         * m4/tm_gmtoff.m4: Likewise.
22679         * m4/tmpdir.m4: Likewise.
22680         * m4/tmpfile.m4: Likewise.
22681         * m4/tzset.m4: Likewise.
22682         * m4/uintmax_t.m4: Likewise.
22683         * m4/unlinkdir.m4: Likewise.
22684         * m4/unlocked-io.m4: Likewise.
22685         * m4/uptime.m4: Likewise.
22686         * m4/userspec.m4: Likewise.
22687         * m4/utimbuf.m4: Likewise.
22688         * m4/utime.m4: Likewise.
22689         * m4/utimes-null.m4: Likewise.
22690         * m4/utimes.m4: Likewise.
22691         * m4/vararrays.m4: Likewise.
22692         * m4/vasnprintf.m4: Likewise.
22693         * m4/vfprintf-posix.m4: Likewise.
22694         * m4/vprintf-posix.m4: Likewise.
22695         * m4/wait-process.m4: Likewise.
22696         * m4/wchar_t.m4: Likewise.
22697         * m4/wint_t.m4: Likewise.
22698         * m4/write-any-file.m4: Likewise.
22699         * m4/yield.m4: Likewise.
22700
22701 2009-01-13  Bruno Haible  <bruno@clisp.org>
22702
22703         Avoid test-copy-file.sh failures when ACL support insufficient.
22704         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22705         TESTS_ENVIRONMENT.
22706         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22707         Reported by Jim Meyering.
22708
22709 2009-01-13  Bruno Haible  <bruno@clisp.org>
22710
22711         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22712         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22713         * modules/unistdio/u8-printf-parse (Files): Likewise.
22714         * modules/unistdio/u32-printf-parse (Files): Likewise.
22715         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22716
22717 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22718
22719         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22720         and m4/inttypes_h.m4 too.
22721
22722 2009-01-12  Eric Blake  <ebb9@byu.net>
22723
22724         tests: IRIX 6.2 cc can't compile -0.0 into .data
22725         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22726         rather than at compile-time.
22727         * tests/test-floorl.c (minus_zero): Likewise.
22728         * tests/test-frexpl.c (minus_zero): Likewise.
22729         * tests/test-isnan.c (minus_zerol): Likewise.
22730         * tests/test-isnanl.h (minus_zero): Likewise.
22731         * tests/test-ldexpl.c (minus_zero): Likewise.
22732         * tests/test-roundl.c (minus_zero): Likewise.
22733         * tests/test-signbit.c (minus_zerol): Likewise.
22734         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22735         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22736         * tests/test-truncl.c (minus_zero): Likewise.
22737         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22738         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22739         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22740
22741 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22742
22743         regex: fix glibc bug 9697
22744         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22745         handling.
22746
22747 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22748
22749         regex: fix glibc bug 697
22750         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22751         being NULL also if there are no backreferences.
22752
22753 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22754
22755         regex: merge glibc changes
22756         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22757         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22758         re_string_skip_chars, re_string_reconstruct): Likewise.
22759         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22760
22761 2009-01-07  Jim Meyering  <meyering@redhat.com>
22762
22763         poll: filter through cppi
22764         * lib/poll.c: Indent cpp directives to reflect nesting.
22765
22766 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22767
22768         poll: don't return uninitialized
22769         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22770
22771 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22772
22773         avoid compile failure on AIX 6.1
22774         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22775         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22776
22777 2009-01-04  Jim Meyering  <meyering@redhat.com>
22778
22779         remove duplicate inclusion of <stdio.h>
22780         * tests/test-fprintf-posix.c: Likewise.
22781         * tests/test-printf-posix.c: Likewise.
22782         * tests/test-snprintf-posix.c: Likewise.
22783         * tests/test-sprintf-posix.c: Likewise.
22784         * tests/test-vasprintf-posix.c: Likewise.
22785         * tests/test-vfprintf-posix.c: Likewise.
22786         * tests/test-vprintf-posix.c: Likewise.
22787         * tests/test-vsnprintf-posix.c: Likewise.
22788         * tests/test-vsprintf-posix.c: Likewise.
22789
22790 2009-01-03  Jim Meyering  <meyering@redhat.com>
22791
22792         gnulib-tool: fix sed-based filtering
22793         * gnulib-tool (func_filter_filelist): Remove extra backslash
22794         in sed_fff_filter definition.
22795
22796 2009-01-02  Jim Meyering  <meyering@redhat.com>
22797
22798         strftime: avoid compilation failure on Solaris 2.6
22799         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22800         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22801         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22802         be available.  Reported by Tom G. Christensen.  Details in
22803         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22804
22805 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22806             Bruno Haible  <bruno@clisp.org>
22807
22808         Speed up gnulib-tool by doing more string processing through shell
22809         built-ins.
22810         * gnulib-tool (fast_func_append): New variable.
22811         (func_remove_prefix, func_remove_suffix): New functions.
22812         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22813         (func_filter_filelist): New function.
22814         (func_get_dependencies): Use func_remove_suffix instead of sed.
22815         (func_get_automake_snippet): Use func_filter_filelist instead of a
22816         subshell and sed invocation.
22817
22818 2009-01-01  Bruno Haible  <bruno@clisp.org>
22819
22820         Fix a security bug.
22821         * gnulib-tool (func_import, import, update): Don't allow the characters
22822         '"', '$', '`', '\' in macro arguments that become part of commands that
22823         are evaluated.
22824
22825 2009-01-01  Bruno Haible  <bruno@clisp.org>
22826
22827         * gnulib-tool (func_reset_sigpipe): Add more comments.
22828
22829 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22830
22831         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22832         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22833         already know the answer.
22834
22835 2009-01-01  Jim Meyering  <meyering@redhat.com>
22836
22837         * lib/version-etc.c (version_etc_va): Update copyright year.
22838
22839 2008-12-30  Bruno Haible  <bruno@clisp.org>
22840
22841         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22842         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22843         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22844
22845 2008-12-29  Eric Blake  <ebb9@byu.net>
22846
22847         multiarch: avoid autoconf AC_REQUIRE bug
22848         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
22849         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
22850         2.63 and older.
22851         Reported by Bruno Haible, and analyzed in
22852         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
22853
22854 2008-12-29  Bruno Haible  <bruno@clisp.org>
22855
22856         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
22857         files in subdirectories correctly.
22858         Reported by Ralf Wildenhues.
22859
22860 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22861
22862         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
22863         rather than 'join FILE -', for Solaris join.
22864
22865 2008-12-29  Bruno Haible  <bruno@clisp.org>
22866
22867         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
22868         quoting.
22869         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22870         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22871         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22872         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
22873         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22874         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22876         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22877         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22878         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22879         * m4/nls.m4 (AM_NLS): Likewise.
22880         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
22881         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22882         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22883         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22884         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22885         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22886         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
22887         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22888         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22889         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22890         * m4/xsize.m4 (gl_XSIZE): Likewise.
22891         Suggested by Jim Meyering.
22892
22893 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22894
22895         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
22896         * lib/parse-duration.c: use a switch instead of cascading if's.
22897
22898 2008-12-29  Eric Blake  <ebb9@byu.net>
22899
22900         wchar.h: supply WEOF on Irix 5.3
22901         * lib/wchar.in.h (wint_t): Also supply WEOF.
22902         * lib/wctype.in.h (wint_t): Likewise.
22903         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
22904         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
22905         Reported by Tom G. Christensen.
22906
22907 2008-12-26  Bruno Haible  <bruno@clisp.org>
22908
22909         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
22910         i486, i586, i686.
22911
22912 2008-12-26  Bruno Haible  <bruno@clisp.org>
22913
22914         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
22915
22916 2008-12-26  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
22919         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
22920         not __STDC_CONSTANT_MACROS.
22921         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
22922
22923 2008-12-25  Bruno Haible  <bruno@clisp.org>
22924
22925         Add support for universal builds to vasnprintf.
22926         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
22927         universal builds, guess no.
22928         * modules/vasnprintf-posix (Depends-on): Add multiarch.
22929         * modules/vasprintf-posix (Depends-on): Likewise.
22930         * modules/fprintf-posix (Depends-on): Likewise.
22931         * modules/vfprintf-posix (Depends-on): Likewise.
22932         * modules/snprintf-posix (Depends-on): Likewise.
22933         * modules/vsnprintf-posix (Depends-on): Likewise.
22934         * modules/sprintf-posix (Depends-on): Likewise.
22935         * modules/vsprintf-posix (Depends-on): Likewise.
22936         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22937         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22938         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22939         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22940         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22941         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22943
22944         Add support for universal builds to <inttypes.h>.
22945         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
22946         _SCNu64_PREFIX): In Apple
22947         universal builds, define directly, using _LP64.
22948         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
22949         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
22950         * modules/inttypes (Depends-on): Add multiarch.
22951         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22952
22953         Add support for universal builds to <stdint.h>.
22954         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
22955         universal builds, define directly, using _LP64.
22956         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
22957         Apple universal builds, don't test for the size and suffix of ptrdiff_t
22958         and size_t.
22959         * modules/stdint (Depends-on): Add multiarch.
22960         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
22961
22962         New module 'multiarch'.
22963         * modules/multiarch: New file.
22964         * m4/multiarch.m4: New file.
22965
22966 2008-12-25  Bruno Haible  <bruno@clisp.org>
22967
22968         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
22969
22970 2008-12-25  Bruno Haible  <bruno@clisp.org>
22971
22972         * modules/btowc (License): Relicense under LGPLv2+.
22973         * modules/mbsinit (License): Likewise.
22974         * modules/mbrtowc (License): Likewise.
22975         * modules/wcrtomb (License): Likewise.
22976         * modules/streq (License): Likewise.
22977         Reported by David Lutterkort <lutter@redhat.com>.
22978
22979 2008-12-23  Bruno Haible  <bruno@clisp.org>
22980
22981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
22982
22983 2008-12-23  Bruno Haible  <bruno@clisp.org>
22984
22985         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
22986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
22987         GETADDRINFO_LIB, not in LIBS.
22988         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
22989         * modules/canon-host (Link): Likewise.
22990         * NEWS: Mention the change.
22991         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
22992         GETADDRINFO_LIB.
22993
22994 2008-12-22  Bruno Haible  <bruno@clisp.org>
22995
22996         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
22997         * doc/posix-functions/iswalpha_l.texi: Likewise.
22998         * doc/posix-functions/iswblank_l.texi: Likewise.
22999         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23000         * doc/posix-functions/iswctype_l.texi: Likewise.
23001         * doc/posix-functions/iswdigit_l.texi: Likewise.
23002         * doc/posix-functions/iswgraph_l.texi: Likewise.
23003         * doc/posix-functions/iswlower_l.texi: Likewise.
23004         * doc/posix-functions/iswprint_l.texi: Likewise.
23005         * doc/posix-functions/iswpunct_l.texi: Likewise.
23006         * doc/posix-functions/iswspace_l.texi: Likewise.
23007         * doc/posix-functions/iswupper_l.texi: Likewise.
23008         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23009         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23010         * doc/posix-functions/open_wmemstream.texi: Likewise.
23011         * doc/posix-functions/swscanf.texi: Likewise.
23012         * doc/posix-functions/towctrans_l.texi: Likewise.
23013         * doc/posix-functions/towlower.texi: Likewise.
23014         * doc/posix-functions/towlower_l.texi: Likewise.
23015         * doc/posix-functions/towupper.texi: Likewise.
23016         * doc/posix-functions/towupper_l.texi: Likewise.
23017         * doc/posix-functions/vfwprintf.texi: Likewise.
23018         * doc/posix-functions/vfwscanf.texi: Likewise.
23019         * doc/posix-functions/vswscanf.texi: Likewise.
23020         * doc/posix-functions/vwprintf.texi: Likewise.
23021         * doc/posix-functions/vwscanf.texi: Likewise.
23022         * doc/posix-functions/wcpcpy.texi: Likewise.
23023         * doc/posix-functions/wcpncpy.texi: Likewise.
23024         * doc/posix-functions/wcscasecmp.texi: Likewise.
23025         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23026         * doc/posix-functions/wcscoll_l.texi: Likewise.
23027         * doc/posix-functions/wcsdup.texi: Likewise.
23028         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23029         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23030         * doc/posix-functions/wcsnlen.texi: Likewise.
23031         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23032         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23033         * doc/posix-functions/wctrans_l.texi: Likewise.
23034         * doc/posix-functions/wctype_l.texi: Likewise.
23035         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23036         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23037         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23038         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23039         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23040         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23041         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23042         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23043         * doc/glibc-functions/wcschrnul.texi: Likewise.
23044         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23045         * doc/glibc-functions/wcstod_l.texi: Likewise.
23046         * doc/glibc-functions/wcstof_l.texi: Likewise.
23047         * doc/glibc-functions/wcstol_l.texi: Likewise.
23048         * doc/glibc-functions/wcstold_l.texi: Likewise.
23049         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23050         * doc/glibc-functions/wcstoq.texi: Likewise.
23051         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23052         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23053         * doc/glibc-functions/wcstouq.texi: Likewise.
23054         * doc/glibc-functions/wmempcpy.texi: Likewise.
23055
23056 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23057             Eric Blake  <ebb9@byu.net>
23058             Paolo Bonzini  <bonzini@gnu.org>
23059             Bruno Haible  <bruno@clisp.org>
23060
23061         Make c-stack work on Haiku.
23062         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23063         (c_stack_action): Use SA_ONSTACK flag.
23064
23065 2008-12-22  Bruno Haible  <bruno@clisp.org>
23066
23067         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23068
23069 2008-12-22  Bruno Haible  <bruno@clisp.org>
23070
23071         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23072         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23073         being overridden.
23074         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23075         New macros.
23076         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23078         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23079         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23080
23081 2008-12-22  Bruno Haible  <bruno@clisp.org>
23082
23083         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23084         from test code.
23085
23086 2008-12-22  Eric Blake  <ebb9@byu.net>
23087
23088         Avoid gcc warnings on cygwin.
23089         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23090         Avoid unused variable.
23091         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23092         Likewise.
23093
23094 2008-12-22  Bruno Haible  <bruno@clisp.org>
23095
23096         Remove HAVE_MBRTOWC conditionals.
23097         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23098         (mbscasecmp): Assume mbrtowc function.
23099         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23100         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23101         * lib/mbschr.c: Include mbuiter.h unconditionally.
23102         (mbschr): Assume mbrtowc function.
23103         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23104         (mbscspn): Assume mbrtowc function.
23105         * lib/mbslen.c: Include mbuiter.h unconditionally.
23106         (mbslen): Assume mbrtowc function.
23107         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23108         (mbsncasecmp): Assume mbrtowc function.
23109         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23110         (mbsnlen): Assume mbrtowc function.
23111         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23112         (mbspbrk): Assume mbrtowc function.
23113         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23114         (mbspcasecmp): Assume mbrtowc function.
23115         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23116         (mbsrchr): Assume mbrtowc function.
23117         * lib/mbssep.c: Include mbuiter.h unconditionally.
23118         (mbssep): Assume mbrtowc function.
23119         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23120         (mbsspn): Assume mbrtowc function.
23121         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23122         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23123         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23124         (mbstok_r): Assume mbrtowc function.
23125         * lib/propername.c: Include mbuiter.h unconditionally.
23126         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23127         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23128         (trim2): Assume mbrtowc function.
23129         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23130         (mbsnwidth): Assume mbrtowc function.
23131         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23132         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23133         fallback definitions.
23134         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23135
23136 2008-12-22  Bruno Haible  <bruno@clisp.org>
23137
23138         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23139
23140 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23141
23142         * modules/regex: Request emulations for the mb*/wc* functions we need.
23143         * m4/regex.m4: Don't look for those functions here.
23144         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23145
23146 2008-12-22  Bruno Haible  <bruno@clisp.org>
23147
23148         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23149
23150 2008-12-21  Bruno Haible  <bruno@clisp.org>
23151
23152         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23153         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23154         (Include): Remove conditionalization.
23155         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23156         (Include): Remove conditionalization.
23157         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23158         (Include): Remove conditionalization.
23159         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23160         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23161         * NEWS: Mention the change.
23162         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23163         via Sergey Poznyakoff <gray@gnu.org.ua>.
23164
23165 2008-12-21  Bruno Haible  <bruno@clisp.org>
23166
23167         * MODULES.html.sh (Extended multibyte and wide character utilities
23168         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23169         wcrtomb, wcsrtombs.
23170         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23171         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23172         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23173         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23174
23175 2008-12-21  Bruno Haible  <bruno@clisp.org>
23176
23177         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23178
23179 2008-12-21  Bruno Haible  <bruno@clisp.org>
23180
23181         * modules/wcsnrtombs-tests: New file.
23182         * tests/test-wcsnrtombs1.sh: New file.
23183         * tests/test-wcsnrtombs2.sh: New file.
23184         * tests/test-wcsnrtombs3.sh: New file.
23185         * tests/test-wcsnrtombs4.sh: New file.
23186         * tests/test-wcsnrtombs.c: New file.
23187
23188         New module 'wcsnrtombs'.
23189         * lib/wchar.in.h (wcsnrtombs): New declaration.
23190         * lib/wcsnrtombs.c: New file.
23191         * lib/wcsrtombs-state.c: New file.
23192         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23193         (internal_state): Remove variable.
23194         * m4/wcsnrtombs.m4: New file.
23195         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23196         compilation units.
23197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23198         HAVE_WCSNRTOMBS.
23199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23200         HAVE_WCSNRTOMBS.
23201         * modules/wcsnrtombs: New file.
23202         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23203         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23204
23205 2008-12-21  Bruno Haible  <bruno@clisp.org>
23206
23207         * modules/wcsrtombs-tests: New file.
23208         * tests/test-wcsrtombs1.sh: New file.
23209         * tests/test-wcsrtombs2.sh: New file.
23210         * tests/test-wcsrtombs3.sh: New file.
23211         * tests/test-wcsrtombs4.sh: New file.
23212         * tests/test-wcsrtombs.c: New file.
23213
23214         New module 'wcsrtombs'.
23215         * lib/wchar.in.h (wcsrtombs): New declaration.
23216         * lib/wcsrtombs.c: New file.
23217         * m4/wcsrtombs.m4: New file.
23218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23219         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23221         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23222         * modules/wcsrtombs: New file.
23223         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23224         bugs.
23225
23226 2008-12-21  Bruno Haible  <bruno@clisp.org>
23227
23228         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23229         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23230         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23231         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23232         if not correct.
23233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23234         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23235         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23236         m4/locale-zh.m4, m4/codeset.m4.
23237         * doc/posix-functions/wcrtomb.texi: Document the bug.
23238
23239 2008-12-21  Bruno Haible  <bruno@clisp.org>
23240
23241         Work around a btowc() bug on IRIX 6.5.
23242         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23243         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23244         REPLACE_WTOBC if not.
23245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23246         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23247         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23248
23249 2008-12-21  Bruno Haible  <bruno@clisp.org>
23250
23251         * modules/wcrtomb-tests: New file.
23252         * tests/test-wcrtomb.sh: New file.
23253         * tests/test-wcrtomb.c: New file.
23254
23255         New module 'wcrtomb'.
23256         * lib/wchar.in.h (wcrtomb): New declaration.
23257         * lib/wcrtomb.c: New file.
23258         * m4/wcrtomb.m4: New file.
23259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23260         HAVE_WCRTOMB.
23261         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23262         HAVE_WCRTOMB.
23263         * modules/wcrtomb: New file.
23264         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23265
23266 2008-12-21  Bruno Haible  <bruno@clisp.org>
23267
23268         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23269         * modules/mbsrtowcs (Files): Likewise.
23270         * modules/wctob (Files): Likewise.
23271         * modules/c-strcase-tests (Files): Likewise.
23272         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23273         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23274         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23275         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23276         * modules/vasnprintf-posix-tests (Files): Likewise.
23277
23278 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23279
23280         gitlog-to-changelog: pass all command-line arguments to git-log
23281         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23282         it is sometimes convenient to filter the commits in various ways.
23283         gitlog-to-changelog only allows --since to specify a start date,
23284         but git-log itself supports many other filtering mechanisms.
23285         At the moment, I want to filter by branch name.  Rather than
23286         adding a --branch option to gitlog-to-changelog, it seems more
23287         flexible to simply pass all options directly to git-log and let
23288         git do the work.  Notice that this effectively makes --since a
23289         redundant option for gitlog-to-changelog, but removing it would
23290         require current usage to change since calls would then require
23291         an additional '--'.
23292
23293 2008-12-21  Bruno Haible  <bruno@clisp.org>
23294
23295         * modules/mbsnrtowcs-tests: New file.
23296         * tests/test-mbsnrtowcs1.sh: New file.
23297         * tests/test-mbsnrtowcs2.sh: New file.
23298         * tests/test-mbsnrtowcs3.sh: New file.
23299         * tests/test-mbsnrtowcs4.sh: New file.
23300         * tests/test-mbsnrtowcs.c: New file.
23301
23302         New module 'mbsnrtowcs'.
23303         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23304         * lib/mbsnrtowcs.c: New file.
23305         * lib/mbsrtowcs-state.c: New file.
23306         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23307         (internal_state): Remove variable.
23308         * m4/mbsnrtowcs.m4: New file.
23309         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23310         compilation units.
23311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23312         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23313         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23314         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23315         * modules/mbsnrtowcs: New file.
23316         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23317         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23318         portability problem.
23319
23320 2008-12-21  Bruno Haible  <bruno@clisp.org>
23321
23322         Work around mbsrtowcs bug.
23323         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23324         (gl_FUNC_MBSRTOWCS): Invoke it.
23325         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23326         m4/locale-zh.m4.
23327         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23328
23329 2008-12-21  Bruno Haible  <bruno@clisp.org>
23330
23331         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23332
23333 2008-12-21  Bruno Haible  <bruno@clisp.org>
23334
23335         Update doc for AIX.
23336         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23337         16-bit wchar_t type.
23338         * doc/posix-functions/btowc.texi: Likewise.
23339         * doc/posix-functions/fgetwc.texi: Likewise.
23340         * doc/posix-functions/fgetws.texi: Likewise.
23341         * doc/posix-functions/fputwc.texi: Likewise.
23342         * doc/posix-functions/fputws.texi: Likewise.
23343         * doc/posix-functions/fwide.texi: Likewise.
23344         * doc/posix-functions/fwprintf.texi: Likewise.
23345         * doc/posix-functions/fwscanf.texi: Likewise.
23346         * doc/posix-functions/getwchar.texi: Likewise.
23347         * doc/posix-functions/getwc.texi: Likewise.
23348         * doc/posix-functions/iswalnum.texi: Likewise.
23349         * doc/posix-functions/iswalpha.texi: Likewise.
23350         * doc/posix-functions/iswblank.texi: Likewise.
23351         * doc/posix-functions/iswcntrl.texi: Likewise.
23352         * doc/posix-functions/iswctype.texi: Likewise.
23353         * doc/posix-functions/iswdigit.texi: Likewise.
23354         * doc/posix-functions/iswgraph.texi: Likewise.
23355         * doc/posix-functions/iswlower.texi: Likewise.
23356         * doc/posix-functions/iswprint.texi: Likewise.
23357         * doc/posix-functions/iswpunct.texi: Likewise.
23358         * doc/posix-functions/iswspace.texi: Likewise.
23359         * doc/posix-functions/iswupper.texi: Likewise.
23360         * doc/posix-functions/iswxdigit.texi: Likewise.
23361         * doc/posix-functions/mbrtowc.texi: Likewise.
23362         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23363         * doc/posix-functions/mbstowcs.texi: Likewise.
23364         * doc/posix-functions/mbtowc.texi: Likewise.
23365         * doc/posix-functions/putwchar.texi: Likewise.
23366         * doc/posix-functions/putwc.texi: Likewise.
23367         * doc/posix-functions/swprintf.texi: Likewise.
23368         * doc/posix-functions/tolower.texi: Likewise.
23369         * doc/posix-functions/toupper.texi: Likewise.
23370         * doc/posix-functions/towctrans.texi: Likewise.
23371         * doc/posix-functions/ungetwc.texi: Likewise.
23372         * doc/posix-functions/vswprintf.texi: Likewise.
23373         * doc/posix-functions/wcrtomb.texi: Likewise.
23374         * doc/posix-functions/wcscat.texi: Likewise.
23375         * doc/posix-functions/wcschr.texi: Likewise.
23376         * doc/posix-functions/wcscmp.texi: Likewise.
23377         * doc/posix-functions/wcscoll.texi: Likewise.
23378         * doc/posix-functions/wcscpy.texi: Likewise.
23379         * doc/posix-functions/wcscspn.texi: Likewise.
23380         * doc/posix-functions/wcsftime.texi: Likewise.
23381         * doc/posix-functions/wcslen.texi: Likewise.
23382         * doc/posix-functions/wcsncat.texi: Likewise.
23383         * doc/posix-functions/wcsncmp.texi: Likewise.
23384         * doc/posix-functions/wcsncpy.texi: Likewise.
23385         * doc/posix-functions/wcspbrk.texi: Likewise.
23386         * doc/posix-functions/wcsrchr.texi: Likewise.
23387         * doc/posix-functions/wcsrtombs.texi: Likewise.
23388         * doc/posix-functions/wcsspn.texi: Likewise.
23389         * doc/posix-functions/wcsstr.texi: Likewise.
23390         * doc/posix-functions/wcstod.texi: Likewise.
23391         * doc/posix-functions/wcstof.texi: Likewise.
23392         * doc/posix-functions/wcstoimax.texi: Likewise.
23393         * doc/posix-functions/wcstok.texi: Likewise.
23394         * doc/posix-functions/wcstold.texi: Likewise.
23395         * doc/posix-functions/wcstoll.texi: Likewise.
23396         * doc/posix-functions/wcstol.texi: Likewise.
23397         * doc/posix-functions/wcstombs.texi: Likewise.
23398         * doc/posix-functions/wcstoull.texi: Likewise.
23399         * doc/posix-functions/wcstoul.texi: Likewise.
23400         * doc/posix-functions/wcstoumax.texi: Likewise.
23401         * doc/posix-functions/wcswidth.texi: Likewise.
23402         * doc/posix-functions/wcsxfrm.texi: Likewise.
23403         * doc/posix-functions/wctob.texi: Likewise.
23404         * doc/posix-functions/wctomb.texi: Likewise.
23405         * doc/posix-functions/wctrans.texi: Likewise.
23406         * doc/posix-functions/wctype.texi: Likewise.
23407         * doc/posix-functions/wcwidth.texi: Likewise.
23408         * doc/posix-functions/wmemchr.texi: Likewise.
23409         * doc/posix-functions/wmemcmp.texi: Likewise.
23410         * doc/posix-functions/wmemcpy.texi: Likewise.
23411         * doc/posix-functions/wmemmove.texi: Likewise.
23412         * doc/posix-functions/wmemset.texi: Likewise.
23413         * doc/posix-functions/wprintf.texi: Likewise.
23414         * doc/posix-functions/wscanf.texi: Likewise.
23415
23416 2008-12-21  Bruno Haible  <bruno@clisp.org>
23417
23418         Update doc for HP-UX 11.11.
23419         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23420         in HP-UX version 11.00, not in all versions of HP-UX 11.
23421         * doc/posix-functions/fwide.texi: Likewise.
23422         * doc/posix-functions/fwprintf.texi: Likewise.
23423         * doc/posix-functions/fwscanf.texi: Likewise.
23424         * doc/posix-functions/inet_ntop.texi: Likewise.
23425         * doc/posix-functions/inet_pton.texi: Likewise.
23426         * doc/posix-functions/mbrlen.texi: Likewise.
23427         * doc/posix-functions/mbrtowc.texi: Likewise.
23428         * doc/posix-functions/mbsinit.texi: Likewise.
23429         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23430         * doc/posix-functions/swprintf.texi: Likewise.
23431         * doc/posix-functions/swscanf.texi: Likewise.
23432         * doc/posix-functions/towctrans.texi: Likewise.
23433         * doc/posix-functions/vfwprintf.texi: Likewise.
23434         * doc/posix-functions/vswprintf.texi: Likewise.
23435         * doc/posix-functions/vwprintf.texi: Likewise.
23436         * doc/posix-functions/wcrtomb.texi: Likewise.
23437         * doc/posix-functions/wcsrtombs.texi: Likewise.
23438         * doc/posix-functions/wcsstr.texi: Likewise.
23439         * doc/posix-functions/wctob.texi: Likewise.
23440         * doc/posix-functions/wctrans.texi: Likewise.
23441         * doc/posix-functions/wmemchr.texi: Likewise.
23442         * doc/posix-functions/wmemcmp.texi: Likewise.
23443         * doc/posix-functions/wmemcpy.texi: Likewise.
23444         * doc/posix-functions/wmemmove.texi: Likewise.
23445         * doc/posix-functions/wmemset.texi: Likewise.
23446         * doc/posix-functions/wprintf.texi: Likewise.
23447         * doc/posix-functions/wscanf.texi: Likewise.
23448
23449 2008-12-21  Bruno Haible  <bruno@clisp.org>
23450
23451         Work around a portability problem.
23452         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23453         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23454
23455 2008-12-20  Bruno Haible  <bruno@clisp.org>
23456
23457         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23459         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23461         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23462
23463         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23464         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23465         set.
23466         (GNULIB_defined_mbstate_t): New macro.
23467         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23468         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23469         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23470         reuses the system's mbrtowc function but works around the bugs.
23471         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23472         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23473         macros.
23474         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23475         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23476         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23478         REPLACE_MBSINIT if mbsinit needs to be overridden.
23479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23480         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23481         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23482         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23483         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23484         m4/locale-zh.m4.
23485         (Depends): Add mbsinit.
23486         * modules/mbsinit (Depends): Add mbrtowc.
23487         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23488
23489 2008-12-20  Bruno Haible  <bruno@clisp.org>
23490
23491         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23492         so that there are no conversion errors on AIX.
23493         * tests/test-mbsrtowcs.c (main): LIkewise.
23494
23495 2008-12-20  Bruno Haible  <bruno@clisp.org>
23496
23497         Work around wctob bug on Solaris <= 9.
23498         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23499         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23501         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23502         * modules/wctob (Files): Add m4/locale-fr.m4.
23503         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23504
23505 2008-12-20  Bruno Haible  <bruno@clisp.org>
23506
23507         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23508         /dev/null.
23509         * tests/test-select-in.sh: Likewise.
23510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23511
23512 2008-12-20  Bruno Haible  <bruno@clisp.org>
23513
23514         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23515         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23516         Cygwin 1.5.x.
23517
23518 2008-12-20  Bruno Haible  <bruno@clisp.org>
23519
23520         Ensure mbstate_t is defined on HP-UX 11.11.
23521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23522         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23523         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23524         AC_USE_SYSTEM_EXTENSIONS.
23525         * modules/fnmatch (Depends-on): Add extensions.
23526         * modules/mbrlen (Depends-on): Likewise.
23527         * modules/mbrtowc (Depends-on): Likewise.
23528         * modules/mbsinit (Depends-on): Likewise.
23529         * modules/mbsrtowcs (Depends-on): Likewise.
23530         * modules/mbswidth (Depends-on): Likewise.
23531         * modules/quotearg (Depends-on): Likewise.
23532         * modules/strftime (Depends-on): Likewise.
23533
23534 2008-12-20  Bruno Haible  <bruno@clisp.org>
23535
23536         Ensure wctob is declared on IRIX 6.5.
23537         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23538         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23539         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23541         of HAVE_WCTOB.
23542         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23543         HAVE_WCTOB.
23544         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23545
23546 2008-12-19  Bruno Haible  <bruno@clisp.org>
23547
23548         * modules/mbsrtowcs-tests: New file.
23549         * tests/test-mbsrtowcs1.sh: New file.
23550         * tests/test-mbsrtowcs2.sh: New file.
23551         * tests/test-mbsrtowcs3.sh: New file.
23552         * tests/test-mbsrtowcs4.sh: New file.
23553         * tests/test-mbsrtowcs.c: New file.
23554
23555         New module 'mbsrtowcs'.
23556         * lib/wchar.in.h (mbsrtowcs): New declaration.
23557         * lib/mbsrtowcs.c: New file.
23558         * m4/mbsrtowcs.m4: New file.
23559         * modules/mbsrtowcs: New file.
23560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23561         HAVE_MBSRTOWCS.
23562         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23563         HAVE_MBSRTOWCS.
23564         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23565
23566 2008-12-19  Bruno Haible  <bruno@clisp.org>
23567
23568         New module 'mbrlen'.
23569         * lib/wchar.in.h (mbrlen): New declaration.
23570         * lib/mbrlen.c: New file.
23571         * m4/mbrlen.m4: New file.
23572         * modules/mbrlen: New file.
23573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23574         HAVE_MBRLEN.
23575         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23576         HAVE_MBRLEN.
23577         * doc/posix-functions/mbrlen.texi: Document the new module.
23578
23579 2008-12-19  Bruno Haible  <bruno@clisp.org>
23580
23581         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23582         * modules/mbrtowc (Depends-on): Add verify.
23583         Suggested by Paul Eggert.
23584
23585 2008-12-18  Bruno Haible  <bruno@clisp.org>
23586
23587         * modules/mbsinit-tests: New file.
23588         * tests/test-mbsinit.sh: New file.
23589         * tests/test-mbsinit.c: New file.
23590
23591 2008-12-18  Bruno Haible  <bruno@clisp.org>
23592
23593         * modules/mbrtowc-tests: New file.
23594         * tests/test-mbrtowc1.sh: New file.
23595         * tests/test-mbrtowc2.sh: New file.
23596         * tests/test-mbrtowc3.sh: New file.
23597         * tests/test-mbrtowc4.sh: New file.
23598         * tests/test-mbrtowc.c: New file.
23599
23600         New module 'mbrtowc'.
23601         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23602         mbsinit and mbrtowc.
23603         (mbrtowc): New declaration.
23604         * lib/mbrtowc.c: New file.
23605         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23606         * modules/mbrtowc: New file.
23607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23608         HAVE_MBRTOWC.
23609         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23610         HAVE_MBRTOWC.
23611         * doc/posix-functions/mbrtowc.texi: Document the new module.
23612
23613 2008-12-18  Bruno Haible  <bruno@clisp.org>
23614
23615         New module 'wctob'.
23616         * lib/wchar.in.h (wctob): New declaration.
23617         * lib/wctob.c: New file.
23618         * m4/wctob.m4: New file.
23619         * modules/wctob: New file.
23620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23621         HAVE_WCTOB.
23622         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23623         * doc/posix-functions/wctob.texi: Document the new module.
23624
23625 2008-12-18  Bruno Haible  <bruno@clisp.org>
23626
23627         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23628         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23629
23630 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23631
23632         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23633         G. Christensen" <tgc@jupiterrise.com>.
23634
23635         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23636         G. Christensen" <tgc@jupiterrise.com>.
23637
23638         * lib/flock.c: Need to include string.h.  Reported by "Tom
23639         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23640         <ebb9@byu.net>.
23641
23642 2008-12-18  Bruno Haible  <bruno@clisp.org>
23643
23644         * m4/locale-ja.m4: New file, from GNU gettext.
23645
23646 2008-12-17  Bruno Haible  <bruno@clisp.org>
23647
23648         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23649         Suggested by Eric Blake.
23650
23651 2008-12-17  Bruno Haible  <bruno@clisp.org>
23652
23653         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23654
23655 2008-12-17  Bruno Haible  <bruno@clisp.org>
23656
23657         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23658         * modules/mbsinit (Depends-on): Add verify.
23659         Suggested by Paul Eggert.
23660
23661 2008-12-17  Bruno Haible  <bruno@clisp.org>
23662
23663         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23664         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23665         gl_FUNC_MBRTOWC.
23666         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23667         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23668         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23669         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23670         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23671         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23672         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23673         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23674         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23675         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23676         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23677         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23678         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23679         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23680         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23681         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23682         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23683         * modules/trim (configure.ac): Likewise.
23684
23685 2008-12-17  Bruno Haible  <bruno@clisp.org>
23686
23687         * modules/btowc-tests: New file.
23688         * tests/test-btowc1.sh: New file.
23689         * tests/test-btowc2.sh: New file.
23690         * tests/test-btowc.c: New file.
23691
23692         New module 'btowc'.
23693         * lib/wchar.in.h (btowc): New declaration.
23694         * lib/btowc.c: New file.
23695         * m4/btowc.m4: New file.
23696         * modules/btowc: New file.
23697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23698         HAVE_BTOWC.
23699         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23700         * doc/posix-functions/btowc.texi: Document the new module.
23701
23702 2008-12-17  Bruno Haible  <bruno@clisp.org>
23703
23704         New module 'mbsinit'.
23705         * lib/wchar.in.h (mbsinit): New declaration.
23706         * lib/mbsinit.c: New file.
23707         * m4/mbsinit.m4: New file.
23708         * modules/mbsinit: New file.
23709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23710         HAVE_MBSINIT.
23711         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23712         HAVE_MBSINIT.
23713         * doc/posix-functions/mbsinit.texi: Document the new module.
23714
23715 2008-12-16  Bruno Haible  <bruno@clisp.org>
23716
23717         * lib/unistd.in.h: Add comment.
23718         * tests/test-environ.c: Don't include <stdlib.h>.
23719
23720 2008-12-16  Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/parse-duration.h (parse_duration): Document return value
23723         convention.
23724         * lib/parse-duration.c: Include specification header first. Add
23725         comments.
23726         (_): Remove macro.
23727         (parse_year_month_day, parse_hour_minute_second): Move side effects
23728         outside of strchr call.
23729         (parse_non_iso8601): Move side effects outside of isspace call.
23730         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23731         call.
23732
23733 2008-12-16  Bruno Haible  <bruno@clisp.org>
23734
23735         * tests/test-parse-duration.sh: Produce no output when the test
23736         succeeds.
23737
23738 2008-12-16  Bruno Haible  <bruno@clisp.org>
23739
23740         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23741         expressions.
23742
23743 2008-12-15  Bruno Haible  <bruno@clisp.org>
23744
23745         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23746         * doc/glibc-functions/flistxattr.texi: Likewise.
23747         * doc/glibc-functions/fopencookie.texi: Likewise.
23748         * doc/glibc-functions/fremovexattr.texi: Likewise.
23749         * doc/glibc-functions/fsetxattr.texi: Likewise.
23750         * doc/glibc-functions/getxattr.texi: Likewise.
23751         * doc/glibc-functions/lgetxattr.texi: Likewise.
23752         * doc/glibc-functions/listxattr.texi: Likewise.
23753         * doc/glibc-functions/llistxattr.texi: Likewise.
23754         * doc/glibc-functions/lremovexattr.texi: Likewise.
23755         * doc/glibc-functions/lsetxattr.texi: Likewise.
23756         * doc/glibc-functions/removexattr.texi: Likewise.
23757         * doc/glibc-functions/setxattr.texi: Likewise.
23758         * doc/posix-functions/open_memstream.texi: Likewise.
23759
23760 2008-12-15  Eric Blake  <ebb9@byu.net>
23761
23762         Update doc for cygwin 1.7.
23763         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23764         functions.
23765         * doc/posix-functions/fchmodat.texi: Likewise.
23766         * doc/posix-functions/fchownat.texi: Likewise.
23767         * doc/posix-functions/fdopendir.texi: Likewise.
23768         * doc/posix-functions/fmemopen.texi: Likewise.
23769         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23770         * doc/posix-functions/fstatat.texi: Likewise.
23771         * doc/posix-functions/futimens.texi: Likewise.
23772         * doc/posix-functions/gai_strerror.texi: Likewise.
23773         * doc/posix-functions/getaddrinfo.texi: Likewise.
23774         * doc/posix-functions/getnameinfo.texi: Likewise.
23775         * doc/posix-functions/if_freenameindex.texi: Likewise.
23776         * doc/posix-functions/if_indextoname.texi: Likewise.
23777         * doc/posix-functions/if_nameindex.texi: Likewise.
23778         * doc/posix-functions/if_nametoindex.texi: Likewise.
23779         * doc/posix-functions/insque.texi: Likewise.
23780         * doc/posix-functions/linkat.texi: Likewise.
23781         * doc/posix-functions/llrint.texi: Likewise.
23782         * doc/posix-functions/llrintf.texi: Likewise.
23783         * doc/posix-functions/llrintl.texi: Likewise.
23784         * doc/posix-functions/lockf.texi: Likewise.
23785         * doc/posix-functions/lrintl.texi: Likewise.
23786         * doc/posix-functions/mkdirat.texi: Likewise.
23787         * doc/posix-functions/mkfifoat.texi: Likewise.
23788         * doc/posix-functions/mknodat.texi: Likewise.
23789         * doc/posix-functions/mq_close.texi: Likewise.
23790         * doc/posix-functions/mq_getattr.texi: Likewise.
23791         * doc/posix-functions/mq_notify.texi: Likewise.
23792         * doc/posix-functions/mq_open.texi: Likewise.
23793         * doc/posix-functions/mq_receive.texi: Likewise.
23794         * doc/posix-functions/mq_send.texi: Likewise.
23795         * doc/posix-functions/mq_setattr.texi: Likewise.
23796         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23797         * doc/posix-functions/mq_timedsend.texi: Likewise.
23798         * doc/posix-functions/mq_unlink.texi: Likewise.
23799         * doc/posix-functions/open_memstream.texi: Likewise.
23800         * doc/posix-functions/openat.texi: Likewise.
23801         * doc/posix-functions/posix_fadvise.texi: Likewise.
23802         * doc/posix-functions/posix_fallocate.texi: Likewise.
23803         * doc/posix-functions/posix_madvise.texi: Likewise.
23804         * doc/posix-functions/posix_memalign.texi: Likewise.
23805         * doc/posix-functions/posix_openpt.texi: Likewise.
23806         * doc/posix-functions/readlinkat.texi: Likewise.
23807         * doc/posix-functions/remque.texi: Likewise.
23808         * doc/posix-functions/renameat.texi: Likewise.
23809         * doc/posix-functions/rintl.texi: Likewise.
23810         * doc/posix-functions/sem_unlink.texi: Likewise.
23811         * doc/posix-functions/shm_open.texi: Likewise.
23812         * doc/posix-functions/shm_unlink.texi: Likewise.
23813         * doc/posix-functions/signgam.texi: Likewise.
23814         * doc/posix-functions/sigset.texi: Likewise.
23815         * doc/posix-functions/stpcpy.texi: Likewise.
23816         * doc/posix-functions/stpncpy.texi: Likewise.
23817         * doc/posix-functions/strerror.texi: Likewise.
23818         * doc/posix-functions/strtod.texi: Likewise.
23819         * doc/posix-functions/symlinkat.texi: Likewise.
23820         * doc/posix-functions/unlinkat.texi: Likewise.
23821         * doc/posix-functions/utimensat.texi: Likewise.
23822         * doc/glibc-functions/bindresvport.texi: Likewise.
23823         * doc/glibc-functions/dn_expand.texi: Likewise.
23824         * doc/glibc-functions/exp10.texi: Likewise.
23825         * doc/glibc-functions/exp10f.texi: Likewise.
23826         * doc/glibc-functions/fgetxattr.texi: Likewise.
23827         * doc/glibc-functions/flistxattr.texi: Likewise.
23828         * doc/glibc-functions/fopencookie.texi: Likewise.
23829         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23830         * doc/glibc-functions/fremovexattr.texi: Likewise.
23831         * doc/glibc-functions/fsetxattr.texi: Likewise.
23832         * doc/glibc-functions/getifaddrs.texi: Likewise.
23833         * doc/glibc-functions/getxattr.texi: Likewise.
23834         * doc/glibc-functions/lgetxattr.texi: Likewise.
23835         * doc/glibc-functions/listxattr.texi: Likewise.
23836         * doc/glibc-functions/llistxattr.texi: Likewise.
23837         * doc/glibc-functions/lremovexattr.texi: Likewise.
23838         * doc/glibc-functions/lsetxattr.texi: Likewise.
23839         * doc/glibc-functions/pow10.texi: Likewise.
23840         * doc/glibc-functions/pow10f.texi: Likewise.
23841         * doc/glibc-functions/rcmd_af.texi: Likewise.
23842         * doc/glibc-functions/removexattr.texi: Likewise.
23843         * doc/glibc-functions/res_init.texi: Likewise.
23844         * doc/glibc-functions/res_mkquery.texi: Likewise.
23845         * doc/glibc-functions/res_query.texi: Likewise.
23846         * doc/glibc-functions/res_querydomain.texi: Likewise.
23847         * doc/glibc-functions/res_send.texi: Likewise.
23848         * doc/glibc-functions/rresvport_af.texi: Likewise.
23849         * doc/glibc-functions/setxattr.texi: Likewise.
23850         * doc/glibc-functions/strcasestr.texi: Likewise.
23851
23852 2008-12-15  Bruno Haible  <bruno@clisp.org>
23853
23854         Fix compilation error on OSF/1 4.0.
23855         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
23856         <sys/time.h>, simply delegate to the system header.
23857         Reported by Daniel Richard G. <oss@teragram.com>.
23858
23859 2008-12-15  Bruno Haible  <bruno@clisp.org>
23860
23861         * doc/posix-functions/openat.texi: Mention the 'openat' module.
23862         * doc/posix-functions/fchmodat.texi: Likewise.
23863         * doc/posix-functions/fchownat.texi: Likewise.
23864         * doc/posix-functions/fdopendir.texi: Likewise.
23865         * doc/posix-functions/fstatat.texi: Likewise.
23866         * doc/posix-functions/mkdirat.texi: Likewise.
23867         * doc/posix-functions/unlinkat.texi: Likewise.
23868
23869 2008-12-14  Bruno Haible  <bruno@clisp.org>
23870
23871         Update doc for POSIX:2008.
23872         * doc/posix-functions/faccessat.texi: New file.
23873         * doc/posix-functions/fchmodat.texi: New file.
23874         * doc/posix-functions/fchownat.texi: New file.
23875         * doc/posix-functions/fdopendir.texi: New file.
23876         * doc/posix-functions/fstatat.texi: New file.
23877         * doc/posix-functions/futimens.texi: New file.
23878         * doc/posix-functions/linkat.texi: New file.
23879         * doc/posix-functions/mkdirat.texi: New file.
23880         * doc/posix-functions/mkfifoat.texi: New file.
23881         * doc/posix-functions/mknodat.texi: New file.
23882         * doc/posix-functions/open_wmemstream.texi: New file.
23883         * doc/posix-functions/openat.texi: New file.
23884         * doc/posix-functions/psiginfo.texi: New file.
23885         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
23886         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
23887         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
23888         * doc/posix-functions/readlinkat.texi: New file.
23889         * doc/posix-functions/renameat.texi: New file.
23890         * doc/posix-functions/strerror_l.texi: New file.
23891         * doc/posix-functions/symlinkat.texi: New file.
23892         * doc/posix-functions/unlinkat.texi: New file.
23893         * doc/posix-functions/utimensat.texi: New file.
23894         * doc/gnulib.texi (Function Substitutes): Add these subsections.
23895
23896 2008-12-14  Bruno Haible  <bruno@clisp.org>
23897
23898         Update doc for POSIX:2008.
23899         * doc/posix-functions/alphasort.texi: Renamed from
23900         doc/glibc-functions/alphasort.texi.
23901         * doc/posix-functions/dirfd.texi: Renamed from
23902         doc/glibc-functions/dirfd.texi.
23903         * doc/posix-functions/dprintf.texi: Renamed from
23904         doc/glibc-functions/dprintf.texi.
23905         * doc/posix-functions/duplocale.texi: Renamed from
23906         doc/glibc-functions/duplocale.texi.
23907         * doc/posix-functions/fexecve.texi: Renamed from
23908         doc/glibc-functions/fexecve.texi.
23909         * doc/posix-functions/fmemopen.texi: Renamed from
23910         doc/glibc-functions/fmemopen.texi.
23911         * doc/posix-functions/freelocale.texi: Renamed from
23912         doc/glibc-functions/freelocale.texi.
23913         * doc/posix-functions/getdate_err.texi: Renamed from
23914         doc/glibc-functions/getdate_err.texi.
23915         * doc/posix-functions/isalnum_l.texi: Renamed from
23916         doc/glibc-functions/isalnum_l.texi.
23917         * doc/posix-functions/isalpha_l.texi: Renamed from
23918         doc/glibc-functions/isalpha_l.texi.
23919         * doc/posix-functions/isblank_l.texi: Renamed from
23920         doc/glibc-functions/isblank_l.texi.
23921         * doc/posix-functions/iscntrl_l.texi: Renamed from
23922         doc/glibc-functions/iscntrl_l.texi.
23923         * doc/posix-functions/isdigit_l.texi: Renamed from
23924         doc/glibc-functions/isdigit_l.texi.
23925         * doc/posix-functions/isgraph_l.texi: Renamed from
23926         doc/glibc-functions/isgraph_l.texi.
23927         * doc/posix-functions/islower_l.texi: Renamed from
23928         doc/glibc-functions/islower_l.texi.
23929         * doc/posix-functions/isprint_l.texi: Renamed from
23930         doc/glibc-functions/isprint_l.texi.
23931         * doc/posix-functions/ispunct_l.texi: Renamed from
23932         doc/glibc-functions/ispunct_l.texi.
23933         * doc/posix-functions/isspace_l.texi: Renamed from
23934         doc/glibc-functions/isspace_l.texi.
23935         * doc/posix-functions/isupper_l.texi: Renamed from
23936         doc/glibc-functions/isupper_l.texi.
23937         * doc/posix-functions/iswalnum_l.texi: Renamed from
23938         doc/glibc-functions/iswalnum_l.texi.
23939         * doc/posix-functions/iswalpha_l.texi: Renamed from
23940         doc/glibc-functions/iswalpha_l.texi.
23941         * doc/posix-functions/iswblank_l.texi: Renamed from
23942         doc/glibc-functions/iswblank_l.texi.
23943         * doc/posix-functions/iswcntrl_l.texi: Renamed from
23944         doc/glibc-functions/iswcntrl_l.texi.
23945         * doc/posix-functions/iswctype_l.texi: Renamed from
23946         doc/glibc-functions/iswctype_l.texi.
23947         * doc/posix-functions/iswdigit_l.texi: Renamed from
23948         doc/glibc-functions/iswdigit_l.texi.
23949         * doc/posix-functions/iswgraph_l.texi: Renamed from
23950         doc/glibc-functions/iswgraph_l.texi.
23951         * doc/posix-functions/iswlower_l.texi: Renamed from
23952         doc/glibc-functions/iswlower_l.texi.
23953         * doc/posix-functions/iswprint_l.texi: Renamed from
23954         doc/glibc-functions/iswprint_l.texi.
23955         * doc/posix-functions/iswpunct_l.texi: Renamed from
23956         doc/glibc-functions/iswpunct_l.texi.
23957         * doc/posix-functions/iswspace_l.texi: Renamed from
23958         doc/glibc-functions/iswspace_l.texi.
23959         * doc/posix-functions/iswupper_l.texi: Renamed from
23960         doc/glibc-functions/iswupper_l.texi.
23961         * doc/posix-functions/iswxdigit_l.texi: Renamed from
23962         doc/glibc-functions/iswxdigit_l.texi.
23963         * doc/posix-functions/isxdigit_l.texi: Renamed from
23964         doc/glibc-functions/isxdigit_l.texi.
23965         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
23966         doc/glibc-functions/mbsnrtowcs.texi.
23967         * doc/posix-functions/mkdtemp.texi: Renamed from
23968         doc/glibc-functions/mkdtemp.texi.
23969         * doc/posix-functions/newlocale.texi: Renamed from
23970         doc/glibc-functions/newlocale.texi.
23971         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
23972         doc/glibc-functions/nl_langinfo_l.texi.
23973         * doc/posix-functions/open_memstream.texi: Renamed from
23974         doc/glibc-functions/open_memstream.texi.
23975         * doc/posix-functions/opterr.texi: Renamed from
23976         doc/glibc-functions/opterr.texi.
23977         * doc/posix-functions/optind.texi: Renamed from
23978         doc/glibc-functions/optind.texi.
23979         * doc/posix-functions/optopt.texi: Renamed from
23980         doc/glibc-functions/optopt.texi.
23981         * doc/posix-functions/psignal.texi: Renamed from
23982         doc/glibc-functions/psignal.texi.
23983         * doc/posix-functions/scandir.texi: Renamed from
23984         doc/glibc-functions/scandir.texi.
23985         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
23986         doc/glibc-functions/sched_get_priority_min.texi.
23987         * doc/posix-functions/signgam.texi: Renamed from
23988         doc/glibc-functions/signgam.texi.
23989         * doc/posix-functions/stpcpy.texi: Renamed from
23990         doc/glibc-functions/stpcpy.texi.
23991         * doc/posix-functions/stpncpy.texi: Renamed from
23992         doc/glibc-functions/stpncpy.texi.
23993         * doc/posix-functions/strcasecmp_l.texi: Renamed from
23994         doc/glibc-functions/strcasecmp_l.texi.
23995         * doc/posix-functions/strcoll_l.texi: Renamed from
23996         doc/glibc-functions/strcoll_l.texi.
23997         * doc/posix-functions/strfmon_l.texi: Renamed from
23998         doc/glibc-functions/strfmon_l.texi.
23999         * doc/posix-functions/strftime_l.texi: Renamed from
24000         doc/glibc-functions/strftime_l.texi.
24001         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24002         doc/glibc-functions/strncasecmp_l.texi.
24003         * doc/posix-functions/strndup.texi: Renamed from
24004         doc/glibc-functions/strndup.texi.
24005         * doc/posix-functions/strnlen.texi: Renamed from
24006         doc/glibc-functions/strnlen.texi.
24007         * doc/posix-functions/strsignal.texi: Renamed from
24008         doc/glibc-functions/strsignal.texi.
24009         * doc/posix-functions/strxfrm_l.texi: Renamed from
24010         doc/glibc-functions/strxfrm_l.texi.
24011         * doc/posix-functions/timer_gettime.texi: Renamed from
24012         doc/glibc-functions/timer_gettime.texi.
24013         * doc/posix-functions/tolower_l.texi: Renamed from
24014         doc/glibc-functions/tolower_l.texi.
24015         * doc/posix-functions/toupper_l.texi: Renamed from
24016         doc/glibc-functions/toupper_l.texi.
24017         * doc/posix-functions/towctrans_l.texi: Renamed from
24018         doc/glibc-functions/towctrans_l.texi.
24019         * doc/posix-functions/towlower_l.texi: Renamed from
24020         doc/glibc-functions/towlower_l.texi.
24021         * doc/posix-functions/towupper_l.texi: Renamed from
24022         doc/glibc-functions/towupper_l.texi.
24023         * doc/posix-functions/uselocale.texi: Renamed from
24024         doc/glibc-functions/uselocale.texi.
24025         * doc/posix-functions/vdprintf.texi: Renamed from
24026         doc/glibc-functions/vdprintf.texi.
24027         * doc/posix-functions/wcpcpy.texi:
24028         Renamed from doc/glibc-functions/wcpcpy.texi.
24029         * doc/posix-functions/wcpncpy.texi: Renamed from
24030         doc/glibc-functions/wcpncpy.texi.
24031         * doc/posix-functions/wcscasecmp.texi: Renamed from
24032         doc/glibc-functions/wcscasecmp.texi.
24033         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24034         doc/glibc-functions/wcscasecmp_l.texi.
24035         * doc/posix-functions/wcscoll_l.texi: Renamed from
24036         doc/glibc-functions/wcscoll_l.texi.
24037         * doc/posix-functions/wcsdup.texi: Renamed from
24038         doc/glibc-functions/wcsdup.texi.
24039         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24040         doc/glibc-functions/wcsncasecmp.texi.
24041         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24042         doc/glibc-functions/wcsncasecmp_l.texi.
24043         * doc/posix-functions/wcsnlen.texi: Renamed from
24044         doc/glibc-functions/wcsnlen.texi.
24045         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24046         doc/glibc-functions/wcsnrtombs.texi.
24047         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24048         doc/glibc-functions/wcsxfrm_l.texi.
24049         * doc/posix-functions/wctrans_l.texi: Renamed from
24050         doc/glibc-functions/wctrans_l.texi.
24051         * doc/posix-functions/wctype_l.texi: Renamed from
24052         doc/glibc-functions/wctype_l.texi.
24053         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24054         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24055         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24056         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24057         these subsections.
24058         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24059         Remove sections.
24060
24061 2008-12-14  Bruno Haible  <bruno@clisp.org>
24062
24063         Update doc for POSIX:2008.
24064         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24065
24066 2008-12-14  Bruno Haible  <bruno@clisp.org>
24067
24068         Update doc for POSIX:2008.
24069         * doc/pastposix-functions/bcmp.texi: Renamed from
24070         doc/posix-functions/bcmp.texi.
24071         * doc/pastposix-functions/bcopy.texi: Renamed from
24072         doc/posix-functions/bcopy.texi.
24073         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24074         doc/posix-functions/bsd_signal.texi.
24075         * doc/pastposix-functions/bzero.texi: Renamed from
24076         doc/posix-functions/bzero.texi.
24077         * doc/pastposix-functions/ecvt.texi: Renamed from
24078         doc/posix-functions/ecvt.texi.
24079         * doc/pastposix-functions/fcvt.texi: Renamed from
24080         doc/posix-functions/fcvt.texi.
24081         * doc/pastposix-functions/ftime.texi: Renamed from
24082         doc/posix-functions/ftime.texi.
24083         * doc/pastposix-functions/gcvt.texi: Renamed from
24084         doc/posix-functions/gcvt.texi.
24085         * doc/pastposix-functions/getcontext.texi: Renamed from
24086         doc/posix-functions/getcontext.texi.
24087         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24088         doc/posix-functions/gethostbyaddr.texi.
24089         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24090         doc/posix-functions/gethostbyname.texi.
24091         * doc/pastposix-functions/getwd.texi: Renamed from
24092         doc/posix-functions/getwd.texi.
24093         * doc/pastposix-functions/h_errno.texi: Renamed from
24094         doc/posix-functions/h_errno.texi.
24095         * doc/pastposix-functions/index.texi: Renamed from
24096         doc/posix-functions/index.texi.
24097         * doc/pastposix-functions/makecontext.texi: Renamed from
24098         doc/posix-functions/makecontext.texi.
24099         * doc/pastposix-functions/mktemp.texi: Renamed from
24100         doc/posix-functions/mktemp.texi.
24101         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24102         doc/posix-functions/pthread_attr_getstackaddr.texi.
24103         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24104         doc/posix-functions/pthread_attr_setstackaddr.texi.
24105         * doc/pastposix-functions/rindex.texi: Renamed from
24106         doc/posix-functions/rindex.texi.
24107         * doc/pastposix-functions/scalb.texi: Renamed from
24108         doc/posix-functions/scalb.texi.
24109         * doc/pastposix-functions/setcontext.texi: Renamed from
24110         doc/posix-functions/setcontext.texi.
24111         * doc/pastposix-functions/swapcontext.texi: Renamed from
24112         doc/posix-functions/swapcontext.texi.
24113         * doc/pastposix-functions/ualarm.texi: Renamed from
24114         doc/posix-functions/ualarm.texi.
24115         * doc/pastposix-functions/usleep.texi: Renamed from
24116         doc/posix-functions/usleep.texi.
24117         * doc/pastposix-functions/vfork.texi: Renamed from
24118         doc/posix-functions/vfork.texi.
24119         * doc/pastposix-functions/wcswcs.texi: Renamed from
24120         doc/posix-functions/wcswcs.texi.
24121         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24122         (Function Substitutes): Update.
24123
24124 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24125
24126         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24127         m4/strerror.m4.
24128
24129 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24130             Bruno Haible  <bruno@clisp.org>
24131
24132         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24133
24134 2008-12-13  Bruno Haible  <bruno@clisp.org>
24135
24136         * modules/strtoull (Depends-on): Remove unistd.
24137
24138 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24139
24140         * modules/strtoull (Depends-on): Add stdlib.
24141
24142 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24143
24144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24145
24146 2008-12-10  Jim Meyering  <meyering@redhat.com>
24147
24148         gl_ASSERT: don't say assertions are disabled when they're not
24149         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24150         "checking whether to enable assertions... no", when they are in
24151         fact enabled.  This is solely a bug in the output of configure.
24152         In spite of saying "no", NDEBUG was not defined in that case.
24153         Also, as noted by Eric Blake, leave assertions enabled upon
24154         --enable-assert=INVALID.
24155
24156 2008-12-10  Bruno Haible  <bruno@clisp.org>
24157
24158         Change MODULES.html to refer to POSIX:2008 where possible.
24159         * MODULES.html.sh (POSIX2008_URL): New variable.
24160         (posix_headers): Remove sys/timeb, ucontext.
24161         (posix2001_headers): New variable.
24162         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24163         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24164         index, makecontext, mktemp, pthread_attr_getstackaddr,
24165         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24166         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24167         (posix2001_functions): New variable.
24168         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24169         otherwise.
24170
24171 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24172
24173         add missing include to parse-duration.c
24174         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24175         * modules/parse-duration (Depends-on): Add xalloc.
24176
24177         fix sed script reading maint.mk
24178         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24179         (syntax-check-rules): Use it.
24180
24181 2008-12-09  Bruno Haible  <bruno@clisp.org>
24182
24183         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24184         MacOS X 10.4/PowerPC.
24185         Reported by Simon Josefsson.
24186
24187 2008-12-08  Jim Meyering  <meyering@redhat.com>
24188
24189         work around mingw's lack of some S_IF definitions
24190         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24191         Reported by Simon Josefsson.
24192
24193 2008-12-08  Bruno Haible  <bruno@clisp.org>
24194
24195         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24196         applied to variables. Needed on MacOS X 10.4/PowerPC.
24197         Reported by Simon Josefsson.
24198
24199 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24200         and Eric Blake  <ebb9@byu.net>
24201
24202         assert: honor --enable-assert
24203         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24204         order to honor --enable-assert, rather than treating it as a
24205         synonym for --disable-assert.
24206
24207 2008-12-08  Jim Meyering  <meyering@redhat.com>
24208
24209         * lib/posixtm.c: Remove now-useless declaration of mktime.
24210
24211         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24212
24213 2008-12-07  Bruno Haible  <bruno@clisp.org>
24214
24215         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24216         test_once): Mark functions as static.
24217         * tests/test-tls.c (test_tls): Likewise.
24218
24219 2008-12-07  Bruno Haible  <bruno@clisp.org>
24220
24221         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24222         iconv_register_autodetect.
24223
24224 2008-12-07  Jim Meyering  <meyering@redhat.com>
24225
24226         posixtm.c: avoid a warning
24227         * lib/posixtm.c (posixtime): Don't initialize tm0.
24228         It's no longer needed to placate gcc4's -Wuninitialized,
24229         and the attempt to placate would elicit a new warning.
24230
24231         unicodeio.c: mark unused parameters
24232         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24233         (fallback_failure_callback): Likewise.
24234
24235 2008-12-07  Bruno Haible  <bruno@clisp.org>
24236
24237         * gnulib-tool (func_create_testdir): When building the tests
24238         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24239         Reported by Simon Josefsson.
24240
24241 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24242
24243         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24244
24245 2008-12-06  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24248         Suggested by Eric Blake.
24249
24250 2008-12-06  Bruno Haible  <bruno@clisp.org>
24251
24252         Fix a c-stack test failure on MacOS X.
24253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24254         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24255         handler for SIGBUS as well.
24256         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24257         install a signal handler for SIGBUS as well.
24258         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24259
24260 2008-12-06  Bruno Haible  <bruno@clisp.org>
24261
24262         Advocacy documentation.
24263         * doc/gnulib-intro.texi (Benefits): New section.
24264         * doc/gnulib.texi: Update.
24265
24266 2008-12-06  Bruno Haible  <bruno@clisp.org>
24267
24268         Document the 'manywarnings' module.
24269         * doc/manywarnings.texi: New file.
24270         * doc/gnulib.texi: Include it.
24271
24272 2008-12-05  Eric Blake  <ebb9@byu.net>
24273
24274         tests: silence some gcc warnings
24275         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24276         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24277         type mismatches.
24278
24279 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24280             Bruno Haible  <bruno@clisp.org>
24281
24282         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24283
24284 2008-11-29  Jim Meyering  <meyering@redhat.com>
24285
24286         unicodeio.c: mark unused parameters
24287         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24288         (fallback_failure_callback): Likewise.
24289
24290         fts: fix a thinko
24291         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24292         (set_stat_type): Return S_IF*-valued "type" directly.
24293         Prompted by James Youngman's spotting a related bug.
24294         Confirmed by further testing through find.
24295
24296         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24297         * lib/fts.c (D_TYPE): Define.
24298         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24299         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24300         (s_ifmt_shift_bits): New function.
24301         (set_stat_type): New function.
24302         (fts_build): When not calling fts_stat, call set_stat_type
24303         to propagate dirent.d_type info to fts_read caller.
24304         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24305         fts_statp->st_mode type information may be valid.
24306
24307 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24308
24309         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24310         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24311         <sds@gnu.org>.
24312
24313 2008-11-20  Bruno Haible  <bruno@clisp.org>
24314
24315         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24316         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24317         INCLUDE_NEXT.
24318         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24319         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24320         * modules/math (Makefile.am): Substitute
24321         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24323
24324 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24325             Bruno Haible  <bruno@clisp.org>
24326
24327         * lib/stdint.in.h: Define all type macros so that their expansion is
24328         a single typedef'ed token. Fixes a compilation failure in Boost which
24329         does "using ::int8_t;".
24330
24331 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24332
24333         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24334         gl_MANYWARN_ALL_GCC.
24335         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24336         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24337         * modules/manywarnings: New file.
24338         * MODULES.html.sh: Mention manywarnings module.
24339
24340 2008-11-18  Bruno Haible  <bruno@clisp.org>
24341
24342         * doc/gnulib-tool.texi (Unit tests): New section.
24343
24344 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24345
24346         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24347         paths like 'lib/po/foo.po'.
24348
24349 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24350
24351         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24352         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24353
24354 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24355
24356         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24357         parameter works.
24358
24359 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24360
24361         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24362
24363 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24364
24365         * modules/parse-duration-tests: New file.
24366         * tests/test-parse-duration.sh: New file.
24367         * tests/test-parse-duration.c: New file.
24368
24369         New module 'parse-duration'.
24370         * lib/parse-duration.h: New file.
24371         * lib/parse-duration.c: New file.
24372         * modules/parse-duration: New file.
24373
24374 2008-11-17  Bruno Haible  <bruno@clisp.org>
24375
24376         * tests/test-select-out.sh: Comment out the first pipe test.
24377         Reported by Simon Josefsson.
24378
24379 2008-11-17  Bruno Haible  <bruno@clisp.org>
24380
24381         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24383         gl_HOSTENT.
24384
24385 2008-11-17  Bruno Haible  <bruno@clisp.org>
24386
24387         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24388         -lnetwork and -lnet. Needed for Haiku and BeOS.
24389
24390 2008-11-16  Bruno Haible  <bruno@clisp.org>
24391
24392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24393
24394 2008-11-16  Bruno Haible  <bruno@clisp.org>
24395
24396         Avoid test failure on Haiku.
24397         * tests/test-fsync.c: Include <errno.h>.
24398         (main): Don't require that fsync (0) fails.
24399
24400 2008-11-15  Bruno Haible  <bruno@clisp.org>
24401
24402         New module 'hostent'.
24403         * modules/hostent: New file.
24404         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24405
24406 2008-11-15  Bruno Haible  <bruno@clisp.org>
24407
24408         New module 'servent'.
24409         * modules/servent: New file.
24410         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24411
24412 2008-11-15  Bruno Haible  <bruno@clisp.org>
24413
24414         Avoid generating same test program with two different rules.
24415         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24416         test-frexp to test-frexp-nolibm.
24417         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24418         test-frexpl to test-frexpl-nolibm.
24419
24420 2008-11-15  Bruno Haible  <bruno@clisp.org>
24421
24422         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24423         $(FREXPL_LIBM).
24424
24425 2008-11-15  Bruno Haible  <bruno@clisp.org>
24426
24427         * lib/netdb.in.h: Activate the definitions also when the system's
24428         <netdb.h> has 'struct addrinfo'.
24429         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24430         EAI_OVERFLOW or AI_NUMERICSERV.
24431         * doc/posix-headers/netdb.texi: Document the problem.
24432
24433 2008-11-15  Bruno Haible  <bruno@clisp.org>
24434
24435         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24436
24437         Make the 'sched' module work on platforms where <sched.h> exists but
24438         is incomplete (such as Haiku).
24439         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24440         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24441         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24442         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24443         HAVE_STRUCT_SCHED_PARAM.
24444         * modules/sched (Depends-on): Add include_next.
24445         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24446         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24447         * doc/posix-headers/sched.texi: Document the issue.
24448
24449 2008-11-13  Jim Meyering  <meyering@redhat.com>
24450
24451         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24452         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24453         test would fail due to the difference in the Report bugs to ...
24454         line.  The expected address is empty, "<>", while the actual
24455         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24456
24457 2008-11-12  Bruno Haible  <bruno@clisp.org>
24458
24459         lstat: don't compile lstat.c on systems lacking lstat
24460         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24461         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24462         Reported by Daniel P. Berrange via Jim Meyering.
24463
24464 2008-11-12  Jim Meyering  <meyering@redhat.com>
24465
24466         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24467
24468 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24469
24470         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24471         instead.
24472
24473 2008-11-12  Bruno Haible  <bruno@clisp.org>
24474
24475         * lib/unicodeio.c: Include unistr.h.
24476         (utf8_wctomb): Remove function.
24477         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24478
24479 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24480
24481         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24482         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24483         <bruno@clisp.org>.
24484         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24485
24486 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24487
24488         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24489         * doc/gnulib.texi: Add section for warnings.
24490
24491 2008-11-11  Bruno Haible  <bruno@clisp.org>
24492
24493         * lib/sockets.h: Add a comment.
24494
24495 2008-11-11  Karl Berry  <karl@gnu.org>
24496
24497         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24498
24499 2008-11-11  Eric Blake  <ebb9@byu.net>
24500
24501         fdl.texi: avoid git symlinks
24502         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24503
24504 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24505
24506         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24507
24508 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24509
24510         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24511         (gl_WARN_ADD): Substitute $2 if literal.
24512
24513 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24514
24515         * m4/warning.m4: Remove.
24516
24517 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24518
24519         * m4/warnings.m4: Almost complete rewrite. :-)
24520
24521 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24522
24523         * modules/warnings: New module.
24524         * m4/warnings.m4: New file.
24525         * MODULES.html.sh: Mention warnings module.
24526         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24527         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24528
24529 2008-11-10  Eric Blake  <ebb9@byu.net>
24530
24531         fdl.texi: make a symlink to the latest version
24532         * doc/standards.texi: Revert today's earlier change.
24533         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24534         * doc/fdl.texi: ...and replace this with a symlink to the newer
24535         fdl-1.3.texi.
24536
24537 2008-11-10  Bruno Haible  <bruno@clisp.org>
24538
24539         * tests/test-select-fd.c (main): Accept the result file name as fourth
24540         argument.
24541         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24542         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24543
24544 2008-11-10  Bruno Haible  <bruno@clisp.org>
24545
24546         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24547         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24548         as autoconf-substituted macros.
24549         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24551         gl_NETDB_H_DEFAULTS. Set these variables.
24552         * modules/netdb (Makefile.am): Substitute these variables.
24553
24554 2008-11-10  Eric Blake  <ebb9@byu.net>
24555
24556         standards.texi: include correct file for FDL 1.3
24557         * doc/standards.texi (GNU Free Documentation License): Change
24558         include file to pull in FDL 1.3, not 1.2.
24559
24560         fdl.texi: revert accidental change to license
24561         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24562
24563 2008-11-10  Bruno Haible  <bruno@clisp.org>
24564
24565         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24566         cross-compiling guesses also when the native compile gives no result.
24567
24568 2008-11-10  Bruno Haible  <bruno@clisp.org>
24569
24570         * lib/spawni.c (__spawni): Force variable into the stack.
24571
24572 2008-11-10  Bruno Haible  <bruno@clisp.org>
24573
24574         Add support for Haiku.
24575         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24576         glibc and BeOS, but also on Haiku.
24577         * lib/fpurge.c (fpurge): Likewise.
24578         * lib/freadable.c (freadable): Likewise.
24579         * lib/freadahead.c (freadahead): Likewise.
24580         * lib/freading.c (freading): Likewise.
24581         * lib/freadptr.c (freadptr): Likewise.
24582         * lib/freadseek.c (freadptrinc): Likewise.
24583         * lib/fseeko.c (rpl_fseeko): Likewise.
24584         * lib/fseterr.c (fseterr): Likewise.
24585         * lib/fwritable.c (fwritable): Likewise.
24586         * lib/fwriting.c (fwriting): Likewise.
24587         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24588
24589 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24590
24591         * lib/config.charset: Treat Haiku like BeOS.
24592
24593 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24594
24595         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24596         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24597
24598 2008-11-08  Bruno Haible  <bruno@clisp.org>
24599
24600         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24601         AC_CACHE_CHECK.
24602
24603 2008-11-08  Bruno Haible  <bruno@clisp.org>
24604
24605         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24606
24607 2008-11-08  Bruno Haible  <bruno@clisp.org>
24608
24609         * tests/test-select-fd.c: New file.
24610         * tests/test-select-in.sh: New file.
24611         * tests/test-select-out.sh: New file.
24612         * tests/test-select-stdin.c: New file.
24613         * modules/select-tests (Files): Add the new files.
24614         (Depends-on): Add gettimeofday.
24615         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24616         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24617         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24618
24619 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24620             Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24623
24624 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24625
24626         * build-aux/pmccabe2html: Added support for C++ source files.
24627
24628 2008-11-05  Ben Pfaff  <blp@gnu.org>
24629
24630         Fix lib/close.c build on Windows.
24631         * modules/close (Files): Add lib/w32sock.h.
24632
24633 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24634
24635         Accept Bison's NEWS format.
24636         * build-aux/announce-gen (print_news_deltas): Tweak
24637         $re_prefix.
24638
24639 2008-11-04  Bruno Haible  <bruno@clisp.org>
24640
24641         * modules/random_r (Maintainer): Add glibc.
24642
24643 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24644
24645         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24646         by karl@freefriends.org (Karl Berry).
24647         * doc/alloca.texi: Likewise.
24648         * doc/c-ctype.texi: Likewise.
24649         * doc/c-strcase.texi: Likewise.
24650         * doc/c-strcaseeq.texi: Likewise.
24651         * doc/c-strcasestr.texi: Likewise.
24652         * doc/c-strstr.texi: Likewise.
24653         * doc/c-strtod.texi: Likewise.
24654         * doc/c-strtold.texi: Likewise.
24655         * doc/ctime.texi: Likewise.
24656         * doc/error.texi: Likewise.
24657         * doc/fdl.texi: Likewise.
24658         * doc/gcd.texi: Likewise.
24659         * doc/getdate.texi: Likewise.
24660         * doc/gnulib-intro.texi: Likewise.
24661         * doc/gnulib-tool.texi: Likewise.
24662         * doc/gnulib.texi: Likewise.
24663         * doc/inet_ntoa.texi: Likewise.
24664         * doc/maintain.texi: Likewise.
24665         * doc/make-stds.texi: Likewise.
24666         * doc/quote.texi: Likewise.
24667         * doc/regexprops-generic.texi: Likewise.
24668         * doc/standards.texi: Likewise.
24669         * doc/verify.texi: Likewise.
24670         * doc/visibility.texi: Likewise.
24671         * doc/gnulib.texi (GNU Free Documentation License): Include
24672         fdl-1.3.texi instead of fdl.texi.
24673
24674 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24675
24676         * doc/fdl-1.3.texi: New file, from
24677         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24678         * modules/fdl-1.3: Add.
24679         * MODULES.html.sh: Add fdl-1.3.
24680
24681 2008-11-03  Bruno Haible  <bruno@clisp.org>
24682
24683         Make determination of absolute name of header file work with AIX xlc.
24684         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24685         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24686         preprocessing.
24687         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24688         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24689
24690 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24691
24692         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24693         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24694         <ludo@gnu.org>.
24695
24696 2008-11-02  Bruno Haible  <bruno@clisp.org>
24697
24698         Mark 'strpbrk' obsolete.
24699         * modules/strpbrk (Status, Notice): New sections.
24700         * modules/strtok_r (Depends-on): Add strpbrk.
24701
24702 2008-11-02  Bruno Haible  <bruno@clisp.org>
24703
24704         Mark 'strdup' obsolete.
24705         * modules/strdup (Status, Notice): New sections.
24706         * modules/findprog (Depends-on): Add strdup.
24707         * modules/getaddrinfo (Depends-on): Likewise.
24708         * modules/localename (Depends-on): Likewise.
24709         * modules/relocatable-lib (Depends-on): Likewise.
24710         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24711         * modules/relocatable-prog (Depends-on): Likewise.
24712         * modules/trim (Depends-on): Likewise.
24713         * modules/unictype/gen-ctype (Depends-on): Likewise.
24714         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24715
24716 2008-11-02  Bruno Haible  <bruno@clisp.org>
24717
24718         Mark 'strcspn' obsolete.
24719         * modules/strcspn (Status, Notice): New sections.
24720
24721 2008-11-02  Bruno Haible  <bruno@clisp.org>
24722
24723         Mark 'rmdir' obsolete.
24724         * modules/rmdir (Status, Notice): New sections.
24725         * modules/clean-temp (Depends-on): Add rmdir.
24726         * modules/openat (Depends-on): Likewise.
24727
24728 2008-11-02  Bruno Haible  <bruno@clisp.org>
24729
24730         Mark 'raise' obsolete.
24731         * modules/raise (Status, Notice): New sections.
24732         (Include): Specify <signal.h>.
24733         * modules/stdio (Depends-on): Add raise.
24734         * modules/write (Depends-on): Likewise.
24735
24736 2008-11-02  Bruno Haible  <bruno@clisp.org>
24737
24738         Mark 'memset' obsolete.
24739         * modules/memset (Status, Notice): New sections.
24740
24741 2008-11-02  Bruno Haible  <bruno@clisp.org>
24742
24743         Mark 'memmove' obsolete.
24744         * modules/memmove (Status, Notice): New sections.
24745         * modules/argp (Depends-on): Add memmove.
24746         * modules/argz (Depends-on): Likewise.
24747         * modules/canonicalize (Depends-on): Likewise.
24748         * modules/canonicalize-lgpl (Depends-on): Likewise.
24749         * modules/fts (Depends-on): Likewise.
24750         * modules/getcwd (Depends-on): Likewise.
24751         * modules/human (Depends-on): Likewise.
24752         * modules/regex (Depends-on): Likewise.
24753         * modules/striconveh (Depends-on): Likewise.
24754         * modules/trim (Depends-on): Likewise.
24755         * modules/unistr/u8-move (Depends-on): Likewise.
24756         * modules/unistr/u16-move (Depends-on): Likewise.
24757         * modules/unistr/u32-move (Depends-on): Likewise.
24758
24759 2008-11-02  Bruno Haible  <bruno@clisp.org>
24760
24761         Mark 'memcpy' obsolete.
24762         * modules/memcpy (Status, Notice): New sections.
24763
24764 2008-11-02  Bruno Haible  <bruno@clisp.org>
24765
24766         Mark 'memcmp' obsolete.
24767         * modules/memcmp (Status, Notice): New sections.
24768         * modules/argmatch (Depends-on): Add memchr.
24769         * modules/backupfile (Depends-on): Likewise.
24770         * modules/c-strcasestr (Depends-on): Likewise.
24771         * modules/crypto/des (Depends-on): Likewise.
24772         * modules/csharpcomp (Depends-on): Likewise.
24773         * modules/fnmatch (Depends-on): Likewise.
24774         * modules/git-merge-changelog (Depends-on): Likewise.
24775         * modules/isnand (Depends-on): Likewise.
24776         * modules/isnand-nolibm (Depends-on): Likewise.
24777         * modules/isnanf (Depends-on): Likewise.
24778         * modules/isnanf-nolibm (Depends-on): Likewise.
24779         * modules/isnanl (Depends-on): Likewise.
24780         * modules/isnanl-nolibm (Depends-on): Likewise.
24781         * modules/mbchar (Depends-on): Likewise.
24782         * modules/memcoll (Depends-on): Likewise.
24783         * modules/quotearg (Depends-on): Likewise.
24784         * modules/regex (Depends-on): Likewise.
24785         * modules/relocatable-prog (Depends-on): Likewise.
24786         * modules/same (Depends-on): Likewise.
24787         * modules/signbit (Depends-on): Likewise.
24788         * modules/strcasestr-simple (Depends-on): Likewise.
24789         * modules/unictype/gen-ctype (Depends-on): Likewise.
24790         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24791         * modules/uniname/uniname (Depends-on): Likewise.
24792         * modules/unistr/u8-cmp (Depends-on): Likewise.
24793
24794 2008-11-02  Bruno Haible  <bruno@clisp.org>
24795
24796         Mark 'memchr' obsolete.
24797         * modules/memchr (Status, Notice): New sections.
24798         * modules/argp (Depends-on): Add memchr.
24799         * modules/base64 (Depends-on): Likewise.
24800         * modules/c-strcasestr (Depends-on): Likewise.
24801         * modules/chdir-long (Depends-on): Likewise.
24802         * modules/fnmatch (Depends-on): Likewise.
24803         * modules/getsubopt (Depends-on): Likewise.
24804         * modules/git-merge-changelog (Depends-on): Likewise.
24805         * modules/glob (Depends-on): Likewise.
24806         * modules/strcasestr-simple (Depends-on): Likewise.
24807         * modules/strnlen (Depends-on): Likewise.
24808
24809 2008-11-02  Bruno Haible  <bruno@clisp.org>
24810
24811         Mark 'atexit' obsolete.
24812         * modules/atexit (Status, Notice): New sections.
24813         * modules/chdir-long (Depends-on): Add atexit.
24814         * modules/wait-process (Depends-on): Likewise.
24815
24816 2008-11-02  Bruno Haible  <bruno@clisp.org>
24817
24818         * gnulib-tool: New option --with-obsolete.
24819         (func_usage): Document it.
24820         (func_modules_transitive_closure): Drop obsolete dependencies if
24821         incobsolete is not true.
24822         (func_import): Read and save the incobsolete variable to the cache.
24823
24824 2008-11-02  Bruno Haible  <bruno@clisp.org>
24825
24826         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24827         * gnulib-tool: New option --extract-status.
24828         (func_usage): Document it.
24829         (sed_extract_prog): Recognize it.
24830         (func_get_status): New function.
24831
24832 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24833
24834         * modules/sockets (License): Change from LGPL to LGPLv2+.
24835
24836 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24837
24838         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24839
24840 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24841
24842         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24843         Mention times and sys_times.
24844         * modules/sys_times, modules/sys_times-tests: New modules.
24845         * modules/times, modules/times-tests: Likewise
24846         * m4/sys_times_h.m4: New file.
24847         * lib/sys_times.in.h: Likewise
24848         * lib/times.c: Likewise.
24849         * tests/test-sys_times.c: Likewise.
24850         * tests/test-times.c: Likewise.
24851         * doc/posix-headers/sys_times.texi: Update.
24852         * doc/posix-functions/times.texi: Update.
24853
24854 2008-10-28  Jim Meyering  <meyering@redhat.com>
24855
24856         * modules/tempname (Depends-on): Add lstat.
24857
24858         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
24859
24860 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24861
24862         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
24863         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
24864         using idiom used elsewhere in gnulib.
24865
24866 2008-10-27  Jim Meyering  <meyering@redhat.com>
24867
24868         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
24869
24870 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24871
24872         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
24873         TESTS_ENVIRONMENT, for shell scripts that needs to call built
24874         programs.
24875         * tests/test-argp-2.sh: Use $EXEEXT when needed.
24876
24877 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24878
24879         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
24880
24881 2008-10-27  Bruno Haible  <bruno@clisp.org>
24882
24883         * tests/test-lstat.c: Include <stdio.h>.
24884
24885 2008-10-27  Simon Josefsson  <simon@josefsson.org>
24886
24887         * modules/lstat-tests: New module.
24888         * tests/test-lstat.c: New file.
24889
24890 2008-10-26  Jim Meyering  <meyering@redhat.com>
24891
24892         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
24893
24894 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24895             Bruno Haible  <bruno@clisp.org>
24896
24897         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
24898         * modules/configmake (Include): Add a note that the include must come
24899         after all system headers.
24900         * lib/javaversion.c: Include configmake.h after all other includes.
24901
24902 2008-10-26  Bruno Haible  <bruno@clisp.org>
24903
24904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
24905         HAVE_STRUCT_RANDOM_DATA to 1.
24906         (gl_STDLIB_H): Simplify.
24907
24908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24909
24910         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
24911         substitute HAVE_STRUCT_RANDOM_DATA.
24912         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
24913         random_data.
24914         * modules/stdlib (Makefile.am): Substitute
24915         HAVE_STRUCT_RANDOM_DATA.
24916
24917 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24918
24919         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
24920         * doc/gnulib-intro.texi (Copyright): Likewise.
24921
24922 2008-10-26  Simon Josefsson  <simon@josefsson.org>
24923
24924         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
24925         findings.
24926
24927 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
24928             Bruno Haible  <bruno@clisp.org>
24929
24930         * lib/unistd.in.h: Include <winsock2.h>.
24931         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
24932         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
24933         Provide dummy declarations.
24934         (gethostname): Override.
24935         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
24936         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
24937         gl_PREREQ_SYS_H_WINSOCK2.
24938         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
24939         * doc/posix-functions/gethostname.texi: More details.
24940
24941 2008-10-25  Bruno Haible  <bruno@clisp.org>
24942
24943         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24944         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
24945         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
24946
24947         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
24948         here ...
24949         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
24950         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
24951         gl_UNISTD_H_DEFAULTS.
24952
24953 2008-10-25  Eric Blake  <ebb9@byu.net>
24954
24955         signbit: avoid spurious compiler failure
24956         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
24957         declarations inside function.
24958
24959 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24960             Bruno Haible  <bruno@clisp.org>
24961
24962         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
24963         * modules/random_r (Depends-on): Add stdint.
24964
24965 2008-10-24  Bruno Haible  <bruno@clisp.org>
24966
24967         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
24968         Eggert.
24969         * modules/strerror (License): Likewise.
24970
24971 2008-10-24  Jim Meyering  <meyering@redhat.com>
24972
24973         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
24974         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
24975
24976 2008-10-24  Eric Blake  <ebb9@byu.net>
24977
24978         getgroups: fix compilation when getgroups is available
24979         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
24980         but with <config.h> override of getgroups disabled.
24981
24982 2008-10-24  Simon Josefsson  <simon@josefsson.org>
24983
24984         * doc/gnulib.texi (Header files): Add note about C++ problems.
24985         Explained by Bruno Haible <bruno@clisp.org>.
24986
24987 2008-10-23  Bruno Haible  <bruno@clisp.org>
24988
24989         Define a dummy SA_NODEFER macro on Interix.
24990         * lib/signal.in.h (SA_NODEFER): Define fallback.
24991         Reported by Aleksey Cheusov <cheusov@tut.by> via
24992         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
24993
24994 2008-10-23  Bruno Haible  <bruno@clisp.org>
24995
24996         * modules/freadahead (License): Change to LGPLv2+.
24997         Suggested by Simon Josefsson.
24998
24999 2008-10-23  Jim Meyering  <meyering@redhat.com>
25000
25001         random_r: new module
25002         * modules/random_r: New file.
25003         * m4/random_r.m4: New file.
25004         * lib/random_r.c: New file, from glibc.
25005         * modules/random_r-tests: New file.
25006         * tests/test-random_r.c: New file.
25007         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25008          Declare.
25009         (RAND_MAX): Define.
25010         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25011         * modules/stdlib: Substitute them, too.
25012         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25013         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25014         * doc/glibc-functions/random_r.texi: Likewise.
25015         * doc/glibc-functions/setstate_r.texi: Likewise.
25016         * doc/glibc-functions/srandom_r.texi: Likewise.
25017         * config/srclist.txt: Mention it.
25018
25019 2008-10-23  David Lutterkort  <lutter@redhat.com>
25020
25021         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25022         link requirement
25023
25024 2008-10-23  Jim Meyering  <meyering@redhat.com>
25025
25026         selinux-h: mark parameters of stub functions as intentionally unused
25027         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25028         * lib/se-context.in.h: Likewise.
25029
25030 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25031
25032         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25033
25034 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25035
25036         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25037
25038 2008-10-22  Eric Blake  <ebb9@byu.net>
25039
25040         glthread/thread: avoid compiler warning
25041         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25042         Add unreachable abort to silence compiler.
25043
25044 2008-10-22  Eric Blake  <ebb9@byu.net>
25045
25046         netdb: also supply struct addrinfo for cygwin 1.5.x
25047         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25048         older cygwin.
25049         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25050         cygwin.
25051         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25052
25053 2008-10-22  Bruno Haible  <bruno@clisp.org>
25054
25055         * users.txt: Update entry about pspp.
25056
25057 2008-10-21  Bruno Haible  <bruno@clisp.org>
25058
25059         Simplification.
25060         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25061         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25062
25063         Simplification.
25064         * lib/ioctl.c (ioctl): Don't undefine.
25065         * lib/socket.c (socket): Don't undefine.
25066
25067         Remove unused module indicator macros.
25068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25069         GNULIB_$1 as a C macro.
25070
25071         * doc/posix-functions/close.texi: Undo last change.
25072         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25073         Windows platforms.
25074
25075 2008-10-21  Bruno Haible  <bruno@clisp.org>
25076
25077         Add gethostname() declaration to <unistd.h>.
25078         * lib/unistd.in.h (gethostname): New declaration.
25079         * lib/gethostname.c: Include <unistd.h>.
25080         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25081         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25083         and HAVE_GETHOSTNAME.
25084         * modules/gethostname (Depends-on): Add unistd.
25085         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25086         (Include): Specify <unistd.h>.
25087         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25088         HAVE_GETHOSTNAME.
25089         * tests/test-gethostname.c: Include <unistd.h> first.
25090
25091 2008-10-21  Bruno Haible  <bruno@clisp.org>
25092
25093         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25094         * modules/select-tests (Depends-on): Likewise.
25095         Reported by Simon Josefsson.
25096
25097 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25098
25099         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25100         * lib/accept.c: New file, based on winsock.c.
25101         * lib/bind.c: New file, based on winsock.c.
25102         * lib/connect.c: New file, based on winsock.c.
25103         * lib/getpeername.c: New file, based on winsock.c.
25104         * lib/getsockname.c: New file, based on winsock.c.
25105         * lib/getsockopt.c: New file, based on winsock.c.
25106         * lib/ioctl.c: New file, based on winsock.c.
25107         * lib/listen.c: New file, based on winsock.c.
25108         * lib/recv.c: New file, based on winsock.c.
25109         * lib/recvfrom.c: New file, based on winsock.c.
25110         * lib/send.c: New file, based on winsock.c.
25111         * lib/sendto.c: New file, based on winsock.c.
25112         * lib/setsockopt.c: New file, based on winsock.c.
25113         * lib/shutdown.c: New file, based on winsock.c.
25114         * lib/socket.c: New file, based on winsock.c.
25115         * lib/w32sock.h: New file, based on winsock.c.
25116         * lib/winsock.c: Remove file.
25117         * modules/accept: Likewise.
25118         * modules/bind: Likewise.
25119         * modules/connect: Likewise.
25120         * modules/getpeername: Likewise.
25121         * modules/getsockname: Likewise.
25122         * modules/getsockopt: Likewise.
25123         * modules/ioctl: Likewise.
25124         * modules/listen: Likewise.
25125         * modules/recv: Likewise.
25126         * modules/recvfrom: Likewise.
25127         * modules/send: Likewise.
25128         * modules/sendto: Likewise.
25129         * modules/setsockopt: Likewise.
25130         * modules/shutdown: Likewise.
25131         * modules/socket: Use socket.c instead of winsock.c.
25132         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25133         * doc/posix-functions/accept.texi: Doc fix.
25134         * doc/posix-functions/bind.texi: Doc fix.
25135         * doc/posix-functions/close.texi: Doc fix.
25136         * doc/posix-functions/connect.texi: Doc fix.
25137         * doc/posix-functions/getpeername.texi: Doc fix.
25138         * doc/posix-functions/getsockname.texi: Doc fix.
25139         * doc/posix-functions/getsockopt.texi: Doc fix.
25140         * doc/posix-functions/ioctl.texi: Doc fix.
25141         * doc/posix-functions/listen.texi: Doc fix.
25142         * doc/posix-functions/recv.texi: Doc fix.
25143         * doc/posix-functions/recvfrom.texi: Doc fix.
25144         * doc/posix-functions/send.texi: Doc fix.
25145         * doc/posix-functions/sendto.texi: Doc fix.
25146         * doc/posix-functions/setsockopt.texi: Doc fix.
25147         * doc/posix-functions/shutdown.texi: Doc fix.
25148         * doc/posix-functions/socket.texi: Doc fix.
25149
25150 2008-10-20  Bruno Haible  <bruno@clisp.org>
25151
25152         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25153         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25154         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25155         as an alias for SIGABRT.
25156         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25157         (sigaction): Map it to SIGABRT.
25158         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25159
25160 2008-10-20  Bruno Haible  <bruno@clisp.org>
25161
25162         * lib/fts.c: Don't include lstat.h.
25163         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25164
25165         Move the lstat() declaration to <sys/stat.h>.
25166         * lib/lstat.h: Remove file.
25167         * lib/sys_stat.in.h: Add special invocation convention.
25168         (lstat): New declaration.
25169         * lib/lstat.c (orig_lstat): New function.
25170         (rpl_lstat): Use orig_lstat instead of lstat.
25171         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25172         AC_C_INLINE. Set REPLACE_LSTAT.
25173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25174         and REPLACE_LSTAT.
25175         * modules/lstat (Files): Remove lib/lstat.h.
25176         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25177         (Include): Specify <sys/stat.h> instead of lstat.h.
25178         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25179         REPLACE_LSTAT.
25180         * NEWS: Mention the change.
25181
25182 2008-10-20  Bruno Haible  <bruno@clisp.org>
25183
25184         * modules/posix_spawn-tests: New file.
25185         * tests/test-posix_spawn3.c: New file.
25186
25187 2008-10-20  Bruno Haible  <bruno@clisp.org>
25188
25189         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25190         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25191         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25192         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25193         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25194
25195 2008-10-20  Bruno Haible  <bruno@clisp.org>
25196
25197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25198         of posix_spawn on AIX 5.3.
25199
25200 2008-10-20  Bruno Haible  <bruno@clisp.org>
25201
25202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25203
25204 2008-10-20  Bruno Haible  <bruno@clisp.org>
25205
25206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25207         of AC_LANG_PROGRAM.
25208
25209 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25210
25211         * lib/netdb.in.h: Don't define GNU specific constants until they
25212         are supported or needed.  Reported by Bruno Haible
25213         <bruno@clisp.org>.
25214
25215 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25216
25217         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25218
25219 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25220
25221         * lib/getaddrinfo.h: Remove file.
25222         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25223         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25224         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25225         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25226         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25227         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25228         * tests/test-getaddrinfo.c: Likewise.
25229         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25230         * NEWS: Mention change.
25231
25232 2008-10-19  Bruno Haible  <bruno@clisp.org>
25233
25234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25235
25236 2008-10-19  Bruno Haible  <bruno@clisp.org>
25237
25238         * lib/wait-process.c: Include simply <sys/wait.h>.
25239         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25240         WIFSTOPPED): Remove fallback definitions.
25241         * modules/wait-process (Depends-on): Add sys_wait.
25242
25243         New module 'sys_wait'.
25244         * modules/sys_wait: New file.
25245         * lib/sys_wait.in.h: New file, partially copied from
25246         lib/wait-process.c.
25247         * m4/sys_wait_h.m4: New file.
25248         * doc/posix-headers/sys_wait.texi: Mention the new module.
25249
25250 2008-10-19  Bruno Haible  <bruno@clisp.org>
25251
25252         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25253
25254 2008-10-19  Bruno Haible  <bruno@clisp.org>
25255
25256         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25257         * lib/wait-process.c (WAIT_T): Remove type.
25258         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25259         (wait_subprocess): Update.
25260
25261 2008-10-19  Bruno Haible  <bruno@clisp.org>
25262
25263         New module 'atoll'.
25264         * modules/atoll: New file.
25265         * lib/stdlib.in.h (atoll): New declaration.
25266         * lib/atoll.c: New file, from glibc with modifications.
25267         * m4/atoll.m4: New file.
25268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25269         HAVE_ATOLL.
25270         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25271         * doc/posix-functions/atoll.texi: Mention the new module.
25272
25273 2008-10-19  Bruno Haible  <bruno@clisp.org>
25274
25275         Add strtoull() declaration to <stdlib.h>.
25276         * lib/stdlib.in.h (strtoull): New declaration.
25277         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25278         Set HAVE_STRTOULL.
25279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25280         HAVE_STRTOULL.
25281         * modules/strtoull (Depends-on): Add stdlib.
25282         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25283         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25284         HAVE_STRTOULL.
25285
25286 2008-10-19  Bruno Haible  <bruno@clisp.org>
25287
25288         Add strtoll() declaration to <stdlib.h>.
25289         * lib/stdlib.in.h (strtoll): New declaration.
25290         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25291         Set HAVE_STRTOLL.
25292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25293         HAVE_STRTOLL.
25294         * modules/strtoll (Depends-on): Add stdlib.
25295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25296         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25297
25298 2008-10-19  Bruno Haible  <bruno@clisp.org>
25299
25300         * modules/bcopy (Depends-on): Add strings.
25301         (Include): Specify <strings.h>.
25302
25303 2008-10-19  Bruno Haible  <bruno@clisp.org>
25304
25305         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25306
25307 2008-10-19  Bruno Haible  <bruno@clisp.org>
25308
25309         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25310         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25311         mingw.
25312
25313 2008-10-19  Bruno Haible  <bruno@clisp.org>
25314
25315         * lib/atanl.c: Don't include isnanl.h.
25316         * lib/cosl.c: Likewise.
25317         * lib/ldexpl.c: Likewise.
25318         * lib/logl.c: Likewise.
25319         * lib/sinl.c: Likewise.
25320         * lib/sqrtl.c: Likewise.
25321         * lib/tanl.c: Likewise.
25322
25323         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25324         * lib/isnanf.h: Remove file.
25325         * lib/isnand.h: Remove file.
25326         * lib/isnanl.h: Remove file.
25327         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25328         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25329         macros.
25330         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25331         HAVE_ISNANF, don't define it as a C macro.
25332         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25333         HAVE_ISNAND, don't define it as a C macro.
25334         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25335         HAVE_ISNANL, don't define it as a C macro.
25336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25337         HAVE_ISNAN[FDL].
25338         * modules/isnanf (Files): Remove lib/isnanf.h.
25339         (Depends-on): Add math.
25340         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25341         (Include): Specify <math.h> instead of isnanf.h.
25342         * modules/isnand (Files): Remove lib/isnand.h.
25343         (Depends-on): Add math.
25344         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25345         (Include): Specify <math.h> instead of isnand.h.
25346         * modules/isnanl (Files): Remove lib/isnanl.h.
25347         (Depends-on): Add math.
25348         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25349         (Include): Specify <math.h> instead of isnanl.h.
25350         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25351         HAVE_ISNAN[FDL].
25352         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25353         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25354         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25355         * NEWS: Mention the change.
25356
25357 2008-10-18  Bruno Haible  <bruno@clisp.org>
25358
25359         Add getusershell(), setusershell(), endusershell() declarations to
25360         <unistd.h>.
25361         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25362         declarations.
25363         * lib/getusershell.c: Include unistd.h.
25364         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25365         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25366         HAVE_GETUSERSHELL.
25367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25368         and HAVE_GETUSERSHELL.
25369         * modules/getusershell (Depends-on): Add unistd, extensions.
25370         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25371         (Include): Specify <unistd.h>.
25372         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25373         HAVE_GETUSERSHELL.
25374
25375 2008-10-18  Bruno Haible  <bruno@clisp.org>
25376
25377         Add a getloadavg() declaration to <stdlib.h>.
25378         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25379         getloadavg declaration.
25380         (getloadavg): New declaration.
25381         * lib/getloadavg.c: Include <stdlib.h> first.
25382         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25383         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25384         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25386         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25387         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25389         (Include): Specify <stdlib.h>.
25390         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25391         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25392
25393 2008-10-18  Bruno Haible  <bruno@clisp.org>
25394
25395         * lib/dirchownmod.c: Don't include lchmod.h.
25396
25397         Move the lchmod() declaration to <sys/stat.h>.
25398         * lib/lchmod.h: Remove file.
25399         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25400         (lchmod): New declaration, moved here from lib/lchown.h.
25401         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25402         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25404         and HAVE_LCHMOD.
25405         * modules/lchmod (Files): Remove lib/lchmod.h.
25406         (Depends-on): Add sys_stat, extensions.
25407         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25408         (Include): Specify <sys/stat.h> instead of lchmod.h.
25409         * modules/sys_stat (Depends-on): Add link-warning.
25410         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25411         definition of GL_LINK_WARNING.
25412         * NEWS: Mention the change.
25413
25414 2008-10-18  Bruno Haible  <bruno@clisp.org>
25415
25416         * lib/fchdir.c: Don't include dirfd.h.
25417         * lib/fts.c: Likewise.
25418         * lib/getcwd.c: Likewise.
25419         * lib/glob.c: Likewise.
25420
25421         Move the dirfd() declaration to <dirent.h>.
25422         * lib/dirfd.h: Remove file.
25423         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25424         (dirfd): New declaration.
25425         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25426         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25427         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25428         HAVE_DECL_DIRFD.
25429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25430         HAVE_DECL_DIRFD.
25431         * modules/dirfd (Files): Remove lib/dirfd.h.
25432         (Depends-on): Add dirent, extensions.
25433         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25434         (Include): Specify <dirent.h> instead of dirfd.h.
25435         * modules/dirent (Depends-on): Add link-warning.
25436         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25437         definition of GL_LINK_WARNING.
25438         * NEWS: Mention the change.
25439
25440 2008-10-18  Bruno Haible  <bruno@clisp.org>
25441
25442         Move the euidaccess() declaration to <unistd.h>.
25443         * lib/euidaccess.h: Remove file.
25444         * lib/unistd.in.h (euidaccess): New declaration.
25445         * lib/euidaccess.c: Don't include euidaccess.h.
25446         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25447         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25449         and HAVE_EUIDACCESS.
25450         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25451         (Depends-on): Add unistd.
25452         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25453         (Include): Specify <unistd.h> instead of euidaccess.h.
25454         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25455         HAVE_EUIDACCESS.
25456         * NEWS: Mention the change.
25457
25458 2008-10-18  Bruno Haible  <bruno@clisp.org>
25459
25460         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25461
25462         Move the getdomainname() declaration to <unistd.h>.
25463         * lib/getdomainname.h: Remove file.
25464         * lib/unistd.in.h (getdomainname): New declaration.
25465         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25466         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25467         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25468         HAVE_GETDOMAINNAME.
25469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25470         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25471         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25472         (Depends-on): Add unistd, extensions.
25473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25474         (Includes): Specify <unistd.h> instead of getdomainname.h.
25475         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25476         HAVE_GETDOMAINNAME.
25477         * NEWS: Mention the change.
25478
25479 2008-10-18  Bruno Haible  <bruno@clisp.org>
25480
25481         * modules/dirent: New file.
25482         * m4/dirent_h.m4: New file.
25483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25484         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25485         * modules/fchdir (Files): Remove lib/dirent.in.h.
25486         (Depends-on): Add dirent.
25487         (Makefile.am): Move rules to modules/dirent.
25488         * doc/posix-headers/dirent.texi: Mention the new module.
25489
25490 2008-10-18  Bruno Haible  <bruno@clisp.org>
25491
25492         Avoid -Wunused-parameter warnings in public gnulib header files.
25493         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25494         macro.
25495         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25496
25497 2008-10-18  Bruno Haible  <bruno@clisp.org>
25498
25499         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25500         * doc/glibc-functions/error.texi: Mention the module 'error'.
25501         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25502         * doc/glibc-functions/getdomainname.texi: Mention the module
25503         'getdomainname'.
25504         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25505         * doc/glibc-functions/getpagesize.texi: Mention the module
25506         'getpagesize'.
25507         * doc/glibc-functions/getusershell.texi: Mention the module
25508         'getusershell'.
25509         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25510         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25511         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25512         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25513         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25514         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25515         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25516         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25517         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25518         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25519         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25520         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25521         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25522         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25523
25524 2008-10-17  Bruno Haible  <bruno@clisp.org>
25525
25526         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25527         HP-UX and IRIX, use -0.0L.
25528         * tests/test-ceill.c (minus_zero): Likewise.
25529         * tests/test-floorl.c (minus_zero): Likewise.
25530         * tests/test-frexpl.c (minus_zero): Likewise.
25531         * tests/test-isnan.c (minus_zerol): Likewise.
25532         * tests/test-isnanl.h (minus_zero): Likewise.
25533         * tests/test-ldexpl.c (minus_zero): Likewise.
25534         * tests/test-roundl.c (minus_zero): Likewise.
25535         * tests/test-signbit.c (minus_zerol): Likewise.
25536         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25537         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25538         * tests/test-truncl.c (minus_zero): Likewise.
25539         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25540         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25541         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25542         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25543
25544 2008-10-17  Bruno Haible  <bruno@clisp.org>
25545
25546         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25547         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25548         that it gets activated only for gcc >= 3.0.
25549         * lib/dirent.in.h: Likewise.
25550         * lib/errno.in.h: Likewise.
25551         * lib/fcntl.in.h: Likewise.
25552         * lib/float.in.h: Likewise.
25553         * lib/iconv.in.h: Likewise.
25554         * lib/inttypes.in.h: Likewise.
25555         * lib/locale.in.h: Likewise.
25556         * lib/math.in.h: Likewise.
25557         * lib/netdb.in.h: Likewise.
25558         * lib/netinet_in.in.h: Likewise.
25559         * lib/search.in.h: Likewise.
25560         * lib/signal.in.h: Likewise.
25561         * lib/spawn.in.h: Likewise.
25562         * lib/stdarg.in.h: Likewise.
25563         * lib/stdint.in.h: Likewise.
25564         * lib/stdio.in.h: Likewise.
25565         * lib/stdlib.in.h: Likewise.
25566         * lib/string.in.h: Likewise.
25567         * lib/strings.in.h: Likewise.
25568         * lib/sys_file.in.h: Likewise.
25569         * lib/sys_ioctl.in.h: Likewise.
25570         * lib/sys_select.in.h: Likewise.
25571         * lib/sys_socket.in.h: Likewise.
25572         * lib/sys_stat.in.h: Likewise.
25573         * lib/sys_time.in.h: Likewise.
25574         * lib/sysexits.in.h: Likewise.
25575         * lib/time.in.h: Likewise.
25576         * lib/unistd.in.h: Likewise.
25577         * lib/wchar.in.h: Likewise.
25578         * lib/wctype.in.h: Likewise.
25579         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25580
25581 2008-10-17  Jim Meyering  <meyering@redhat.com>
25582
25583         ignore-value: don't depend on inline module
25584         * modules/ignore-value (Depends-on): Remove 'inline'.
25585         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25586         Suggestion from Bruno Haible.
25587
25588 2008-10-17  Bruno Haible  <bruno@clisp.org>
25589
25590         New implementation of condition variables for Win32.
25591         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25592         (gl_linked_waitqueue_t): New type.
25593         (gl_cond_t): Use it.
25594         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25595         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25596         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25597         (glthread_cond_init_func, glthread_cond_wait_func,
25598         glthread_cond_timedwait_func, glthread_cond_signal_func,
25599         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25600         Reimplemented on the basis of gl_linked_waitqueue_t.
25601         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25602         gl_waitqueue_t.
25603         (gl_rwlock_t): Update.
25604         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25605
25606 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25607
25608         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25609         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25610
25611 2008-10-17  Jim Meyering  <meyering@redhat.com>
25612
25613         ignore-value: new module
25614         * modules/ignore-value: New file.
25615         * lib/ignore-value.h: New file.
25616         * MODULES.html.sh (Compiler warning management): New section,
25617         just for this module.  More to come.
25618
25619 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25620
25621         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25622         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25623         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25624
25625 2008-10-16  Jim Meyering  <meyering@redhat.com>
25626
25627         openat-die.c: avoid 'no previous prototype' warning
25628         * lib/openat-die.c: Include "openat.h".
25629         Reported by Reuben Thomas <rrt@sc3d.org>.
25630
25631 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25632
25633         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25634         * lib/netdb.in.h: Fix typo.
25635         Reported by Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/netdb.in.h: Include sys/socket.h for platforms without
25638         netdb.h, to get structures like hostent on MinGW.
25639         * modules/netdb (Depends-on): Add sys_socket.
25640
25641 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25642
25643         * modules/netdb, modules/netdb-tests: New file.
25644         * m4/netdb_h.m4: New file.
25645         * lib/netdb.in.h: Add, currently just an empty file pending
25646         definitions.
25647         * tests/test-netdb.c: New file.
25648         * doc/posix-headers/netdb.texi: Mention that we replace it if
25649         needed.
25650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25651         netdb.
25652
25653 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25654
25655         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25656         with code.
25657
25658 2008-10-13  Bruno Haible  <bruno@clisp.org>
25659
25660         * lib/glthread/cond.c (glthread_cond_wait_func,
25661         glthread_cond_timedwait_func): Add a comment.
25662
25663 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25664
25665         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25666         * tests/test-select.c: Likewise,
25667
25668 2008-10-13  Bruno Haible  <bruno@clisp.org>
25669
25670         * lib/glthread/cond.c (glthread_cond_wait_func,
25671         glthread_cond_timedwait_func): Fix variable name.
25672         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25673
25674 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25675
25676         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25678         struct sockaddr.sa_len.
25679         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25680
25681 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25682
25683         * build-aux/pmccabe2html: Add css and css_url parameters.
25684
25685 2008-10-12  Bruno Haible  <bruno@clisp.org>
25686
25687         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25688         calling aclx_get.
25689         Reported by Rainer Tammer <tammer@tammer.net>.
25690
25691 2008-10-12  Bruno Haible  <bruno@clisp.org>
25692
25693         Use msvcrt aware primitives for creation/termination of Win32 threads.
25694         * lib/glthread/thread.c: Include <process.h>.
25695         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25696         (wrapper_func): Update signature.
25697         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25698
25699 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25700             Bruno Haible  <bruno@clisp.org>
25701
25702         Provide a Win32 implementation of the 'cond' module.
25703         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25704         * lib/glthread/cond.c (glthread_cond_init_func,
25705         glthread_cond_wait_func, glthread_cond_timedwait_func,
25706         glthread_cond_signal_func, glthread_cond_broadcast_func,
25707         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25708         * modules/cond (Dependencies): Add gettimeofday.
25709
25710 2008-10-11  Bruno Haible  <bruno@clisp.org>
25711
25712         Make sleep work on older versions of mingw.
25713         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25714         only whether it exists.
25715         * doc/posix-functions/sleep.texi: Mention the problem with older
25716         versions of mingw.
25717
25718 2008-10-11  Bruno Haible  <bruno@clisp.org>
25719
25720         New module 'shutdown'.
25721         * modules/shutdown: New file.
25722         * lib/sys_socket.in.h (shutdown): New declaration.
25723         * lib/winsock.c (shutdown): New function.
25724         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25725         GNULIB_SHUTDOWN.
25726         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25727         * doc/posix-functions/shutdown.texi: Document the new module.
25728
25729 2008-10-11  Jim Meyering  <meyering@redhat.com>
25730
25731         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25732
25733 2008-10-11  Bruno Haible  <bruno@clisp.org>
25734
25735         New module 'fclose'.
25736         * modules/fclose: New file.
25737         * lib/stdio.in.h (fclose): New declaration.
25738         * lib/fclose.c: New file.
25739         * m4/fclose.m4: New file.
25740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25741         REPLACE_FCLOSE.
25742         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25743         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25744         REPLACE_FCLOSE.
25745         * modules/close (Depends-on): fclose.
25746         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25747
25748 2008-10-11  Bruno Haible  <bruno@clisp.org>
25749
25750         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25751         set errno and don't call _close.
25752
25753 2008-10-10  Bruno Haible  <bruno@clisp.org>
25754
25755         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25756         ACL, not afterwards. Fixes test failure on Cygwin.
25757
25758 2008-10-09  Ben Pfaff  <blp@gnu.org>
25759
25760         * build-aux/announce-gen: Fix gnulib version related part of usage
25761         message.  Die with a useful error message if no tarballs are
25762         found.
25763
25764 2008-10-10  Jim Meyering  <meyering@redhat.com>
25765
25766         bootstrap: use git's --depth=N option only if it's supported
25767         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25768         recognize the --depth option.  Reported by Pádraig Brady.
25769
25770 2008-10-09  Bruno Haible  <bruno@clisp.org>
25771
25772         New module 'ioctl'.
25773         * modules/ioctl: New file.
25774         * lib/sys_socket.in.h (ioctl): Remove declaration.
25775         * lib/winsock.c: Include <sys/ioctl.h>.
25776         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25777         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25778         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25779         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25780         * doc/posix-functions/ioctl.texi: Mention the new module.
25781
25782 2008-10-09  Bruno Haible  <bruno@clisp.org>
25783
25784         New module 'sys_ioctl'.
25785         * lib/sys_ioctl.in.h: New file.
25786         * m4/sys_ioctl_h.m4: New file.
25787         * modules/sys_ioctl: New file.
25788         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25789
25790 2008-10-09  Bruno Haible  <bruno@clisp.org>
25791
25792         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25793         * lib/winsock.c: Include <stdarg.h>.
25794         (rpl_ioctl): Change to second argument 'int' and then varargs.
25795
25796 2008-10-09  Bruno Haible  <bruno@clisp.org>
25797
25798         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25799         when the sys_socket module is present and the system has <winsock2.h>.
25800
25801 2008-10-09  Bruno Haible  <bruno@clisp.org>
25802
25803         * doc/posix-functions/close.texi: Mention module 'close' instead of
25804         module 'sys_socket'.
25805
25806 2008-10-09  Bruno Haible  <bruno@clisp.org>
25807
25808         * doc/glibc-headers/sys_ioctl.texi: New file.
25809         * doc/gnulib.texi: Include it.
25810
25811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25812             Bruno Haible  <bruno@clisp.org>
25813
25814         Combine the two replacements of 'close'.
25815         * lib/sys_socket.in.h (close): Define to a reminder to include
25816         <unistd.h>.
25817         (_gl_close_fd_maybe_socket): New declaration.
25818         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25819         * lib/winsock.c (close): Remove undefinition.
25820         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25821         needed for the gnulib module 'close'.
25822         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25823         define to an error symbol or to a warning, if suitable.
25824         * lib/close.c: Include <sys/socket.h>.
25825         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25826         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25827         UNISTD_H_HAVE_WINSOCK2_H.
25828         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25830         UNISTD_H_HAVE_WINSOCK2_H.
25831         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25832         (configure.ac): Set a module indicator.
25833         (Makefile.am): Substitute GNULIB_CLOSE.
25834         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25835         * modules/poll-tests (Depends-on): Add close.
25836         * modules/select-tests (Depends-on): Likewise.
25837
25838 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25839             Bruno Haible  <bruno@clisp.org>
25840
25841         New module 'close'.
25842         * modules/close: New file.
25843         * lib/unistd.in.h (close): Move declaration out of the
25844         FCHDIR_REPLACEMENT scope.
25845         (_gl_unregister_fd): New declaration.
25846         * lib/close.c: New file.
25847         * lib/fchdir.c (rpl_close): Remove function.
25848         * m4/close.m4: New file.
25849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25850         close.
25851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
25852         REPLACE_CLOSE.
25853         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
25854         REPLACE_CLOSE.
25855         * modules/fchdir (Depends-on): Add close.
25856
25857 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25858             Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/fcntl.in.h (open): Simplify conditionals.
25861         (_gl_register_fd): New declaration.
25862         * lib/fchdir.c (rpl_open): Remove function.
25863         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
25864         also.
25865         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
25866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
25867         open.
25868
25869 2008-10-09  Jim Meyering  <meyering@redhat.com>
25870
25871         GNUmakefile: use the more name-space-friendly "_version"
25872         * top/GNUmakefile (_dummy): Update.
25873         (_version): Rename from "version".
25874
25875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25876             Bruno Haible  <bruno@clisp.org>
25877
25878         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
25879         rpl_close.
25880         (_gl_register_fd): New function, extracted from rpl_open.
25881         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
25882         (rpl_open, rpl_opendir): Use _gl_register_fd.
25883
25884 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25885
25886         Fix organization of 'open' replacement.
25887         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
25888         (gl_FUNC_OPEN): Use it.
25889         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
25890
25891 2008-10-08  Bruno Haible  <bruno@clisp.org>
25892
25893         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
25894
25895 2008-10-08  Simon Josefsson  <simon@josefsson.org>
25896
25897         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
25898         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
25899         listen).
25900
25901 2008-10-08  Eric Blake  <ebb9@byu.net>
25902
25903         GNUmakefile: add 'make version' target
25904         * top/GNUmakefile (_curr-ver): Split version update rules...
25905         (version): ...into a target.
25906
25907 2008-10-07  Bruno Haible  <bruno@clisp.org>
25908
25909         Use a more portable replacement expression for -0.0L.
25910         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
25911         instead of -0.0L. Fix m4 quotation.
25912
25913         * tests/test-signbit.c: Include <float.h>.
25914         (minus_zero): New variable.
25915         (test_signbitl): Use minus_zero instead of -zero.
25916         * modules/signbit-tests (Depends-on): Add float.
25917
25918         * tests/test-ceill.c: Include <float.h>.
25919         (zero): Remove variable.
25920         (minus_zero): New variable.
25921         (main): Use minus_zero instead of -zero.
25922         * modules/ceill-tests (Depends-on): Add float.
25923
25924         * tests/test-floorl.c: Include <float.h>.
25925         (zero): Remove variable.
25926         (minus_zero): New variable.
25927         (main): Use minus_zero instead of -zero.
25928         * modules/floorl-tests (Depends-on): Add float.
25929
25930         * tests/test-roundl.c: Include <float.h>.
25931         (zero): Remove variable.
25932         (minus_zero): New variable.
25933         (main): Use minus_zero instead of -zero.
25934         * modules/roundl-tests (Depends-on): Add float.
25935
25936         * tests/test-truncl.c: Include <float.h>.
25937         (zero): Remove variable.
25938         (minus_zero): New variable.
25939         (main): Use minus_zero instead of -zero.
25940         * modules/truncl-tests (Depends-on): Add float.
25941
25942         * tests/test-frexpl.c (zero): Remove variable.
25943         (minus_zero): New variable.
25944         (main): Use minus_zero instead of -zero.
25945         * modules/frexpl-tests (Depends-on): Add float.
25946
25947         * tests/test-isnan.c (zerol): Remove variable.
25948         (minus_zerol): New variable.
25949         (test_long_double): Use minus_zerol instead of -zerol.
25950         * modules/isnan-tests (Depends-on): Add float.
25951
25952         * tests/test-isnanl.h (zero): Remove variable.
25953         (minus_zero): New variable.
25954         (main): Use minus_zero instead of -zero.
25955         * modules/isnanl-nolibm-tests (Depends-on): Add float.
25956         * modules/isnanl-tests (Depends-on): Add float.
25957
25958         * tests/test-ldexpl.c (zero): Remove variable.
25959         (minus_zero): New variable.
25960         (main): Use minus_zero instead of -zero.
25961         * modules/ldexpl-tests (Depends-on): Add float.
25962
25963         * tests/test-snprintf-posix.h (zerol): Remove variable.
25964         (minus_zerol): New variable.
25965         (test_function): Use minus_zerol instead of -zerol.
25966         * modules/snprintf-posix-tests (Depends-on): Add float.
25967         * modules/vsnprintf-posix-tests (Depends-on): Add float.
25968
25969         * tests/test-sprintf-posix.h (zerol): Remove variable.
25970         (minus_zerol): New variable.
25971         (test_function): Use minus_zerol instead of -zerol.
25972         * modules/sprintf-posix-tests (Depends-on): Add float.
25973         * modules/vsprintf-posix-tests (Depends-on): Add float.
25974
25975         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
25976         (minus_zerol): New variable.
25977         (test_function): Use minus_zerol instead of -zerol.
25978         * modules/vasnprintf-posix-tests (Depends-on): Add float.
25979
25980         * tests/test-vasprintf-posix.c (zerol): Remove variable.
25981         (minus_zerol): New variable.
25982         (test_function): Use minus_zerol instead of -zerol.
25983         * modules/vasprintf-posix-tests (Depends-on): Add float.
25984
25985 2008-10-07  Simon Josefsson  <simon@josefsson.org>
25986
25987         * MODULES.html.sh (Support for building documentation): Mention
25988         pmccabe2html.  Sort entries.
25989
25990         Add pmccabe2html module, from gnupdf.
25991         * build-aux/pmccabe.css: New file.
25992         * build-aux/pmccabe2html: New file.
25993         * m4/pmccabe2html.m4: New file.
25994         * modules/pmccabe2html: New file.
25995
25996 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
25997
25998         flock: new module
25999         * MODULES.html.sh: Add to list of modules.
26000         * lib/flock.c: flock implementation for Windows and Unix systems
26001         which have fcntl.
26002         * doc/glibc-functions/flock.texi: Update documentation.
26003         * lib/sys_file.in.h: <sys/file.h> header file.
26004         * m4/flock.m4: M4 macros.
26005         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26006         * modules/flock: flock module.
26007         * modules/flock-tests: flock tests module.
26008         * modules/sys_file: sys/file.h module.
26009         * tests/test-flock.c: test suite for flock.
26010
26011 2008-10-06  Jim Meyering  <meyering@redhat.com>
26012
26013         bootstrap: check for LT_INIT more portably still ;-)
26014         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26015         Spotted by Bruno Haible.
26016
26017 2008-10-06  Eric Blake  <ebb9@byu.net>
26018
26019         test-signbit: avoid tripping Irix cc bug on -0.0L
26020         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26021         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26022         entire testsuite consistent and avoids an Irix 6.2 bug.
26023
26024 2008-10-05  Bruno Haible  <bruno@clisp.org>
26025             Jim Meyering  <jim@meyering.net>
26026
26027         Add an option for ignoring EPIPE during close_stdout.
26028         * lib/closeout.h: Include <stdbool.h>.
26029         (close_stdout_set_ignore_EPIPE): New declaration.
26030         * lib/closeout.c: Include <stdbool.h>.
26031         (ignore_EPIPE): New variable.
26032         (close_stdout_set_ignore_EPIPE): New function.
26033         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26034         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26035         failure.
26036         * modules/closeout (Depends-on): Add stdbool.
26037
26038 2008-10-05  Bruno Haible  <bruno@clisp.org>
26039
26040         * modules/accept: New file.
26041         * modules/bind: New file.
26042         * modules/connect: New file.
26043         * modules/getpeername: New file.
26044         * modules/getsockname: New file.
26045         * modules/getsockopt: New file.
26046         * modules/listen: New file.
26047         * modules/recv: New file.
26048         * modules/recvfrom: New file.
26049         * modules/send: New file.
26050         * modules/sendto: New file.
26051         * modules/setsockopt: New file.
26052         * modules/socket: New file.
26053         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26054         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26055         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26056         the particular module is requested. Add a link warning when the
26057         particular module is not requested.
26058         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26059         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26060         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26061         the particular module is requested.
26062         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26063         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26064         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26065         * modules/sys_socket (Depends-on): Add link-warning.
26066         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26067         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26068         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26069         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26070         GL_LINK_WARNING.
26071         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26072         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26073         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26074         * doc/posix-functions/getpeername.texi: Mention the new module
26075         'getpeername'.
26076         * doc/posix-functions/getsockname.texi: Mention the new module
26077         'getsockname'.
26078         * doc/posix-functions/getsockopt.texi: Mention the new module
26079         'getsockopt'.
26080         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26081         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26082         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26083         * doc/posix-functions/send.texi: Mention the new module 'send'.
26084         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26085         * doc/posix-functions/setsockopt.texi: Mention the new module
26086         'setsockopt'.
26087         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26088         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26089         listen, connect, accept.
26090         * modules/select-tests (Depends-on): Likewise.
26091
26092 2008-10-05  Bruno Haible  <bruno@clisp.org>
26093
26094         * lib/winsock.c (strerror): Remove unused #undef.
26095         (rpl_close): Remove unused local variable.
26096
26097         * modules/sys_socket (Depends-on); Add errno.
26098
26099 2008-10-05  Bruno Haible  <bruno@clisp.org>
26100
26101         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26102         (select): Add a link warning when the 'select' module is not used.
26103         * modules/sys_select (Depends-on): Add link-warning.
26104         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26105         Suggested by Paolo Bonzini.
26106
26107 2008-10-05  Jim Meyering  <meyering@redhat.com>
26108
26109         bootstrap: check for LT_INIT more portably
26110         * build-aux/bootstrap: Avoid using grep -E, since it's not
26111         portable enough.  Suggestion from Bruno Haible.
26112
26113 2008-10-05  Bruno Haible  <bruno@clisp.org>
26114
26115         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26116         as being fixed by gnulib.
26117
26118 2008-10-05  Bruno Haible  <bruno@clisp.org>
26119
26120         * modules/select-tests: New file, mostly copied from
26121         modules/sys_select-tests.
26122         * tests/test-select.c: New file, mostly copied from
26123         tests/test-sys_select.c.
26124         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26125         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26126         (Makefile.am): Remove test_sys_select_LDADD.
26127
26128         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26129         to an undefined symbol, for an error message.
26130         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26131         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26132         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26133         winsock-select.c here.
26134         * modules/sys_select (Files): Remove lib/winsock-select.c.
26135         (Depends-on): Remove alloca.
26136         (Makefile.am): Substitute GNULIB_SELECT.
26137         * modules/select: New file.
26138         * doc/posix-functions/select.texi: Update.
26139
26140 2008-10-05  Bruno Haible  <bruno@clisp.org>
26141
26142         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26143         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26144         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26145         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26146         getdtablesize.
26147         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26148         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26149
26150 2008-10-05  Bruno Haible  <bruno@clisp.org>
26151
26152         * modules/getdtablesize-tests: New file.
26153         * tests/test-getdtablesize.c: New file.
26154
26155         New module 'getdtablesize'.
26156         * lib/unistd.in.h (getdtablesize): New declaration.
26157         * lib/getdtablesize.c: New file.
26158         * m4/getdtablesize.m4: New file.
26159         * modules/getdtablesize: New file.
26160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26161         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26162         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26163         HAVE_GETDTABLESIZE.
26164         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26165
26166 2008-10-05  Bruno Haible  <bruno@clisp.org>
26167
26168         * modules/sched (Makefile.am): Fix typo.
26169         Reported by Simon Josefsson.
26170
26171 2008-10-05  Jim Meyering  <meyering@redhat.com>
26172
26173         bootstrap: check for LT_INIT, too
26174         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26175         are deprecated.  Suggestion from Ralf Wildenhues.
26176
26177 2008-10-05  Bruno Haible  <bruno@clisp.org>
26178
26179         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26180         overriding them by ours.
26181         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26182
26183 2008-10-05  Jim Meyering  <meyering@redhat.com>
26184
26185         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26186         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26187         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26188
26189 2008-10-04  Bruno Haible  <bruno@clisp.org>
26190
26191         * modules/dup2 (License): Change to LGPLv2+.
26192         * modules/sleep (License): Likewise.
26193         * modules/perror (License): Likewise.
26194         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26195         Blake.
26196         * modules/signal (License): Likewise.
26197         * modules/sigprocmask (License): Likewise.
26198         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26199         Meyering.
26200
26201 2008-10-04  Bruno Haible  <bruno@clisp.org>
26202
26203         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26204         Reported by Rainer Tammer <tammer@tammer.net>.
26205
26206 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26207             Bruno Haible  <bruno@clisp.org>
26208
26209         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26210         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26211         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26212
26213 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26214
26215         filevercmp: new module
26216         * lib/filevercmp.h: New function filevercmp comparing version strings.
26217         * lib/filevercmp.c: Implementation of filevercmp function.
26218         * modules/filevercmp: Module metadata.
26219         * tests/test-filevercmp.c: Unit test for new module.
26220         * modules/filevercmp-tests: Unit test metadata.
26221         * MODULES.html.sh: Add filevercmp module.
26222
26223 2008-10-03  Bruno Haible  <bruno@clisp.org>
26224
26225         * lib/c-ctype.h: Add comment.
26226         Reported by Jim Meyering.
26227
26228 2008-10-02  Bruno Haible  <bruno@clisp.org>
26229
26230         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26231
26232 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26233
26234         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26235         name of bootstrap.conf accordingly.
26236
26237 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26238
26239         * build-aux/bootstrap: Install git-merge-changelog configuration
26240         items into .gitconfig if needed.
26241
26242 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26243
26244         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26245         git repository, and initialize/update it accordingly.
26246
26247 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26248
26249         * modules/fsync-tests: New file.
26250         * tests/test-fsync.c: New file.
26251
26252         New module 'fsync'.
26253         * lib/fsync.c: New file.
26254         * m4/fsync.m4: New file.
26255         * modules/fsync: New file.
26256         * lib/unistd.in.h (fsync): New declaration.
26257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26258         GNULIB_FSYNC and HAVE_FSYNC.
26259         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26260         * MODULES.html.sh (posix_functions): Add fsync.
26261         * doc/posix-functions/fsync.texi: Mention the new module.
26262
26263 2008-10-02  Jim Meyering  <meyering@redhat.com>
26264
26265         fts.c: sync with similar code from coreutils' remove.c
26266         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26267         Guard also with "#if defined __linux__", since for now at least,
26268         this code is Linux-kernel-specific.
26269
26270 2008-10-02  Jim Meyering  <meyering@redhat.com>
26271
26272         fts: bug fixes
26273         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26274         Include <sys/vfs.h>, not <sys/statfs.h>.
26275
26276         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26277         Include <sys/vfs.h>, not <sys/statfs.h>.
26278
26279 2008-10-01  Bruno Haible  <bruno@clisp.org>
26280
26281         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26282         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26283         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26284         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26285         * doc/posix-functions/posix_spawnp.texi: Likewise.
26286         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26287         whether posix_spawn actually works.
26288         * m4/pipe.m4 (gl_PIPE): Likewise.
26289         * modules/execute (Files): Add m4/posix_spawn.m4.
26290         * modules/pipe (Files): Add m4/posix_spawn.m4.
26291         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26292
26293 2008-10-01  Jim Meyering  <meyering@redhat.com>
26294
26295         remove trailing spaces
26296         * NEWS: Likewise.
26297         * lib/poll.c (poll): Likewise.
26298         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26299         * lib/winsock.c (rpl_close): Likewise.
26300         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26301         * modules/yield: Likewise.
26302         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26303         * tests/test-sys_select.c (connect_to_socket): Likewise.
26304
26305         fts.c: adjust a new interface to be more generally useful
26306         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26307         (fts_build): Adjust caller.
26308
26309 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26310
26311         * modules/cond-tests: New file.
26312         * tests/test-cond.c: New file.
26313
26314 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26315             Bruno Haible  <bruno@clisp.org>
26316
26317         * modules/cond (Dependencies): Add errno, time.
26318         * lib/glthread/cond.h: Include <time.h>.
26319         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26320         across platforms.
26321
26322 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26323             Bruno Haible  <bruno@clisp.org>
26324
26325         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26326
26327 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26328             Bruno Haible  <bruno@clisp.org>
26329
26330         * modules/tls-tests (Depends-on): Add thread, yield.
26331         (configure.ac): Remove all checks.
26332         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26333         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26334         gl_thread_self): Remove definitions. Include glthread/thread.h and
26335         glthread/yield.h instead.
26336         (test_tls): Pass an additional NULL argument to gl_thread_join.
26337
26338 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26339             Bruno Haible  <bruno@clisp.org>
26340
26341         * modules/lock-tests (Depends-on): Add thread, yield.
26342         (configure.ac): Remove all checks.
26343         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26344         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26345         gl_thread_self): Remove definitions. Include glthread/thread.h and
26346         glthread/yield.h instead.
26347         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26348         additional NULL argument to gl_thread_join.
26349
26350 2008-09-30  Bruno Haible  <bruno@clisp.org>
26351
26352         Fix the Win32 implementation of the 'thread' module.
26353         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26354         pointer type.
26355         (gl_thread_self): Invoke gl_thread_self_func.
26356         (gl_thread_self_func): New declaration.
26357         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26358         (do_init_self_key, init_self_key): New functions.
26359         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26360         Remove some fields.
26361         (running_threads, running_lock): Remove variables.
26362         (get_current_thread_handle): New function.
26363         (gl_thread_self_func, wrapper_func, glthread_create_func,
26364         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26365         simplified.
26366
26367 2008-09-30  Bruno Haible  <bruno@clisp.org>
26368
26369         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26370         files.
26371
26372 2008-09-30  Jim Meyering  <meyering@redhat.com>
26373
26374         fts.m4: correct the test for statfs.f_type
26375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26376         when checking for statfs.f_type.
26377
26378 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26379
26380         tests: avoid some compiler warnings
26381         * tests/test-memchr.c (main): Pass NULL indirectly.
26382         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26383
26384 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26385
26386         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26387         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26388         exactly specified dayshifts.
26389         (dayshift): New rule.
26390         (rel): Add dayshift.
26391         (relative_time_table) [tomorrow, yesterday, today, now]:
26392         Use tDAY_SHIFT in place of tDAY_UNIT.
26393         * tests/test-getdate.c: Add tests for now-disallowed countable
26394         dayshifts, e.g., "4 yesterday ago".
26395
26396 2008-09-29  Bruno Haible  <bruno@clisp.org>
26397
26398         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26399         * tests/test-posix_spawn1.in.sh: Renamed from
26400         tests/test-posix_spawn.in.sh.
26401         * tests/test-posix_spawn2.c: New file.
26402         * tests/test-posix_spawn2.in.sh: New file.
26403         * modules/posix_spawnp-tests (Files): Update.
26404         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26405
26406 2008-09-29  Bruno Haible  <bruno@clisp.org>
26407
26408         Propagate effects of putenv/setenv/unsetenv to child processes.
26409         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26410         * lib/pipe.c (create_pipe): Likewise.
26411
26412 2008-09-29  Bruno Haible  <bruno@clisp.org>
26413
26414         Enable use of shell scripts as executables in mingw.
26415         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26416         run the program as a shell script.
26417         * lib/pipe.c (create_pipe): Likewise.
26418         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26419         resulting array.
26420
26421 2008-09-29  Eric Blake  <ebb9@byu.net>
26422
26423         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26424
26425 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26426
26427         * doc/posix-functions/accept.texi: Update mingw problems.
26428         * doc/posix-functions/bind.texi: Update mingw problems.
26429         * doc/posix-functions/close.texi: Update mingw problems.
26430         * doc/posix-functions/connect.texi: Update mingw problems.
26431         * doc/posix-functions/getpeername.texi: Update mingw problems.
26432         * doc/posix-functions/getsockname.texi: Update mingw problems.
26433         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26434         * doc/posix-functions/ioctl.texi: Update mingw problems.
26435         * doc/posix-functions/listen.texi: Update mingw problems.
26436         * doc/posix-functions/recv.texi: Update mingw problems.
26437         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26438         * doc/posix-functions/select.texi: Update mingw problems.
26439         * doc/posix-functions/send.texi: Update mingw problems.
26440         * doc/posix-functions/sendto.texi: Update mingw problems.
26441         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26442         * doc/posix-functions/socket.texi: Update mingw problems.
26443
26444 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26445             Bruno Haible  <bruno@clisp.org>
26446
26447         * lib/sys_select.in.h: Include sys/time.h.
26448         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26449         * modules/sys_select: Depend on sys_time.
26450         * tests/test-sys_select.c: Test that sys/select.h defines struct
26451         timeval fully.
26452
26453 2008-09-29  Bruno Haible  <bruno@clisp.org>
26454
26455         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26456         * lib/sys_select.in.h: Likewise.
26457
26458 2008-09-29  Bruno Haible  <bruno@clisp.org>
26459
26460         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26461
26462 2008-09-29  Bruno Haible  <bruno@clisp.org>
26463
26464         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26465         Set LIBSOCKET instead of augmenting LIBS.
26466         * modules/sockets (Link): New section.
26467         * modules/sockets-tests (test_sockets_LDADD): New variable.
26468         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26469         * modules/poll-tests (test_poll_LDADD): New variable.
26470         * NEWS: Document the change.
26471
26472 2008-09-29  Bruno Haible  <bruno@clisp.org>
26473
26474         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26475         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26476         ARPA_INET_H directly.
26477         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26478
26479 2008-09-28  Bruno Haible  <bruno@clisp.org>
26480
26481         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26482         from gl_HEADER_SYS_SOCKET.
26483         (gl_HEADER_SYS_SOCKET): Invoke it.
26484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26485
26486 2008-09-28  Bruno Haible  <bruno@clisp.org>
26487
26488         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26489         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26490         Needed on OSF/1 4.0.
26491
26492 2008-09-28  Bruno Haible  <bruno@clisp.org>
26493
26494         Override open more carefully.
26495         * lib/open.c (orig_open): New function.
26496         (rpl_open): Use orig_open instead of open.
26497         * lib/fcntl.in.h: Add special invocation convention.
26498         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26499         (gl_FUNC_OPEN): Invoke it.
26500
26501         Override freopen more carefully.
26502         * lib/freopen.c (orig_freopen): New function.
26503         (rpl_freopen): Use orig_freopen instead of freopen.
26504         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26505         (gl_FUNC_FREOPEN): Invoke it.
26506
26507         Override fopen more carefully.
26508         * lib/fopen.c (orig_fopen): New function.
26509         (rpl_fopen): Use orig_fopen instead of fopen.
26510         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26511         (gl_FUNC_FOPEN): Invoke it.
26512         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26513
26514 2008-09-28  Bruno Haible  <bruno@clisp.org>
26515
26516         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26517         SIGPIPE.
26518
26519 2008-09-28  Bruno Haible  <bruno@clisp.org>
26520
26521         * tests/test-sigaction.c (handler, main): Disable the check whether
26522         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26523         glibc systems with LinuxThreads.
26524
26525 2008-09-28  Bruno Haible  <bruno@clisp.org>
26526
26527         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26528
26529         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26530         with AIX xlc.
26531         * lib/fcntl.in.h (open): Likewise.
26532         Reported by Rainer Tammer <tammer@tammer.net>.
26533
26534 2008-09-28  Bruno Haible  <bruno@clisp.org>
26535
26536         * modules/posix_spawnp-tests: New file.
26537         * tests/test-posix_spawn.c: New file.
26538         * tests/test-posix_spawn.in.sh: New file.
26539
26540         New module 'posix_spawnp'.
26541         * modules/posix_spawnp: New file.
26542         * lib/spawnp.c: New file, from GNU libc with modifications.
26543         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26544
26545         New module 'posix_spawn'.
26546         * modules/posix_spawn: New file.
26547         * lib/spawn.c: New file, from GNU libc with modifications.
26548         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26549
26550         New module 'posix_spawnattr_destroy'.
26551         * modules/posix_spawnattr_destroy: New file.
26552         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26553         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26554         module.
26555
26556         New module 'posix_spawnattr_setsigmask'.
26557         * modules/posix_spawnattr_setsigmask: New file.
26558         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26559         modifications.
26560         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26561         new module.
26562
26563         New module 'posix_spawnattr_getsigmask'.
26564         * modules/posix_spawnattr_getsigmask: New file.
26565         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26566         modifications.
26567         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26568         new module.
26569
26570         New module 'posix_spawnattr_setsigdefault'.
26571         * modules/posix_spawnattr_setsigdefault: New file.
26572         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26573         modifications.
26574         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26575         new module.
26576
26577         New module 'posix_spawnattr_getsigdefault'.
26578         * modules/posix_spawnattr_getsigdefault: New file.
26579         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26580         modifications.
26581         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26582         new module.
26583
26584         New module 'posix_spawnattr_setschedpolicy'.
26585         * modules/posix_spawnattr_setschedpolicy: New file.
26586         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26587         modifications.
26588         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26589         new module.
26590
26591         New module 'posix_spawnattr_getschedpolicy'.
26592         * modules/posix_spawnattr_getschedpolicy: New file.
26593         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26594         modifications.
26595         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26596         new module.
26597
26598         New module 'posix_spawnattr_setschedparam'.
26599         * modules/posix_spawnattr_setschedparam: New file.
26600         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26601         modifications.
26602         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26603         new module.
26604
26605         New module 'posix_spawnattr_getschedparam'.
26606         * modules/posix_spawnattr_getschedparam: New file.
26607         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26608         modifications.
26609         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26610         new module.
26611
26612         New module 'posix_spawnattr_setpgroup'.
26613         * modules/posix_spawnattr_setpgroup: New file.
26614         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26615         modifications.
26616         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26617         module.
26618
26619         New module 'posix_spawnattr_getpgroup'.
26620         * modules/posix_spawnattr_getpgroup: New file.
26621         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26622         modifications.
26623         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26624         module.
26625
26626         New module 'posix_spawnattr_setflags'.
26627         * modules/posix_spawnattr_setflags: New file.
26628         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26629         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26630         module.
26631
26632         New module 'posix_spawnattr_getflags'.
26633         * modules/posix_spawnattr_getflags: New file.
26634         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26635         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26636         module.
26637
26638         New module 'posix_spawnattr_init'.
26639         * modules/posix_spawnattr_init: New file.
26640         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26641         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26642         module.
26643
26644         New module 'posix_spawn_file_actions_destroy'.
26645         * modules/posix_spawn_file_actions_destroy: New file.
26646         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26647         modifications.
26648         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26649         the new module.
26650
26651         New module 'posix_spawn_file_actions_addopen'.
26652         * modules/posix_spawn_file_actions_addopen: New file.
26653         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26654         modifications.
26655         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26656         the new module.
26657
26658         New module 'posix_spawn_file_actions_adddup2'.
26659         * modules/posix_spawn_file_actions_adddup2: New file.
26660         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26661         modifications.
26662         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26663         the new module.
26664
26665         New module 'posix_spawn_file_actions_addclose'.
26666         * modules/posix_spawn_file_actions_addclose: New file.
26667         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26668         modifications.
26669         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26670         the new module.
26671
26672         New module 'posix_spawn_file_actions_init'.
26673         * modules/posix_spawn_file_actions_init: New file.
26674         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26675         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26676         new module.
26677
26678         New module 'posix_spawn-internal'.
26679         * modules/posix_spawn-internal: New file.
26680         * lib/spawn_int.h: New file, from GNU libc with modifications.
26681         * lib/spawni.c: New file, from GNU libc with modifications.
26682         * m4/posix_spawn.m4: New file.
26683
26684         New module 'spawn'.
26685         * modules/spawn: New file.
26686         * lib/spawn.in.h: New file, from GNU libc with modifications.
26687         * m4/spawn_h.m4: New file.
26688         * doc/posix-headers/spawn.texi: Mention the new module.
26689
26690 2008-09-28  Bruno Haible  <bruno@clisp.org>
26691
26692         * modules/sched-tests: New file.
26693         * tests/test-sched.c: New file.
26694
26695         New module 'sched'.
26696         * modules/sched: New file.
26697         * lib/sched.in.h: New file.
26698         * m4/sched_h.m4: New file.
26699         * doc/posix-headers/sched.texi: Mention the new module.
26700
26701 2008-09-27  Eric Blake  <ebb9@byu.net>
26702
26703         Fix previous patch, and tweak references to $0.
26704         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26705         (func_version, func_gnulib_dir): Don't call this program
26706         gnulib-tool.
26707         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26708         with using $0 in function.
26709         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26710         (func_fatal_error): Reuse the name the user invoked us with.
26711
26712 2008-09-27  Bruno Haible  <bruno@clisp.org>
26713
26714         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26715         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26716         (gl_ICONV_H): Not here.
26717         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26718         instead of assigning ICONV_H directly.
26719
26720         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26722         WCHAR_H directly.
26723
26724 2008-09-27  Bruno Haible  <bruno@clisp.org>
26725
26726         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26727         * modules/arpa_inet (Depends-on): Add link-warning.
26728         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26729         * modules/unistd (Makefile.am): Likewise.
26730
26731 2008-09-26  Bruno Haible  <bruno@clisp.org>
26732
26733         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26734         variables.
26735         (func_version): Essentially copied from gnulib-tool.
26736         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26737         func_readlink): Copied from gnulib-tool.
26738
26739 2008-09-26  Bruno Haible  <bruno@clisp.org>
26740
26741         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26742         invoking git-version-gen.
26743
26744 2008-09-26  Bruno Haible  <bruno@clisp.org>
26745
26746         * posix-modules: Update to directory names changed on 2008-01-19.
26747         Remove commas in output before splitting into words. No more need to
26748         avoid 'ftruncate' since 2007-02-19.
26749
26750 2008-09-26  Bruno Haible  <bruno@clisp.org>
26751
26752         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26753
26754 2008-09-26  Bruno Haible  <bruno@clisp.org>
26755
26756         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26757         * modules/fwriteerror (Depends-on): Add errno.
26758
26759 2008-09-26  Bruno Haible  <bruno@clisp.org>
26760
26761         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26762         * tests/test-vc-list-files-cvs.sh: Likewise.
26763
26764 2008-09-26  Bruno Haible  <bruno@clisp.org>
26765
26766         * doc/posix-headers/sys_resource.texi: Reorder items.
26767
26768 2008-09-26  Jim Meyering  <meyering@redhat.com>
26769
26770         fts: tweak inode comparison function
26771         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26772         inode numbers, as documented.
26773
26774         fts: sort dirent entries on inode number before traversing
26775         This avoids a quadratic, seek-related performance penalty when
26776         operating on a directory containing many entries (measurable at 10k;
26777         3.5 hours at 2 million entries with a cold cache) on certain types
26778         of file systems, including ext3 and ext4, but not tmpfs.
26779         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26780         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26781         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26782         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26783         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26784         (fts_build): Set the stat.st_ino member from D_INO.
26785         If it is likely to be useful, sort dirent entries on inode number.
26786
26787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26788         and the struct statfs.f_type member.
26789         * modules/fts (Depends-on): Add d-ino.
26790
26791 2008-09-26  Bruno Haible  <bruno@clisp.org>
26792
26793         * modules/sigpipe-die (Depends-on): Add sigpipe.
26794
26795         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26796         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26797         and GNULIB_STDIO_H_SIGPIPE are set.
26798         * lib/stdio-write.c: New file.
26799         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26800         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26801         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26802         REPLACE_STDIO_WRITE_FUNCS.
26803         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26804         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26805         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26806         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26807         * modules/stdio (Files): Add lib/stdio-write.c.
26808         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26809         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26810         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26811         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26812         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26813         REPLACE_FPRINTF_POSIX.
26814         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26815         REPLACE_PRINTF_POSIX.
26816         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26817         REPLACE_VFPRINTF_POSIX.
26818         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26819         REPLACE_VPRINTF_POSIX.
26820         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26821         SIGPIPE issue.
26822         * doc/posix-functions/fputc.texi: Likewise.
26823         * doc/posix-functions/fputs.texi: Likewise.
26824         * doc/posix-functions/fwrite.texi: Likewise.
26825         * doc/posix-functions/printf.texi: Likewise.
26826         * doc/posix-functions/putc.texi: Likewise.
26827         * doc/posix-functions/putchar.texi: Likewise.
26828         * doc/posix-functions/puts.texi: Likewise.
26829         * doc/posix-functions/vfprintf.texi: Likewise.
26830         * doc/posix-functions/vprintf.texi: Likewise.
26831
26832         * modules/safe-write (Depends-on): Add write.
26833
26834         * modules/sigpipe-tests: New file.
26835         * tests/test-sigpipe.c: New file.
26836         * tests/test-sigpipe.sh: New file.
26837
26838         * modules/write: New file.
26839         * lib/unistd.in.h: Include <sys/types.h>.
26840         (write): New declaration.
26841         * lib/write.c: New file.
26842         * m4/write.m4: New file.
26843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26844         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
26845         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
26846         GNULIB_WRITE, REPLACE_WRITE.
26847         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
26848         and the SIGPIPE issue.
26849
26850         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
26851         (raise): New declaration.
26852         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
26853         (ext_signal): New function.
26854         (rpl_raise): New function.
26855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26856         GNULIB_SIGNAL_H_SIGPIPE.
26857         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
26858         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
26859
26860         * modules/sigpipe: New file.
26861         * m4/sigpipe.m4: New file.
26862
26863 2008-09-25  Derek Price  <derek@ximbiot.com>
26864             Bruno Haible  <bruno@clisp.org>
26865
26866         * gnulib-tool (func_import): Report all license incompatibilities, not
26867         just the first one.
26868
26869 2008-09-25  Bruno Haible  <bruno@clisp.org>
26870
26871         * gnulib-tool (func_import): When computing the edits, consider not
26872         only the Makefile.ams that exist but also those that will be generated.
26873
26874 2008-09-25  Simon Josefsson  <simon@josefsson.org>
26875
26876         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
26877         fixes gnulib-tool --test warning about duplicate dependency.
26878
26879 2008-09-25  Bruno Haible  <bruno@clisp.org>
26880
26881         * gnulib-tool: Don't ask the user to perform edits in the generated
26882         Makefile.ams.
26883         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
26884         apply to the Makefile.am being generated.
26885         (func_emit_tests_Makefile_am): Execute edits that apply to the
26886         Makefile.am being generated.
26887         (func_import): Setup list of Makefile.am edits before emitting the
26888         Makefile.ams, not at the end.
26889         (func_create_testdir): Update.
26890         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26891
26892 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26893
26894         * gnulib-tool (func_import): Store the --tests-base option in the
26895         comment in gnulib-cache.m4.
26896
26897 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
26898
26899         * NEWS: Document increased portability that sys_select now provides.
26900
26901         * lib/sys_select.in.h: Install select wrapper.
26902         * lib/sys_socket.in.h: Use more descriptive name when there is no
26903         select wrapper.
26904         * lib/winsock-select.c: New.
26905         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
26906         Require gl_HEADER_SYS_SOCKET.
26907         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
26908         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
26909         * tests/test-sys_select.c: Add functional tests.
26910
26911 2008-09-24  Eric Blake  <ebb9@byu.net>
26912
26913         open, fopen: close fd leak in last patch
26914         * lib/open.c (rpl_open): Close fd before returning error.
26915         * lib/fopen.c (rpl_fopen): Close fd before returning error.
26916         * doc/posix-functions/open.texi (open): Document that Irix also
26917         has the bug.
26918         * doc/posix-functions/fopen.texi (fopen): Likewise.
26919         Reported by Paolo Bonzini.
26920
26921 2008-09-24  Bruno Haible  <bruno@clisp.org>
26922
26923         Ensure that a filename ending in a slash cannot be used to access a
26924         non-directory.
26925         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
26926         to check whether it's really a directory.
26927         * lib/fopen.c: Include fcntl.h, unistd.h.
26928         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
26929         and fdopen().
26930         * modules/fopen (Depends-on): Add unistd.
26931         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
26932         * tests/test-fopen.c (main): Likewise.
26933         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
26934         * doc/posix-functions/fopen.texi: Likewise.
26935         Reported by Eric Blake.
26936
26937 2008-09-23  Eric Blake  <ebb9@byu.net>
26938
26939         c-stack: avoid compiler optimizations when provoking overflow
26940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
26941         recursion harder to optimize, to ensure a stack overflow occurs.
26942         * tests/test-c-stack.c (recurse): Likewise.
26943         Borrowed from libsigsegv.
26944
26945         c-stack: work around Irix sigaltstack bug
26946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
26947         whether sigaltstack uses wrong end of stack_t (copied in part from
26948         libsigsegv).
26949         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
26950         Irix bug, without requiring an over-allocation.
26951         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
26952         bug.
26953
26954         fopen: document mingw bug on directories
26955         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
26956         not allowing a stream visiting a directory, even though reading
26957         from such a stream is not portable.
26958
26959 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26960
26961         * lib/poll.c: Rewrite.
26962         * modules/poll: Depend on alloca.
26963
26964 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26965
26966         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
26967         instead define prototypes for a full set of wrappers.  Ensure
26968         that Cygwin does not use the compatibility code, which is only
26969         for MinGW.
26970         * lib/winsock.c: New.
26971         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
26972         * modules/sys_socket: Add lib/winsock.c.
26973
26974         * modules/poll-tests: Add errno and perror.
26975         * tests/test-poll.c: Use ioctl, not ioctlsocket.
26976
26977 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
26978
26979         * tests/test-poll.c: Downgrade minimum needed Winsock version.
26980
26981 2008-09-23  Bruno Haible  <bruno@clisp.org>
26982
26983         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
26984         * doc/glibc-functions/*: Likewise.
26985
26986 2008-09-23  Simon Josefsson  <simon@josefsson.org>
26987
26988         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
26989         success.
26990
26991 2008-09-22  Eric Blake  <ebb9@byu.net>
26992             Bruno Haible  <bruno@clisp.org>
26993
26994         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
26995         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
26996         supply %A but mishandle pseudo-NaN.
26997         Reported by Simon Josefsson.
26998
26999 2008-09-21  Bruno Haible  <bruno@clisp.org>
27000
27001         * tests/test-lock.c (main): Tweak skip message.
27002         * tests/test-tls.c (main): Likewise.
27003
27004 2008-09-21  Bruno Haible  <bruno@clisp.org>
27005
27006         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27007         whether 'struct sigaction' has sa_sigaction here...
27008         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27009         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27010
27011 2008-09-21  Bruno Haible  <bruno@clisp.org>
27012
27013         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27014         section.
27015         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27016         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27017         the new section.
27018         (Support for obsolete systems lacking POSIX:2001): New section.
27019         (String handling <string.h>): Move strdup to the new section.
27020         Suggested by Simon Josefsson and Paolo Bonzini.
27021
27022 2008-09-21  Bruno Haible  <bruno@clisp.org>
27023
27024         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27025         exponents in %e and %g results on 'long double'. Needed for mingw's
27026         improved *printf functions.
27027         * tests/test-vasprintf-posix.c (test_function): Likewise.
27028         * tests/test-snprintf-posix.h (test_function): Likewise.
27029         * tests/test-sprintf-posix.h (test_function): Likewise.
27030         Reported by Eric Blake.
27031
27032 2008-09-21  Bruno Haible  <bruno@clisp.org>
27033
27034         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27035         * tests/test-sprintf-posix.h (test_function): Likewise.
27036
27037 2008-09-21  Bruno Haible  <bruno@clisp.org>
27038
27039         * modules/getpass (Depends-on): Add strdup-posix.
27040
27041         New module 'strdup-posix'.
27042         * modules/strdup-posix: New file.
27043         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27044         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27046         REPLACE_STRDUP.
27047         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27048         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27050         strdup-posix.
27051
27052         * modules/strdup (Depends-on): Remove malloc-posix.
27053
27054 2008-09-20  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27057         Wildenhues.
27058
27059 2008-09-20  Bruno Haible  <bruno@clisp.org>
27060
27061         Ensure that wint_t gets defined on IRIX 5.3.
27062         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27063         * lib/wctype.in.h (wint_t): Likewise.
27064         (__wctype_wint_t): Remove type.
27065         (isw*): Use wint_t instead of __wctype_wint_t.
27066         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27067         * modules/wchar (Files): Add m4/wint_t.m4.
27068         (Makefile.am): Substitute HAVE_WINT_T.
27069         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27070         * tests/test-wctype.c: Check that wint_t is defined.
27071         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27072         * doc/posix-headers/wctype.texi: Likewise.
27073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27074
27075 2008-09-18  Bruno Haible  <bruno@clisp.org>
27076
27077         * gnulib-tool (func_exit): Update comment.
27078
27079 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27080
27081         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27082         assumes strdup exists and does not depend on strdup to return
27083         ENOMEM on out of memory conditions.
27084
27085 2008-09-18  Bruno Haible  <bruno@clisp.org>
27086
27087         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27088         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27089         digits for the exponent.
27090
27091 2008-09-18  Jim Meyering  <meyering@redhat.com>
27092             Bruno Haible  <bruno@clisp.org>
27093
27094         * lib/vasnprintf.c (decimal_point_char): Define also if
27095         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27096
27097 2008-09-16  Bruno Haible  <bruno@clisp.org>
27098         and Eric Blake  <ebb9@byu.net>
27099
27100         vasnprintf: support Irix 5.3
27101         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27102         that mishandle long double infinity.
27103         Reported by Tom G. Christensen.
27104
27105 2008-09-16  Bruno Haible  <bruno@clisp.org>
27106
27107         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27108         Solaris 9.
27109         * doc/glibc-functions/alphasort.texi: Likewise.
27110         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27111
27112 2008-09-16  Jim Meyering  <meyering@redhat.com>
27113
27114         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27115         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27116         a umask modification leak out of a subshell.  Otherwise, the
27117         opensolaris /bin/sh would be accepted and thus cause unwarranted
27118         failures in the coreutils test suite.
27119
27120 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27121
27122         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27123         to succeed.
27124
27125 2008-09-16  Jim Meyering  <meyering@redhat.com>
27126
27127         avoid spurious test failure when library is built without ACL support
27128         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27129         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27130         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27131         * tests/test-copy-acl.sh: Likewise.
27132
27133 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27134
27135         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27136         based on character occurrence counts.
27137
27138 2008-09-15  Eric Blake  <ebb9@byu.net>
27139
27140         tests: avoid some compiler warnings
27141         * tests/test-memchr.c (main): Pass NULL indirectly.
27142         * tests/test-closein.c (main): Avoid unused variable.
27143
27144 2008-09-15  Bruno Haible  <bruno@clisp.org>
27145
27146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27147         are missing on OpenBSD 4.0 individually.
27148         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27149
27150 2008-09-15  Bruno Haible  <bruno@clisp.org>
27151
27152         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27153         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27154         * doc/posix-functions/perror.texi: Likewise.
27155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27156         is missing.
27157         Reported by Eric Blake.
27158
27159         * lib/errno.in.h: Use replacement values >= 2000.
27160         Reported by Eric Blake.
27161
27162 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27163
27164         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27165         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27166         limit.
27167         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27168         compareseq was aborted.
27169
27170 2008-09-14  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27173         yvec_edit_count.
27174         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27175         (fstrcmp_bounded): Simplify result computation accordingly.
27176
27177 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27178
27179         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27180         (fstrcmp): Define in terms of fstrcmp_bounded.
27181         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27182         lower_bound argument.
27183         Return quickly if the result is certainly < lower_bound.
27184         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27185
27186 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27187
27188         * lib/diffseq.h (EARLY_ABORT): New macro.
27189         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27190         evaluates to true.
27191
27192 2008-09-14  Bruno Haible  <bruno@clisp.org>
27193
27194         * modules/perror-tests: New file.
27195         * tests/test-perror.sh: New file.
27196         * tests/test-perror.c: New file.
27197
27198         New module 'perror'.
27199         * lib/stdio.in.h (perror): New declaration.
27200         * lib/perror.c: New file.
27201         * m4/perror.m4: New file.
27202         * modules/perror: New file.
27203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27204         * doc/posix-functions/perror.texi: Mention the perror module.
27205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27206         REPLACE_PERROR.
27207         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27208         REPLACE_PERROR.
27209
27210 2008-09-14  Bruno Haible  <bruno@clisp.org>
27211
27212         * modules/stdio (Makefile.am): Reorder to match the order in
27213         lib/stdio.in.h.
27214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27215
27216 2008-09-13  Bruno Haible  <bruno@clisp.org>
27217
27218         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27219
27220 2008-09-13  Bruno Haible  <bruno@clisp.org>
27221
27222         Extend strerror to cover the added errno values.
27223         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27224         (rpl_strerror): Provide error messages for the added errno values and
27225         for the WSA* values.
27226         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27227         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27228         strerror.
27229         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27230         * modules/strerror (Depends-on): Add errno.
27231         * doc/posix-functions/strerror.texi: Document the change.
27232         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27233         and EOVERFLOW.
27234
27235 2008-09-13  Bruno Haible  <bruno@clisp.org>
27236
27237         * modules/EOVERFLOW: Remove file.
27238         * m4/eoverflow.m4: Remove file.
27239         * modules/EOVERFLOW-tests: Remove file.
27240         * tests/test-EOVERFLOW.c: Remove file.
27241         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27242         * modules/ftell (Depends-on): Likewise.
27243         * modules/getdelim (Depends-on): Likewise.
27244         * modules/getugroups (Depends-on): Likewise.
27245         * modules/poll (Depends-on): Likewise.
27246         * modules/snprintf (Depends-on): Likewise.
27247         * modules/sprintf-posix (Depends-on): Likewise.
27248         * modules/vasnprintf (Depends-on): Likewise.
27249         * modules/vasprintf (Depends-on): Likewise.
27250         * modules/vfprintf-posix (Depends-on): Likewise.
27251         * modules/vsnprintf (Depends-on): Likewise.
27252         * modules/vsprintf-posix (Depends-on): Likewise.
27253         * modules/xvasprintf (Depends-on): Likewise.
27254         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27255         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27256         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27257         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27258         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27259         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27260         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27261         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27262         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27263         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27264         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27265         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27266         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27267         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27268         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27269         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27271         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27272         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27273         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27275         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27276         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27277         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27278         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27279         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27280         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27281         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27282         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27283         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27284         * MODULES.html.sh: Remove EOVERFLOW.
27285         * NEWS: Mention the change.
27286
27287 2008-09-13  Bruno Haible  <bruno@clisp.org>
27288
27289         * modules/errno-tests: New file.
27290         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27291
27292         * lib/errno.in.h: New file.
27293         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27294         * modules/errno: New file.
27295         * doc/posix-headers/errno.texi: Update documentation.
27296         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27297
27298 2008-09-13  Bruno Haible  <bruno@clisp.org>
27299
27300         * tests/test-poll.c: Use #if for native Windows, rather than testing
27301         __MSVCRT__.
27302
27303 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27304             Bruno Haible  <bruno@clisp.org>
27305
27306         * lib/glob.c: Don't include <pwd.h> on native Windows.
27307         (WINDOWS32): New macro.
27308         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27309
27310 2008-09-13  Bruno Haible  <bruno@clisp.org>
27311
27312         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27313         (ETIMEDOUT): Remove macro.
27314         (glthread_cond_timedwait_multithreaded): New declaration.
27315         (glthread_cond_timedwait): Use it.
27316         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27317         (glthread_cond_timedwait_multithreaded): New function.
27318
27319 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27320
27321         * modules/poll-tests: Do not check for io.h.
27322         * tests/test-poll.c: Check for __MSVCRT__ instead.
27323
27324 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27325
27326         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27327         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27328         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27329
27330 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27331
27332         * modules/poll-tests: New.
27333         * tests/test-poll.c: New.
27334
27335 2008-09-12  Eric Blake  <ebb9@byu.net>
27336
27337         frexp: test for NetBSD failure on -0.0
27338         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27339         not all, bugs from NetBSD 3.0 have been fixed.
27340         * doc/posix-functions/frexp.texi (frexp): Document bug.
27341         Reported by Thomas Klausner.
27342
27343         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27344         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27345         literal -0.0.
27346         Reported by Jonathan C. Patschke <jp@centtech.com>.
27347
27348 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27349
27350         * lib/glthread/cond.h: Use dummy implementation also if
27351         USE_WIN32_THREADS.
27352
27353 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27354
27355         * modules/fnmatch-posix (License): Change to LGPLv2+.
27356         * modules/fnmatch-gnu (License): Likewise.
27357
27358 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27359
27360         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27361
27362 2008-09-11  Jim Meyering  <meyering@redhat.com>
27363
27364         * users.txt: Add gtk-vnc.
27365
27366 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27367
27368         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27369         rotate amounts.
27370
27371         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27372         required for 16-bit and 8-bit rotates.
27373         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27374         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27375         UINT8_MAX instead of hard-coded constants.
27376         Suggested by Paul Eggert.
27377
27378 2008-09-07  Bruno Haible  <bruno@clisp.org>
27379
27380         * tests/test-striconveh.c (main): Check behaviour when converting from
27381         UTF-7.
27382
27383         Make striconveh work better with stateful encodings.
27384         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27385         that iconv does not increment the inptr when returning -1/EINVAL.
27386
27387 2008-09-07  Bruno Haible  <bruno@clisp.org>
27388
27389         * build-aux/config.rpath: Update according to libtool-2.2.6.
27390         * build-aux/config.libpath: Likewise.
27391
27392 2008-09-06  Bruno Haible  <bruno@clisp.org>
27393
27394         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27395         * lib/freadptr.c (freadptr): Likewise.
27396         * lib/freadseek.c (freadptrinc): Likewise.
27397         Reported by Simon Josefsson.
27398
27399 2008-09-06  Bruno Haible  <bruno@clisp.org>
27400
27401         * modules/freadptr (License): Change to LGPLv2+.
27402         * modules/freadseek (License): Likewise.
27403         Suggested by Eric Blake.
27404
27405         * modules/memchr2 (License): Change to LGPLv2+.
27406         Approved by Eric Blake.
27407
27408 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27409             Bruno Haible  <bruno@clisp.org>
27410
27411         Make gnulib-tool work with native 'sed' on AIX.
27412         * gnulib-tool (sed_noop): New variable.
27413         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27414         func_add_or_update, func_create_testdir): Use it to initialize sed
27415         script variables.
27416         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27417
27418 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27419             Bruno Haible  <bruno@clisp.org>
27420
27421         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27422         also works after #include directives.
27423
27424 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27425
27426         getdate.y: reject an out-of-range timezone value
27427         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27428         the range [-24...+24].  When specified with only one or two digits,
27429         * tests/test-getdate.c: Tests for the fix.
27430         * doc/getdate.texi: Document this change.
27431
27432 2008-09-03  Bruno Haible  <bruno@clisp.org>
27433
27434         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27435
27436 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27437
27438         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27439         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27440         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27441         Blake <ebb9@byu.net>.
27442
27443         * tests/test-bitrotate.c: Add more test vectors.
27444
27445 2008-09-02  Eric Blake  <ebb9@byu.net>
27446
27447         vasnprintf-posix: handle large precision via %.*d
27448         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27449         when handling it ourselves.
27450         * tests/test-vasnprintf-posix.c (test_function): Add test.
27451         * tests/test-snprintf-posix.h (test_function): Likewise.
27452         * tests/test-sprintf-posix.h (test_function): Likewise.
27453         * tests/test-vasprintf-posix.c (test_function): Likewise.
27454         Reported by Alain Guibert.
27455
27456 2008-09-01  Eric Blake  <ebb9@byu.net>
27457
27458         c-stack: make configure-time check more robust
27459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27460         successful sigaction call.
27461         Reported by Tom G. Christensen.
27462
27463 2008-09-01  Bruno Haible  <bruno@clisp.org>
27464
27465         New module 'findprog-lgpl'.
27466         * modules/findprog-lgpl: New file.
27467         * lib/findprog-lgpl.c: New file.
27468         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27469         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27470         to decide whether to use strdup or xstrdup, concatenated_filename or
27471         xconcatenated_filename.
27472
27473 2008-09-01  Bruno Haible  <bruno@clisp.org>
27474
27475         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27476         'xconcat-filename' (GPL).
27477         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27478         (License): Change to LGPLv2+.
27479         * modules/xconcat-filename: New file.
27480         * lib/concat-filename.h (concatenated_filename): Change specification.
27481         (xconcatenated_filename): New declaration.
27482         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27483         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27484         memory situations.
27485         * lib/xconcat-filename.c: New file.
27486         * NEWS: Mention the change.
27487         * lib/findprog.c: Include concat-filename.h, not filename.h.
27488         (find_in_path): Use xconcatenated_filename instead of
27489         concatenated_filename.
27490         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27491         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27492         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27493         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27494         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27495         instead of concatenated_filename.
27496         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27497         (execute_java_class): Use xconcatenated_filename instead of
27498         concatenated_filename.
27499         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27500         * modules/javacomp (Depends-on): Likewise.
27501         * modules/javaexec (Depends-on): Likewise.
27502
27503 2008-09-01  Bruno Haible  <bruno@clisp.org>
27504
27505         Split module 'filename' into 'filename' and 'concat-filename'.
27506         * modules/filename: Keep only lib/filename.h.
27507         (License): Change to LGPLv2+.
27508         * modules/concat-filename: New file, extracted from modules/filename.
27509         * lib/filename.h (concatenated_filename): Remove declaration.
27510         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27511         * lib/concat-filename.c: Include concat-filename.h.
27512         * NEWS: Mention the change.
27513
27514 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27515
27516         * lib/bitrotate.h (rotl8, rotr8): Add.
27517
27518         * modules/bitrotate (configure.ac): Need
27519         AC_REQUIRE([AC_C_INLINE]).
27520         (Description): Mention stdint.h.  Reported by Bruno Haible
27521         <bruno@clisp.org>.
27522
27523         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27524         Paolo Bonzini <bonzini@gnu.org>.
27525
27526 2008-08-31  Bruno Haible  <bruno@clisp.org>
27527
27528         Assume Solaris specific bi-arch conventions on Solaris systems.
27529         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27530         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27532         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27533         like acl_libdirstem.
27534         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27535         acl_libdirstem.
27536         * NEWS: Mention the change.
27537         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27538
27539 2008-08-31  Jim Meyering  <meyering@redhat.com>
27540
27541         * lib/strftime.h: Add comments describing the two added arguments.
27542
27543         remove duplicate #include directives
27544         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27545         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27546
27547 2008-08-31  Bruno Haible  <bruno@clisp.org>
27548
27549         New module 'sigpipe-die'.
27550         * modules/sigpipe-die: New file.
27551         * lib/sigpipe-die.h: New file.
27552         * lib/sigpipe-die.c: New file.
27553         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27554
27555 2008-08-31  Bruno Haible  <bruno@clisp.org>
27556
27557         Don't override previously installed signal handlers.
27558         * lib/fatal-signal.c (saved_sigactions): New variable.
27559         (uninstall_handlers): Reset the signal to the saved handler, not
27560         to SIG_DFL (except when ignored).
27561         (install_handlers): Save the previous handlers.
27562
27563 2008-08-30  Bruno Haible  <bruno@clisp.org>
27564
27565         * gnulib-tool (func_reset_sigpipe): New function.
27566         (func_get_automake_snippet, func_modules_transitive_closure,
27567         func_import): Invoke it before a join command that reads from stdin,
27568         to avoid "echo: write error: Broken pipe" error messages on stderr.
27569         Reported by Sam Steingold <sds@gnu.org>.
27570
27571 2008-08-30  Bruno Haible  <bruno@clisp.org>
27572
27573         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27574         Code copied from m4/open.m4.
27575         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27576         access and the filename ends in a slash. Code copied from lib/open.c.
27577         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27578         * tests/test-fopen.c (main): Check against bug with trailing slash.
27579
27580 2008-08-29  Bruno Haible  <bruno@clisp.org>
27581
27582         Avoid some "gcc -pedantic" warnings.
27583         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27584         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27585         * lib/dirent.in.h: Likewise.
27586         * lib/fcntl.in.h: Likewise.
27587         * lib/float.in.h: Likewise.
27588         * lib/iconv.in.h: Likewise.
27589         * lib/inttypes.in.h: Likewise.
27590         * lib/locale.in.h: Likewise.
27591         * lib/math.in.h: Likewise.
27592         * lib/netinet_in.in.h: Likewise.
27593         * lib/search.in.h: Likewise.
27594         * lib/signal.in.h: Likewise.
27595         * lib/stdarg.in.h: Likewise.
27596         * lib/stdint.in.h: Likewise.
27597         * lib/stdio.in.h: Likewise.
27598         * lib/stdlib.in.h: Likewise.
27599         * lib/string.in.h: Likewise.
27600         * lib/strings.in.h: Likewise.
27601         * lib/sys_select.in.h: Likewise.
27602         * lib/sys_socket.in.h: Likewise.
27603         * lib/sys_stat.in.h: Likewise.
27604         * lib/sys_time.in.h: Likewise.
27605         * lib/sysexits.in.h: Likewise.
27606         * lib/time.in.h: Likewise.
27607         * lib/unistd.in.h: Likewise.
27608         * lib/wchar.in.h: Likewise.
27609         * lib/wctype.in.h: Likewise.
27610         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27611         * modules/fchdir (Makefile.am): Likewise.
27612         * modules/fcntl (Makefile.am): Likewise.
27613         * modules/float (Makefile.am): Likewise.
27614         * modules/iconv_open (Makefile.am): Likewise.
27615         * modules/inttypes (Makefile.am): Likewise.
27616         * modules/locale (Makefile.am): Likewise.
27617         * modules/math (Makefile.am): Likewise.
27618         * modules/netinet_in (Makefile.am): Likewise.
27619         * modules/search (Makefile.am): Likewise.
27620         * modules/signal (Makefile.am): Likewise.
27621         * modules/stdarg (Makefile.am): Likewise.
27622         * modules/stdint (Makefile.am): Likewise.
27623         * modules/stdio (Makefile.am): Likewise.
27624         * modules/stdlib (Makefile.am): Likewise.
27625         * modules/string (Makefile.am): Likewise.
27626         * modules/strings (Makefile.am): Likewise.
27627         * modules/sys_select (Makefile.am): Likewise.
27628         * modules/sys_socket (Makefile.am): Likewise.
27629         * modules/sys_stat (Makefile.am): Likewise.
27630         * modules/sys_time (Makefile.am): Likewise.
27631         * modules/sysexits (Makefile.am): Likewise.
27632         * modules/time (Makefile.am): Likewise.
27633         * modules/unistd (Makefile.am): Likewise.
27634         * modules/wchar (Makefile.am): Likewise.
27635         * modules/wctype (Makefile.am): Likewise.
27636         Reported by Reuben Thomas <rrt@sc3d.org>.
27637
27638 2008-08-29  Bruno Haible  <bruno@clisp.org>
27639
27640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27641         any more.
27642
27643 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27644
27645         * MODULES.html.sh (Misc): Add bitrotate.
27646
27647         * modules/bitrotate: New file.
27648
27649         * lib/bitrotate.h: New file.
27650
27651         * modules/bitrotate-tests: New file.
27652
27653         * tests/test-bitrotate.c: New file.
27654
27655         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27656         on the bitrotate module.
27657
27658         * lib/arctwo.c: Use new bitrotate module.
27659
27660 2008-08-29  Jim Meyering  <meyering@redhat.com>
27661
27662         bootstrap: merge changes from coreutils
27663         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27664         of copied files.  Remove a kludge, now that this is fixed.
27665         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27666         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27667         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27668
27669 2008-08-29  Bruno Haible  <bruno@clisp.org>
27670
27671         * MODULES.html.sh: Remove --cvs-urls option.
27672
27673 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27674
27675         maint.mk: adjust to file name change
27676         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27677
27678 2008-08-28  Jim Meyering  <meyering@redhat.com>
27679
27680         * modules/getndelim2 (License): Relicense to LGPLv2+.
27681         Approved by Richard Stallman for the version of 1995, and by
27682         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27683
27684 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27685
27686         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27687         dummy if one is not available.  Do not touch them if
27688         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27689         (getc_maybe_unlocked): New.
27690         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27691
27692 2008-08-26  Eric Blake  <ebb9@byu.net>
27693
27694         doc/INSTALL: resync from autoconf
27695         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27696         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27697         moving...
27698         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27699         * INSTALL: Regenerate.
27700         * INSTALL.ISO: New file.
27701         * INSTALL.UTF-8: Likewise.
27702
27703 2008-08-26  Jim Meyering  <meyering@redhat.com>
27704
27705         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27706         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27707         these definitions conditional, so that they may be overridden, too.
27708
27709 2008-08-26  Bruno Haible  <bruno@clisp.org>
27710
27711         Generate INSTALL file variants with prettier quotes.
27712         * doc/Makefile (INSTALL_PRELUDE): New macro.
27713         (INSTALL): Use it.
27714         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27715
27716 2008-08-26  Bruno Haible  <bruno@clisp.org>
27717
27718         Run makeinfo in an English locale.
27719         * doc/Makefile (MAKEINFO): New variable.
27720
27721 2008-08-26  Bruno Haible  <bruno@clisp.org>
27722
27723         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27724         Suggested by Eric Blake.
27725
27726 2008-08-25  Bruno Haible  <bruno@clisp.org>
27727
27728         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27729
27730 2008-08-25  Eric Blake  <ebb9@byu.net>
27731
27732         c-stack: test that stack overflow can be caught
27733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27734         that platform allows handling stack overflow; at least OS/2 EMX
27735         has sigaltstack, but crashes before transferring control to
27736         handler on stack overflow.
27737         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27738         check for HAVE_STACK_OVERFLOW_HANDLING.
27739         Reported by Elbert Pol.
27740
27741 2008-08-25  Bruno Haible  <bruno@clisp.org>
27742
27743         * doc/posix-functions/strftime.texi: Fix description of strftime
27744         module.
27745
27746 2008-08-24  Bruno Haible  <bruno@clisp.org>
27747
27748         * tests/uniwidth/test-uc_width2.c: New file.
27749         * tests/uniwidth/test-uc_width2.sh: New file.
27750         * modules/uniwidth/width-tests (Files): Add the new files.
27751         (TESTS): Add uniwidth/test-uc_width2.sh.
27752         (TESTS_ENVIRONMENT): New variable.
27753         (check_PROGRAMS): Add test-uc_width2.
27754         (test_uc_width2_SOURCES): New variable.
27755
27756         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27757         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27758         not 0x00AB.
27759         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27760
27761 2008-08-22  Eric Blake  <ebb9@byu.net>
27762
27763         test-lock, test-tls: mention why a test is skipped
27764         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27765         skipped.
27766         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27767
27768         count-one-bits: relax license
27769         * modules/count-one-bits (License): Relicense to LGPLv2+.
27770         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27771
27772 2008-08-22  Andreas Schwab  <schwab@suse.de>
27773
27774         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27775         Remove spurious space in assignment.
27776
27777 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27778
27779         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27780         Paul Eggert <eggert@CS.UCLA.EDU>.
27781
27782 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27783
27784         * modules/gettext: Add m4/threadlib.m4.
27785
27786 2008-08-19  Eric Blake  <ebb9@byu.net>
27787
27788         test-c-stack: fix compilation failure on FreeBSD 5.0
27789         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27790         headers before <sys/resource.h>.
27791         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27792         the bug.
27793         Reported by Nelson H. F. Beebe.
27794
27795         strverscmp: migrate from "strverscmp.h" to <string.h>
27796         * modules/string (Makefile.am): Add new hooks.
27797         * modules/strverscmp (Files): Remove strverscmp.h.
27798         (Depends-on): Add string.
27799         (configure.ac): Add indicator.
27800         (Include): Mention new header.
27801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27802         defaults.
27803         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27804         results.
27805         * lib/strverscmp.h: Delete.
27806         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27807         * tests/test-strverscmp.c (includes): Adjust client.
27808         * lib/check-version.c (includes): Likewise.
27809         * NEWS: Document the change.
27810
27811         strverscmp: add unit test
27812         * modules/strverscmp-tests: New file.
27813         * tests/test-strverscmp.c: Likewise.
27814
27815 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27816
27817         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27818         regarding Windows crypto stuff, from Mono.
27819
27820 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27821
27822         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27823         if present, for intel RND.  Return error on failures.
27824
27825 2008-08-18  Ben Pfaff  <blp@gnu.org>
27826
27827         gitlog-to-changelog: give better diagnostic for failed pipe-open
27828         * build-aux/gitlog-to-changelog: Improve error message: suggest
27829         that the version of Git may be too old.
27830
27831 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27832
27833         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27834         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27835
27836 2008-08-18  Bruno Haible  <bruno@clisp.org>
27837
27838         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27839         pthread_in_use().
27840
27841 2008-08-18  Bruno Haible  <bruno@clisp.org>
27842
27843         * lib/glthread/threadlib.c: Include <pthread.h>.
27844
27845 2008-08-18  Bruno Haible  <bruno@clisp.org>
27846
27847         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
27848         glthread_recursive_lock_* macros.
27849         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
27850         Fix syntax error.
27851
27852 2008-08-18  Bruno Haible  <bruno@clisp.org>
27853
27854         * lib/glthread/thread.c: Avoid forcing a context switch right after
27855         thread creation.
27856
27857 2008-08-17  Bruno Haible  <bruno@clisp.org>
27858
27859         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
27860         * lib/glthread/thread.h: Provide Win32 specific implementation.
27861         * modules/thread (Files): Add lib/glthread/thread.c.
27862         (Depends-on): Add lock.
27863         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
27864
27865 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27866
27867         New module 'yield'.
27868         * modules/yield: New file.
27869         * lib/glthread/yield.h: New file.
27870         * m4/yield.m4: New file.
27871         * MODULES.html.sh (Multithreading): Add yield.
27872
27873 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27874
27875         New module 'thread'.
27876         * modules/thread: New file.
27877         * lib/glthread/thread.h: New file.
27878         * m4/thread.m4: New file.
27879         * MODULES.html.sh (Multithreading): Add thread.
27880
27881 2008-08-17  Bruno Haible  <bruno@clisp.org>
27882
27883         * lib/glthread/lock.h: Include <stdlib.h> always.
27884         * lib/glthread/tls.h: Likewise.
27885         * lib/glthread/cond.h: Likewise.
27886
27887 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27888
27889         New module 'cond'.
27890         * modules/cond: New file.
27891         * lib/glthread/cond.h: New file.
27892         * lib/glthread/cond.c: New file.
27893         * m4/cond.m4: New file.
27894         * MODULES.html.sh (Multithreading): Add cond.
27895
27896 2008-08-16  Eric Blake  <ebb9@byu.net>
27897
27898         c-stack: fix regression on Irix 5.3 from 2008-06-21
27899         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
27900         sa_sigaction...
27901         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
27902         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
27903         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
27904         * modules/signal (Makefile.am): Use the value.
27905         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
27906         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
27907         * doc/posix-headers/signal.texi (signal.h): Document this
27908         portability issue.
27909         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
27910         Reported by Tom G. Christensen.
27911
27912 2008-08-17  Bruno Haible  <bruno@clisp.org>
27913
27914         New module 'threadlib'.
27915         * modules/threadlib: New file.
27916         * lib/glthread/threadlib.c: New file, extracted from
27917         lib/glthread/lock.c.
27918         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
27919         functions.
27920         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
27921         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
27922         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
27923         macros.
27924         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
27925         (gl_DISABLE_THREADS): Remove macro.
27926         * modules/lock (Files): Remove build-aux/config.rpath.
27927         (Depends-on): Remove havelib. Add threadlib.
27928         (configure.ac-early): Remove section.
27929         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
27930         * modules/tls (Depends-on): Remove lock. Add threadlib.
27931         (Link): New section, copied from threadlib.
27932         * MODULES.html.sh (Multithreading): Add threadlib.
27933
27934 2008-08-14  Bruno Haible  <bruno@clisp.org>
27935
27936         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
27937         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
27938         glthread_rwlock_unlock, glthread_rwlock_destroy,
27939         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
27940         glthread_recursive_lock_destroy): Define as macros always.
27941         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
27942         glthread_lock_lock.
27943         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
27944         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
27945         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
27946         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
27947         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
27948         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
27949         (glthread_recursive_lock_lock_func): Renamed from
27950         glthread_recursive_lock_lock.
27951         (glthread_recursive_lock_unlock_func): Renamed from
27952         glthread_recursive_lock_unlock.
27953         (glthread_recursive_lock_destroy_func): Renamed from
27954         glthread_recursive_lock_destroy.
27955
27956 2008-08-14  Bruno Haible  <bruno@clisp.org>
27957
27958         * lib/glthread/lock.h: Renamed from lib/lock.h.
27959         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
27960         * lib/glthread/tls.h: Renamed from lib/tls.h.
27961         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
27962         * lib/fstrcmp.c: Update includes.
27963         * lib/strsignal.c: Update includes.
27964         * modules/lock (Files, Makefile.am): Update.
27965         (Include): Change to "glthread/lock.h".
27966         * modules/tls (Files, Makefile.am): Update.
27967         (Include): Change to "glthread/tls.h".
27968         * tests/test-lock.c: Update includes.
27969         * tests/test-tls.c: Update includes.
27970         * NEWS: Mention the renamed header files.
27971
27972 2008-08-11  Jim Meyering  <meyering@redhat.com>
27973
27974         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
27975
27976 2008-08-11  Eric Blake  <ebb9@byu.net>
27977
27978         test-c-stack: avoid C99-ism
27979         * tests/test-c-stack.c (main): Fix whitespace, move declaration
27980         before statement.
27981         Reported by Alain Guibert.
27982
27983 2008-08-10  Jim Meyering  <meyering@redhat.com>
27984
27985         ensure that return value of uinttostr et al are not ignored
27986         * lib/inttostr.h (__GNUC_PREREQ): Define.
27987         (__attribute_warn_unused_result__): Define.
27988         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
27989
27990 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
27991
27992         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
27993         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
27994
27995 2008-08-07  Jim Meyering  <meyering@redhat.com>
27996
27997         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
27998
27999         * modules/mkstemp (License): Relicense under LGPLv2+.
28000         * modules/tempname (License): Likewise.
28001
28002 2008-08-06  Bruno Haible  <bruno@clisp.org>
28003
28004         * lib/poll.c (poll): Further micro-optimization.
28005
28006 2008-08-06  Jim Meyering  <meyering@redhat.com>
28007
28008         inet_pton.c: use locale-independent tolower
28009         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28010         (inet_pton6): Use c_tolower rather than tolower.
28011         * modules/inet_pton (Depends-on): Add c-ctype.
28012
28013 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28014
28015         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28016         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28017
28018 2008-08-06  Jim Meyering  <meyering@redhat.com>
28019
28020         * modules/inet_pton (License): Relicense under LGPLv2+.
28021
28022 2008-08-03  Bruno Haible  <bruno@clisp.org>
28023
28024         Additional non-aborting API for lock and tls.
28025         * lib/lock.h: Include <errno.h>.
28026         (glthread_lock_init): New macro/function.
28027         (gl_lock_init): Define as wrapper around glthread_lock_init.
28028         (glthread_lock_lock): New macro/function.
28029         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28030         (glthread_lock_unlock): New macro/function.
28031         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28032         (glthread_lock_destroy): New macro/function.
28033         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28034         (glthread_rwlock_init): New macro/function.
28035         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28036         (glthread_rwlock_rdlock): New macro/function.
28037         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28038         (glthread_rwlock_wrlock): New macro/function.
28039         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28040         (glthread_rwlock_unlock): New macro/function.
28041         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28042         (glthread_rwlock_destroy): New macro/function.
28043         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28044         (glthread_recursive_lock_init): New macro/function.
28045         (gl_recursive_lock_init): Define as wrapper around
28046         glthread_recursive_lock_init.
28047         (glthread_recursive_lock_lock): New macro/function.
28048         (gl_recursive_lock_lock): Define as wrapper around
28049         glthread_recursive_lock_lock.
28050         (glthread_recursive_lock_unlock): New macro/function.
28051         (gl_recursive_lock_unlock): Define as wrapper around
28052         glthread_recursive_lock_unlock.
28053         (glthread_recursive_lock_destroy): New macro/function.
28054         (gl_recursive_lock_destroy): Define as wrapper around
28055         glthread_recursive_lock_destroy.
28056         (glthread_once): New macro/function.
28057         (gl_once): Define as wrapper around glthread_once.
28058         Update function declarations.
28059         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28060         glthread_rwlock_init. Return error code.
28061         (glthread_rwlock_rdlock_multithreaded): Renamed from
28062         glthread_rwlock_rdlock. Return error code.
28063         (glthread_rwlock_wrlock_multithreaded): Renamed from
28064         glthread_rwlock_wrlock. Return error code.
28065         (glthread_rwlock_unlock_multithreaded): Renamed from
28066         glthread_rwlock_unlock. Return error code.
28067         (glthread_rwlock_destroy_multithreaded): Renamed from
28068         glthread_rwlock_destroy. Return error code.
28069         (glthread_recursive_lock_init_multithreaded): Renamed from
28070         glthread_recursive_lock_init. Return error code.
28071         (glthread_recursive_lock_lock_multithreaded): Renamed from
28072         glthread_recursive_lock_lock. Return error code.
28073         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28074         glthread_recursive_lock_unlock. Return error code.
28075         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28076         glthread_recursive_lock_destroy. Return error code.
28077         (glthread_once_call): Make static.
28078         (glthread_once_multithreaded): Renamed from glthread_once.
28079         * lib/tls.h: Include <errno.h>.
28080         (glthread_tls_key_init): New macro/function.
28081         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28082         (glthread_tls_set): New macro/function.
28083         (gl_tls_set): Define as wrapper around glthread_tls_set.
28084         (glthread_tls_key_destroy): New macro/function.
28085         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28086         Update function declarations.
28087         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28088         glthread_tls_get.
28089         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28090
28091 2008-08-04  Eric Blake  <ebb9@byu.net>
28092
28093         gnumakefile: use space, not TAB, outside of targets
28094         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28095
28096 2008-08-02  Jim Meyering  <meyering@redhat.com>
28097
28098         getdate.y: avoid locale-dependent date parsing failure
28099         In Turkish locales, getdate would fail to recognize keywords
28100         containing a lowercase "i".  The solution is not to rely on
28101         locale-sensitive case-conversion.
28102         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28103         (lookup_word): Use c_toupper in place of toupper.
28104         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28105         Reported by Vefa Bicakci <bicave@superonline.com> in
28106         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28107         * modules/getdate (Depends-on): Add c-ctype.
28108
28109 2008-08-02  Bruno Haible  <bruno@clisp.org>
28110
28111         * gnulib-tool (func_import): When updating or creating a .gitignore
28112         file, prepend each added line with a slash, and ignore leading slashes
28113         from the existing lines.
28114         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28115
28116 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28117
28118         Portability fix for GNU make 3.79.1.
28119         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28120         versions do not understand.
28121
28122 2008-08-01  Bruno Haible  <bruno@clisp.org>
28123
28124         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28125         * tests/test-isnanf.h (zero): New variable.
28126         (main): Avoid literal -0.0f.
28127         * tests/test-isnand.h (zero): New variable.
28128         (main): Avoid literal -0.0.
28129         * tests/test-isnanl.h (zero): New variable.
28130         (main): Avoid literal -0.0L.
28131         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28132         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28133         -0.0, -0.0L.
28134         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28135         (test_signbitd): Avoid literal -0.0.
28136         (test_signbitl): Avoid literal -0.0L.
28137         * tests/test-ceilf1.c (zero): New variable.
28138         (main): Avoid literal -0.0f.
28139         * tests/test-ceill.c (zero): New variable.
28140         (main): Avoid literal -0.0L.
28141         * tests/test-floorf1.c (zero): New variable.
28142         (main): Avoid literal -0.0f.
28143         * tests/test-floorl.c (zero): New variable.
28144         (main): Avoid literal -0.0L.
28145         * tests/test-roundf1.c (zero): New variable.
28146         (main): Avoid literal -0.0f.
28147         * tests/test-round1.c (zero): New variable.
28148         (main): Avoid literal -0.0.
28149         * tests/test-roundl.c (zero): New variable.
28150         (main): Avoid literal -0.0L.
28151         * tests/test-truncf1.c (zero): New variable.
28152         (main): Avoid literal -0.0f.
28153         * tests/test-trunc1.c (zero): New variable.
28154         (main): Avoid literal -0.0.
28155         * tests/test-truncl.c (zero): New variable.
28156         (main): Avoid literal -0.0L.
28157         * tests/test-frexp.c (zero): New variable.
28158         (main): Avoid literal -0.0.
28159         * tests/test-frexpl.c (zero): New variable.
28160         (main): Avoid literal -0.0L.
28161         * tests/test-ldexpl.c (zero): New variable.
28162         (main): Avoid literal -0.0L.
28163         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28164         (zerod, zerol): New variables.
28165         (test_function): Avoid literals -0.0, -0.0L.
28166         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28167         (zerod, zerol): New variables.
28168         (test_function): Avoid literals -0.0, -0.0L.
28169         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28170         (zerod, zerol): New variables.
28171         (test_function): Avoid literals -0.0, -0.0L.
28172         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28173         (zerod, zerol): New variables.
28174         (test_function): Avoid literals -0.0, -0.0L.
28175         * tests/test-strtod.c (zero): New variable.
28176         (main): Avoid literal -0.0.
28177         Reported by Jonathan C. Patschke <jp@centtech.com>.
28178
28179 2008-07-31  Jim Meyering  <meyering@redhat.com>
28180
28181         sha256.h: correct definition of SHA224_DIGEST_SIZE
28182         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28183         Reported by Paulie Pena IV <paulie4@gmail.com>.
28184         Define as 224 / 8, rather than as a literal.
28185         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28186         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28187         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28188
28189 2008-07-31  Bruno Haible  <bruno@clisp.org>
28190
28191         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28192         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28193         Reported by Jonathan Patschke <jp@centtech.com>.
28194
28195 2008-07-31  Bruno Haible  <bruno@clisp.org>
28196
28197         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28198         Reported by Paolo Bonzini <bonzini@gnu.org>.
28199
28200 2008-07-30  Eric Blake  <ebb9@byu.net>
28201
28202         test-strtod: allow compilation without -lm
28203         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28204         Reported by Dennis Clarke <blastwave@gmail.com>.
28205
28206 2008-07-28  Jim Meyering  <meyering@redhat.com>
28207
28208         bootstrap: work also when there are no .po files in po/
28209         * build-aux/bootstrap (update_po_files): Complete the change
28210         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28211
28212 2008-07-27  Jim Meyering  <meyering@redhat.com>
28213
28214         * users.txt: Add zile.
28215
28216 2008-07-26  Ben Pfaff  <blp@gnu.org>
28217
28218         Add missing dependencies on new m4/exponent[fdl].m4 files.
28219         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28220         * modules/isnand-nolibm: Add m4/exponentd.m4.
28221         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28222         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28223         m4/isnan[fdl].m4, because the macros actually used moved.
28224         Reported by Jim Meyering.
28225
28226 2008-07-14  Ben Pfaff  <blp@gnu.org>
28227
28228         Add isinf module.
28229         * lib/isinf.c: New file.
28230         * lib/math.in.h: Define isinf macro if we have decided to replace
28231         it.
28232         * m4/isinf.m4: New file.
28233         * m4/math_h.m4: Initialize and substitute variables for isinf
28234         module.
28235         * modules/isinf: New file.
28236         * modules/isinf-tests: New file.
28237         * modules/math: Add substitutions for new module.
28238         * tests/test-isinf.c: New file.
28239         * doc/posix-functions/isinf.texi: Mention new module.
28240         * MODULES.html.sh: Mention new module.
28241
28242 2008-07-14  Ben Pfaff  <blp@gnu.org>
28243
28244         Factor out some macros for use by additional modules.
28245         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28246         exponentf.m4.
28247         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28248         exponentd.m4.
28249         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28250         file exponentl.m4.
28251         * m4/exponentf.m4: New file.
28252         * m4/exponentd.m4: New file.
28253         * m4/exponentl.m4: New file.
28254         * modules/isnanf: Use new file m4/exponentf.m4.
28255         * modules/isnand: Use new file m4/exponentd.m4.
28256         * modules/isnanl: Use new file m4/exponentl.m4.
28257
28258 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28259
28260         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28261         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28262         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28263         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28264
28265         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28266         readlink on platforms without PATH_MAX.
28267
28268 2008-07-21  Eric Blake  <ebb9@byu.net>
28269
28270         Warn, not fail, on stale version.
28271         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28272
28273         Don't allow installation with stale devel version number.
28274         * top/GNUmakefile (_is-install-target): New macro.
28275         (_curr-ver): Forbid installation with stale version number.
28276
28277 2008-07-20  Bruno Haible  <bruno@clisp.org>
28278
28279         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28280         TESTS_ENVIRONMENT.
28281         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28282
28283 2008-07-20  Bruno Haible  <bruno@clisp.org>
28284
28285         * lib/c-stack.h (c_stack_action): Add documentation.
28286         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28287
28288 2008-07-20  Bruno Haible  <bruno@clisp.org>
28289
28290         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28291         * modules/readlink (License): Likewise.
28292
28293 2008-07-17  Eric Blake  <ebb9@byu.net>
28294
28295         * modules/c-stack (Link): Fix typo.
28296
28297         Make c-stack use libsigsegv, when available.
28298         * modules/c-stack (Depends-on): Add libsigsegv.
28299         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28300         needed.
28301         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28302         (segv_handler, overflow_handler, c_stack_action)
28303         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28304         implementation when libsigsegv is available, but only when using
28305         the library is necessary.
28306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28307         comment, explaining why XSI check fails on Linux.
28308         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28309         * tests/test-c-stack2.sh: Tweak skip message.
28310         * NEWS: Document new link-time requirements.
28311
28312 2008-07-16  Eric Blake  <ebb9@byu.net>
28313
28314         c-stack: Expose false positives when not using libsigsegv.
28315         * modules/c-stack-tests (Files): Expand test.
28316         * tests/test-c-stack.c (main): Add means to conditionally trigger
28317         non-overflow SIGSEGV.
28318         * tests/test-c-stack2.sh: New file.
28319
28320 2008-07-14  Bruno Haible  <bruno@clisp.org>
28321
28322         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28323         Reported by Eric Blake.
28324
28325 2008-07-14  Sam Steingold  <sds@gnu.org>
28326             Bruno Haible  <bruno@clisp.org>
28327
28328         New module libsigsegv.
28329         * modules/libsigsegv: New file.
28330         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28331         modifications.
28332         * MODULES.html.sh (Signal handling): New section.
28333
28334 2008-07-14  Bruno Haible  <bruno@clisp.org>
28335
28336         * modules/unictype/ctype-* (Description): Add the word "function".
28337         Improves the resulting doc in MODULES.html.
28338
28339 2008-07-12  Ben Pfaff  <blp@gnu.org>
28340
28341         Add longlong module.
28342         * modules/longlong: New file.
28343
28344 2008-07-12  Bruno Haible  <bruno@clisp.org>
28345
28346         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28347         to empty.
28348
28349 2008-07-10  Ben Pfaff  <blp@gnu.org>
28350
28351         Add isnan module.
28352         * doc/posix-functions/isnan.texi: Mention new module.
28353         * lib/math.in.h: Define isnan macro if we have decided to replace
28354         it.
28355         * m4/isnan.m4: New file.
28356         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28357         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28358         also.
28359         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28360         redundancy.
28361         * m4/math_h.m4: Initialize and substitute variables for isnan
28362         module.
28363         * modules/isnan: New file.
28364         * modules/isnan-tests: New file.
28365         * modules/math: Add substitutions for new module.
28366         * tests/test-isnan.c: New file.
28367         * MODULES.html.sh: Mention new module.
28368
28369 2008-07-10  Ben Pfaff  <blp@gnu.org>
28370
28371         Add isnanf module.
28372         * lib/isnanf.m4: New file.
28373         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28374         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28375         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28376         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28377         * modules/isnanf: New file.
28378         * modules/isnanf-tests: New file.
28379         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28380         files.
28381         * tests/test-isnanf-nolibm.c: factored most of its contents into
28382         new file tests/test-isnanf.h.
28383         * tests/test-isnanf.h: New file.
28384         * tests/test-isnanf.c: New file.
28385         * MODULES.html.sh: Mention new module.
28386         * doc/glibc-functions/isnanf.texi: Mention new module.
28387
28388 2008-07-10  Ben Pfaff  <blp@gnu.org>
28389
28390         Add isnand module.
28391         * lib/isnand.h: New file.
28392         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28393         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28394         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28395         functionality also.
28396         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28397         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28398         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28399         * modules/isnand: New file.
28400         * modules/isnand-tests: New file.
28401         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28402         files.
28403         * tests/test-isnand-nolibm.c: factored most of its contents into
28404         new file tests/test-isnand.h.
28405         * tests/test-isnand.h: New file.
28406         * tests/test-isnand.c: New file.
28407         * MODULES.html.sh: Mention new module.
28408
28409 2008-07-10  Ben Pfaff  <blp@gnu.org>
28410
28411         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28412         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28413         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28414         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28415         * modules/isnanf-nolibm: Update references to renamed files.
28416         * modules/isnand-nolibm: Likewise.
28417         * modules/isnanf-nolibm-tests: Likewise.
28418         * modules/isnand-nolibm-tests: Likewise.
28419         * lib/frexp.c: Likewise.
28420         * lib/isfinite.c: Likewise.
28421         * lib/signbitd.c: Likewise.
28422         * lib/signbitf.c: Likewise.
28423         * lib/vasnprintf.c: Likewise.
28424         * tests/test-ceilf1.c: Likewise.
28425         * tests/test-ceilf2.c: Likewise.
28426         * tests/test-floorf1.c: Likewise.
28427         * tests/test-floorf2.c: Likewise.
28428         * tests/test-frexp.c: Likewise.
28429         * tests/test-round1.c: Likewise.
28430         * tests/test-round2.c: Likewise.
28431         * tests/test-roundf1.c: Likewise.
28432         * tests/test-strtod.c: Likewise.
28433         * tests/test-trunc1.c: Likewise.
28434         * tests/test-trunc2.c: Likewise.
28435         * tests/test-truncf1.c: Likewise.
28436         * tests/test-truncf2.c: Likewise.
28437         * NEWS: Mention the renamed header files.
28438
28439 2008-07-11  Jim Meyering  <meyering@redhat.com>
28440
28441         vc-list-files: make the last-resort awk code more portable
28442         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28443         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28444         does not support it.
28445
28446 2008-07-10  Eric Blake  <ebb9@byu.net>
28447
28448         Work with tar's bootstrap.
28449         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28450         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28451         an m4 comment.
28452
28453 2008-07-09  Jim Meyering  <meyering@redhat.com>
28454
28455         posix-shell.m4: fix typo that made this test malfunction
28456         * m4/posix-shell.m4: Remove capitalization in variable name.
28457
28458 2008-07-08  Bruno Haible  <bruno@clisp.org>
28459
28460         * m4/onceonly.m4: Update comments.
28461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28462
28463 2008-07-04  Jim Meyering  <meyering@redhat.com>
28464
28465         * users.txt: Add vc-dwim.
28466         (bison, coreutils): Use the gitweb URL.
28467
28468 2008-07-03  Jim Meyering  <meyering@redhat.com>
28469
28470         * users.txt: Add libffcall.  From Sam Steingold.
28471
28472 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28473
28474         getdate.y: do not ignore TZ with relative day, month or year offset
28475         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28476         relative-date-handling, since otherwise, the latter would clobber the
28477         sole output (an updated Start value) of the tz-handling block.
28478         * tests/test-getdate.c: Tests for the fix
28479
28480 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28481
28482         Recognize 'foo_LIBRARIES += libgnu.a'.
28483         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28484         makefile snippet has already specified an installation location,
28485         also using '+='.
28486
28487 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28488
28489         getdate.y: factor out common actions
28490         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28491         Use them in place of open-coded actions.
28492
28493 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28494
28495         Add self-test for getdate module.
28496         * modules/getdate-tests: New file.
28497         * tests/test-getdate.c: New file.
28498
28499 2008-06-29  Bruno Haible  <bruno@clisp.org>
28500
28501         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28502         .gitignore.
28503         Reported by Sylvain Beucler <beuc@beuc.net>.
28504
28505 2008-06-29  Bruno Haible  <bruno@clisp.org>
28506
28507         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28508         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28509
28510 2008-06-29  Bruno Haible  <bruno@clisp.org>
28511
28512         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28513         EXTRA_DIST.
28514         Reported by Sylvain Beucler <beuc@beuc.net>.
28515
28516 2008-06-26  Jim Meyering  <meyering@redhat.com>
28517
28518         make several modules depend on the "open" module
28519         This provides slightly increased consistency when opening-for-write
28520         the name of a non-directory spelled with a trailing slash.
28521         * modules/chdir-safer: Likewise.
28522         * modules/chown: Likewise.
28523         * modules/clean-temp: Likewise.
28524         * modules/copy-file: Likewise.
28525         * modules/fchdir: Likewise.
28526         * modules/fcntl-safer: Likewise.
28527         * modules/pipe: Likewise.
28528         * modules/utime: Likewise.
28529         Prompted by Eric Blake and Bruno Haible.
28530
28531 2008-06-24  Andreas Schwab  <schwab@suse.de>
28532
28533         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28534         literals can be used as initializers for global variables.
28535
28536 2008-06-23  Eric Blake  <ebb9@byu.net>
28537
28538         Make gnulib-cache.m4 easier to diff.
28539         * gnulib-tool (func_import): Allow newlines when reading cached
28540         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28541
28542 2008-06-23  Bruno Haible  <bruno@clisp.org>
28543
28544         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28545         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28546         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28547         m4/signalblocking.m4.
28548         (gl_PREREQ_SIGACTION): Don't invoke it.
28549         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28550         gl_PREREQ_SIG_HANDLER_H.
28551         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28552         Don't check for sigaction here.
28553
28554 2008-06-23  Bruno Haible  <bruno@clisp.org>
28555
28556         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28557         (install_handlers): Don't set the SA_RESETHAND flag.
28558
28559 2008-06-23  Bruno Haible  <bruno@clisp.org>
28560
28561         * m4/sigaction.m4: Comment fixes.
28562         * lib/signal.in.h: Likewise.
28563
28564 2008-06-23  Eric Blake  <ebb9@byu.net>
28565
28566         Fix typo.
28567         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28568
28569         Avoid SA_ namespace.
28570         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28571         Reported by Ralf Wildenhues.
28572
28573         Avoid test failure due to SA_RESTORER.
28574         * tests/test-sigaction.c (SA_MASK): New macro.
28575         (main): Avoid failing due to extension flags being set.
28576         Reported by Jim Meyering.
28577
28578         Revert use of sig-handler.h in sigprocmask.c.
28579         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28580         it requires the existence of struct sigaction.
28581         * lib/sigprocmask.c (handler_t): Restore typedef.
28582         (rpl_signal, old_handlers): Use local type.
28583
28584 2008-06-22  Bruno Haible  <bruno@clisp.org>
28585
28586         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28587         conditionally.
28588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28589
28590 2008-06-22  Bruno Haible  <bruno@clisp.org>
28591
28592         * doc/posix-functions/siginterrupt.texi: Move note.
28593
28594         * lib/signal.in.h (SA_RESTART): New macro.
28595         * lib/sigaction.c: Update comment.
28596
28597         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28598
28599         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28600         (gl_PREREQ_SIGPROCMASK): Invoke it.
28601         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28602
28603         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28604
28605         * lib/sigprocmask.c: Update a comment.
28606
28607 2008-06-21  Eric Blake  <ebb9@byu.net>
28608
28609         Use sigaction module rather than signal().
28610         * modules/c-stack (Depends-on): Add sigaction.
28611         * modules/fatal-signal (Depends-on): Likewise.
28612         * modules/nanosleep (Depends-on): Likewise.
28613         * modules/sigprocmask (Files): Add sig-handler.h.
28614         * modules/sigaction (Files): Likewise.
28615         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28616         Eggert.
28617         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28618         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28619         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28620         (init_fatal_signals): Likewise.
28621         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28622         (siginterrupt): Delete fallback.
28623         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28624         instead.
28625         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28626         siginterrupt.
28627
28628         New module sigaction, for mingw.
28629         * modules/sigaction: New module...
28630         * modules/sigaction-tests: ...and its test.
28631         * m4/sigaction.m4: New file.
28632         * lib/sigaction.c: Likewise.
28633         * tests/test-sigaction.c: Likewise.
28634         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28635         * modules/signal (Makefile.am): Likewise.
28636         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28637         needed.
28638         * doc/posix-headers/signal.texi (signal.h): Mention provided
28639         types.
28640         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28641         that sigaction is preferable.
28642         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28643         module.
28644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28645         sigaction.
28646
28647         Improve robustness of sigprocmask by overriding signal.
28648         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28649         is in use.
28650         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28651         (SIGKILL, SIGSTOP): Provide fallbacks.
28652         (rpl_signal): Implement.
28653         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28654         signal can be called inside handlers.
28655
28656         Fix nanosleep module on mingw.
28657         * modules/nanosleep (Depends-on): Add sys_select.
28658         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28659
28660         Fix licensing of sigprocmask.
28661         * modules/raise (License): Relicense as LGPL.
28662
28663 2008-06-21  Bruno Haible  <bruno@clisp.org>
28664
28665         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28666         result if it contains question marks.
28667         Reported by Michael Geng <linux@michaelgeng.de>.
28668
28669 2008-06-19  Bruno Haible  <bruno@clisp.org>
28670
28671         Fix CVS-ism.
28672         * doc/gnulib.texi: Include updated-stamp.texi.
28673         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28674         (updated-stamp.texi): New rule.
28675         (gnulib.info): Depend on it.
28676         * doc/.gitignore: Add updated-stamp.texi.
28677         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28678
28679 2008-06-19  Bruno Haible  <bruno@clisp.org>
28680
28681         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28682         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28683
28684 2008-06-19  Eric Blake  <ebb9@byu.net>
28685
28686         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28687         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28688         Reported by Stepan Kasal.
28689
28690 2008-06-18  Bruno Haible  <bruno@clisp.org>
28691
28692         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28693         Reported by Eric Blake.
28694
28695 2008-06-18  Eric Blake  <ebb9@byu.net>
28696
28697         Work around cygwin 1.5.25 strsignal bug.
28698         * tests/test-strsignal.c: Allow for const char *.
28699         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28700
28701 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28702
28703         * users.txt: Update URL to article and add author/date
28704         information.
28705
28706 2008-06-17  Bruno Haible  <bruno@clisp.org>
28707
28708         New macro gl_DISABLE_THREADS.
28709         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28710         if the user did not pass --enable-threads or --disable-threads option.
28711         (gl_DISABLE_THREADS): New macro.
28712         Reported by Eric Blake <ebb9@byu.net>.
28713
28714 2008-06-17  Bruno Haible  <bruno@clisp.org>
28715
28716         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28717         when the macro ignores it.
28718         Based on a patch by Eric Blake <ebb9@byu.net>.
28719
28720 2008-06-17  Bruno Haible  <bruno@clisp.org>
28721
28722         * modules/tls (License): Change to LGPLv2+.
28723         Reported by Eric Blake.
28724
28725 2008-06-17  Eric Blake  <ebb9@byu.net>
28726
28727         Simplify c-stack prerequisites.
28728         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28730         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28731         check.
28732         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28733         <sys/resource.h>.
28734
28735         Move c-stack test into testsuite.
28736         * modules/c-stack-tests: New file.
28737         * lib/c-stack.c [DEBUG]: Move test program...
28738         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28739         fail test if sigaltstack is lacking.
28740         * tests/test-c-stack.sh: New driver file.
28741
28742 2008-06-16  Eric Blake  <ebb9@byu.net>
28743
28744         Use raise module consistently.
28745         * modules/fatal-signal (Depends-on): Add raise.
28746         * modules/sigprocmask (Depends-on): Likewise.
28747         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28748         * lib/sigprocmask.c (sigprocmask): Likewise.
28749         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28750         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28751
28752         Fix compliance bug in sigpending.
28753         * lib/sigprocmask.c (sigpending): Return pending array via
28754         parameter, not return value.
28755
28756 2008-06-14  Eric Blake  <ebb9@byu.net>
28757
28758         Improve obstack-printf test code.
28759         * tests/test-obstack-printf.c (test_function): Fix comment, and
28760         simplify usage of obstack_* in macros.  Add a test for coverage.
28761         Reported by Bruno Haible.
28762
28763 2008-06-14  Bruno Haible  <bruno@clisp.org>
28764
28765         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28766         array size as a constant, not as a const variable.
28767         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28768         AC_USE_SYSTEM_EXTENSIONS.
28769         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28770         Test whether the obstack_printf function actually exists.
28771         * modules/obstack-printf (Depends-on): Add extensions.
28772         (Include): Remove obstack.h.
28773         * modules/obstack-printf-posix (Depends-on): Add extensions.
28774         (Include): Remove obstack.h.
28775
28776 2008-06-13  Eric Blake  <ebb9@byu.net>
28777
28778         Add obstack-printf and obstack-printf-posix modules.
28779         * modules/obstack-printf: New file.
28780         * modules/obstack-printf-posix: Likewise.
28781         * MODULES.html.sh (Misc): Mention them.
28782         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28783         Likewise.
28784         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28785         Likewise.
28786         * modules/stdio (Makefile.am): Accomodate new modules.
28787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28788         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28789         Declare.
28790         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28791         functions.
28792         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28793         (gl_REPLACE_OBSTACK_PRINTF): New macros
28794         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28795         * tests/test-obstack-printf.c: New file.
28796         * modules/obstack-printf-tests: Likewise.
28797         * modules/obstack-printf-posix-tests: Likewise.
28798
28799 2008-06-11  Bruno Haible  <bruno@clisp.org>
28800
28801         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28802         * lib/open.c: Include errno.h.
28803         (open): Fail when attempting to write to a file that has a trailing
28804         slash.
28805         * tests/test-open.c (main): Test against trailing slash bug.
28806         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28807
28808 2008-06-10  Bruno Haible  <bruno@clisp.org>
28809
28810         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28811         for $? to work inside the trap command, with various /bin/sh-s.
28812         * tests/test-vc-list-files-cvs.sh: Likewise.
28813
28814 2008-06-10  Bruno Haible  <bruno@clisp.org>
28815
28816         * lib/acl-internal.h: Don't include gettext.h here.
28817         * lib/set-mode-acl.c: Include gettext.h here.
28818         * lib/copy-acl.c: Likewise.
28819
28820 2008-06-10  Bruno Haible  <bruno@clisp.org>
28821
28822         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28823         * lib/wait-process.c (wait_subprocess): Likewise.
28824         * lib/execute.h (execute): Add termsigp argument.
28825         * lib/execute.c (execute): Likewise.
28826         * lib/csharpcomp.c (compile_csharp_using_pnet,
28827         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28828         * lib/csharpexec.c (execute_csharp_using_pnet,
28829         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28830         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28831         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28832         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28833         is_jikes_present): Update.
28834         * lib/javaexec.c (execute_java_class): Update.
28835         * lib/javaversion.c (execute_and_read_line): Update.
28836         * NEWS: Document the changes.
28837         Reported by Eric Blake.
28838
28839 2008-06-10  Eric Blake  <ebb9@byu.net>
28840
28841         Add missing include.
28842         * tests/test-strstr.c (includes): Add <signal.h>.
28843         * tests/test-strcasestr.c (includes): Likewise.
28844         * tests/test-memmem.c (includes): Likewise.
28845
28846 2008-06-10  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/wait-process.c (wait_subprocess): Add an assertion.
28849
28850 2008-06-10  Bruno Haible  <bruno@clisp.org>
28851
28852         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
28853
28854 2008-06-10  Bruno Haible  <bruno@clisp.org>
28855
28856         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
28857         using alarm().
28858         * tests/test-strcasestr.c (main): Likewise.
28859         * tests/test-strstr.c (main): Likewise.
28860
28861 2008-06-09  Bruno Haible  <bruno@clisp.org>
28862
28863         Work around the Solaris 10 ACE ACLs ABI change.
28864         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
28865         declare if ACL_NO_TRIVIAL is present.
28866         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
28867         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
28868         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
28869         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
28870         define if ACL_NO_TRIVIAL is present.
28871         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
28872         and use the current ABI.
28873         (file_has_acl): Use same #if condition as elsewhere.
28874         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
28875         in use, and use the current ABI.
28876         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
28877         Reported by Jim Meyering.
28878
28879 2008-06-09  Eric Blake  <ebb9@byu.net>
28880
28881         Work around environments that (stupidly) ignore SIGALRM.
28882         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
28883         before using alarm().
28884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28886         Reported by Ian Beckwith <ianb@erislabs.net>.
28887
28888         Produce autobuild blurb earlier in log.
28889         * modules/autobuild (configure.ac-early): Move AB_INIT here.
28890
28891 2008-06-09  Jim Meyering  <meyering@redhat.com>
28892         and Ondřej Vašík  <ovasik@redhat.com>
28893
28894         utimens.c: correct kernel bug work-around
28895         Ondřej Vašík found that the invalid return value of 280 indicates
28896         failure, not success, and the kernel bug we're trying to work
28897         around affects not just the utimensat call, but also the fallback
28898         futimens call.
28899         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
28900         not success.
28901         [HAVE_FUTIMENS]: Use the same work-around, here.
28902
28903 2008-06-09  Jim Meyering  <meyering@redhat.com>
28904
28905         add more guards around definition of ACE_-related code
28906         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
28907         ALLOW and ACE_OWNER are also defined.
28908
28909 2008-06-08  Bruno Haible  <bruno@clisp.org>
28910
28911         * lib/acl-internal.h: Add me as co-author.
28912         * lib/file-has-acl.c: Likewise.
28913         * lib/set-mode-acl.c: Likewise.
28914         * lib/copy-acl.c: Likewise.
28915
28916 2008-06-08  Bruno Haible  <bruno@clisp.org>
28917
28918         Add support for AIX ACLs.
28919         * lib/acl-internal.h (acl_nontrivial): New declaration.
28920         * lib/file-has-acl.c (acl_nontrivial): New function.
28921         (file_has_acl): Add implementation using AIX 4 ACL API.
28922         * lib/set-mode-acl.c (qset_acl): Likewise.
28923         * lib/copy-acl.c (qcopy_acl): Likewise.
28924
28925 2008-06-08  Bruno Haible  <bruno@clisp.org>
28926
28927         Add support for HP-UX ACLs.
28928         * lib/acl-internal.h (acl_nontrivial): New declaration.
28929         * lib/file-has-acl.c (acl_nontrivial): New function.
28930         (file_has_acl): Add implementation using HP-UX 11 ACL API.
28931         * lib/set-mode-acl.c (qset_acl): Likewise.
28932         * lib/copy-acl.c (qcopy_acl): Likewise.
28933
28934 2008-06-08  Bruno Haible  <bruno@clisp.org>
28935
28936         Add support for Cygwin ACLs.
28937         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
28938         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
28939         the chmod_or_fchmod call.
28940         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
28941
28942 2008-06-08  Bruno Haible  <bruno@clisp.org>
28943
28944         Fix bug with setuid modes in Solaris 10+ code.
28945         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
28946         succeeded, when the mode contains some special bits.
28947
28948 2008-06-08  Bruno Haible  <bruno@clisp.org>
28949
28950         Add support for Solaris 7..10 ACLs.
28951         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
28952         declarations.
28953         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
28954         functions.
28955         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
28956         * lib/set-mode-acl.c (qset_acl): Likewise.
28957         * lib/copy-acl.c (qcopy_acl): Likewise.
28958
28959 2008-06-08  Bruno Haible  <bruno@clisp.org>
28960
28961         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
28962         declaration.
28963         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
28964         (acl_access_nontrivial): Remove MacOS X case.
28965         (file_has_acl): Use acl_extended_nontrivial.
28966         * lib/copy-acl.c (qcopy_acl): Likewise.
28967
28968 2008-06-08  Bruno Haible  <bruno@clisp.org>
28969
28970         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
28971
28972 2008-06-08  Jim Meyering  <meyering@redhat.com>
28973
28974         * modules/acl (Maintainer): Add Bruno Haible.
28975
28976 2008-06-07  Bruno Haible  <bruno@clisp.org>
28977
28978         Improve support for Tru64 ACLs.
28979         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
28980         ACL on OSF/1.
28981
28982 2008-06-07  Bruno Haible  <bruno@clisp.org>
28983
28984         Add support for MacOS X ACLs.
28985         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
28986         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
28987         * lib/set-mode-acl.c (qset_acl): Likewise.
28988         * lib/copy-acl.c (qcopy_acl): Likewise.
28989
28990 2008-06-07  Bruno Haible  <bruno@clisp.org>
28991
28992         Fix memory leak introduced on 2008-05-22.
28993         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
28994         use.
28995
28996 2008-06-07  Bruno Haible  <bruno@clisp.org>
28997
28998         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
28999         to construct an empty ACL.
29000
29001 2008-06-07  Bruno Haible  <bruno@clisp.org>
29002
29003         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29004         precisely.
29005         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29006
29007 2008-06-07  Bruno Haible  <bruno@clisp.org>
29008
29009         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29010         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29011
29012 2008-06-07  Bruno Haible  <bruno@clisp.org>
29013
29014         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29015         regardless of POSIX.
29016         * doc/posix-functions/_longjmp.texi: Likewise.
29017         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29018         SystemV platform in this case.
29019
29020 2008-06-06  Eric Blake  <ebb9@byu.net>
29021
29022         Document abort() bugs.
29023         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29024
29025         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29026         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29027         sigsetjmp.
29028         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29029         siglongjmp, but only as a macro.
29030         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29031         is obsolete.
29032         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29033
29034         Tweak documentation to cover cygwin argz bugs.
29035         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29036         argz bug fix; no code change needed since no cygwin releases
29037         occurred between the last fix and the bug being tested.
29038         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29039         module and recently fixed cygwin bugs.
29040         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29041         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29042         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29043         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29044         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29045         Likewise.
29046         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29047         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29048         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29049         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29050         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29051         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29052         Likewise.
29053
29054         Avoid gcc warning on cygwin.
29055         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29056         !ACL_NO_TRIVIAL]: Avoid unused variable.
29057
29058 2008-06-05  Eric Blake  <ebb9@byu.net>
29059
29060         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29061         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29062         git-version-gen fails to come up with a version.
29063         Reported by Simon Josefsson.
29064
29065 2008-06-05  Jim Meyering  <meyering@redhat.com>
29066             Paul Eggert  <eggert@cs.ucla.edu>
29067
29068         utimens.c: work around a probable Linux kernel bug
29069         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29070         appears to be a kernel bug that causes utimensat to return 280
29071         instead of 0, indicating success.
29072
29073 2008-06-04  Bruno Haible  <bruno@clisp.org>
29074
29075         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29076         2008-06-01 commit.
29077
29078 2008-06-04  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29081         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29082         (file_has_acl): Use it. Save errno afterwards.
29083         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29084
29085 2008-06-03  Bruno Haible  <bruno@clisp.org>
29086
29087         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29088         draft code. Simplify #ifs.
29089         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29090         Put Solaris code after POSIX-draft code. Fix comments regarding
29091         Solaris 10, HP-UX. Mention Cygwin.
29092         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29093
29094 2008-06-03  Eric Blake  <ebb9@byu.net>
29095
29096         Provide fallback for older kernels.
29097         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29098         Provide runtime fallback if kernel lacks support.
29099         Reported by Mike Frysinger.
29100
29101 2008-06-02  Bruno Haible  <bruno@clisp.org>
29102
29103         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29104         it exists.
29105
29106 2008-06-02  Bruno Haible  <bruno@clisp.org>
29107
29108         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29109         * lib/copy-acl.c (qcopy_acl): Update comment.
29110
29111 2008-06-02  Bruno Haible  <bruno@clisp.org>
29112
29113         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29114         like ACL APIs.
29115
29116 2008-06-02  Bruno Haible  <bruno@clisp.org>
29117
29118         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29119         * tests/test-set-mode-acl.sh: Likewise.
29120         * tests/test-copy-acl.sh: Likewise.
29121         * tests/test-copy-file.sh: Likewise.
29122
29123 2008-06-02  Bruno Haible  <bruno@clisp.org>
29124
29125         * tests/test-file-has-acl.sh: Remove unused code.
29126
29127 2008-06-01  Bruno Haible  <bruno@clisp.org>
29128
29129         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29130         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29131         messages.
29132         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29133
29134 2008-06-01  Bruno Haible  <bruno@clisp.org>
29135
29136         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29137         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29138         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29139         APIs.
29140         * modules/acl-tests (configure.ac): Remove tests now contained in
29141         m4/acl.m4.
29142
29143 2008-06-02  Jim Meyering  <meyering@redhat.com>
29144
29145         announce-gen: use a better key-server host name
29146         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29147         it may be more consistently reliable.  Suggested by Werner Koch
29148         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29149
29150 2008-06-01  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29153         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29154
29155 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29156
29157         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29158
29159 2008-06-01  Bruno Haible  <bruno@clisp.org>
29160
29161         New ACL tests.
29162         * tests/test-file-has-acl.sh: New file.
29163         * tests/test-file-has-acl.c: New file.
29164         * tests/test-set-mode-acl.sh: New file.
29165         * tests/test-set-mode-acl.c: New file.
29166         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29167         * tests/test-copy-acl.c: New file.
29168         * modules/acl-tests: New file, based on modules/copy-file-tests.
29169         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29170         (Depends-on): Add acl-tests.
29171         (configure.ac): Remove checks.
29172         (Makefile.am): Don't create test-sameacls program here any more.
29173
29174 2008-06-01  Bruno Haible  <bruno@clisp.org>
29175
29176         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29177         * tests/test-sameacls.c: Include progname.h.
29178         (main): Invoke set_program_name. Portability fixes for MacOS X,
29179         Solaris, HP-UX.
29180
29181 2008-06-01  Bruno Haible  <bruno@clisp.org>
29182
29183         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29184         function.
29185         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29186
29187 2008-06-01  Bruno Haible  <bruno@clisp.org>
29188
29189         * modules/rpmatch (Depends-on): Add strdup.
29190
29191 2008-06-01  Bruno Haible  <bruno@clisp.org>
29192
29193         * lib/pipe.c: Include unistd-safer.h.
29194         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29195         * modules/pipe (Depends-on): Add unistd-safer.
29196
29197 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29198
29199         * modules/autobuild (configure.ac): Call AB_INIT.
29200
29201 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29202
29203         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29204         Suggested by Bruno Haible <bruno@clisp.org>.
29205
29206 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29207
29208         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29209         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29210         <bruno@clisp.org>.
29211
29212 2008-05-29  Eric Blake  <ebb9@byu.net>
29213
29214         Prefer new POSIX 200x interfaces over futimesat.
29215         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29216         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29217         when available.
29218         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29219
29220 2008-05-28  Bruno Haible  <bruno@clisp.org>
29221
29222         * modules/stpcpy (License): Change to LGPLv2+.
29223         Requested by David Lutterkort <dlutter@redhat.com>.
29224
29225 2008-05-27  Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29228         current mingw.
29229         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29230
29231 2008-05-27  Bruno Haible  <bruno@clisp.org>
29232
29233         * modules/iconv_open (Link): New section, from module 'iconv'.
29234         * modules/striconv (Link): Likewise.
29235         * modules/striconveh (Link): Likewise.
29236         * modules/xstriconv (Link): Likewise.
29237         * modules/unicodeio (Link): Likewise.
29238         * modules/propername (Link): Likewise.
29239         Reported by Jim Meyering.
29240
29241 2008-05-26  Jim Meyering  <meyering@redhat.com>
29242
29243         sha256: do not artificially restrict buffer length to be < 2^32
29244         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29245         uint32_t to size_t.
29246         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29247         to match.
29248
29249         avoid unaligned access errors, e.g., on sparc
29250         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29251         direct access through a possibly-unaligned uint64* pointer.
29252         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29253         direct access through a possibly-unaligned uint32* pointer.
29254         Prompted by this patch from Tom "spot" Callaway:
29255         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29256
29257         sha512.c: fix typo in comment
29258         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29259
29260 2008-05-25  Bruno Haible  <bruno@clisp.org>
29261
29262         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29263         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29264         (Makefile.am): Update lib_SOURCES.
29265
29266 2008-05-25  Bruno Haible  <bruno@clisp.org>
29267
29268         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29269
29270 2008-05-25  Jim Meyering  <meyering@redhat.com>
29271
29272         useless-if-before-free: freed expr may have white-space differences
29273         * build-aux/useless-if-before-free: Recognize cases in which the
29274         freed expression differs from the tested one in embedded white
29275         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29276         $1 was used, so we can't make any regexp shy.  Improved tests now
29277         detect this.
29278
29279         useless-if-before-free: accept white space in the expression.
29280         * build-aux/useless-if-before-free: For now, any white space
29281         in the expression must be identical in the free argument.
29282
29283         useless-if-before-free: efficiency tweak
29284         * build-aux/useless-if-before-free: Make the expression-matching
29285         regexp "shy".
29286         Make the *outer* regexp shy, not the expr-matching one.
29287
29288         update code-in-comment to accept cast of free arg
29289         * build-aux/useless-if-before-free: Update regexp.
29290
29291 2008-05-25  Bruno Haible  <bruno@clisp.org>
29292
29293         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29294         * modules/copy-file-tests (Files, Makefile.am): Update.
29295         * tests/test-copy-file.c (func_test_copy): Update.
29296
29297 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29298
29299         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29300
29301 2008-05-23  Bruno Haible  <bruno@clisp.org>
29302
29303         Improve support for ACLs on OSF/1.
29304         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29305         Remove fallback for unknown flavors of ACLs.
29306
29307 2008-05-22  Bruno Haible  <bruno@clisp.org>
29308
29309         Add support for ACLs on OSF/1.
29310         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29311         replacements.
29312         (acl_free_text): New macro fallback.
29313         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29314         acl_free.
29315         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29316         acl_free_text function. Require AC_C_INLINE.
29317
29318 2008-05-22  Bruno Haible  <bruno@clisp.org>
29319
29320         Make copy_acl work on MacOS X 10.5.
29321         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29322         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29323         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29324         If MODE_INSIDE_ACL, don't assume that every system has the same text
29325         representation for ACLs as FreeBSD.
29326         * lib/copy-acl.c (copy_acl): Add support for platforms with
29327         !MODE_INSIDE_ACL.
29328         * lib/file-has-acl.c (file_has_acl): Likewise.
29329         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29330         FreeBSD, MacOS X, or IRIX, respectively.
29331
29332 2008-05-22  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/acl.h: Don't include <sys/acl.h>.
29335         (GETACLCNT): Move fallback to lib/acl-internal.h.
29336         * lib/acl-internal.h: Include <sys/acl.h> here.
29337         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29338
29339 2008-05-22  Bruno Haible  <bruno@clisp.org>
29340
29341         Split off copy_acl function to separate file.
29342         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29343         * lib/acl.c (copy_acl): Moved function to separate file.
29344         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29345         * modules/acl (Files): Add lib/copy-acl.c.
29346         (Makefiles.am): Augment lib_SOURCES.
29347
29348 2008-05-22  Bruno Haible  <bruno@clisp.org>
29349
29350         * modules/copy-file-tests: New file.
29351         * tests/test-copy-file.sh: New file.
29352         * tests/test-copy-file.c: New file.
29353         * tests/test-copy-file-sameacls.c: New file.
29354
29355 2008-05-22  Eric Blake  <ebb9@byu.net>
29356
29357         Avoid gcc warning.
29358         * tests/test-memcmp.c (main): Pass NULL indirectly.
29359
29360 2008-05-21  Bruno Haible  <bruno@clisp.org>
29361
29362         Add reference doc about ACLs.
29363         * doc/acl-resources.txt: New file.
29364         * doc/acl-cygwin.txt: New file.
29365
29366 2008-05-21  Bruno Haible  <bruno@clisp.org>
29367
29368         Avoid one more warning from gcc.
29369         * lib/vasnprintf.c (IF_LINT): Update comments.
29370         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29371
29372 2008-05-21  Jim Meyering  <meyering@redhat.com>
29373
29374         avoid a warning from gcc
29375         * lib/vasnprintf.c (IF_LINT): Define.
29376         (scale10_round_decimal_long_double):
29377         Use it to avoid a "may be used uninitialized" warning.
29378         (scale10_round_decimal_double): Likewise.
29379
29380 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29381
29382         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29383         declared.
29384
29385 2008-05-20  Bruno Haible  <bruno@clisp.org>
29386
29387         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29388         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29389
29390 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29391
29392         * modules/memcmp-tests: New file.
29393         * tests/test-memcmp.c: New file.
29394
29395 2008-05-19  Bruno Haible  <bruno@clisp.org>
29396
29397         * modules/propername (Notice, configure.ac): Put quoted "..." into
29398         --keyword option.
29399         * lib/propername.h: Update comments accordingly.
29400         Reported by Eric Blake.
29401
29402 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29403
29404         * modules/getpass-gnu (Depends-on): Add fseeko.
29405
29406 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29407
29408         * modules/base64-tests: New file.
29409
29410 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29411
29412         * lib/base64.c (base64_decode_ctx): If a decode context structure
29413         was passed in use it to ignore newlines.  If a context structure
29414         was _not_ passed in, continue to treat newlines as garbage (this
29415         is the historical behavior).  Formerly base64_decode.
29416         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29417         takes a decode context structure.
29418         * lib/base64.h (base64_decode): Macro for four-argument calls.
29419         (base64_decode_alloc): Likewise.
29420         * lib/base64.c (base64_decode_ctx): If a decode context structure
29421         was passed in use it to ignore newlines.  If a context structure
29422         was _not_ passed in, continue to treat newlines as garbage (this
29423         is the historical behavior).  Formerly base64_decode.
29424         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29425         takes a decode context structure.
29426         * lib/base64.h (base64_decode): Macro for four-argument calls.
29427         (base64_decode_alloc): Likewise.
29428
29429 2008-05-19  Jim Meyering  <meyering@redhat.com>
29430
29431         avoid a warning from gcc
29432         * lib/trim.c (IF_LINT): Define.
29433         (trim2): Use it to avoid a "may be used uninitialized" warning.
29434
29435         Fix doc typo.
29436         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29437
29438 2008-05-19  Bruno Haible  <bruno@clisp.org>
29439
29440         * doc/glibc-functions/getpass.texi: Document limits of other
29441         implementations.
29442
29443 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29444             Bruno Haible <bruno@clisp.org>
29445
29446         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29447
29448 2008-05-18  Bruno Haible  <bruno@clisp.org>
29449
29450         * modules/propername: New file, from GNU gettext.
29451         * lib/propername.h: New file, from GNU gettext.
29452         * lib/propername.c: New file, from GNU gettext.
29453         * MODULES.html.sh (Internationalization functions): Add propername.
29454
29455 2008-05-16  Jim Meyering  <meyering@redhat.com>
29456             Bruno Haible  <bruno@clisp.org>
29457
29458         Avoid some warnings from "gcc -Wshadow".
29459         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29460
29461 2008-05-15  Eric Blake  <ebb9@byu.net>
29462
29463         Extend previous patch to cygwin 1.7.0.
29464         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29465         fast implementation in cygwin >= 1.7.0.
29466         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29468
29469 2008-05-15  Bruno Haible  <bruno@clisp.org>
29470
29471         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29472         implementation in glibc >= 2.9.
29473         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29475
29476 2008-05-15  Bruno Haible  <bruno@clisp.org>
29477
29478         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29479         (Unicode string functions): Add unilbrk/*.
29480         Reported by Karl Berry.
29481
29482 2008-05-15  Eric Blake  <ebb9@byu.net>
29483
29484         Fix violation of <stdbool.h> replacement in regex.
29485         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29486         * lib/regexec.c (re_search_internal): Likewise.
29487         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29488
29489 2008-05-15  Jim Meyering  <meyering@redhat.com>
29490
29491         avoid distracting test output when git or cvs is not found
29492         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29493         * tests/test-vc-list-files-git.sh: Likewise.
29494
29495 2008-05-15  Eric Blake  <ebb9@byu.net>
29496
29497         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29498         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29499         glibc version.
29500         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29501         * doc/posix-functions/strstr.texi (strstr): Likewise.
29502         * lib/str-two-way.h (MAX): Sychronize with glibc.
29503
29504 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29505
29506         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29507         opr.ctx_type.
29508         (calc_first): Initialize constraint field.
29509         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29510         Fix grammar.
29511         (duplicate_node): Merge constraint field for all node types.
29512         (calc_eclosure_iter): Look at constraint field for all node types.
29513         * lib/regex_internal.c (create_cd_newstate): Don't look at
29514         opr.ctx_type.
29515
29516 2008-05-14  Bruno Haible  <bruno@clisp.org>
29517
29518         Help GCC to do better code generation.
29519         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29520         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29521         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29522         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29523         Declare with attribute 'malloc' if supported.
29524
29525 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29526
29527         use "echo STR|wc -c" rather than unportable "expr length STR"
29528         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29529         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29530
29531 2008-05-14  Jim Meyering  <meyering@redhat.com>
29532
29533         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29534         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29535         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29536         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29537         via Collin Lasse.
29538
29539 2008-05-14  Eric Blake  <ebb9@byu.net>
29540
29541         Avoid quadratic growth in gl_LIBSOURCES.
29542         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29543         Suggested by Bruno Haible.
29544
29545         Test xmemdup0.
29546         * modules/xmemdup0-tests: New file.
29547         * tests/test-xmemdup0.c: Likewise.
29548
29549 2008-05-13  Eric Blake  <ebb9@byu.net>
29550
29551         Split xmemdup0 into its own module.
29552         * modules/xmemdup0: New file.
29553         * lib/xmemdup0.h: Likewise.
29554         * lib/xmemdup0.c: Likewise.
29555         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29556         * lib/xalloc.h (xmemdup0): Remove.
29557         * lib/xmalloc.c (xmemdup0): Likewise.
29558
29559 2008-05-13  Eric Blake  <ebb9@byu.net>
29560             Bruno Haible  <bruno@clisp.org>
29561
29562         Reduce number of forks required during autoconf.
29563         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29564         and gl_LIBSOURCES_DIR.
29565         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29566         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29567         m4_syscmd per file.
29568         <m4_foreach_w>: Move...
29569         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29570
29571 2008-05-13  Eric Blake  <ebb9@byu.net>
29572
29573         * gnulib-tool: Fix various comment typos.
29574
29575 2008-05-12  Bruno Haible  <bruno@clisp.org>
29576
29577         Tailor the linebreaking algorithm.
29578         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29579
29580 2008-05-12  Bruno Haible  <bruno@clisp.org>
29581
29582         Update to Unicode 5.0.0.
29583         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29584         LBP_JV, LBP_JT. Redistribute values.
29585         (unilbrk_table): Change size.
29586         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29587         Unicode TR#14 rev. 22.
29588         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29589         LBP_JV, LBP_JT. Redistribute values.
29590         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29591         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29592         Update.
29593         * lib/unilbrk/lbrkprop1.h: Regenerated.
29594         * lib/unilbrk/lbrkprop2.h: Regenerated.
29595         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29596         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29597         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29598         Likewise.
29599         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29600         Likewise.
29601         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29602         result.
29603         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29604         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29605         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29606         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29607         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29608         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29609
29610 2008-05-11  Bruno Haible  <bruno@clisp.org>
29611
29612         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29613
29614 2008-05-11  Bruno Haible  <bruno@clisp.org>
29615
29616         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29617         * modules/unilbrk/gen-lbrk: New file.
29618
29619 2008-05-11  Bruno Haible  <bruno@clisp.org>
29620
29621         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29622         * m4/sha512.m4 (gl_SHA512): Likewise.
29623
29624 2008-05-11  Jim Meyering  <meyering@redhat.com>
29625
29626         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29627         * modules/crypto/sha256: New file.
29628         * modules/crypto/sha512: Likewise.
29629         * lib/sha256.c: Likewise.
29630         * lib/sha256.h: Likewise.
29631         * lib/sha512.c: Likewise.
29632         * lib/sha512.h: Likewise.
29633         * lib/u64.h: Likewise.
29634         * m4/sha256.m4: Likewise.
29635         * m4/sha512.m4: Likewise.
29636         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29637
29638 2008-05-10  Bruno Haible  <bruno@clisp.org>
29639
29640         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29641         (Input/Output <stdio.h>): Add xprintf.
29642         (Signal handling <signal.h>): Add strsignal.
29643         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29644         (Core language properties): Add func.
29645         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29646         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29647         strings.
29648         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29649         (Input/output): New section.
29650         (File system functions): Add openat-die, stat-macros.
29651         (Networking functions): Add sockets.
29652         (Unicode string functions): Add unictype/*.
29653         (Support for building libraries and executables): Add gperf.
29654         (Support for building documentation): Add agpl-3.0.
29655         (Misc): Add nocrash.
29656
29657 2008-05-10  Bruno Haible  <bruno@clisp.org>
29658
29659         * modules/unictype/gen-ctype: New file.
29660
29661 2008-05-10  Jim Meyering  <meyering@redhat.com>
29662
29663         Make chdir-safer.c more efficient on a system with no symlinks.
29664         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29665         also if ELOOP is zero.  Suggested by Bruno Haible.
29666
29667         Make chdir-safer.c slightly safer.
29668         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29669         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29670
29671         Avoid compile failure on systems without ELOOP (like mingw).
29672         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29673         Reported by Bruno Haible.
29674
29675 2008-05-10  Bruno Haible  <bruno@clisp.org>
29676
29677         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29678         (is_utf8_encoding): Use a case-insensitive comparison.
29679         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29680         streq.
29681
29682 2008-05-10  Bruno Haible  <bruno@clisp.org>
29683
29684         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29685         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29686         * lib/unilbrk/ulc-common.h (iconv_string_length,
29687         iconv_string_keeping_offsets): Remove declarations.
29688         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29689         Don't include <iconv.h>, streq.h, xsize.h.
29690         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29691         conversion.
29692         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29693         <iconv.h>, streq.h, xsize.h.
29694         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29695         conversion.
29696         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29697         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29698         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29699         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29700
29701 2008-05-10  Bruno Haible  <bruno@clisp.org>
29702
29703         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29704         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29705
29706         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29707         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29708
29709         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29710         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29711
29712         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29713         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29714
29715         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29716         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29717
29718         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29719         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29720
29721         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29722         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29723
29724         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29725         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29726
29727 2008-05-10  Bruno Haible  <bruno@clisp.org>
29728
29729         Split up 'linebreak' module.
29730         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29731         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29732         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29733         modifications.
29734         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29735         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29736         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29737         lib/linebreak.c.
29738         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29739         lib/linebreak.c.
29740         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29741         lib/linebreak.c.
29742         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29743         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29744         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29745         lib/linebreak.c.
29746         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29747         lib/linebreak.c.
29748         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29749         lib/linebreak.c.
29750         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29751         lib/linebreak.c.
29752         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29753         lib/linebreak.c.
29754         * modules/unilbrk/base: New file.
29755         * modules/unilbrk/tables: New file.
29756         * modules/unilbrk/u8-possible-linebreaks: New file.
29757         * modules/unilbrk/u16-possible-linebreaks: New file.
29758         * modules/unilbrk/u32-possible-linebreaks: New file.
29759         * modules/unilbrk/ulc-common: New file.
29760         * modules/unilbrk/ulc-possible-linebreaks: New file.
29761         * modules/unilbrk/u8-width-linebreaks: New file.
29762         * modules/unilbrk/u16-width-linebreaks: New file.
29763         * modules/unilbrk/u32-width-linebreaks: New file.
29764         * modules/unilbrk/ulc-width-linebreaks: New file.
29765         * lib/linebreak.h: Remove file.
29766         * lib/linebreak.c: Remove file.
29767         * m4/linebreak.m4: Remove file.
29768         * modules/linebreak: Remove file.
29769         * NEWS: Mention the changes.
29770
29771 2008-05-09  Eric Blake  <ebb9@byu.net>
29772
29773         Add xmemdup0.
29774         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29775         implementation.
29776         * lib/xmalloc.c (xmemdup0): New C implementation.
29777
29778 2008-05-08  Bruno Haible  <bruno@clisp.org>
29779
29780         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29781
29782 2008-05-07  Eric Blake  <ebb9@byu.net>
29783
29784         Support cross-compilation of <wctype.h>.
29785         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29786         AC_CACHE_CHECK.
29787
29788 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29789
29790         * build-aux/vc-list-files: Add support for bzr.
29791
29792 2008-05-03  Jim Meyering  <meyering@redhat.com>
29793
29794         avoid failed assertion with tight malloc
29795         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29796
29797 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29798
29799         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29800         are needed from arpa/inet.h.
29801         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29802         Reported by Bruno Haible.
29803
29804 2008-05-02  Jim Meyering  <meyering@redhat.com>
29805
29806         avoid compilation error on FreeBSD 6
29807         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29808
29809 2008-05-01  Jim Meyering  <meyering@redhat.com>
29810
29811         useless-if-before-free: correct --help's exit status description
29812         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29813         for one or more matches, etc.  Reported by Bruno Haible.
29814
29815         vc-list-files: make the stand-alone gnulib test work
29816         * modules/vc-list-files-tests (configure.ac):
29817         Define and AC_SUBST abs_aux_dir.
29818         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29819         $(abs_top_srcdir) to each script and having each of them
29820         duplicate the work of setting PATH, set PATH here, using
29821         the new variable, abs_aux_dir instead.
29822         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29823         * tests/test-vc-list-files-git.sh: Likewise.
29824         Reported by Bruno Haible.
29825
29826 2008-05-01  Bruno Haible  <bruno@clisp.org>
29827
29828         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29829         reallocation. Rename 'done' to 'found_delimiter'.
29830
29831 2008-05-01  Jim Meyering  <meyering@redhat.com>
29832
29833         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29834         * build-aux/vc-list-files: Use `...`, not $(...).
29835
29836 2008-04-30  Jim Meyering  <meyering@redhat.com>
29837
29838         add tests for vc-list-files
29839         * modules/vc-list-files-tests: New module.
29840         * tests/test-vc-list-files-cvs.sh: New file.
29841         * tests/test-vc-list-files-git.sh: New file.
29842
29843         avoid a warning from gcc
29844         * lib/getndelim2.c (IF_LINT): Define.
29845         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
29846
29847         vc-list-files: work properly with build-aux/cvsu, too
29848         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
29849         to all cvs-based clauses.
29850
29851         vc-list-files: work properly in the CVS+awk case, too
29852         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
29853
29854         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
29855         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
29856         take more than one file argument, so .  Add quotes, just in case $dir
29857         ever contains a shell meta-character.  Prompted by Soren Hansen in
29858         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
29859
29860 2008-04-29  Eric Blake  <ebb9@byu.net>
29861
29862         Optimize getndelim2 to use block operations when possible.
29863         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
29864         freadseek, and memchr2.
29865         * lib/getndelim2.c (getndelim2): Use them for block reads.
29866
29867 2008-04-29  Bruno Haible  <bruno@clisp.org>
29868
29869         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
29870         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29871         * modules/inet_ntop (Depends-on): Add extensions.
29872         * modules/inet_pton (Depends-on): Likewise.
29873         Reported by Simon Josefsson.
29874
29875 2008-04-29  Jim Meyering  <meyering@redhat.com>
29876
29877         When the is more than one match in a block, match all of them.
29878         * build-aux/useless-if-before-free: Iterate through each block
29879         until there are no more matches.
29880
29881         Fix broken useless-if-before-free script.
29882         * build-aux/useless-if-before-free: Fix typo: missing "?" after
29883         the expression to match cast of argument to free-like function.
29884
29885 2008-04-29  Eric Blake  <ebb9@byu.net>
29886
29887         Use new header.
29888         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
29889
29890 2008-04-29  Jim Meyering  <meyering@redhat.com>
29891
29892         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
29893         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
29894         by gnulib to exist and to declare e.g., inet_ntop.
29895         Don't include "inet_ntop.h", now removed.
29896
29897         * m4/arpa_inet_h.m4: Remove trailing blanks.
29898
29899 2008-04-29  Eric Blake  <ebb9@byu.net>
29900
29901         Silence valgrind on safe reads beyond potential array bounds.
29902         * lib/rawmemchr.valgrind: New file.
29903         * lib/strchrnul.valgrind: Likewise.
29904         * modules/rawmemchr (Files): Distribute new file.
29905         * modules/strchrnul (Files): Likewise.
29906         Suggested by Bruno Haible.
29907
29908 2008-04-29  Bruno Haible  <bruno@clisp.org>
29909
29910         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
29911         (inet_ntop, inet_pton): Change portability warning's wording.
29912         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
29913         Invoke gl_CHECK_NEXT_HEADERS.
29914         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
29915         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
29916         set ARPA_INET_H.
29917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29918         * modules/arpa_inet (Description): No longer only for systems that
29919         lack it.
29920         (Depends-on): Add include_next.
29921         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
29922         HAVE_ARPA_INET_H.
29923
29924 2008-04-29  Jim Meyering  <meyering@redhat.com>
29925
29926         * modules/mkdir (License): Re-license as LGPLv2+.
29927
29928 2008-04-29  Bruno Haible  <bruno@clisp.org>
29929
29930         * modules/rawmemchr (Maintainer): Set to Eric.
29931         * modules/strchrnul (Maintainer): Likewise.
29932
29933 2008-04-29  Simon Josefsson  <simon@josefsson.org>
29934
29935         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
29936         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
29937
29938         * modules/arpa_inet (arpa/inet.h): Use them.
29939
29940 2008-04-28  Eric Blake  <ebb9@byu.net>
29941
29942         Test getndelim2.
29943         * modules/getndelim2-tests: New file.
29944         * tests/test-getndelim2.c: Likewise.
29945         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
29946         stream.
29947         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
29948
29949         * MODULES.html.sh: Document new module.
29950
29951 2008-04-20  Bruno Haible  <bruno@clisp.org>
29952
29953         * lib/c-stack.c (die): Use raise.
29954         * modules/c-stack (Depends-on): Add raise.
29955
29956 2008-04-28  Bruno Haible  <bruno@clisp.org>
29957
29958         Expect rpmatch to be declared.
29959         * lib/yesno.c (rpmatch): Remove declaration.
29960
29961         Declare rpmatch.
29962         * lib/stdlib.in.h (rpmatch): New declaration.
29963         * lib/rpmatch.c: Include <stdlib.h> first.
29964         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
29965         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
29966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
29967         HAVE_RPMATCH.
29968         * modules/rpmatch (Depends-on): Add stdlib, extensions.
29969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29970         (Include): Set to <stdlib.h>.
29971         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
29972         HAVE_RPMATCH.
29973         * NEWS: Document the change.
29974
29975 2008-04-28  Bruno Haible  <bruno@clisp.org>
29976
29977         Change rpmatch to use nl_langinfo when appropriate.
29978         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
29979         (N_): New macro.
29980         (localized_pattern): New function/macro.
29981         (try): Remove match, nomatch arguments. Copy the pattern into safe
29982         memory before caching it.
29983         (rpmatch): Use localized_pattern. Add translator comments.
29984         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
29985         Suggested by Eric Blake.
29986         * modules/rpmatch (Depends-on): Add stdbool.
29987
29988 2008-04-28  Eric Blake  <ebb9@byu.net>
29989
29990         Add rawmemchr module, matching glibc.
29991         * modules/string (Makefile.am): New indicator.
29992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
29993         * lib/string.in.h (rawmemchr): Declare when appropriate.
29994         * modules/rawmemchr: New file.
29995         * m4/rawmemchr.m4: Likewise.
29996         * lib/rawmemchr.c: Likewise.
29997         * modules/rawmemchr-tests: Likewise.
29998         * tests/test-rawmemchr.c: Likewise.
29999         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30000         module.
30001         * modules/strchrnul (Depends-on): Add rawmemchr.
30002         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30003
30004         Whitespace cleanup.
30005         * tests/test-strchrnul.c: Reindent.
30006         * lib/strchrnul.c: Likewise.
30007
30008         Optimize and test strchrnul.
30009         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30010         * modules/strchrnul-tests: New file.
30011         * tests/test-strchrnul.c: Likewise.
30012
30013         Remove intprops dependency.
30014         * modules/memchr (Depends-on): Remove intprops.
30015         * modules/memrchr (Depends-on): Likewise.
30016         * modules/memchr2 (Depends-on): Likewise.
30017         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30018         * lib/memrchr.c (__memrchr): Likewise.
30019         * lib/memrchr2.c (memchr2): Likewise.
30020         Reported by Simon Josefsson.
30021
30022 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30023
30024         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30025         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30026
30027 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30028
30029         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30030
30031         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30032
30033         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30034
30035         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30036         declarations.
30037         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30038
30039         * m4/inet_pton.m4: Don't check for header files.
30040
30041         * m4/inet_ntop.m4: Don't check for header files.
30042
30043 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30044
30045         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30046         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30047         trigger for cygwin).
30048         Reported by Bruno Haible  <bruno@clisp.org>.
30049
30050 2008-04-28  Bruno Haible  <bruno@clisp.org>
30051
30052         * doc/posix-functions/strdup.texi: Mention mingw problem.
30053
30054 2008-04-27  Bruno Haible  <bruno@clisp.org>
30055
30056         * modules/stat-time-tests (Depends-on): Add sleep.
30057         * tests/test-stat-time.c (force_unlink): New function.
30058         (cleanup): Use it.
30059         (test_mtime): Remove the ctime related tests.
30060         (test_ctime): New function, containing the ctime related tests.
30061         (main): Call test_ctime, except on native Windows platforms.
30062
30063 2008-04-27  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/rpmatch.c (rpmatch): Add some comments.
30066         Reported by James Youngman <jay@gnu.org>.
30067
30068 2008-04-27  Bruno Haible  <bruno@clisp.org>
30069
30070         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30071         quiet NaNs.
30072
30073 2008-04-27  Bruno Haible  <bruno@clisp.org>
30074
30075         Make test-yesno.sh work on mingw.
30076         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30077         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30078         (main): Set stdin to binary mode.
30079         * modules/yesno-tests (Depends-on): Add binary-io.
30080
30081 2008-04-27  Bruno Haible  <bruno@clisp.org>
30082
30083         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30084         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30085         argument that lie outside the IEEE 854 domain.
30086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30087         (gl_ISFINITE): Use it.
30088         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30089
30090 2008-04-27  Bruno Haible  <bruno@clisp.org>
30091
30092         Allow local renaming in config.h.
30093         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30094
30095 2008-04-27  Bruno Haible  <bruno@clisp.org>
30096
30097         * lib/memchr.c (__memchr): Change type of 'i'.
30098         * lib/memchr2.c (memchr2): Likewise.
30099
30100 2008-04-26  Eric Blake  <ebb9@byu.net>
30101         and Bruno Haible  <bruno@clisp.org>
30102
30103         Optimize and test memrchr.
30104         * modules/memrchr (Depends-on): Add intprops.
30105         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30106         * modules/memrchr-tests: New file.
30107         * tests/test-memrchr.c: New file.
30108
30109 2008-04-26  Bruno Haible  <bruno@clisp.org>
30110
30111         Add tentative support for DragonFly BSD.
30112         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30113         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30114         fp.
30115         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30116         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30117         * lib/fpurge.c (fpurge): Likewise.
30118         * lib/freadable.c (freaadable): Likewise.
30119         * lib/freadahead.c (freadahead): Likewise.
30120         * lib/freading.c (freading): Likewise.
30121         * lib/freadptr.c (freadptr): Likewise.
30122         * lib/freadseek.c (freadptrinc): Likewise.
30123         * lib/fseeko.c (fseeko): Likewise.
30124         * lib/fseterr.c (fseterr): Likewise.
30125         * lib/fwritable.c (fwritable): Likewise.
30126         * lib/fwriting.c (fwriting): Likewise.
30127
30128 2008-04-26  Bruno Haible  <bruno@clisp.org>
30129
30130         * lib/stdio-impl.h: New file.
30131         * lib/fbufmode.c: Include stdio-impl.h.
30132         (fbufmode): Use fp_, remove redundant #defines.
30133         * lib/fflush.c: Include stdio-impl.h.
30134         (clear_ungetc_buffer): Remove redundant #defines.
30135         * lib/fpurge.c: Include stdio-impl.h.
30136         (fpurge): Remove redundant #defines.
30137         * lib/freadable.c: Include stdio-impl.h.
30138         (freadable): Remove redundant #defines.
30139         * lib/freadahead.c: Include stdio-impl.h.
30140         (freadahead): Remove redundant #defines.
30141         * lib/freading.c: Include stdio-impl.h.
30142         (freading): Remove redundant #defines.
30143         * lib/freadptr.c: Include stdio-impl.h.
30144         (freadptr): Remove redundant #defines.
30145         * lib/freadseek.c: Include stdio-impl.h.
30146         (freadptrinc): Remove redundant #defines.
30147         * lib/fseeko.c: Include stdio-impl.h.
30148         (rpl_fseeko): Remove redundant #defines.
30149         * lib/fseterr.c: Include stdio-impl.h.
30150         (fseterr): Remove redundant #defines.
30151         * lib/fwritable.c: Include stdio-impl.h.
30152         (fwritable: Remove redundant #defines.
30153         * lib/fwriting.c: Include stdio-impl.h.
30154         (fwriting): Remove redundant #defines.
30155         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30156         * modules/fflush (Files): Likewise.
30157         * modules/fpurge (Files): Likewise.
30158         * modules/freadable (Files): Likewise.
30159         * modules/freadahead (Files): Likewise.
30160         * modules/freading (Files): Likewise.
30161         * modules/freadptr (Files): Likewise.
30162         * modules/freadseek (Files): Likewise.
30163         * modules/fseeko (Files): Likewise.
30164         * modules/fseterr (Files): Likewise.
30165         * modules/fwritable (Files): Likewise.
30166         * modules/fwriting (Files): Likewise.
30167
30168 2008-04-26  Bruno Haible  <bruno@clisp.org>
30169
30170         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30171         restore_seek_optimization, update_fpos_cache): New functions, extracted
30172         from rpl_fflush.
30173         (rpl_fflush): Use them.
30174         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30175         (gl_REPLACE_FFLUSH): Use it.
30176
30177 2008-04-26  Bruno Haible  <bruno@clisp.org>
30178
30179         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30180         on Solaris.
30181         * tests/test-xstrtoimax.sh: Likewise.
30182         * tests/test-xstrtoumax.sh: Likewise.
30183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30184
30185 2008-04-26  Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/memchr-tests: New file.
30188         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30189
30190 2008-04-26  Eric Blake  <ebb9@byu.net>
30191             Bruno Haible  <bruno@clisp.org>
30192
30193         * lib/memchr.c: Include intprops.h.
30194         (__memchr): Optimize parallel detection of matching bytes. Rename local
30195         variables. Add explanatory comments.
30196
30197 2008-04-26  Bruno Haible  <bruno@clisp.org>
30198
30199         Fix module 'memchr', broken since 2000-10-28.
30200         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30201
30202 2008-04-26  Bruno Haible  <bruno@clisp.org>
30203
30204         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30205         comments.
30206
30207 2008-04-25  Eric Blake  <ebb9@byu.net>
30208
30209         Use native fstatat on cygwin 1.7.0.
30210         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30211         first.
30212
30213 2008-04-23  Eric Blake  <ebb9@byu.net>
30214
30215         Improve memchr2 performance.
30216         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30217         NUL bytes.
30218         * modules/memchr2 (Depends-on): Use intprops.h.
30219
30220 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30221
30222         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30223         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30224         <blp@cs.stanford.edu>.
30225
30226 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30227
30228         * lib/arpa_inet.in.h: New file.
30229
30230         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30231         (Makefile.am): Sed in substitute header file.
30232
30233         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30234         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30235
30236         * modules/inet_ntop (configure.ac): Use
30237         gl_ARPA_INET_MODULE_INDICATOR.
30238
30239         * modules/inet_pton (configure.ac): Use
30240         gl_ARPA_INET_MODULE_INDICATOR.
30241
30242 2008-04-22  Jim Meyering  <meyering@redhat.com>
30243
30244         * modules/verify (License): Re-license as LGPLv2+.
30245
30246 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30247
30248         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30249         parameter to void* as per POSIX standard (MinGW uses char*).
30250
30251 2008-04-21  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30254         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30255         Define to replacements if REPLACE_ISWCNTRL is 1.
30256         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30257         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30258         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30259         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30260         what it fixes.
30261         * doc/posix-functions/iswalpha.texi: Likewise.
30262         * doc/posix-functions/iswblank.texi: Likewise.
30263         * doc/posix-functions/iswcntrl.texi: Likewise.
30264         * doc/posix-functions/iswdigit.texi: Likewise.
30265         * doc/posix-functions/iswgraph.texi: Likewise.
30266         * doc/posix-functions/iswlower.texi: Likewise.
30267         * doc/posix-functions/iswprint.texi: Likewise.
30268         * doc/posix-functions/iswpunct.texi: Likewise.
30269         * doc/posix-functions/iswspace.texi: Likewise.
30270         * doc/posix-functions/iswupper.texi: Likewise.
30271         * doc/posix-functions/iswxdigit.texi: Likewise.
30272         Reported by Alain Guibert.
30273
30274 2008-04-21  Bruno Haible  <bruno@clisp.org>
30275
30276         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30277         Patch by Alain Guibert.
30278
30279 2008-04-21  Bruno Haible  <bruno@clisp.org>
30280
30281         Fix test failures on mingw.
30282         * tests/test-xstrtol.c (print_no_progname): New function.
30283         (main): Install it in error_print_progname hook.
30284         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30285         * tests/test-xstrtoimax.sh: Likewise.
30286         * tests/test-xstrtoumax.sh: Likewise.
30287
30288 2008-04-21  Bruno Haible  <bruno@clisp.org>
30289
30290         Fix test failure on mingw.
30291         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30292
30293 2008-04-21  Bruno Haible  <bruno@clisp.org>
30294
30295         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30296         Actually assign a value.
30297
30298 2008-04-20  Bruno Haible  <bruno@clisp.org>
30299
30300         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30301         take 2.
30302         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30303         'canonicalize-lgpl' module is also used.
30304         * lib/canonicalize-lgpl.c: Undo last change.
30305         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30306
30307 2008-04-20  Bruno Haible  <bruno@clisp.org>
30308
30309         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30310         config.h. Provide _mkdir based fallback for mingw.
30311         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30312         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30313         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30314         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30315         rather than defining mkdir in config.h.
30316         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30317         (gl_SYS_STAT_H_DEFAULTS): New macro.
30318         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30319         HAVE_IO_H any more.
30320         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30321         HAVE_DECL_MKDIR and HAVE_IO_H.
30322
30323 2008-04-20  Bruno Haible  <bruno@clisp.org>
30324
30325         * lib/isapipe.c: Port to native Windows platforms.
30326
30327 2008-04-20  Bruno Haible  <bruno@clisp.org>
30328
30329         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30330
30331 2008-04-21  Eric Blake  <ebb9@byu.net>
30332
30333         Work around preprocessors that don't handle UINTMAX_MAX.
30334         * lib/memchr2.c (memchr2): Avoid embedded #if.
30335         Reported by Alain Guibert, fix suggested by Bruno Haible.
30336
30337 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30338
30339         * doc/posix-functions/strftime.texi (strftime): Explain better
30340         Windows incompatibility.  Suggested by Micah Cowan
30341         <micah@cowan.name>.
30342
30343 2008-04-20  Bruno Haible  <bruno@clisp.org>
30344
30345         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30346         unistr/u8-mblen.
30347
30348 2008-04-20  Bruno Haible  <bruno@clisp.org>
30349
30350         Fix test failure on platforms with non-GNU iconv.
30351         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30352         (U_TO_U8): Use it, rather than u16_to_u8.
30353         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30354         units at the end of the input string.
30355         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30356
30357 2008-04-20  Bruno Haible  <bruno@clisp.org>
30358
30359         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30360         when the resulting length is 0.
30361         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30362
30363 2008-04-20  Bruno Haible  <bruno@clisp.org>
30364
30365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30366         works.
30367         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30368
30369 2008-04-20  Bruno Haible  <bruno@clisp.org>
30370
30371         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30372         * modules/tsearch-tests (configure.ac): Test for initstate function.
30373
30374 2008-04-20  Bruno Haible  <bruno@clisp.org>
30375
30376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30377         for nlink_t if missing.
30378         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30379
30380 2008-04-19  Bruno Haible  <bruno@clisp.org>
30381
30382         Work around snprintf bug on Linux libc5.
30383         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30385         gl_SNPRINTF_SIZE1.
30386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30387         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30388         that test failed.
30389         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30390         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30391         * modules/snprintf (Files): Add m4/printf.m4.
30392         * modules/vsnprintf (Files): Likewise.
30393         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30394         * doc/posix-functions/vsnprintf.texi: Likewise.
30395
30396 2008-04-19  Bruno Haible  <bruno@clisp.org>
30397
30398         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30399         from 0.0058 to less than 10^-7.
30400
30401 2008-04-19  Bruno Haible  <bruno@clisp.org>
30402
30403         Fix rounding when a precision is given.
30404         * lib/vasnprintf.c (is_borderline): New function.
30405         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30406         9...9x.
30407         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30408         %e, %g.
30409         * tests/test-vasprintf-posix.c (test_function): Likewise.
30410         * tests/test-snprintf-posix.h (test_function): Likewise.
30411         * tests/test-sprintf-posix.h (test_function): Likewise.
30412         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30413         * tests/test-printf-posix.h (test_function): Likewise.
30414         * tests/test-printf-posix.output: Update.
30415         Reported by John Darrington <john@darrington.wattle.id.au> via
30416         Ben Pfaff <blp@cs.stanford.edu>.
30417
30418 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30419
30420         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30421         Suggested by Bruno Haible <bruno@clisp.org>.
30422
30423 2008-04-17  Bruno Haible  <bruno@clisp.org>
30424
30425         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30426         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30427         implementation.
30428         Patch by Bruce Merry <bmerry@gmail.com>.
30429
30430 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30431
30432         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30433         doesn't work under Windows.
30434
30435 2008-04-16  Bruno Haible  <bruno@clisp.org>
30436
30437         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30438         New macros.
30439         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30440         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30441         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30442         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30443         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30444         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30445         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30446         macros.
30447         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30448         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30449         Northern Sotho, Uighur.
30450
30451 2008-04-16  Bruno Haible  <bruno@clisp.org>
30452
30453         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30454         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30455         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30456         Reported by Daniel Bergström <daniel@octocode.com>.
30457
30458 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30459             Bruno Haible  <bruno@clisp.org>
30460
30461         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30462         function.
30463         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30464         New functions, mostly extracted from gl_locale_name_default.
30465         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30466
30467 2008-04-16  Eric Blake  <ebb9@byu.net>
30468
30469         Adjust strtod detection to catch glibc 2.7 bug.
30470         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30471         Reported by John Gatewood Ham.
30472
30473 2008-04-16  Bruno Haible  <bruno@clisp.org>
30474
30475         Add tentative support for Linux libc5.
30476         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30477         * lib/fpurge.c (fpurge): Likewise.
30478         * lib/freadable.c (freadable): Likewise.
30479         * lib/freadahead.c (freadahead): Likewise.
30480         * lib/freading.c (freading): Likewise.
30481         * lib/freadptr.c (freadptr): Likewise.
30482         * lib/freadseek.c (freadptrinc): Likewise.
30483         * lib/fseeko.c (rpl_fseeko): Likewise.
30484         * lib/fseterr.c (fseterr): Likewise.
30485         * lib/fwritable.c (fwritable): Likewise.
30486         * lib/fwriting.c (fwriting): Likewise.
30487         Reported by Alain Guibert <alguibert+bts@free.fr>.
30488
30489 2008-04-15  Bruno Haible  <bruno@clisp.org>
30490
30491         * modules/mathl (configure.ac): Define module indicator.
30492
30493 2008-04-15  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/logl.c (logl): Remove unused variables.
30496
30497 2008-04-15  Bruno Haible  <bruno@clisp.org>
30498
30499         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30500         fails.
30501
30502 2008-04-15  Bruno Haible  <bruno@clisp.org>
30503
30504         * lib/trim.c (trim2): Fix argument of isspace() macro.
30505
30506 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30507
30508         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30509         to 0.
30510         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30511
30512 2008-04-14  Bruno Haible  <bruno@clisp.org>
30513
30514         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30515         AC_LANG_PROGRAM argument.
30516         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30517         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30519         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30520         * m4/math_h.m4 (gl_MATH_H): Likewise.
30521         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30523         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30524         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30525         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30526         * m4/regex.m4 (gl_REGEX): Likewise.
30527         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30528         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30530         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30532         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30535
30536 2008-04-14  Jim Meyering  <meyering@redhat.com>
30537
30538         test-strtod: fix typos: s/abs/fabs/
30539         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30540
30541 2008-04-13  Bruno Haible  <bruno@clisp.org>
30542
30543         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30544         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30545         module is also used and while not building the reloc-wrapper.
30546
30547 2008-04-13  Bruno Haible  <bruno@clisp.org>
30548
30549         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30550
30551 2008-04-13  Bruno Haible  <bruno@clisp.org>
30552
30553         Fix AIX compilation failure introduced on 2008-04-02.
30554         * tests/test-frexp.c (exp): Undefine before redefining.
30555         * tests/test-frexpl.c (exp): Likewise.
30556
30557 2008-04-13  Bruno Haible  <bruno@clisp.org>
30558
30559         Work around a HP-UX stdio bug.
30560         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30561         * tests/test-ftello.c (main): Likewise.
30562         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30563         * doc/posix-functions/ftello.texi: Likewise.
30564
30565 2008-04-13  Bruno Haible  <bruno@clisp.org>
30566
30567         Make test-signbit pass on HP-UX/hppa.
30568         * tests/test-signbit.c (minus_zerol): New variable.
30569         (test_signbitl): Use it.
30570
30571 2008-04-13  Bruno Haible  <bruno@clisp.org>
30572
30573         Make truncl work on OSF/1 4.0.
30574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30575         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30576         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30578         HAVE_DECL_TRUNCL.
30579         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30580         HAVE_DECL_TRUNCL.
30581         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30582
30583 2008-04-13  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30586
30587 2008-04-13  Bruno Haible  <bruno@clisp.org>
30588
30589         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30590         expression, so as to avoid HP-UX 11 cc compiler bug.
30591
30592 2008-04-13  Bruno Haible  <bruno@clisp.org>
30593
30594         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30595
30596 2008-04-13  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/git-merge-changelog.c: Remove empty declaration outside of
30599         functions.
30600
30601 2008-04-13  Bruno Haible  <bruno@clisp.org>
30602
30603         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30604
30605 2008-04-13  Bruno Haible  <bruno@clisp.org>
30606
30607         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30608         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30610         also if it exists but lacks definitions of the SHUT_* macros.
30611         * modules/sys_socket (Description): Update.
30612         Reported by Elbert Pol <e.pol@chello.nl>.
30613
30614 2008-04-13  Bruno Haible  <bruno@clisp.org>
30615
30616         * lib/localcharset.c (OS2): Don't redefine if already defined.
30617         Reported by Elbert Pol <e.pol@chello.nl>.
30618
30619 2008-04-13  Bruno Haible  <bruno@clisp.org>
30620
30621         * lib/binary-io.h [__EMX__]: Include <io.h>.
30622         Reported by Elbert Pol <e.pol@chello.nl>.
30623
30624 2008-04-12  Bruno Haible  <bruno@clisp.org>
30625
30626         * lib/fpucw.h: Enable the definitions also for x86_64.
30627         Needed for NetBSD/x86_64.
30628         Reported by Thomas Klausner <tk@giga.or.at>.
30629
30630 2008-04-12  Bruno Haible  <bruno@clisp.org>
30631
30632         * tests/test-strtod.c: Include isnand.h.
30633         (main): Use isnand instead of isnan.
30634         Reported by Jim Meyering.
30635
30636 2008-04-12  Bruno Haible  <bruno@clisp.org>
30637
30638         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30639         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30640
30641 2008-04-12  Jim Meyering  <meyering@redhat.com>
30642
30643         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30644
30645 2008-04-12  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30648         Reported by Elbert Pol <e.pol@chello.nl>.
30649
30650 2008-04-12  Eric Blake  <ebb9@byu.net>
30651
30652         Work around Solaris 10 math.h bug.
30653         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30654         (gl_MATH_H_DEFAULTS): Set up default.
30655         * modules/math (Makefile.am): Replace new indicators.
30656         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30657         * tests/test-math.c (main): Test this.
30658         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30659         * doc/posix-headers/math.texi (math.h): Mention bug.
30660         Reported by Nelson H. F. Beebe and Jim Meyering.
30661
30662 2008-04-11  Bruno Haible  <bruno@clisp.org>
30663
30664         Adapt to future versions of Apple GCC.
30665         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30666         Reported by Peter O'Gorman <peter@pogma.com>.
30667
30668 2008-04-11  Bruno Haible  <bruno@clisp.org>
30669
30670         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30671
30672 2008-04-11  Bruno Haible  <bruno@clisp.org>
30673
30674         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30675
30676         * modules/getaddrinfo-tests (Makefile.am): Define
30677         test_getaddrinfo_LDADD.
30678
30679 2008-04-11  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30682         (init): Fix syntax error.
30683         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30684         is declared.
30685
30686 2008-04-11  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30689         * modules/glob (Depends-on): Add stdbool.
30690
30691 2008-04-11  Bruno Haible  <bruno@clisp.org>
30692
30693         * lib/trim.c: Include <string.h>.
30694
30695 2008-04-11  Eric Blake  <ebb9@byu.net>
30696
30697         Avoid compile failure on OS/2.
30698         * lib/regex_internal.h (internal_function): Disable optimization
30699         on OS/2 (__EMX__), where it caused compiler error.
30700         Reported by Elbert Pol.
30701
30702 2008-04-11  Bruno Haible  <bruno@clisp.org>
30703
30704         Flush the standard error stream before aborting. Needed on mingw.
30705         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30706         * tests/test-array_list.c (ASSERT): Likewise.
30707         * tests/test-array_oset.c (ASSERT): Likewise.
30708         * tests/test-avltree_list.c (ASSERT): Likewise.
30709         * tests/test-avltree_oset.c (ASSERT): Likewise.
30710         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30711         * tests/test-binary-io.c (ASSERT): Likewise.
30712         * tests/test-byteswap.c (ASSERT): Likewise.
30713         * tests/test-c-ctype.c (ASSERT): Likewise.
30714         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30715         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30716         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30717         * tests/test-c-strstr.c (ASSERT): Likewise.
30718         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30719         * tests/test-canonicalize.c (ASSERT): Likewise.
30720         * tests/test-carray_list.c (ASSERT): Likewise.
30721         * tests/test-ceilf1.c (ASSERT): Likewise.
30722         * tests/test-ceilf2.c (ASSERT): Likewise.
30723         * tests/test-ceill.c (ASSERT): Likewise.
30724         * tests/test-count-one-bits.c (ASSERT): Likewise.
30725         * tests/test-fbufmode.c (ASSERT): Likewise.
30726         * tests/test-fflush2.c (ASSERT): Likewise.
30727         * tests/test-floorf1.c (ASSERT): Likewise.
30728         * tests/test-floorf2.c (ASSERT): Likewise.
30729         * tests/test-floorl.c (ASSERT): Likewise.
30730         * tests/test-fopen.c (ASSERT): Likewise.
30731         * tests/test-fpending.c (ASSERT): Likewise.
30732         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30733         * tests/test-fpurge.c (ASSERT): Likewise.
30734         * tests/test-freadable.c (ASSERT): Likewise.
30735         * tests/test-freadahead.c (ASSERT): Likewise.
30736         * tests/test-freading.c (ASSERT): Likewise.
30737         * tests/test-freadptr.c (ASSERT): Likewise.
30738         * tests/test-freadptr2.c (ASSERT): Likewise.
30739         * tests/test-freadseek.c (ASSERT): Likewise.
30740         * tests/test-freopen.c (ASSERT): Likewise.
30741         * tests/test-frexp.c (ASSERT): Likewise.
30742         * tests/test-frexpl.c (ASSERT): Likewise.
30743         * tests/test-fseek.c (ASSERT): Likewise.
30744         * tests/test-fseeko.c (ASSERT): Likewise.
30745         * tests/test-fstrcmp.c (ASSERT): Likewise.
30746         * tests/test-ftell.c (ASSERT): Likewise.
30747         * tests/test-ftello.c (ASSERT): Likewise.
30748         * tests/test-func.c (ASSERT): Likewise.
30749         * tests/test-fwritable.c (ASSERT): Likewise.
30750         * tests/test-fwriting.c (ASSERT): Likewise.
30751         * tests/test-getdelim.c (ASSERT): Likewise.
30752         * tests/test-getline.c (ASSERT): Likewise.
30753         * tests/test-i-ring.c (ASSERT): Likewise.
30754         * tests/test-iconv-utf.c (ASSERT): Likewise.
30755         * tests/test-iconv.c (ASSERT): Likewise.
30756         * tests/test-isfinite.c (ASSERT): Likewise.
30757         * tests/test-isnand.c (ASSERT): Likewise.
30758         * tests/test-isnanf.c (ASSERT): Likewise.
30759         * tests/test-isnanl.h (ASSERT): Likewise.
30760         * tests/test-ldexpl.c (ASSERT): Likewise.
30761         * tests/test-linked_list.c (ASSERT): Likewise.
30762         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30763         * tests/test-localename.c (ASSERT): Likewise.
30764         * tests/test-lseek.c (ASSERT): Likewise.
30765         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30766         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30767         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30768         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30769         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30770         * tests/test-mbschr.c (ASSERT): Likewise.
30771         * tests/test-mbscspn.c (ASSERT): Likewise.
30772         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30773         * tests/test-mbspbrk.c (ASSERT): Likewise.
30774         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30775         * tests/test-mbsrchr.c (ASSERT): Likewise.
30776         * tests/test-mbsspn.c (ASSERT): Likewise.
30777         * tests/test-mbsstr1.c (ASSERT): Likewise.
30778         * tests/test-mbsstr2.c (ASSERT): Likewise.
30779         * tests/test-mbsstr3.c (ASSERT): Likewise.
30780         * tests/test-memchr2.c (ASSERT): Likewise.
30781         * tests/test-memmem.c (ASSERT): Likewise.
30782         * tests/test-open.c (ASSERT): Likewise.
30783         * tests/test-printf-frexp.c (ASSERT): Likewise.
30784         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30785         * tests/test-printf-posix.c (ASSERT): Likewise.
30786         * tests/test-quotearg.c (ASSERT): Likewise.
30787         * tests/test-rbtree_list.c (ASSERT): Likewise.
30788         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30789         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30790         * tests/test-round1.c (ASSERT): Likewise.
30791         * tests/test-roundf1.c (ASSERT): Likewise.
30792         * tests/test-roundl.c (ASSERT): Likewise.
30793         * tests/test-signbit.c (ASSERT): Likewise.
30794         * tests/test-sleep.c (ASSERT): Likewise.
30795         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30796         * tests/test-snprintf.c (ASSERT): Likewise.
30797         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30798         * tests/test-stat-time.c (ASSERT): Likewise.
30799         * tests/test-strcasestr.c (ASSERT): Likewise.
30800         * tests/test-strerror.c (ASSERT): Likewise.
30801         * tests/test-striconv.c (ASSERT): Likewise.
30802         * tests/test-striconveh.c (ASSERT): Likewise.
30803         * tests/test-striconveha.c (ASSERT): Likewise.
30804         * tests/test-strsignal.c (ASSERT): Likewise.
30805         * tests/test-strstr.c (ASSERT): Likewise.
30806         * tests/test-strtod.c (ASSERT): Likewise.
30807         * tests/test-trunc1.c (ASSERT): Likewise.
30808         * tests/test-trunc2.c (ASSERT): Likewise.
30809         * tests/test-truncf1.c (ASSERT): Likewise.
30810         * tests/test-truncf2.c (ASSERT): Likewise.
30811         * tests/test-truncl.c (ASSERT): Likewise.
30812         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30813         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30814         * tests/test-vasnprintf.c (ASSERT): Likewise.
30815         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30816         * tests/test-vasprintf.c (ASSERT): Likewise.
30817         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30818         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30819         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30820         * tests/test-vsnprintf.c (ASSERT): Likewise.
30821         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30822         * tests/test-wcwidth.c (ASSERT): Likewise.
30823         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30824         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30825         * tests/test-xvasprintf.c (ASSERT): Likewise.
30826         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30827         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30828         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30829         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30830         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30831         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30832         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30833         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30834         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30835         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30836         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30837         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30838         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30839         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30840         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30841         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30842         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30843         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30844         * tests/unictype/test-block_test.c (ASSERT): Likewise.
30845         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
30846         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
30847         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
30848         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
30849         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
30850         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
30851         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
30852         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
30853         * tests/unictype/test-combining.c (ASSERT): Likewise.
30854         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
30855         * tests/unictype/test-digit.c (ASSERT): Likewise.
30856         * tests/unictype/test-mirror.c (ASSERT): Likewise.
30857         * tests/unictype/test-numeric.c (ASSERT): Likewise.
30858         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
30859         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
30860         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
30861         * tests/unictype/test-scripts.c (ASSERT): Likewise.
30862         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
30863         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
30864         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
30865         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
30866         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
30867         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
30868         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
30869         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
30870         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
30871         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
30872         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
30873         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
30874         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
30875         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
30876         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
30877         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
30878         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
30879         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
30880         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
30881         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
30882         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
30883         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
30884         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
30885         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
30886         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
30887         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
30888         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
30889         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
30890         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
30891         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
30892         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
30893         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
30894         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
30895         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
30896         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
30897         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
30898         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
30899         Reported by Eric Blake.
30900
30901 2008-04-11  Bruno Haible  <bruno@clisp.org>
30902
30903         * lib/wchar.in.h: Tweak comment.
30904
30905 2008-04-11  Bruno Haible  <bruno@clisp.org>
30906
30907         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
30908         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
30909         gl_COMMON.
30910         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
30911
30912 2008-04-11  Bruno Haible  <bruno@clisp.org>
30913
30914         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
30915
30916 2008-04-11  Simon Josefsson  <simon@josefsson.org>
30917
30918         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
30919         of attempting to use non-existing /dev/*random.  Based on patch
30920         from Adam Strzelecki <ono@java.pl> in
30921         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
30922
30923 2008-04-08  Bruno Haible  <bruno@clisp.org>
30924
30925         Add tentative support for emx+gcc.
30926         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
30927         * lib/fpurge.c (fpurge): Likewise.
30928         * lib/freadable.c (freadable): Likewise.
30929         * lib/freadahead.c (freadahead): Likewise.
30930         * lib/freading.c (freading): Likewise.
30931         * lib/freadptr.c (freadptr): Likewise.
30932         * lib/freadseek.c (freadptrinc): Likewise.
30933         * lib/fseeko.c (rpl_fseeko): Likewise.
30934         * lib/fseterr.c (fseterr): Likewise.
30935         * lib/fwritable.c (fwritable): Likewise.
30936         * lib/fwriting.c (fwriting): Likewise.
30937         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
30938
30939 2008-04-09  Eric Blake  <ebb9@byu.net>
30940
30941         Avoid some autoconf warnings.
30942         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
30943         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
30944         * m4/afs.m4 (gl_AFS): Likewise.
30945         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
30946         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
30947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30948         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
30949         (gl_INTEGER_TYPE_SUFFIX): Likewise.
30950         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
30951         (AC_CHECK_DECLS_ONCE): Likewise.
30952         Rename file...
30953         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
30954         gnulib-tool requires autoconf 2.59 or better.
30955         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
30956
30957 2008-04-08  Eric Blake  <ebb9@byu.net>
30958
30959         Use 'git describe --match' if present (added in git 1.5.5).
30960         * build-aux/git-version-gen: Limit result to tags that match 'v*'
30961         if possible.
30962
30963 2008-04-08  Bruno Haible  <bruno@clisp.org>
30964
30965         Add tentative support for OpenServer.
30966         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
30967         _ptr, _cnt.
30968         * lib/fpurge.c (fpurge): Likewise.
30969         * lib/freadable.c (freadable): Likewise.
30970         * lib/freadahead.c (freadahead): Likewise.
30971         * lib/freading.c (freading): Likewise.
30972         * lib/freadptr.c (freadptr): Likewise.
30973         * lib/freadseek.c (freadptrinc): Likewise.
30974         * lib/fseeko.c (rpl_fseeko): Likewise.
30975         * lib/fseterr.c (fseterr): Likewise.
30976         * lib/fwritable.c (fwritable): Likewise.
30977         * lib/fwriting.c (fwriting): Likewise.
30978         Reported by Roger Cornelius <rac@tenzing.org> and
30979         Brian K. White <brian@aljex.com>.
30980
30981 2008-04-06  Jim Meyering  <meyering@redhat.com>
30982
30983         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
30984
30985 2008-04-06  Bruno Haible  <bruno@clisp.org>
30986
30987         Avoid possible error with non-ASCII bytes in UTF-8 locales.
30988         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
30989         * tests/test-printf-posix.sh: Likewise.
30990         * tests/test-vfprintf-posix.sh: Likewise.
30991         * tests/test-vprintf-posix.sh: Likewise.
30992         * tests/test-xprintf-posix.sh: Likewise.
30993
30994 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30995
30996         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
30997         hide error from 'ls', needed on OS/2.
30998         Report by Elbert Pol <elbert.pol@gmail.com>.
30999
31000 2008-04-04  Eric Blake  <ebb9@byu.net>
31001
31002         Make test-fseeko.c failures meaningful.
31003         * tests/test-fseeko.c: Print line number on failure.
31004         * tests/test-fseek.c: Likewise.
31005         Reported by Nelson H. F. Beebe.
31006
31007         Improve strtod bug detection check.
31008         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31009         required for Solaris 10.
31010         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31011
31012 2008-04-04  Bruno Haible  <bruno@clisp.org>
31013
31014         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31015         by m4/setenv.m4.
31016
31017 2008-04-03  Eric Blake  <ebb9@byu.net>
31018
31019         Ensure sane .version contents.
31020         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31021         version string.
31022         * build-aux/git-version-gen: Improve documentation.
31023
31024         Make GNU make output nicer.
31025         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31026         MAKECMDGOALS to enforce message for all command line targets.  Set
31027         srcdir for use in maint.mk.
31028
31029         Another maintainer tweak.
31030         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31031         a target that regenerates version.
31032
31033 2008-04-03  Jim Meyering  <meyering@redhat.com>
31034
31035         vc-list-files: don't cause coreutils "make po-check" failure
31036         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31037
31038 2008-04-03  Eric Blake  <ebb9@byu.net>
31039
31040         Allow VPATH usage of vc-list-files.
31041         * build-aux/vc-list-files (scriptversion): Add timestamp.
31042         (options): Add --help, --version, -C.
31043         (CVS): Support installed cvsu.
31044
31045 2008-04-02  Bruno Haible  <bruno@clisp.org>
31046
31047         Avoid some "statement with no effect" warnings from gcc.
31048         * tests/test-wctype.c (main): Explicitly ignore unused values.
31049         Reported by Jim Meyering.
31050
31051 2008-04-02  Jim Meyering  <meyering@redhat.com>
31052
31053         Avoid some warnings from "gcc -Wshadow".
31054         * tests/test-frexp.c (exp): Define to a different identifier.
31055         * tests/test-frexpl.c (exp): Likewise.
31056
31057 2008-04-03  Jim Meyering  <meyering@redhat.com>
31058
31059         bootstrap: remove dangling *.[ch] symlinks from lib
31060         * build-aux/bootstrap [dangling symlink removal]: Move find's
31061         -depth option to precede all others, to avoid a warning.
31062         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31063
31064 2008-04-02  Bruno Haible  <bruno@clisp.org>
31065
31066         Avoid some warnings from "gcc -Wshadow".
31067         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31068         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31069         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31070         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31071         Reported by Jim Meyering.
31072
31073 2008-04-01  Bruno Haible  <bruno@clisp.org>
31074
31075         Fix test to work on IRIX 6.5 with cc.
31076         * tests/test-math.c (numeric_equal): New function.
31077         (main): Use it.
31078
31079 2008-04-01  Bruno Haible  <bruno@clisp.org>
31080
31081         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31082
31083 2008-04-01  Bruno Haible  <bruno@clisp.org>
31084
31085         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31086         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31087         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31088         (Depends-on): Remove math.
31089
31090         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31091         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31092         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31093         (Depends-on): Remove math.
31094
31095         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31096         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31097         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31098         (Depends-on): Remove math.
31099         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31100         (Depends-on): Remove math.
31101
31102         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31103         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31104         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31105         (Depends-on): Remove math.
31106         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31107         (Depends-on): Remove math.
31108
31109         * tests/test-round1.c: Include nan.h.
31110         (main): Use NaNd instead of NAN.
31111         * modules/round-tests (Files): Add tests/nan.h.
31112
31113         * tests/test-trunc1.c: Include nan.h.
31114         (main): Use NaNd instead of NAN.
31115         * modules/trunc-tests (Files): Add tests/nan.h.
31116
31117         * tests/test-roundf1.c: Include nan.h.
31118         (main): Use NaNf instead of NAN.
31119         * modules/roundf-tests (Files): Add tests/nan.h.
31120
31121         * tests/test-truncf1.c: Include nan.h.
31122         (main): Use NaNf instead of NAN.
31123         * modules/truncf-tests (Files): Add tests/nan.h.
31124
31125         * tests/test-ceilf1.c: Include nan.h.
31126         (main): Use NaNf instead of NAN.
31127         * modules/ceilf-tests (Files): Add tests/nan.h.
31128
31129         * tests/test-floorf1.c: Include nan.h.
31130         (main): Use NaNf instead of NAN.
31131         * modules/floorf-tests (Files): Add tests/nan.h.
31132
31133         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31134         (main): Use NaNf instead of NAN.
31135         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31136
31137         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31138         (main): Use NaNd instead of NAN.
31139         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31140
31141         * tests/test-frexp.c: Include nan.h.
31142         (main): Use NaNd instead of NAN.
31143         * modules/frexp-tests (Files): Add tests/nan.h.
31144
31145         * lib/isnan.c: Don't include <math.h>.
31146         (FUNC): Don't use NAN macro.
31147         * modules/isnand-nolibm (Depends-on): Remove math.
31148         * modules/isnanf-nolibm (Depends-on): Remove math.
31149         * modules/isnanl (Depends-on): Remove math.
31150         * modules/isnanl-nolibm (Depends-on): Remove math.
31151
31152         * tests/nan.h: New file.
31153
31154 2008-04-01  Eric Blake  <ebb9@byu.net>
31155
31156         Fix typos.
31157         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31158         values to be the right type.
31159
31160         For now, cater to gnulib strtod inaccuracies.
31161         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31162         fractional results.  While not as nice from a QoI perspective, it
31163         is a quicker patch than correctly implementing decimal to binary
31164         rounding.
31165
31166 2008-03-31  Eric Blake  <ebb9@byu.net>
31167
31168         Guarantee a definition of NAN.
31169         * lib/math.in.h (NAN): Define if missing.
31170         * tests/test-math.c (main): Test it.
31171         * doc/posix-headers/math.texi (math.h): Document this.
31172         * lib/isnan.c (rpl_isnand): Use it.
31173         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31174         * tests/test-floorf1.c (NaN): Likewise.
31175         * tests/test-frexp.c (NaN): Likewise.
31176         * tests/test-isnand.c (NaN): Likewise.
31177         * tests/test-isnanf.c (NaN): Likewise.
31178         * tests/test-round1.c (NaN): Likewise.
31179         * tests/test-roundf1.c (NaN): Likewise.
31180         * tests/test-snprintf-posix.h (NaN): Likewise.
31181         * tests/test-sprintf-posix.h (NaN): Likewise.
31182         * tests/test-trunc1.c (NaN): Likewise.
31183         * tests/test-truncf1.c (NaN): Likewise.
31184         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31185         * tests/test-vasprintf-posix.c (NaN): Likewise.
31186         * modules/isnand-nolibm (Depends-on): Add math.
31187         * modules/isnanf-nolibm (Depends-on): Likewise.
31188         * modules/isnanl (Depends-on): Likewise.
31189         * modules/isnanl-nolibm (Depends-on): Likewise.
31190         * modules/snprintf-posix-tests (Depends-on): Likewise.
31191         * modules/sprintf-posix-tests (Depends-on): Likewise.
31192         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31193         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31194         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31195         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31196
31197 2008-03-31  Bruno Haible  <bruno@clisp.org>
31198
31199         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31200         * doc/posix-functions/strtod.texi: Likewise.
31201
31202 2008-03-31  Bruno Haible  <bruno@clisp.org>
31203
31204         * tests/test-strtod.c (main): Don't use C99 syntax.
31205
31206 2008-03-31  Bruno Haible  <bruno@clisp.org>
31207
31208         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31209         Reported by Eric Blake.
31210
31211 2008-03-31  Jim Meyering  <meyering@redhat.com>
31212
31213         Don't compare actual signbit return values.
31214         * tests/test-strtod.c (main): Rather, compare only their
31215         zero/non-zero nature.
31216
31217 2008-03-31  Eric Blake  <ebb9@byu.net>
31218
31219         More strtod documentation.
31220         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31221         failures as distinct bugs.
31222
31223 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31224
31225         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31226         Problem reported by Erik Benada in
31227         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31228
31229 2008-03-30  Bruno Haible  <bruno@clisp.org>
31230
31231         * tests/test-strtod.c: Add comments about which assertion fails on which
31232         platform.
31233         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31234
31235 2008-03-30  Eric Blake  <ebb9@byu.net>
31236
31237         Test signbit behavior on zeros.
31238         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31239         (test_signbitd, test_signbitl): Likewise.
31240
31241         More strtod touchups.
31242         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31243         sign of negative underflow, for now.  Use .5, not .1.
31244         * doc/posix-functions/strtod.texi (strtod): Mention these
31245         limitations.
31246         Reported by Jim Meyering.
31247
31248 2008-03-30  Bruno Haible  <bruno@clisp.org>
31249
31250         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31251         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31252
31253 2008-03-30  Bruno Haible  <bruno@clisp.org>
31254
31255         Avoid failure when attempting to return empty iconv results on some
31256         platforms.
31257         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31258         allocation, don't report ENOMEM when the resulting string is empty.
31259
31260 2008-03-30  Bruno Haible  <bruno@clisp.org>
31261
31262         Fix buffer overrun.
31263         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31264         Don't consider the width for tmp_length. Check count against tmp_length
31265         before doing the padding. Ensure enough allocation during padding.
31266
31267 2008-03-30  Eric Blake  <ebb9@byu.net>
31268
31269         strtod touchups.
31270         * lib/strtod.c (strtod): Avoid compiler warnings.
31271         Reported by Jim Meyering.
31272
31273 2008-03-30  Bruno Haible  <bruno@clisp.org>
31274
31275         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31276         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31277         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31278         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31279         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31280         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31281         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31282         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31283
31284         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31285         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31286         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31287         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31288         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31289         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31290         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31291         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31292
31293         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31294         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31295         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31296         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31297         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31298         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31299         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31300         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31301
31302         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31303         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31304
31305         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31306         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31307
31308         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31309         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31310
31311         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31313         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31314
31315         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31317         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31318
31319         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31321         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31322
31323         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31325         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31326
31327         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31328         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31330         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31331         (Depends-on): Add EOVERFLOW.
31332         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31333         (Depends-on): Add EOVERFLOW.
31334         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31335         (Depends-on): Add EOVERFLOW.
31336         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31337         (Depends-on): Add EOVERFLOW.
31338         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31339         (Depends-on): Add EOVERFLOW.
31340         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31341         (Depends-on): Add EOVERFLOW.
31342         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31343         (Depends-on): Add EOVERFLOW.
31344         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31345         (Depends-on): Add EOVERFLOW.
31346
31347         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31349         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31350
31351         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31353         * modules/snprintf (Depends-on): Add EOVERFLOW.
31354
31355         * lib/poll.c (EOVERFLOW): Remove fallback.
31356         * modules/poll (Depends-on): Add EOVERFLOW.
31357
31358         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31359         * modules/getugroups (Depends-on): Add EOVERFLOW.
31360
31361         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31362         * modules/getdelim (Depends-on): Add EOVERFLOW.
31363
31364         * lib/ftell.c (EOVERFLOW): Remove fallback.
31365         * modules/ftell (Depends-on): Add EOVERFLOW.
31366
31367         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31369         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31370
31371         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31372
31373         * modules/EOVERFLOW-tests: New file.
31374         * tests/test-EOVERFLOW.c: New file.
31375
31376         * modules/EOVERFLOW: New file.
31377         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31378
31379 2008-03-30  Bruno Haible  <bruno@clisp.org>
31380
31381         Fix bug introduced on 2007-06-10.
31382         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31383         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31384
31385 2008-03-30  Bruno Haible  <bruno@clisp.org>
31386
31387         Improve freadseek's efficiency after ungetc.
31388         * lib/freadseek.c: Include freadahead.h.
31389         (freadptrinc): New function, extracted from freadseek.
31390         (freadseek): Use it in a loop. Use freadahead to determine the number
31391         of loop iterations.
31392         * modules/freadseek (Depends-on): Add freadahead.
31393         (configure.ac): Require AC_C_INLINE.
31394
31395 2008-03-30  Bruno Haible  <bruno@clisp.org>
31396
31397         * lib/freadseek.c (freadseek): Don't ignore the return value of
31398         freadptr.
31399
31400 2008-03-29  Eric Blake  <ebb9@byu.net>
31401
31402         Add hex float support.
31403         * modules/strtod (Depends-on): Add c-ctype.
31404         (Link): Mention POW_LIB.
31405         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31406         whitespace between 'e' and exponent.
31407         * tests/test-strtod.c (main): Enable hex float tests.
31408         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31409         now provides.
31410
31411         Document various strtod bugs, with some fixes.
31412         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31413         "-0x", "inf", "nan", and hex constants.
31414         * doc/posix-functions/atof.texi (atof): Likewise.
31415         * modules/stdlib (Makefile.am): Support strtod.
31416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31417         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31418         detect additional strtod bugs.
31419         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31420         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31421         bool where appropriate.  Parse 'inf' and 'nan'.
31422         * tests/test-strtod.c: New file.
31423         * modules/strtod (Depends-on): Add stdbool, stdlib.
31424         (configure.ac): Turn on module indicator.
31425         * modules/strtod-tests: New module.
31426
31427 2008-03-29  Eric Blake  <ebb9@byu.net>
31428
31429         Fix ftell on mingw.
31430         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31431         * modules/ftell-tests (Depends-on): Add binary-io.
31432         * modules/ftello-tests (Depends-on): Likewise.
31433         * tests/test-ftell.c (main): Enhance test to cover behavior after
31434         ungetc.  Enforce binary mode.
31435         * tests/test-ftello.c (main): Likewise.
31436
31437         Pass test-freadseek on cygwin.
31438         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31439         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31440         ungetc buffer.
31441
31442         * tests/test-fflush2.c (main): Fix typo.
31443
31444 2008-03-29  Bruno Haible  <bruno@clisp.org>
31445
31446         * tests/test-fflush2.c (main): Temporarily disable the contents of
31447         this test.
31448         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31449         Reported by Eric Blake.
31450
31451 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31452
31453         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31454         (GC_SHA224_DIGEST_SIZE): Add.
31455
31456         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31457         (gc_hash_digest_length): Likewise.
31458         (gc_hash_buffer): Likewise.
31459
31460 2008-03-25  Bruno Haible  <bruno@clisp.org>
31461
31462         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31463         detail which gettext release to use.
31464         Reported by Simon Josefsson.
31465
31466 2008-03-26  Jim Meyering  <meyering@redhat.com>
31467
31468         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31469         * modules/gnumakefile (clean-GNUmakefile): Also, use
31470         test ... && ... || : syntax rather than if-then ... fi.
31471
31472         gnumakefile: Don't double-quote-expand $(VPATH) value.
31473         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31474
31475 2008-03-24  Eric Blake  <ebb9@byu.net>
31476
31477         Alter GNUmakefile to install into top directory.
31478         * modules/maintainer-makefile: Split, and add dependency...
31479         * modules/gnumakefile: to this new module.
31480         * build-aux/GNUmakefile: Move...
31481         * top/GNUmakefile: ...here.
31482         * build-aux/maint.mk: Move...
31483         * top/maint.mk: ...here.
31484         * MODULES.html.sh (Support for maintaining...): Document new
31485         module.
31486
31487 2008-03-23  Bruno Haible  <bruno@clisp.org>
31488
31489         * gnulib-tool: New options --vc-files, --no-vc-files.
31490         (func_usage): Document them.
31491         (vc_files): New variable.
31492         (func_import): Consider vc_files.
31493         (func_create_testdir): Set vc_files to empty.
31494         Suggested by Jim Meyering and Karl Berry.
31495
31496 2008-03-23  Bruno Haible  <bruno@clisp.org>
31497
31498         Fix regex compilation error on HP-UX 11.
31499         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31500         * modules/regex (Files): Add m4/mbstate_t.m4.
31501         Reported by Ton Voon <ton.voon@altinity.com>.
31502
31503 2008-03-23  Bruno Haible  <bruno@clisp.org>
31504
31505         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31506
31507 2008-03-23  Eric Blake  <ebb9@byu.net>
31508             Bruno Haible  <bruno@clisp.org>
31509
31510         Install files from top/ in the destination directory.
31511         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31512         augmentation also for the files from top/.
31513         (func_import, func_create_testdir): Rewrite file names:
31514         top/filename -> filename.
31515
31516 2008-03-23  Bruno Haible  <bruno@clisp.org>
31517
31518         Tweak "gnulib --version" output.
31519         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31520
31521 2008-03-23  Bruno Haible  <bruno@clisp.org>
31522
31523         Tweak "gnulib --version" output.
31524         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31525         rather than contents of ChangeLog, when possible.
31526
31527 2008-03-21  Eric Blake  <ebb9@byu.net>
31528
31529         More --version tweaks.
31530         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31531         date of last ChangeLog entry.
31532
31533 2008-03-21  Jim Meyering  <meyering@redhat.com>
31534
31535         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31536
31537 2008-03-20  Eric Blake  <ebb9@byu.net>
31538
31539         VPATH fix.
31540         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31541
31542 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31543
31544         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31545         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31546
31547 2008-03-20  Eric Blake  <ebb9@byu.net>
31548
31549         Sync GNUmakefile with coreutils.
31550         * build-aux/GNUmakefile (have-Makefile): Rename...
31551         (_have-Makefile): ...to this, for namespace consideration.
31552         (GNUmakefile.cfg): Include, if present.
31553         (_autoreconf): Define a default.
31554         (_is-dist-target): New rule for rebuilds to pick up intra-release
31555         version.
31556         (maint-cfg.mk): Rename...
31557         (cfg.mk): ...to this.
31558
31559 2008-03-18  Jim Meyering  <meyering@redhat.com>
31560
31561         New script and module: mktempd
31562         * MODULES.html.sh (maint+release support): Add mktempd.
31563         * build-aux/mktempd: New file.
31564         * modules/mktempd: New file.
31565
31566 2008-03-15  Jim Meyering  <meyering@redhat.com>
31567
31568         Undo last change.
31569         * lib/sha1.c, lib/md5.c: 63 != ~63.
31570         Reported by Andreas Schwab.
31571
31572         sha1.c, md5.c: Hoist a redundant expression.
31573         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31574         "ctx->buflen" only once, before calling *_process_block.
31575         * lib/md5.c (md5_process_bytes): Likewise.
31576
31577 2008-03-14  Eric Blake  <ebb9@byu.net>
31578
31579         Bump copyright year in files generated by gnulib-tool.
31580         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31581         gnulib-tool, rather than hard-coding it.
31582
31583         Fix 'gnulib-tool --version' output to work with git.
31584         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31585         (startup): ...here.
31586         (func_version): Use it to invoke git-version-gen, rather than
31587         relying on CVS keyword expansion.  Modernize wording.
31588         (cvsdatestamp, last_checkin_date, version): Kill unused
31589         variables.
31590
31591 2008-03-12  Jim Meyering  <meyering@redhat.com>
31592
31593         Recognize optional cast of the argument to free.
31594         * build-aux/useless-if-before-free: Update regexps.
31595
31596         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31597
31598 2008-03-11  Bruno Haible  <bruno@clisp.org>
31599
31600         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31601         by a single package.
31602         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31603         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31604         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31605         Reported by Sam Steingold <sds@gnu.org>.
31606
31607 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31608
31609         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31610         repositories.
31611
31612 2008-03-11  Bruno Haible  <bruno@clisp.org>
31613
31614         Avoid conflicts between local macro definitions.
31615         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31616         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31617
31618 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31619             Bruno Haible  <bruno@clisp.org>
31620
31621         Make va_copy work with some version of xlc on AIX 5.1.
31622         * lib/stdarg.in.h: New file.
31623         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31624         On AIX, use a <stdarg.h> file substitute.
31625         * modules/stdarg (Files): Add lib/stdarg.in.h.
31626         (Depends-on): Add include_next.
31627         (Makefile.am): Build a stdarg.h substitute if requested.
31628         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31629
31630 2008-03-10  Bruno Haible  <bruno@clisp.org>
31631
31632         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31633         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31634         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31635
31636 2008-03-10  Bruno Haible  <bruno@clisp.org>
31637
31638         * modules/stdlib (Depends-on): Add include_next, remove
31639         absolute-header.
31640
31641 2008-03-09  Bruno Haible  <bruno@clisp.org>
31642
31643         * lib/freadahead.h (freadahead): Document more precisely.
31644         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31645         the sum of both buffer sizes.
31646         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31647         * NEWS: Document the change.
31648
31649 2008-03-09  Bruno Haible  <bruno@clisp.org>
31650
31651         Extend freadptr to return also the buffer size.
31652         * lib/freadptr.h (freadptr): Add sizep argument.
31653         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31654         (freadptr): Add sizep argument. Determine buffer size like freadahead
31655         does.
31656         * tests/test-freadptr.c: Don't include freadahead.h.
31657         (main): Adapt for new calling convention of freadptr.
31658         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31659         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31660         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31661         tests/test-freadptr2.sh.
31662         (Depends): Remove freadahead.
31663         (TESTS): Add test-freadptr2.sh.
31664         (check_PROGRAMS): Add test-freadptr2.
31665
31666 2008-03-09  Bruno Haible  <bruno@clisp.org>
31667
31668         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31669         Report and solution by Simon Josefsson.
31670
31671 2008-03-06  Bruno Haible  <bruno@clisp.org>
31672
31673         Make fflush after ungetc work on BSD platforms.
31674         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31675         * tests/test-fflush2.c: New file.
31676         * tests/test-fflush2.sh: New file.
31677         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31678         tests/test-fflush2.c.
31679         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31680         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31681
31682 2008-03-06  Eric Blake  <ebb9@byu.net>
31683
31684         Likewise for ftello.
31685         * modules/ftello (Dependencies): Add extensions.
31686         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31687
31688 2008-03-06  Bruno Haible  <bruno@clisp.org>
31689
31690         * modules/fseeko (Dependencies): Add extensions.
31691         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31692         Needed on glibc systems.
31693
31694 2008-03-06  Bruno Haible  <bruno@clisp.org>
31695
31696         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31697         email address.
31698         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31699
31700 2008-03-06  Bruno Haible  <bruno@clisp.org>
31701
31702         * users.txt: Add libgnupdf.
31703
31704 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31705
31706         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31707         (Header File Substitutes, Function Substitutes,
31708         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31709         (Build robot for gnulib): Fix typo.
31710
31711 2008-03-06  Bruno Haible  <bruno@clisp.org>
31712
31713         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31714         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31715
31716 2008-03-06  Bruno Haible  <bruno@clisp.org>
31717
31718         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31719         * doc/gnulib.texi: Include it.
31720
31721 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31722
31723         * modules/func (License): Change license to unlimited; there was
31724         no LGPL parts in the module anyway.
31725
31726 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31727
31728         * modules/__func__: Renamed to modules/func.
31729         * modules/__func__-tests: Renamed to modules/func-tests.
31730         * tests/test-__func__.c: Renamed to tests/test-func.c.
31731         * m4/__func__.m4: Renamed to m4/func.m4.
31732         * doc/gnulib.texi (__func__): Section renamed to func.
31733         Suggested by Eric Blake <ebb9@byu.net>.
31734
31735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31736
31737         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31738         about __func__.  Make example self-contained.  Suggested by Eric
31739         Blake <ebb9@byu.net>.
31740
31741         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31742         Suggested by Eric Blake <ebb9@byu.net>.
31743
31744 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31745
31746         * modules/__func__: New file.
31747         * modules/__func__-tests: New file.
31748         * tests/test-__func__.c: New file.
31749         * m4/__func__.m4: New file.
31750         * doc/gnulib.texi (__func__): Document __func__ module.
31751
31752 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31753
31754         * modules/byteswap (License): Re-license as LGPLv2+.
31755
31756 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31757
31758         * doc/Makefile: Add pdf target.
31759
31760 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31761
31762         * modules/inline (License): Use 'unlimited', since there are only
31763         *.m4 files in this module.
31764
31765 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31766             Bruno Haible  <bruno@clisp.org>
31767
31768         Add support for HP C 7.1 on OpenVMS 8.3.
31769         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31770
31771 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31772
31773         Update VMS specifics.
31774         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31775
31776 2008-03-02  Jim Meyering  <meyering@redhat.com>
31777
31778         Remove the last dependency on the "free" module.
31779         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31780         Reported by Bob Proulx.
31781
31782         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31783
31784         Remove useless "if" tests before free.  Deprecate "free" module.
31785         * doc/posix-functions/free.texi: Mention that this
31786         module is no longer useful.
31787         * modules/free (Notice): Say this module is obsolete.
31788         * modules/readutmp (Depends-on): Remove free.
31789         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31790         * lib/putenv.c (putenv): Likewise.
31791         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31792         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31793         * tests/test-c-strcasestr.c (main): Likewise.
31794         * tests/test-c-strstr.c (main): Likewise.
31795         * tests/test-mbscasestr1.c (main): Likewise.
31796         * tests/test-mbscasestr2.c (main): Likewise.
31797         * tests/test-mbsstr1.c (main): Likewise.
31798         * tests/test-mbsstr2.c (main): Likewise.
31799         * tests/test-memmem.c (main): Likewise.
31800         * tests/test-strcasestr.c (main): Likewise.
31801         * tests/test-striconv.c (main): Likewise.
31802         * tests/test-striconveh.c (main): Likewise.
31803         * tests/test-striconveha.c (main): Likewise.
31804         * tests/test-strstr.c (main): Likewise.
31805
31806         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31807
31808         bootstrap: sync from coreutils again
31809         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31810
31811 2008-03-01  Jim Meyering  <meyering@redhat.com>
31812
31813         bootstrap: sync from coreutils
31814         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31815         also when the target doesn't exist.
31816
31817 2008-03-01  Eric Blake  <ebb9@byu.net>
31818
31819         Fix bugs in last patch.
31820         * lib/memchr2.c (memchr2): Fix typo.
31821         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31822         extension.
31823         Reported by Bruce Korb.
31824
31825         New module 'memchr2'.
31826         * modules/memchr2: New file.
31827         * modules/memchr2-tests: Likewise.
31828         * lib/memchr2.h: Likewise.
31829         * lib/memchr2.c: Likewise, based on memchr.c.
31830         * tests/test-memchr2.c: New test.
31831         * MODULES.html.sh (String handling): Add memchr2.
31832
31833 2008-02-29  Bruno Haible  <bruno@clisp.org>
31834
31835         * modules/freadseek-tests: New file.
31836         * tests/test-freadseek.sh: New file.
31837         * tests/test-freadseek.c: New file.
31838
31839         New module 'freadseek'.
31840         * modules/freadseek: New file.
31841         * lib/freadseek.h: New file.
31842         * lib/freadseek.c: New file.
31843         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31844
31845 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31846
31847         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
31848         wydawca.
31849
31850         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
31851         program_invocation_name and program_invocation_short_name are
31852         present.
31853
31854 2008-02-28  Bruno Haible  <bruno@clisp.org>
31855
31856         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
31857         * tests/test-freadptr.sh: Also test non-seekable stdin.
31858
31859 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
31860
31861         * build-aux/bootstrap (source_base, m4_base)
31862         (doc_base, tests_base): New variables.
31863         (gnulib_tool_options): Do not hardcode base directories, use
31864         the above variables instead.
31865
31866 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
31867
31868         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
31869
31870 2008-02-28  Bruno Haible  <bruno@clisp.org>
31871
31872         * modules/freadptr-tests: New file.
31873         * tests/test-freadptr.sh: New file.
31874         * tests/test-freadptr.c: New file.
31875
31876         New module 'freadptr'.
31877         * modules/freadptr: New file.
31878         * lib/freadptr.h: New file.
31879         * lib/freadptr.c: New file.
31880         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
31881
31882 2008-02-26  Karl Berry  <karl@freefriends.org>
31883
31884         Sync from Libtool:
31885         * libltdl/argz.c (argz_add, argz_count): New functions.
31886         * libltdl/argz.in.h: Declare them.
31887         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
31888
31889 2008-02-22  Bruno Haible  <bruno@clisp.org>
31890
31891         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
31892         is a pointer type.  Needed for HP-UX 10.
31893         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
31894         * doc/posix-functions/gmtime_r.texi: Likewise.
31895         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31896
31897 2008-02-24  Bruno Haible  <bruno@clisp.org>
31898
31899         * modules/environ-tests: New file.
31900         * tests/test-environ.c: New file.
31901
31902         New module 'environ'.
31903         * modules/environ: New file.
31904         * lib/unistd.in.h (environ): New declaration.
31905         * m4/environ.m4: New file.
31906         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
31907         after use.
31908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
31909         HAVE_DECL_ENVIRON.
31910         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
31911         HAVE_DECL_ENVIRON.
31912         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
31913         wrong claim that 'environ' is missing on some systems.
31914         * modules/execute (Depends-on): Add environ.
31915         * lib/execute.c (environ): Remove fallback declaration.
31916         * modules/pipe (Depends-on): Add environ.
31917         * lib/pipe.c (environ): Remove fallback declaration.
31918         * modules/setenv (Depends-on): Add environ.
31919         * lib/setenv.c (environ): Remove fallback declaration.
31920         * modules/unsetenv (Depends-on): Add environ.
31921         * lib/unsetenv.c (environ): Remove fallback declaration.
31922         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
31923         m4/environ.m4.
31924         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
31925         (gl_PREREQ_UNSETENV): Likewise.
31926
31927 2008-02-24  Bruno Haible  <bruno@clisp.org>
31928
31929         * doc/posix-functions/environ.texi: Document the MacOS X problem.
31930
31931 2008-02-20  Bob Proulx  <bob@proulx.com>
31932
31933         Enable use of older two part flavor 'git describe'.
31934         * build-aux/git-version-gen: If using the older two part flavor of
31935         git version then recreate the third part now present in the
31936         newer three part flavor of git describe.
31937
31938 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
31939
31940         * lib/fts.c (fts_build): Typo correction to comment.
31941
31942 2008-02-17  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
31945         generating no-op conflicts.
31946
31947 2008-02-17  Bruno Haible  <bruno@clisp.org>
31948
31949         Speed up by 10%.
31950         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
31951         result_entries, rather than an index-based loop.
31952
31953 2008-02-17  Bruno Haible  <bruno@clisp.org>
31954
31955         Speed up by 25%.
31956         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
31957         'hashcode_cached'.
31958         (entry_create): New function.
31959         (entry_hashcode): Use the cached hashcode if possible.
31960         (read_changelog_file, try_split_merged_entry): Use entry_create.
31961
31962 2008-02-17  Bruno Haible  <bruno@clisp.org>
31963
31964         Speed up from O(n^2) to O(n) for long ChangeLog files.
31965         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
31966         (read_changelog_file): Change implementation of entries_reversed list
31967         to rbtreehash.
31968         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
31969
31970 2008-02-17  Bruno Haible  <bruno@clisp.org>
31971
31972         New option --split-merged-entry.
31973         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
31974         (find_paragraph_end, try_split_merged_entry): New functions.
31975         (long_options): Add option --split-merged-entry.
31976         (usage): Document option --split-merged-entry.
31977         (main): Implement option --split-merged-entry.
31978         Reported by Eric Blake.
31979
31980 2008-02-17  Bruno Haible  <bruno@clisp.org>
31981
31982         * lib/git-merge-changelog.c: Include c-strstr.h.
31983         (main): Support the "git pull --rebase" situation.
31984         * modules/git-merge-changelog (Depends-on): Add c-strstr.
31985         Reported by Eric Blake.
31986
31987 2008-02-16  Eric Blake  <ebb9@byu.net>
31988
31989         Avoid doubling \ in common case of "c-maybe" quoting style.
31990         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
31991         eliding outer quotes.
31992         * lib/quotearg.h: Document this.
31993         * tests/test-quotearg.c (result_strings, inputs, results_g)
31994         (flag_results, locale_results): Test it by adding a new string to
31995         each test group.
31996         (compare_strings): Test new string.
31997
31998 2008-02-13  Eric Blake  <ebb9@byu.net>
31999
32000         Avoid trigraph quoting in default output.
32001         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32002         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32003         unless explicitly requested.
32004         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32005
32006 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32007
32008         Don't rely on signed integer overflowing to negative value.
32009         * lib/getugroups.c (getugroups): Include <limits.h>.
32010         Instead, compare against INT_MAX, and increment only if the test passes.
32011
32012 2008-02-13  Jim Meyering  <meyering@redhat.com>
32013         and Eric Blake  <ebb9@byu.net>
32014
32015         Avoid shadowing warning and compile errors on Linux.
32016         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32017         forwarding macros on Linux.
32018         (dcgettext): Define a stub, for Linux.
32019         (results_g, main): Avoid warnings.
32020
32021 2008-02-12  Eric Blake  <ebb9@byu.net>
32022
32023         Silence warning in last patch.
32024         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32025
32026         Quotearg part 4: add tests, fix c-maybe colon quoting.
32027         * lib/quotearg.h: Improve documentation.
32028         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32029         escapes when adding outer quotes.  When quoting trigraphs, use
32030         valid C notation.  When quoting NUL, omit extra characters if next
32031         character is not digit.  Alter prototype.
32032         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32033         callers.
32034         * modules/quotearg-tests: New module.
32035         * tests/test-quotearg.c: New test.
32036
32037 2008-02-07  Eric Blake  <ebb9@byu.net>
32038
32039         Quotearg part 3: add flag to control outer quote elision.
32040         * lib/quotearg.h (c_maybe_quoting_style): New style.
32041         (enum quoting_flags): Better documentation of flags.
32042         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32043         c-maybe style.
32044         (quotearg_buffer_restyled): Handle new flag to elide outer
32045         quotes.
32046
32047         Quotearg part 2: add flag that can control NUL elision.
32048         * lib/quotearg.h (set_quoting_flags): New prototype.
32049         * lib/quotearg.c (struct quoting_options): Add flag field.
32050         (set_quoting_flags): New function.
32051         (quotearg_buffer_restyled): Add flags parameter.
32052         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32053         (quotearg_n_options): Set the flag, since length cannot be
32054         returned.
32055         (quoting_options_from_style): Default flags correctly.
32056
32057         Quotearg part 1: more wrappers, restore quotearg_char state.
32058         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32059         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32060         (quotearg_colon_mem): New wrappers.
32061         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32062         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32063         functions.
32064         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32065         (quotearg_colon_mem): New functions.
32066
32067 2008-02-11  Bruno Haible  <bruno@clisp.org>
32068
32069         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32070         library in the current directory: it does not work with parallel make.
32071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32072
32073 2008-02-11  Bruno Haible  <bruno@clisp.org>
32074
32075         * .gitattributes: New file.
32076
32077 2008-02-11  Jim Meyering  <meyering@redhat.com>
32078
32079         useless-if-before-free: Fix reversed exit values.
32080         * build-aux/useless-if-before-free: Use correct values
32081         for EXIT_MATCH and EXIT_NO_MATCH.
32082
32083         * build-aux/useless-if-before-free: Close stdout carefully.
32084
32085 2008-02-10  Bruno Haible  <bruno@clisp.org>
32086
32087         New module 'git-merge-changelog'.
32088         * modules/git-merge-changelog: New file.
32089         * lib/git-merge-changelog.c: New file.
32090
32091 2008-02-10  Jim Meyering  <meyering@redhat.com>
32092
32093         useless-if-before-free: New option: --list (-l).
32094
32095         useless-if-before-free: Don't exit immediately upon open failure.
32096         * build-aux/useless-if-before-free: Exit 2 for errors.
32097         Upon failure to open a file, don't exit immediately.
32098         Rather, just warn and continue with any remaining files.
32099
32100 2008-02-10  Bruno Haible  <bruno@clisp.org>
32101
32102         New abstract list operation 'node_set_value'.
32103         * lib/gl_list.h (gl_list_node_set_value): New function.
32104         (struct gl_list_implementation): New field node_set_value.
32105         * lib/gl_list.c (gl_list_node_set_value): New function.
32106         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32107         (gl_array_list_implementation): Update.
32108         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32109         (gl_carray_list_implementation): Update.
32110         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32111         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32112         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32113         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32114         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32115         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32116         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32117         Update.
32118         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32119         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32120         (gl_sublist_list_implementation): Update.
32121
32122 2008-02-10  Bruno Haible  <bruno@clisp.org>
32123
32124         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32125         Needed when ELEMENT is #defined to 'some_type *'.
32126
32127 2008-02-10  Jim Meyering  <meyering@redhat.com>
32128
32129         New script and module: useless-if-before-free
32130         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32131         * build-aux/useless-if-before-free: New file.
32132         * modules/useless-if-before-free: New file.
32133
32134         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32135
32136         xstrtol_error: Fix typo.
32137         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32138         s/exit_failure/exit_status/.
32139
32140 2008-02-09  Jim Meyering  <meyering@redhat.com>
32141
32142         New script and module: gitlog-to-changelog
32143         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32144         * modules/gitlog-to-changelog: New file.
32145         * build-aux/gitlog-to-changelog: New file.
32146
32147 2008-02-08  Jim Meyering  <meyering@redhat.com>
32148
32149         Avoid two "parameter unused" warnings.
32150         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32151         Mark "st" as used.
32152
32153         Use "git COMMAND", not "git-COMMAND".
32154         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32155         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32156         * build-aux/git-version-gen: Use "git status", not "git-status".
32157
32158 2008-02-07  Bruno Haible  <bruno@clisp.org>
32159
32160         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32161         Avoids a crash on Windows Vista.
32162         Reported by Adam Strzelecki <ono@java.pl> via
32163         Simon Josefsson <simon@josefsson.org>.
32164
32165 2008-02-06  Bruno Haible  <bruno@clisp.org>
32166
32167         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32168         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32169         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32171         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32173         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32174         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32179         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32180         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32182         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32183         left-adjust flag.
32184         * tests/test-snprintf-posix.h (test_function): Likewise.
32185         * tests/test-sprintf-posix.h (test_function): Likewise.
32186         * tests/test-vasprintf-posix.c (test_function): Likewise.
32187         * doc/posix-functions/fprintf.texi: Update.
32188         * doc/posix-functions/printf.texi: Update.
32189         * doc/posix-functions/snprintf.texi: Update.
32190         * doc/posix-functions/sprintf.texi: Update.
32191         * doc/posix-functions/vfprintf.texi: Update.
32192         * doc/posix-functions/vprintf.texi: Update.
32193         * doc/posix-functions/vsnprintf.texi: Update.
32194         * doc/posix-functions/vsprintf.texi: Update.
32195         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32196
32197 2008-02-06  Bruno Haible  <bruno@clisp.org>
32198
32199         Fix bug introduced on 2008-01-26.
32200         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32201
32202 2008-02-06  Bruno Haible  <bruno@clisp.org>
32203
32204         Fix bug introduced on 2007-06-10.
32205         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32206         !NEED_PRINTF_FLAG_ZERO.
32207
32208 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32209
32210         getloadavg: use libperfstat on AIX5
32211         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32212
32213 2008-02-03  Bruno Haible  <bruno@clisp.org>
32214
32215         * lib/diffseq.h: Add comments about required #includes.
32216         Reported by Michael Biggs <gnulib@doubleplum.net>.
32217
32218 2008-02-01  Bruno Haible  <bruno@clisp.org>
32219
32220         * users.txt: Add gnuit.
32221
32222 2008-01-31  Bruno Haible  <bruno@clisp.org>
32223
32224         * lib/md4.c (set_uint32): Mark as inline.
32225         * lib/md5.c (set_uint32): Likewise.
32226         * lib/sha1.c (set_uint32): Likewise.
32227         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32228         * m4/md5.m4 (gl_MD5): Likewise.
32229         * m4/sha1.m4 (gl_SHA1): Likewise.
32230
32231 2008-01-31  Jim Meyering  <meyering@redhat.com>
32232
32233         Use "sizeof VAR", rather than a literal "4".
32234         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32235         * lib/md4.c (md4_read_ctx): Likewise.
32236         * lib/sha1.c (sha1_read_ctx): Likewise.
32237
32238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32239
32240         * tests/test-sha1.c: New file, based on test-md5.c.
32241
32242         * modules/crypto/sha1-tests: New file.
32243
32244 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32245
32246         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32247
32248 2008-01-31  Jim Meyering  <meyering@redhat.com>
32249
32250         Prefer "sizeof v" over the equivalent "4".
32251         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32252         * lib/md5.c (set_uint32): Likewise.
32253         * lib/sha1.c (set_uint32): Likewise.
32254
32255 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32256
32257         * lib/sha1.c (set_uint32): Mark function as static.
32258
32259 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32260
32261         md2: clarify comments to say that alignment is not required.
32262         * lib/md2.h: Remove warning about alignment in comment.
32263         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32264         never been required.
32265
32266 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32267
32268         md4: adapt alignment constraint fix from sha1.
32269         * lib/md4.c (set_uint32): New function, from sha1.c
32270         (md4_read_ctx): Use it.
32271         (md4_finish_ctx): Doc fix.
32272         * lib/md4.h: Doc fix.
32273
32274 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32275
32276         md5: adapt alignment constraint fix from sha1.
32277         * lib/md5.c (set_uint32): New function, from sha1.c
32278         (md5_read_ctx): Use it.
32279         (md5_finish_ctx): Doc fix.
32280         * lib/md5.h: Doc fix.
32281
32282 2008-01-30  Peter Palfrader  <weasel@debian.org>
32283
32284         sha1: remove the result buffer alignment constraint
32285         * lib/sha1.c (set_uint32): New function.
32286         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32287         constraint.
32288         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32289         * lib/sha1.h: Likewise.
32290
32291 2008-01-30  Andreas Schwab  <schwab@suse.de>
32292             Bruno Haible  <bruno@clisp.org>
32293
32294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32295         correct definition of LDBL_MIN_EXP.
32296
32297 2008-01-30  Karl Berry  <karl@gnu.org>
32298
32299         * config/srclist-update: try to preserve x bit on updates.
32300         * config/srclistvars.sh: update for karl.
32301
32302 2008-01-29  Jim Meyering  <meyering@redhat.com>
32303
32304         vasnprintf.c: Avoid warning about unused label
32305         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32306         "overflow" label definition and associated code with the
32307         same cpp condition that guards the sole use of that label.
32308
32309 2008-01-26  Bruno Haible  <bruno@clisp.org>
32310
32311         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32312         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32313         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32314         * lib/isnanl-nolibm.h (isnanl): Likewise.
32315         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32316
32317 2008-01-26  Bruno Haible  <bruno@clisp.org>
32318
32319         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32320         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32321
32322 2008-01-26  Bruno Haible  <bruno@clisp.org>
32323
32324         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32325         GCC >= 4.0 built-in.
32326         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32327
32328 2008-01-26  Bruno Haible  <bruno@clisp.org>
32329
32330         Rename isnan, applicable to 'double' only, to isnand.
32331         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32332         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32333         (configure.ac): Update.
32334         (Include): Replace "isnan.h" with "isnand.h".
32335         * m4/isnand.m4: Renamed from m4/isnan.m4.
32336         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32337         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32338         instead of isnan.c.
32339         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32340         instead of HAVE_ISNAN_IN_LIBC.
32341         (isnand): Renamed from isnan.
32342         * lib/isnand.c: New file.
32343         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32344         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32345         (Makefile.am): Update.
32346         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32347         Include isnand.h instead of isnan.h.
32348         (main): Test isnand instead of isnan.
32349         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32350         isnan-nolibm.
32351         * modules/frexp (Depends-on): Likewise.
32352         * modules/frexp-tests (Depends-on): Likewise.
32353         * modules/frexp-nolibm (Depends-on): Likewise.
32354         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32355         * modules/isfinite (Depends-on): Likewise.
32356         * modules/round-tests (Depends-on): Likewise.
32357         * modules/signbit (Depends-on): Likewise.
32358         * modules/signbit-tests (Depends-on): Likewise.
32359         * modules/snprintf-posix (Depends-on): Likewise.
32360         * modules/sprintf-posix (Depends-on): Likewise.
32361         * modules/trunc-tests (Depends-on): Likewise.
32362         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32363         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32364         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32365         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32366         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32367         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32368         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32369         * modules/vasnprintf-posix (Depends-on): Likewise.
32370         * modules/vasprintf-posix (Depends-on): Likewise.
32371         * modules/vfprintf-posix (Depends-on): Likewise.
32372         * modules/vsnprintf-posix (Depends-on): Likewise.
32373         * modules/vsprintf-posix (Depends-on): Likewise.
32374         * lib/frexp.c: Include isnand.h instead of isnan.h.
32375         (ISNAN): Set to isnand instead of isnan.
32376         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32377         (gl_isfinited): Use isnand instead of isnan.
32378         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32379         (gl_signbitd): Use isnand instead of isnan.
32380         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32381         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32382         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32383         (main): Use isnand instead of isnan.
32384         * tests/test-round1.c: Include isnand.h.
32385         (main): Use isnand instead of isnan.
32386         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32387         (ISNAN): Set to isnand instead of isnan.
32388         * tests/test-trunc1.c: Include isnand.h.
32389         (main): Use isnand instead of isnan.
32390         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32391         (equal): Use isnand instead of isnan.
32392         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32393         isnand-nolibm.
32394         * NEWS: Mention the change.
32395
32396 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32397             Bruno Haible  <bruno@clisp.org>
32398
32399         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32400         the GCC builtins for signbits are present and set
32401         REPLACE_SIGNBIT_USING_GCC if so.
32402         * lib/math.in.h (signbit): Define using GCC builtins if
32403         REPLACE_SIGNBIT_USING_GCC is set.
32404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32405         REPLACE_SIGNBIT_USING_GCC.
32406         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32407
32408 2008-01-25  Jim Meyering  <meyering@redhat.com>
32409
32410         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32411         * lib/poll.c: Include <config.h>, not "config.h".
32412         * tests/test-getaddrinfo.c: Likewise.
32413
32414 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32415
32416         * modules/sockets-tests: New file.
32417
32418 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32419
32420         * modules/sockets: New module, can be used to call WSA_Startup and
32421         WSA_Cleanup when needed.
32422
32423         * lib/sockets.h, lib/sockets.c: New files.
32424
32425         * m4/sockets.m4: New file.
32426
32427         * tests/test-sockets.c: New file.
32428
32429 2008-01-19  Bruno Haible  <bruno@clisp.org>
32430
32431         * doc/posix-headers: Renamed from doc/headers.
32432         * doc/posix-functions: Renamed from doc/functions.
32433         * doc/gnulib.texi: Update.
32434
32435 2008-01-19  Bruno Haible  <bruno@clisp.org>
32436
32437         * doc/glibc-functions/strcasestr.texi: Include contents of
32438         doc/functions/strcasestr.texi, fixing the list of platforms.
32439         * doc/functions/strcasestr.texi: Remove file.
32440
32441 2008-01-19  Bruno Haible  <bruno@clisp.org>
32442
32443         * doc/glibc-functions/memmem.texi: Include contents of
32444         doc/functions/memmem.texi.
32445         * doc/functions/memmem.texi: Remove file.
32446
32447 2008-01-18  Bruno Haible  <bruno@clisp.org>
32448
32449         * doc/glibc-functions/*.texi: New files.
32450         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32451         to use the new files.
32452
32453 2008-01-17  Bruno Haible  <bruno@clisp.org>
32454
32455         * tests/test-gethostname.c (main): Fix printf statement.
32456
32457 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32458
32459         * modules/gethostname-tests: New file.
32460
32461         * tests/test-gethostname.c: New file.
32462
32463 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32464
32465         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32466         used by the UNAME case.  Reported by Bruno Haible
32467         <bruno@clisp.org>.
32468
32469 2008-01-17  Eric Blake  <ebb9@byu.net>
32470
32471         Convert c-strcasestr to be more efficient.
32472         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32473         (Depends-on): Add c-strcase, remove malloca, strnlen.
32474         * tests/test-c-strcasestr.c (main): Enhance test.
32475         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32476
32477 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32478
32479         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32480         Use it in creating po/Makevars.
32481
32482 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32483
32484         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32485         Applications that requires it should initialize libgcrypt
32486         manually.
32487
32488 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32489
32490         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32491
32492 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32493
32494         Fix problem with getdate on mingw32 reported by Simon Josefsson
32495         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32496         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32497         tzname", when deciding whether to declare tzname.
32498         * lib/strftime.c (tzname): Likewise.
32499
32500 2008-01-15  Bruno Haible  <bruno@clisp.org>
32501
32502         Work around a MacOS X 10.5 bug in frexpl().
32503         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32504         * doc/functions/frexpl.texi: Document the bug.
32505         Reported by Elias Pipping <pipping@gentoo.org>.
32506
32507 2008-01-14  Eric Blake  <ebb9@byu.net>
32508
32509         Touch up previous patch.
32510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32511         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32512
32513         Convert strcasestr module to use Two-Way algorithm.
32514         * modules/strcasestr-simple: New module, based on the old
32515         strcasestr, but with Two-Way rather than KMP.
32516         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32517         * lib/string.in.h (rpl_strcasestr): Declare.
32518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32519         performance.
32520         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32521         * modules/string (Makefile.am): Support strcasestr.
32522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32523         * modules/strcasestr-tests (Depends-on): Check for alarm.
32524         * tests/test-strcasestr.c: Augment test.
32525         * lib/str-two-way.h: Clean up stray macro.
32526         * NEWS: Document new module.
32527         * MODULES.html.sh (string handling): Likewise.
32528         * doc/functions/strcasestr.texi: New file.
32529         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32530         here, since it is not a POSIX function.
32531
32532 2008-01-14  Colin Watson  <cjwatson@debian.org>
32533             Bruno Haible  <bruno@clisp.org>
32534
32535         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32536         works fine; if not, set REPLACE_STRSIGNAL.
32537         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32539         REPLACE_STRSIGNAL.
32540         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32541         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32542         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32543
32544 2008-01-14  Bruno Haible  <bruno@clisp.org>
32545
32546         * modules/strsignal (Include): Change to <string.h>.
32547
32548 2008-01-14  Colin Watson  <cjwatson@debian.org>
32549
32550         * modules/argp (Notice): Add a notice recommending to change
32551         XGETTEXT_OPTIONS.
32552         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32553
32554 2008-01-13  Colin Watson  <cjwatson@debian.org>
32555
32556         * modules/strsignal-tests: New file.
32557         * tests/test-strsignal.c: New file.
32558
32559         * lib/strsignal.c: New file, from glibc with modifications.
32560         * lib/siglist.h: New file, from glibc with modifications.
32561         * lib/string.in.h (strsignal): New declaration.
32562         * m4/strsignal.m4: New file.
32563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32564         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32565         * modules/strsignal: New file.
32566         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32567         HAVE_DECL_STRSIGNAL.
32568
32569 2008-01-13  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32572         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32573         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32574         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32575
32576 2008-01-13  Bruno Haible  <bruno@clisp.org>
32577
32578         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32579         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32580         * lib/argp.h (__attribute__): Likewise.
32581         * lib/c-stack.c (__attribute__): Likewise.
32582         * lib/error.h (__attribute__): Likewise.
32583         * lib/fts.c (__attribute__): Likewise.
32584         * lib/openat.h (__attribute__): Likewise.
32585         * lib/stdio.in.h (__attribute__): Likewise.
32586         * lib/string.in.h (__attribute__): Likewise.
32587         * lib/utimens.c (__attribute__): Likewise.
32588         * lib/vasnprintf.h (__attribute__): Likewise.
32589         * lib/xalloc.h (__attribute__): Likewise.
32590         * lib/xprintf.h (__attribute__): Likewise.
32591         * lib/xstrtol.h (__attribute__): Likewise.
32592         * lib/xvasprintf.h (__attribute__): Likewise.
32593
32594 2008-01-12  Bruno Haible  <bruno@clisp.org>
32595
32596         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32597         * doc/glibc-headers/a.out.texi: New file.
32598         * doc/glibc-headers/aliases.texi: New file.
32599         * doc/glibc-headers/alloca.texi: New file.
32600         * doc/glibc-headers/ar.texi: New file.
32601         * doc/glibc-headers/argp.texi: New file.
32602         * doc/glibc-headers/argz.texi: New file.
32603         * doc/glibc-headers/byteswap.texi: New file.
32604         * doc/glibc-headers/crypt.texi: New file.
32605         * doc/glibc-headers/endian.texi: New file.
32606         * doc/glibc-headers/envz.texi: New file.
32607         * doc/glibc-headers/err.texi: New file.
32608         * doc/glibc-headers/error.texi: New file.
32609         * doc/glibc-headers/execinfo.texi: New file.
32610         * doc/glibc-headers/fpu_control.texi: New file.
32611         * doc/glibc-headers/fstab.texi: New file.
32612         * doc/glibc-headers/fts.texi: New file.
32613         * doc/glibc-headers/getopt.texi: New file.
32614         * doc/glibc-headers/ieee754.texi: New file.
32615         * doc/glibc-headers/ifaddrs.texi: New file.
32616         * doc/glibc-headers/libintl.texi: New file.
32617         * doc/glibc-headers/mcheck.texi: New file.
32618         * doc/glibc-headers/mntent.texi: New file.
32619         * doc/glibc-headers/obstack.texi: New file.
32620         * doc/glibc-headers/paths.texi: New file.
32621         * doc/glibc-headers/printf.texi: New file.
32622         * doc/glibc-headers/pty.texi: New file.
32623         * doc/glibc-headers/resolv.texi: New file.
32624         * doc/glibc-headers/shadow.texi: New file.
32625         * doc/glibc-headers/sysexits.texi: New file.
32626         * doc/glibc-headers/ttyent.texi: New file.
32627
32628 2008-01-12  Jim Meyering  <meyering@redhat.com>
32629
32630         announce-gen: emit Gnulib's git-based version string.
32631         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32632         New option --gnulib-version=V, where V is expected to be
32633         the output of running git describe in the gnulib directory.
32634         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32635         not useful, and plan to stop publishing an xdelta file with each
32636         coreutils release.
32637
32638         * build-aux/announce-gen: Also check for lzma-compressed files.
32639
32640 2008-01-11  Bruno Haible  <bruno@clisp.org>
32641
32642         * tests/test-memmem.c (main): Increase maximum allowed time.
32643         * tests/test-strstr.c (main): Likewise.
32644
32645 2008-01-11  Bruno Haible  <bruno@clisp.org>
32646
32647         * doc/functions/memmem.texi: Add more precisions about platforms.
32648         * doc/functions/strstr.texi: Likewise.
32649
32650 2008-01-10  Eric Blake  <ebb9@byu.net>
32651
32652         * m4/strstr.m4: Delete cruft from copy-n-paste.
32653         Reported by Bruno Haible.
32654
32655 2008-01-10  Bruno Haible  <bruno@clisp.org>
32656
32657         Make c-strstr rely on strstr.
32658         * lib/c-strstr.c: Don't include str-kmp.h.
32659         (c_strstr): Define in terms of strstr.
32660         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32661         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32662
32663 2008-01-10  Bruno Haible  <bruno@clisp.org>
32664
32665         * doc/gnulib.texi (String Functions in C Locale): New section.
32666         * doc/c-ctype.texi: New file.
32667         * doc/c-strcase.texi: New file.
32668         * doc/c-strcaseeq.texi: New file.
32669         * doc/c-strcasestr.texi: New file.
32670         * doc/c-strstr.texi: New file.
32671         * doc/c-strtod.texi: New file.
32672         * doc/c-strtold.texi: New file.
32673
32674 2008-01-10  Eric Blake  <ebb9@byu.net>
32675
32676         * lib/relocatable.h: Fix a comment.
32677
32678 2008-01-10  Eric Blake  <ebb9@byu.net>
32679
32680         Share two-way algorithm.
32681         * lib/str-two-way.h: New file, merged from...
32682         * lib/memmem.c: ...here...
32683         * lib/strstr.c: ...and here.
32684         * modules/memmem (Files): Use it.
32685         * modules/strstr (Files): Likewise.
32686
32687         Avoid quadratic strstr implementations.
32688         * lib/strstr.c: New file.
32689         * m4/strstr.m4: Likewise.
32690         * modules/strstr: Likewise.
32691         * modules/strstr-tests: Likewise.
32692         * tests/test-strstr.c: Likewise.
32693         * lib/string.in.h (rpl_strstr): Declare.
32694         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32696         * modules/string (Makefile.am): Likewise.
32697         * MODULES.html.sh (string handling): Mention new module.
32698         * doc/functions/strstr.texi (strstr): Document the bug.
32699
32700 2008-01-10  Bruno Haible  <bruno@clisp.org>
32701
32702         * lib/relocatable.h (relocate): State whether result is freshly
32703         allocated or not.
32704         * lib/relocatable.c (relocate): Return a freshly allocated string
32705         instead of a pointer to a privately held string.
32706         Reported by Sylvain Beucler <beuc@gnu.org>.
32707
32708 2008-01-10  Colin Watson  <cjwatson@debian.org>
32709
32710         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32711         s/S_ISNLK/S_ISLNK/.
32712
32713 2008-01-09  Bruno Haible  <bruno@clisp.org>
32714
32715         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32716         and other files.
32717         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32718         if it's only a guess.
32719         * modules/memmem: Simplify by depending on memmem-simple.
32720
32721 2008-01-09  Bruno Haible  <bruno@clisp.org>
32722
32723         Work around OpenBSD 4.0 tdelete() bug.
32724         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32725         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32726         macros and don't redefine the enum values.
32727         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32728         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32729         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32730
32731 2008-01-09  Bruno Haible  <bruno@clisp.org>
32732
32733         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32734         (main): Don't perform the tests if setlocale did not install a UTF-8
32735         locale. Needed on OpenBSD 4.0.
32736         * modules/wcwidth-tests (Depends-on): Add localcharset.
32737
32738 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32739
32740         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32741         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32742         * NEWS: announce this.
32743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32744
32745 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32746         and Eric Blake  <ebb9@byu.net>
32747
32748         Add memmem-simple module.
32749         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32750         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32751         * modules/memmem-simple: New file.
32752         * modules/memmem (Description): Tweak.
32753         * MODULES.html.sh (string handling): Mention new module.
32754         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32755         addressed by memmem-simple.
32756         * NEWS: Document the difference.
32757
32758 2008-01-09  Eric Blake  <ebb9@byu.net>
32759
32760         Give gcc some memmem optimization hints.
32761         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32762         (strcasestr): Declare as pure.
32763         * modules/memmem (Maintainer): Claim my implementation.
32764
32765 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32766
32767         Support AIX 6.1 and higher.
32768         * build-aux/config.libpath: Likewise.
32769         * build-aux/config.rpath: Likewise.
32770
32771 2008-01-08  Jim Meyering  <meyering@redhat.com>
32772             Bruno Haible  <bruno@clisp.org>
32773
32774         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32775         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32776         Reported by Peter Fales in
32777         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32778
32779 2008-01-08  Bruno Haible  <bruno@clisp.org>
32780
32781         * modules/unictype/category-of (Depends-on): Add
32782         unictype/category-none.
32783         * modules/unictype/category-and-tests (Depends-on): Add
32784         unictype/category-{L,N,Lu,Nd}.
32785         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32786         * modules/unictype/category-or-tests (Depends-on): Add
32787         unictype/category-{L,N}.
32788         * modules/unictype/category-name-tests (Depends-on): Add
32789         unictype/category-{Z,Nl}.
32790         Reported by Simon Josefsson.
32791
32792 2008-01-08  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32795         convention better.
32796         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32797         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32798         Reported by Peter Miller <millerp@canb.auug.org.au>.
32799
32800 2008-01-08  Eric Blake  <ebb9@byu.net>
32801
32802         Rewrite memmem to guarantee linear complexity without malloc.
32803         * lib/memmem.c (memmem): Use Two-Way rather than
32804         Knuth-Morris-Pratt, to allow O(1) space usage.
32805         (critical_factorization, two_way_short_needle)
32806         (two_way_long_needle): New functions.
32807         (knuth_morris_pratt): Delete.
32808         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32809         Add stdint.
32810         * tests/test-memmem.c (main): Add tests for periodic needle and
32811         sublinear performance.
32812         * doc/functions/memmem.texi (memmem): Document other deficiencies
32813         in cygwin and older glibc.
32814
32815 2008-01-08  Bruno Haible  <bruno@clisp.org>
32816
32817         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32818         augmentation.
32819
32820 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32821
32822         Add a configure time option: --disable-acl.
32823         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32824         AC_ARG_ENABLE(acl).
32825
32826 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32827
32828         * tests/test-localename.c: Don't include obsolete "setenv.h".
32829
32830         * modules/localename-tests (Depends-on): Need unsetenv.
32831
32832 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32833
32834         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32835
32836 2008-01-06  Colin Watson  <cjwatson@debian.org>
32837
32838         * users.txt: Add man-db.
32839
32840 2008-01-07  Bruno Haible  <bruno@clisp.org>
32841
32842         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32843         previous section name.
32844
32845 2008-01-07  Bruno Haible  <bruno@clisp.org>
32846
32847         * lib/progname.c (set_program_name): Don't strip off a leading
32848         "lt-" prefix outside a .libs directory.
32849         Suggested by Paul Eggert.
32850
32851 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
32852             Bruno Haible  <bruno@clisp.org>
32853
32854         Improve memory cleanup in 'relocatable' module.
32855         * lib/relocatable.h (compute_curr_prefix): Change return type to
32856         'char *'.
32857         * lib/relocatable.c (compute_curr_prefix): Change return type to
32858         'char *'. Free curr_installdir after use.
32859         (relocate): Free curr_prefix_better after use.
32860         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
32861
32862 2008-01-01  Bruno Haible  <bruno@clisp.org>
32863
32864         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
32865         failure on older glibc systems.
32866         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32867
32868 2008-01-05  Eric Blake  <ebb9@byu.net>
32869
32870         Avoid quadratic system memmem.
32871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
32872         Reported by Ralf Wildenhues.
32873
32874         Fix memmem test for mingw.
32875         * modules/memmem-tests (configure.ac): Check for alarm.
32876         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
32877         it.
32878         * doc/functions/memmem.texi: New file.
32879         * doc/gnulib.texi (Function Substitutes): Add memmem.
32880         Reported by Bruno Haible.
32881
32882 2008-01-04  Bruno Haible  <bruno@clisp.org>
32883
32884         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
32885         Require gl_HEADER_STRINGS_H_DEFAULTS, not
32886         gl_HEADER_STRING_H_DEFAULTS.
32887
32888 2008-01-04  Eric Blake  <ebb9@byu.net>
32889
32890         Shorten duration of memmem test.
32891         * tests/test-memmem.c (main): Use alarm to declare failure if test
32892         is taking too long.
32893         Reported by Ralf Wildenhues.
32894
32895 2007-12-21  Simon Josefsson  <simon@josefsson.org>
32896
32897         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
32898         string, needed by strerror.
32899
32900 2008-01-03  Colin Watson  <cjwatson@debian.org>
32901             Bruno Haible  <bruno@clisp.org>
32902
32903         * doc/gnulib-tool.texi (Localization): New section.
32904
32905 2008-01-02  Bruno Haible  <bruno@clisp.org>
32906
32907         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
32908         variables to 'unsigned char *' type.
32909         Reported by Paul Eggert.
32910
32911 2008-01-02  Jim Meyering  <jim@meyering.net>
32912
32913         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
32914
32915 2007-12-31  Jim Meyering  <jim@meyering.net>
32916
32917         Avoid use of private FTS type name.
32918         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
32919
32920 2007-12-30  Karl Berry  <karl@gnu.org>
32921
32922         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
32923         work around defect in Texinfo and/or the standalone Info browser.
32924
32925 2007-12-30  Bruno Haible  <bruno@clisp.org>
32926
32927         Unify 5 copies of the KMP code.
32928         * lib/str-kmp.h: New file.
32929         * lib/c-strcasestr.c: Include str-kmp.h.
32930         (knuth_morris_pratt): Remove function.
32931         (c_strcasestr): Update.
32932         * lib/c-strstr.c: Include str-kmp.h.
32933         (knuth_morris_pratt): Remove function.
32934         (c_strcasestr): Update.
32935         * lib/mbscasestr.c: Include str-kmp.h.
32936         (knuth_morris_pratt_unibyte): Remove function.
32937         * lib/mbsstr.c: Include str-kmp.h.
32938         (knuth_morris_pratt_unibyte): Remove function.
32939         * lib/strcasestr.c: Include str-kmp.h.
32940         (knuth_morris_pratt): Remove function.
32941         (strcasestr): Update.
32942         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
32943         * modules/c-strstr (Files): Likewise.
32944         * modules/mbscasestr (Files): Likewise.
32945         * modules/mbsstr (Files): Likewise.
32946         * modules/strcasestr (Files): Likewise.
32947         Suggested by Paul Eggert.
32948
32949 2007-12-30  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
32952         defined.
32953
32954 2007-12-30  Bruno Haible  <bruno@clisp.org>
32955
32956         * lib/xmalloca.h: Include xalloc.h.
32957         (xnmalloca): New macro.
32958
32959 2007-12-30  Bruno Haible  <bruno@clisp.org>
32960
32961         * lib/malloca.h (nmalloca): New macro.
32962         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
32963         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
32964         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
32965         knuth_morris_pratt_multibyte): Likewise.
32966         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
32967         knuth_morris_pratt_multibyte): Likewise.
32968         * lib/memmem.c (knuth_morris_pratt): Likewise.
32969         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
32970
32971 2007-12-25  Bruno Haible  <bruno@clisp.org>
32972
32973         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
32974         * lib/glob.c: Don't include openat.h.
32975         (link_exists2_p): Add back the code that deals with the
32976         !GLOB_ALTDIRFUNC case.
32977         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
32978         let it do the filename concatenation.
32979         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
32980         * modules/glob (Depends-on): Remove openat.
32981
32982 2007-12-31  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/dirfd (License): Change to LGPLv2+.
32985         Approved by Jim Meyering.
32986
32987 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32988
32989         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
32990         when multiplying M by sizeof (size_t).
32991
32992 2007-12-10  Martin Lambers  <marlam@marlam.de>
32993
32994         Override getpagesize on mingw.
32995         * lib/getpagesize.c: New file.
32996         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
32997         * modules/getpagesize (Files): Add lib/getpagesize.c.
32998         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
32999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33000         REPLACE_GETPAGESIZE.
33001         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33002
33003 2007-12-25  Bruno Haible  <bruno@clisp.org>
33004
33005         * modules/localcharset (Notice): New field.
33006         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33007         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33008
33009 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33010             Bruno Haible  <bruno@clisp.org>
33011
33012         Avoid using the syntax symbol() in formatted documentation.
33013         * MODULES.html.sh (func_module): When replacing symbol() with a
33014         hyperlink, remove the parentheses. Show an error if some remain.
33015         Recognize and render the '...' syntax.
33016         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33017         Rework. Add paragraph about GCC's inlining.
33018         * doc/alloca.texi: Likewise.
33019         * doc/error.texi: Remove parentheses from symbol reference.
33020         * doc/gnulib-intro.texi: Likewise.
33021         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33022         * modules/fnmatch (Description): Reword to say "the ... function".
33023         * modules/full-read (Description): Likewise.
33024         * modules/full-write (Description): Likewise.
33025         * modules/safe-read (Description): Likewise.
33026         * modules/safe-write (Description): Likewise.
33027         * modules/strchrnul (Description): Likewise.
33028         * modules/trim (Description): Likewise.
33029         * modules/error (Description): Remove parentheses from symbol
33030         references.
33031         * modules/verror (Description): Likewise.
33032         Reported by Karl Berry.
33033
33034 2007-12-25  Bruno Haible  <bruno@clisp.org>
33035
33036         Fixup after 2007-10-16 commit.
33037         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33038
33039 2007-12-24  Bruno Haible  <bruno@clisp.org>
33040
33041         Make --enable-relocatable work with DESTDIR.
33042         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33043         to compute installdir from destprog.
33044         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33045         also set the RELOC_DESTDIR variable.
33046         Reported by Левашев Иван <octagram@bluebottle.com>.
33047
33048 2007-12-24  Bruno Haible  <bruno@clisp.org>
33049
33050         Fix link error due to xalloc_die().
33051         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33052         of xreadlink.
33053         * lib/relocwrapper.c: Update comments.
33054         * build-aux/install-reloc: Remove xreadlink.c from file list.
33055         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33056         xreadlink.c.
33057         Reported by Левашев Иван <octagram@bluebottle.com>.
33058
33059 2007-12-24  Bruno Haible  <bruno@clisp.org>
33060
33061         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33062         * lib/setenv.h: Remove file.
33063         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33064         lib/setenv.h.
33065         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33066         (Depends-on): Add stdlib.
33067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33068         gl_FUNC_UNSETENV.
33069         (Include): Replace setenv.h with <stdlib.h>.
33070         * modules/unsetenv: New file.
33071         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33072         * lib/unsetenv.c: Include <stdlib.h> first.
33073         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33074         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33075         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33076         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33077         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33078         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33080         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33081         * doc/functions/unsetenv.texi: Update.
33082         * modules/xsetenv (Depends-on): Add unsetenv.
33083         * modules/getdate (Depends-on): Likewise.
33084         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33085         * lib/xsetenv.c: Don't include setenv.h.
33086         * lib/getdate.y: Likewise.
33087         * lib/relocwrapper.c: Likewise.
33088         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33089         (Depends-on): Add stdlib.
33090         * NEWS: Mention the changes.
33091         Reported by Левашев Иван <octagram@bluebottle.com>.
33092
33093 2007-12-23  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33096         indentation.
33097
33098 2007-12-23  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/c-strcasestr.c: Add more comments.
33101         * lib/c-strstr.c: Likewise.
33102         * lib/mbscasestr.c: Likewise.
33103         * lib/mbsstr.c: Likewise.
33104         * lib/strcasestr.c: Likewise.
33105         * lib/memmem.c: Likewise.
33106
33107 2007-12-23  Bruno Haible  <bruno@clisp.org>
33108
33109         * tests/test-memmem.c: Include <string.h> first.
33110
33111 2007-12-22  Bruno Haible  <bruno@clisp.org>
33112
33113         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33114         the contents of $testsbase.
33115         Reported by Ralf Wildenhues.
33116
33117 2007-12-22  Bruno Haible  <bruno@clisp.org>
33118
33119         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33120         two variables local_ldadd_before, local_ldadd_last.
33121
33122 2007-12-20  Eric Blake  <ebb9@byu.net>
33123
33124         Work around circular library issue when cross-compiling.
33125         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33126         that progname.o does not need to pull in rpl_memcmp.
33127
33128 2007-12-19  Eric Blake  <ebb9@byu.net>
33129
33130         Fix memmem to avoid O(n^2) worst-case complexity.
33131         * lib/memmem.c (knuth_morris_pratt): New function.
33132         (memmem): Use it if first few naive iterations fail.
33133         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33134         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33135         * modules/memchr (License): Likewise.
33136         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33137         malloca.
33138         * tests/test-memmem.c: Rewrite, borrowing ideas from
33139         test-mbsstr1.c; the old version wouldn't even compile!
33140         * modules/memmem-tests: New file.
33141         * lib/string.in.h (rpl_memmem): Add declaration.
33142         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33144         REPLACE_MEMMEM.
33145
33146 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33147
33148         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33149         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33150         before any system include files, and undef after them all.  This
33151         should fix a problem on VMS reported by John E. Malmberg in
33152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33153
33154 2007-12-17  Eric Blake  <ebb9@byu.net>
33155
33156         Revert addition of verify, for BSD/OS.
33157         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33158         can't handle large files, for the sake of obsolete platforms.
33159         * modules/fseeko (Depends-on): Remove verify.
33160         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33161         * doc/functions/ftello.texi (ftello): Likewise.
33162         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33163         Reported by Larry Jones.
33164
33165 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33166
33167         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33168         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33169
33170 2007-12-17  Jim Meyering  <meyering@redhat.com>
33171
33172         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33173         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33174         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33175         * modules/getcwd (Depends-on): Add openat.
33176         Reported by Petr Salinger.
33177
33178 2007-12-17  Bruno Haible  <bruno@clisp.org>
33179
33180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33181         avoid a segmentation fault of the configure test on x86_64 systems.
33182
33183 2007-12-15  Jim Meyering  <meyering@redhat.com>
33184
33185         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33186
33187 2007-12-13  Eric Blake  <ebb9@byu.net>
33188
33189         Another fseek test.
33190         * tests/test-fseek.c (main): Also test ungetc handling.
33191         * tests/test-fseeko.c (main): Likewise.
33192         * modules/fseeko (Depends-on): Add verify.
33193         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33194         large.
33195         Reported by Larry Jones.
33196
33197         Fix fseeko on mingw.
33198         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33199         seek.
33200
33201         Beef up fseek tests.
33202         * tests/test-fseek.c (main): Also test eof handling.
33203         * tests/test-fseeko.c (main): Likewise.
33204         Reported by Larry Jones.
33205
33206 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33207
33208         Fix fseeko on BSD-based platforms.
33209         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33210         successful seek.
33211
33212 2007-12-12  Eric Blake  <ebb9@byu.net>
33213
33214         Allow circular dependency of separate libtests.a
33215         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33216         when use_libtests.
33217
33218 2007-12-11  Eric Blake  <ebb9@byu.net>
33219
33220         Fix bug with -0.0L in previous patch.
33221         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33222         * tests/test-isnan.c (main): Also test on zeroes.
33223         * tests/test-isnanf.c (main): Likewise.
33224         * tests/test-isnanl.h (main): Likewise.
33225
33226         Detect pseudo-denormals on x86 even when cross-compiling.
33227         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33228         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33229         invalid bit patterns that happen to satisfy ==.
33230
33231         Avoid link failures with separate libtests.a.
33232         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33233         last, to satisfy circular dependencies.
33234
33235 2007-12-11  Eric Blake  <ebb9@byu.net>
33236         and Bruno Haible  <bruno@clisp.org>
33237
33238         Fix OpenBSD 4.0 <float.h> handling of long double.
33239         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33240         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33241         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33242
33243 2007-12-11  Jim Meyering  <meyering@redhat.com>
33244
33245         * users.txt: Add libvirt.
33246
33247         Support versions of autoconf prior to 2.59c.
33248         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33249         if it is not already defined.
33250
33251 2007-12-09  Bruno Haible  <bruno@clisp.org>
33252
33253         Let 'gnulib-tool --import' collect sources needed for the tests in
33254         tests/ rather than in lib/.
33255         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33256         argument. If true, add rules to generate libtests.a, and put libtests.a
33257         into $(LDADD). Consider source files in subdirectories and set
33258         uses_subdirs.
33259         (func_emit_initmacro_start, func_emit_initmacro_end,
33260         func_emit_initmacro_done): Pass all arguments explicitly.
33261         (func_import): Determine two module lists main_modules,
33262         testsrelated_modules. Determine use_libtests. Determine two variables
33263         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33264         instead of just sed_transform_lib_file. Determine two variables
33265         main_files and testsrelated_files. Compute 'files' as the union of
33266         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33267         func_add_or_update. In the generated gnulib-comp.m4, collect the
33268         object files for tests/ in different variables than those for lib/.
33269         Substitute LIBTESTS_LIBDEPS.
33270         (func_create_testdir): Combine the uses_subdirs results from
33271         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33272
33273 2007-12-09  Bruno Haible  <bruno@clisp.org>
33274
33275         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33276         the build-aux directory.
33277
33278 2007-12-09  Bruno Haible  <bruno@clisp.org>
33279
33280         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33281         introduced on 2006-09-09.
33282
33283 2007-12-07  Jim Meyering  <meyering@redhat.com>
33284
33285         Let these macros work also with autoconf-2.59.
33286         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33287         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33288         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33289
33290 2007-12-06  Jim Meyering  <meyering@redhat.com>
33291
33292         Avoid a configure-time syntax error in gl_FUNC_ACL.
33293         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33294         function in each branch, before testing the cache variable.
33295
33296 2007-12-04  Eric Blake  <ebb9@byu.net>
33297
33298         Make scripts executable.
33299         * build-aux/config.guess: Add execute permissions.
33300         * build-aux/config.sub: Likewise.
33301         * build-aux/gendocs.sh: Likewise.
33302
33303         Fix frexp on mingw.
33304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33305         cross-compiling.
33306         * doc/functions/frexp.texi (frexp): Document the bug.
33307
33308         Make cygwin fseeko check more reliable.
33309         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33310         version numbers, rather than unrelated feature check.
33311         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33312         * doc/functions/ftello.texi (ftello): Likewise.
33313         Reported by Bruno Haible.
33314
33315         * m4/strerror.m4: Bump version number.
33316
33317 2007-12-03  Bruno Haible  <bruno@clisp.org>
33318
33319         * doc/functions/mprotect.texi: Mention the mingw problem.
33320
33321 2007-12-03  Eric Blake  <ebb9@byu.net>
33322
33323         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33324         REPLACE_STRERROR is initialized before this macro.
33325
33326 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33327
33328         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33329         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33330         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33331         put -lsec in even for programs other than 'ls'.  This fixes a problem
33332         for gettext reported by Bruno Haible in
33333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33334         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33335         Add support for Solaris 10.  This isn't efficient, but should get the
33336         job done for now.
33337
33338 2007-12-03  James Youngman  <jay@gnu.org>
33339
33340         * doc/regexprops-generic.texi: change "an close-group" to "a
33341         close-group" and "illegal" to "not allowed".
33342
33343 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33344
33345         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33346         pr_byname.h. Needed for the rare case when the maintainer has done
33347         "make maintainer-clean" in the source directory and then attempts a
33348         build outside the source directory.
33349         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33350         scripts_byname.h.
33351
33352 2007-12-02  Martin Lambers <marlam@marlam.de>
33353             Bruno Haible  <bruno@clisp.org>
33354
33355         * lib/getpagesize.h: Remove file.
33356         * lib/unistd.in.h: Include declaration of getpagesize here.
33357         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33358         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33359         HAVE_SYS_PARAM_H.
33360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33361         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33362         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33363         (Depends-on): Add unistd.
33364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33365         (Include): Use <unistd.h> instead of getpagesize.h.
33366         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33367         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33368         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33369         gl_GETPAGESIZE invocation, already handled by module dependency.
33370         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33371
33372 2007-12-02  Bruno Haible  <bruno@clisp.org>
33373
33374         * modules/strings-tests: New file.
33375         * tests/test-strings.c: New file.
33376
33377         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33378         * lib/strings.in.h: New file.
33379         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33380         * m4/strings_h.m4: New file.
33381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33382         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33383         * modules/strings: New file.
33384         * modules/string (Makefile.am): Update.
33385         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33386         Reported by Karl Berry.
33387
33388 2007-12-01  Eric Blake  <ebb9@byu.net>
33389
33390         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33391         accomodate fix in cygwin 1.5.25.
33392
33393 2007-12-01  Jim Meyering  <meyering@redhat.com>
33394
33395         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33396         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33397         that would inhibit utf8-optimization of a regexp containing line-
33398         or buffer-anchors, e.g., `^', `$'.
33399
33400 2007-11-30  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33403         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33404         glthread_recursive_lock_init.
33405         * lib/lock.c (glthread_recursive_lock_init)
33406         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33407         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33408
33409 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33410
33411         New function qset_acl, like set_acl but with syscall semantics.
33412         * lib/acl.h (qset_acl): New decl.
33413         * lib/acl.c (qset_acl): New function.
33414         (set_acl): Use new function.  Use more-consistent diagnostics.
33415
33416 2007-11-28  Jim Meyering  <meyering@redhat.com>
33417
33418         * modules/physmem (License): Change from GPL to LGPLv2+.
33419
33420 2007-11-26  Bruno Haible  <bruno@clisp.org>
33421
33422         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33423         'long double' type has excess precision.
33424         Reported by Jim Meyering in
33425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33426
33427 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33428
33429         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33430         Sync from <http://gnu.org/licenses>.
33431         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33432         with license text from same location.
33433         * doc/maintain.texi, doc/standards.texi:  Sync from
33434         <http://savannah.gnu.org/projects/gnustandards>.
33435
33436 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33437         and Jim Meyering  <meyering@redhat.com>
33438
33439         Adjust getdate' grammar to accept a slightly more regular language.
33440         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33441         Before, the former was rejected.
33442         * lib/getdate.y (digits_to_date_time): New function, factored
33443         out of ...
33444         (number): ...here.  Just call digits_to_date_time.
33445         (hybrid): New non-terminal to handle an <unsigned number,
33446         signed relative offset> sequence consistently.
33447
33448 2007-11-18  Jim Meyering  <meyering@redhat.com>
33449
33450         Pull my changes from coreutils:
33451         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33452         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33453         use of $gnulib_tool_option_extras, so that it's separated from the
33454         preceding argument.
33455
33456         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33457         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33458         parent destination directories before copying a file into place.
33459
33460 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33461
33462         bootstrap: work also with 4-argument variant of AC_INIT
33463         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33464
33465 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33466
33467         Port test-getaddrinfo to Solaris.
33468         Problem reported by Bruno Haible in
33469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33470         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33471         explanation of setting 'hints'.
33472         Don't reject an implementation merely because it returns EAI_SERVICE.
33473         (EAI_SERVICE): Define to 0 if not defined.
33474
33475 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33476
33477         The license of gnu-make and posix-shell is now "GPLed build tool".
33478         * modules/gnu-make (License): Likewise.
33479         * modules/posix-shell (License): Likewise.
33480
33481         New module posix-shell, for determining a POSIX shell
33482         or perhaps something that is close enough to a POSIX shell.
33483         * m4/posix-shell.m4: New file.
33484         * modules/posix-shell: New file.
33485
33486         * MODULES.html.sh: Mention new module.
33487
33488         New module gnu-make, for determining whether we're using GNU Make.
33489         * m4/gnu-make.m4: New file.
33490         * modules/gnu-make: New file.
33491         * MODULES.html.sh: Mention new module.
33492
33493 2007-11-14  Jim Meyering  <meyering@redhat.com>
33494
33495         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33496         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33497         use this macro to create a function _definition_.
33498         Remove useless "#undef ARGMATCH_DIE".
33499
33500 2007-11-14  Bruno Haible  <bruno@clisp.org>
33501
33502         * lib/config.charset: Update for OpenBSD 4.1.
33503         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33504
33505 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33506
33507         Document 64-bit #if problems in stdint.texi.
33508         * doc/headers/stdint.texi (stdint.h): Mention problems with
33509         64-bit-#if, and how to work around them.
33510
33511         Don't insist on 'long long int' support in the preprocessor.  It
33512         breaks too many things.  For example, PRIdMAX still uses a 'long
33513         long int' format with the latest Sun compiler, even though
33514         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33515         preprocessor problem.  This causes the latest coreutils to dump
33516         core on Solaris 10 sparc with the Sun C compiler.
33517         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33518         the troublesome expressions at configure-time, not at #if-time.
33519         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33520         preprocessor.
33521         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33522         compile-time C checks, done at 'configure'-time.
33523         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33524         * modules/inttypes (Makefile): Substitute the new symbols that
33525         gl_INTTYPES_H now generates.
33526         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33527
33528 2007-11-12  Bruno Haible  <bruno@clisp.org>
33529
33530         Tests for Unicode character classification functions.
33531
33532         * modules/unictype/bidicategory-byname-tests: New file.
33533         * modules/unictype/bidicategory-name-tests: New file.
33534         * modules/unictype/bidicategory-of-tests: New file.
33535         * modules/unictype/bidicategory-test-tests: New file.
33536         * modules/unictype/block-list-tests: New file.
33537         * modules/unictype/block-of-tests: New file.
33538         * modules/unictype/block-test-tests: New file.
33539         * modules/unictype/category-C-tests: New file.
33540         * modules/unictype/category-Cc-tests: New file.
33541         * modules/unictype/category-Cf-tests: New file.
33542         * modules/unictype/category-Cn-tests: New file.
33543         * modules/unictype/category-Co-tests: New file.
33544         * modules/unictype/category-Cs-tests: New file.
33545         * modules/unictype/category-L-tests: New file.
33546         * modules/unictype/category-Ll-tests: New file.
33547         * modules/unictype/category-Lm-tests: New file.
33548         * modules/unictype/category-Lo-tests: New file.
33549         * modules/unictype/category-Lt-tests: New file.
33550         * modules/unictype/category-Lu-tests: New file.
33551         * modules/unictype/category-M-tests: New file.
33552         * modules/unictype/category-Mc-tests: New file.
33553         * modules/unictype/category-Me-tests: New file.
33554         * modules/unictype/category-Mn-tests: New file.
33555         * modules/unictype/category-N-tests: New file.
33556         * modules/unictype/category-Nd-tests: New file.
33557         * modules/unictype/category-Nl-tests: New file.
33558         * modules/unictype/category-No-tests: New file.
33559         * modules/unictype/category-P-tests: New file.
33560         * modules/unictype/category-Pc-tests: New file.
33561         * modules/unictype/category-Pd-tests: New file.
33562         * modules/unictype/category-Pe-tests: New file.
33563         * modules/unictype/category-Pf-tests: New file.
33564         * modules/unictype/category-Pi-tests: New file.
33565         * modules/unictype/category-Po-tests: New file.
33566         * modules/unictype/category-Ps-tests: New file.
33567         * modules/unictype/category-S-tests: New file.
33568         * modules/unictype/category-Sc-tests: New file.
33569         * modules/unictype/category-Sk-tests: New file.
33570         * modules/unictype/category-Sm-tests: New file.
33571         * modules/unictype/category-So-tests: New file.
33572         * modules/unictype/category-Z-tests: New file.
33573         * modules/unictype/category-Zl-tests: New file.
33574         * modules/unictype/category-Zp-tests: New file.
33575         * modules/unictype/category-Zs-tests: New file.
33576         * modules/unictype/category-and-not-tests: New file.
33577         * modules/unictype/category-and-tests: New file.
33578         * modules/unictype/category-byname-tests: New file.
33579         * modules/unictype/category-name-tests: New file.
33580         * modules/unictype/category-none-tests: New file.
33581         * modules/unictype/category-of-tests: New file.
33582         * modules/unictype/category-or-tests: New file.
33583         * modules/unictype/category-test-withtable-tests: New file.
33584         * modules/unictype/combining-class-tests: New file.
33585         * modules/unictype/ctype-alnum-tests: New file.
33586         * modules/unictype/ctype-alpha-tests: New file.
33587         * modules/unictype/ctype-blank-tests: New file.
33588         * modules/unictype/ctype-cntrl-tests: New file.
33589         * modules/unictype/ctype-digit-tests: New file.
33590         * modules/unictype/ctype-graph-tests: New file.
33591         * modules/unictype/ctype-lower-tests: New file.
33592         * modules/unictype/ctype-print-tests: New file.
33593         * modules/unictype/ctype-punct-tests: New file.
33594         * modules/unictype/ctype-space-tests: New file.
33595         * modules/unictype/ctype-upper-tests: New file.
33596         * modules/unictype/ctype-xdigit-tests: New file.
33597         * modules/unictype/decimal-digit-tests: New file.
33598         * modules/unictype/digit-tests: New file.
33599         * modules/unictype/mirror-tests: New file.
33600         * modules/unictype/numeric-tests: New file.
33601         * modules/unictype/property-alphabetic-tests: New file.
33602         * modules/unictype/property-ascii-hex-digit-tests: New file.
33603         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33604         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33605         * modules/unictype/property-bidi-block-separator-tests: New file.
33606         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33607         * modules/unictype/property-bidi-common-separator-tests: New file.
33608         * modules/unictype/property-bidi-control-tests: New file.
33609         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33610         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33611         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33612         * modules/unictype/property-bidi-european-digit-tests: New file.
33613         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33614         * modules/unictype/property-bidi-left-to-right-tests: New file.
33615         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33616         * modules/unictype/property-bidi-other-neutral-tests: New file.
33617         * modules/unictype/property-bidi-pdf-tests: New file.
33618         * modules/unictype/property-bidi-segment-separator-tests: New file.
33619         * modules/unictype/property-bidi-whitespace-tests: New file.
33620         * modules/unictype/property-byname-tests: New file.
33621         * modules/unictype/property-combining-tests: New file.
33622         * modules/unictype/property-composite-tests: New file.
33623         * modules/unictype/property-currency-symbol-tests: New file.
33624         * modules/unictype/property-dash-tests: New file.
33625         * modules/unictype/property-decimal-digit-tests: New file.
33626         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33627         * modules/unictype/property-deprecated-tests: New file.
33628         * modules/unictype/property-diacritic-tests: New file.
33629         * modules/unictype/property-extender-tests: New file.
33630         * modules/unictype/property-format-control-tests: New file.
33631         * modules/unictype/property-grapheme-base-tests: New file.
33632         * modules/unictype/property-grapheme-extend-tests: New file.
33633         * modules/unictype/property-grapheme-link-tests: New file.
33634         * modules/unictype/property-hex-digit-tests: New file.
33635         * modules/unictype/property-hyphen-tests: New file.
33636         * modules/unictype/property-id-continue-tests: New file.
33637         * modules/unictype/property-id-start-tests: New file.
33638         * modules/unictype/property-ideographic-tests: New file.
33639         * modules/unictype/property-ids-binary-operator-tests: New file.
33640         * modules/unictype/property-ids-trinary-operator-tests: New file.
33641         * modules/unictype/property-ignorable-control-tests: New file.
33642         * modules/unictype/property-iso-control-tests: New file.
33643         * modules/unictype/property-join-control-tests: New file.
33644         * modules/unictype/property-left-of-pair-tests: New file.
33645         * modules/unictype/property-line-separator-tests: New file.
33646         * modules/unictype/property-logical-order-exception-tests: New file.
33647         * modules/unictype/property-lowercase-tests: New file.
33648         * modules/unictype/property-math-tests: New file.
33649         * modules/unictype/property-non-break-tests: New file.
33650         * modules/unictype/property-not-a-character-tests: New file.
33651         * modules/unictype/property-numeric-tests: New file.
33652         * modules/unictype/property-other-alphabetic-tests: New file.
33653         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33654         * modules/unictype/property-other-grapheme-extend-tests: New file.
33655         * modules/unictype/property-other-id-continue-tests: New file.
33656         * modules/unictype/property-other-id-start-tests: New file.
33657         * modules/unictype/property-other-lowercase-tests: New file.
33658         * modules/unictype/property-other-math-tests: New file.
33659         * modules/unictype/property-other-uppercase-tests: New file.
33660         * modules/unictype/property-paired-punctuation-tests: New file.
33661         * modules/unictype/property-paragraph-separator-tests: New file.
33662         * modules/unictype/property-pattern-syntax-tests: New file.
33663         * modules/unictype/property-pattern-white-space-tests: New file.
33664         * modules/unictype/property-private-use-tests: New file.
33665         * modules/unictype/property-punctuation-tests: New file.
33666         * modules/unictype/property-quotation-mark-tests: New file.
33667         * modules/unictype/property-radical-tests: New file.
33668         * modules/unictype/property-sentence-terminal-tests: New file.
33669         * modules/unictype/property-soft-dotted-tests: New file.
33670         * modules/unictype/property-space-tests: New file.
33671         * modules/unictype/property-terminal-punctuation-tests: New file.
33672         * modules/unictype/property-test-tests: New file.
33673         * modules/unictype/property-titlecase-tests: New file.
33674         * modules/unictype/property-unassigned-code-value-tests: New file.
33675         * modules/unictype/property-unified-ideograph-tests: New file.
33676         * modules/unictype/property-uppercase-tests: New file.
33677         * modules/unictype/property-variation-selector-tests: New file.
33678         * modules/unictype/property-white-space-tests: New file.
33679         * modules/unictype/property-xid-continue-tests: New file.
33680         * modules/unictype/property-xid-start-tests: New file.
33681         * modules/unictype/property-zero-width-tests: New file.
33682         * modules/unictype/scripts-tests: New file.
33683         * modules/unictype/syntax-c-ident-tests: New file.
33684         * modules/unictype/syntax-c-whitespace-tests: New file.
33685         * modules/unictype/syntax-java-ident-tests: New file.
33686         * modules/unictype/syntax-java-whitespace-tests: New file.
33687         * tests/unictype/test-bidi_byname.c: New file.
33688         * tests/unictype/test-bidi_name.c: New file.
33689         * tests/unictype/test-bidi_of.c: New file.
33690         * tests/unictype/test-bidi_test.c: New file.
33691         * tests/unictype/test-block_list.c: New file.
33692         * tests/unictype/test-block_of.c: New file.
33693         * tests/unictype/test-block_test.c: New file.
33694         * tests/unictype/test-categ_and.c: New file.
33695         * tests/unictype/test-categ_and_not.c: New file.
33696         * tests/unictype/test-categ_byname.c: New file.
33697         * tests/unictype/test-categ_name.c: New file.
33698         * tests/unictype/test-categ_none.c: New file.
33699         * tests/unictype/test-categ_of.c: New file.
33700         * tests/unictype/test-categ_or.c: New file.
33701         * tests/unictype/test-categ_test_withtable.c: New file.
33702         * tests/unictype/test-combining.c: New file.
33703         * tests/unictype/test-decdigit.c: New file.
33704         * tests/unictype/test-digit.c: New file.
33705         * tests/unictype/test-mirror.c: New file.
33706         * tests/unictype/test-numeric.c: New file.
33707         * tests/unictype/test-pr_byname.c: New file.
33708         * tests/unictype/test-pr_test.c: New file.
33709         * tests/unictype/test-predicate-part1.h: New file.
33710         * tests/unictype/test-predicate-part2.h: New file.
33711         * tests/unictype/test-scripts.c: New file.
33712         * tests/unictype/test-sy_c_ident.c: New file.
33713         * tests/unictype/test-sy_java_ident.c: New file.
33714
33715         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33716         for Unicode 5.0.0.
33717         * tests/unictype/test-categ_Cc.c: Likewise.
33718         * tests/unictype/test-categ_Cf.c: Likewise.
33719         * tests/unictype/test-categ_Cn.c: Likewise.
33720         * tests/unictype/test-categ_Co.c: Likewise.
33721         * tests/unictype/test-categ_Cs.c: Likewise.
33722         * tests/unictype/test-categ_L.c: Likewise.
33723         * tests/unictype/test-categ_Ll.c: Likewise.
33724         * tests/unictype/test-categ_Lm.c: Likewise.
33725         * tests/unictype/test-categ_Lo.c: Likewise.
33726         * tests/unictype/test-categ_Lt.c: Likewise.
33727         * tests/unictype/test-categ_Lu.c: Likewise.
33728         * tests/unictype/test-categ_M.c: Likewise.
33729         * tests/unictype/test-categ_Mc.c: Likewise.
33730         * tests/unictype/test-categ_Me.c: Likewise.
33731         * tests/unictype/test-categ_Mn.c: Likewise.
33732         * tests/unictype/test-categ_N.c: Likewise.
33733         * tests/unictype/test-categ_Nd.c: Likewise.
33734         * tests/unictype/test-categ_Nl.c: Likewise.
33735         * tests/unictype/test-categ_No.c: Likewise.
33736         * tests/unictype/test-categ_P.c: Likewise.
33737         * tests/unictype/test-categ_Pc.c: Likewise.
33738         * tests/unictype/test-categ_Pd.c: Likewise.
33739         * tests/unictype/test-categ_Pe.c: Likewise.
33740         * tests/unictype/test-categ_Pf.c: Likewise.
33741         * tests/unictype/test-categ_Pi.c: Likewise.
33742         * tests/unictype/test-categ_Po.c: Likewise.
33743         * tests/unictype/test-categ_Ps.c: Likewise.
33744         * tests/unictype/test-categ_S.c: Likewise.
33745         * tests/unictype/test-categ_Sc.c: Likewise.
33746         * tests/unictype/test-categ_Sk.c: Likewise.
33747         * tests/unictype/test-categ_Sm.c: Likewise.
33748         * tests/unictype/test-categ_So.c: Likewise.
33749         * tests/unictype/test-categ_Z.c: Likewise.
33750         * tests/unictype/test-categ_Zl.c: Likewise.
33751         * tests/unictype/test-categ_Zp.c: Likewise.
33752         * tests/unictype/test-categ_Zs.c: Likewise.
33753         * tests/unictype/test-ctype_alnum.c: Likewise.
33754         * tests/unictype/test-ctype_alpha.c: Likewise.
33755         * tests/unictype/test-ctype_blank.c: Likewise.
33756         * tests/unictype/test-ctype_cntrl.c: Likewise.
33757         * tests/unictype/test-ctype_digit.c: Likewise.
33758         * tests/unictype/test-ctype_graph.c: Likewise.
33759         * tests/unictype/test-ctype_lower.c: Likewise.
33760         * tests/unictype/test-ctype_print.c: Likewise.
33761         * tests/unictype/test-ctype_punct.c: Likewise.
33762         * tests/unictype/test-ctype_space.c: Likewise.
33763         * tests/unictype/test-ctype_upper.c: Likewise.
33764         * tests/unictype/test-ctype_xdigit.c: Likewise.
33765         * tests/unictype/test-decdigit.h: Likewise.
33766         * tests/unictype/test-digit.h: Likewise.
33767         * tests/unictype/test-numeric.h: Likewise.
33768         * tests/unictype/test-pr_alphabetic.c: Likewise.
33769         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33770         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33771         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33772         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33773         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33774         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33775         * tests/unictype/test-pr_bidi_control.c: Likewise.
33776         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33777         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33778         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33779         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33780         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33781         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33782         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33783         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33784         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33785         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33786         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33787         * tests/unictype/test-pr_combining.c: Likewise.
33788         * tests/unictype/test-pr_composite.c: Likewise.
33789         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33790         * tests/unictype/test-pr_dash.c: Likewise.
33791         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33792         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33793         * tests/unictype/test-pr_deprecated.c: Likewise.
33794         * tests/unictype/test-pr_diacritic.c: Likewise.
33795         * tests/unictype/test-pr_extender.c: Likewise.
33796         * tests/unictype/test-pr_format_control.c: Likewise.
33797         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33798         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33799         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33800         * tests/unictype/test-pr_hex_digit.c: Likewise.
33801         * tests/unictype/test-pr_hyphen.c: Likewise.
33802         * tests/unictype/test-pr_id_continue.c: Likewise.
33803         * tests/unictype/test-pr_id_start.c: Likewise.
33804         * tests/unictype/test-pr_ideographic.c: Likewise.
33805         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33806         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33807         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33808         * tests/unictype/test-pr_iso_control.c: Likewise.
33809         * tests/unictype/test-pr_join_control.c: Likewise.
33810         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33811         * tests/unictype/test-pr_line_separator.c: Likewise.
33812         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33813         * tests/unictype/test-pr_lowercase.c: Likewise.
33814         * tests/unictype/test-pr_math.c: Likewise.
33815         * tests/unictype/test-pr_non_break.c: Likewise.
33816         * tests/unictype/test-pr_not_a_character.c: Likewise.
33817         * tests/unictype/test-pr_numeric.c: Likewise.
33818         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33819         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33820         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33821         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33822         * tests/unictype/test-pr_other_id_start.c: Likewise.
33823         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33824         * tests/unictype/test-pr_other_math.c: Likewise.
33825         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33826         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33827         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33828         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33829         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33830         * tests/unictype/test-pr_private_use.c: Likewise.
33831         * tests/unictype/test-pr_punctuation.c: Likewise.
33832         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33833         * tests/unictype/test-pr_radical.c: Likewise.
33834         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33835         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33836         * tests/unictype/test-pr_space.c: Likewise.
33837         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33838         * tests/unictype/test-pr_titlecase.c: Likewise.
33839         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33840         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33841         * tests/unictype/test-pr_uppercase.c: Likewise.
33842         * tests/unictype/test-pr_variation_selector.c: Likewise.
33843         * tests/unictype/test-pr_white_space.c: Likewise.
33844         * tests/unictype/test-pr_xid_continue.c: Likewise.
33845         * tests/unictype/test-pr_xid_start.c: Likewise.
33846         * tests/unictype/test-pr_zero_width.c: Likewise.
33847         * tests/unictype/test-sy_c_whitespace.c: Likewise.
33848         * tests/unictype/test-sy_java_whitespace.c: Likewise.
33849
33850 2007-11-12  Bruno Haible  <bruno@clisp.org>
33851
33852         Unicode character classification functions.
33853         * lib/unictype.h: New file.
33854         * modules/unictype/base: New file.
33855         * modules/unictype/category-L: New file.
33856         * modules/unictype/category-Lu: New file.
33857         * modules/unictype/category-Ll: New file.
33858         * modules/unictype/category-Lt: New file.
33859         * modules/unictype/category-Lm: New file.
33860         * modules/unictype/category-Lo: New file.
33861         * modules/unictype/category-M: New file.
33862         * modules/unictype/category-Mn: New file.
33863         * modules/unictype/category-Mc: New file.
33864         * modules/unictype/category-Me: New file.
33865         * modules/unictype/category-N: New file.
33866         * modules/unictype/category-Nd: New file.
33867         * modules/unictype/category-Nl: New file.
33868         * modules/unictype/category-No: New file.
33869         * modules/unictype/category-P: New file.
33870         * modules/unictype/category-Pc: New file.
33871         * modules/unictype/category-Pd: New file.
33872         * modules/unictype/category-Ps: New file.
33873         * modules/unictype/category-Pe: New file.
33874         * modules/unictype/category-Pi: New file.
33875         * modules/unictype/category-Pf: New file.
33876         * modules/unictype/category-Po: New file.
33877         * modules/unictype/category-S: New file.
33878         * modules/unictype/category-Sm: New file.
33879         * modules/unictype/category-Sc: New file.
33880         * modules/unictype/category-Sk: New file.
33881         * modules/unictype/category-So: New file.
33882         * modules/unictype/category-Z: New file.
33883         * modules/unictype/category-Zs: New file.
33884         * modules/unictype/category-Zl: New file.
33885         * modules/unictype/category-Zp: New file.
33886         * modules/unictype/category-C: New file.
33887         * modules/unictype/category-Cc: New file.
33888         * modules/unictype/category-Cf: New file.
33889         * modules/unictype/category-Cs: New file.
33890         * modules/unictype/category-Co: New file.
33891         * modules/unictype/category-Cn: New file.
33892         * modules/unictype/category-or: New file.
33893         * modules/unictype/category-of: New file.
33894         * modules/unictype/category-test: New file.
33895         * modules/unictype/category-test-withtable: New file.
33896         * modules/unictype/category-byname: New file.
33897         * modules/unictype/category-none: New file.
33898         * modules/unictype/category-and: New file.
33899         * modules/unictype/category-and-not: New file.
33900         * modules/unictype/category-name: New file.
33901         * modules/unictype/combining-class: New file.
33902         * modules/unictype/category-all: New file.
33903         * modules/unictype/bidicategory-all: New file.
33904         * modules/unictype/bidicategory-byname: New file.
33905         * modules/unictype/bidicategory-name: New file.
33906         * modules/unictype/bidicategory-of: New file.
33907         * modules/unictype/bidicategory-test: New file.
33908         * modules/unictype/decimal-digit: New file.
33909         * modules/unictype/digit: New file.
33910         * modules/unictype/numeric: New file.
33911         * modules/unictype/mirror: New file.
33912         * modules/unictype/property-white-space: New file.
33913         * modules/unictype/property-alphabetic: New file.
33914         * modules/unictype/property-other-alphabetic: New file.
33915         * modules/unictype/property-not-a-character: New file.
33916         * modules/unictype/property-default-ignorable-code-point: New file.
33917         * modules/unictype/property-other-default-ignorable-code-point: New
33918         file.
33919         * modules/unictype/property-deprecated: New file.
33920         * modules/unictype/property-logical-order-exception: New file.
33921         * modules/unictype/property-variation-selector: New file.
33922         * modules/unictype/property-private-use: New file.
33923         * modules/unictype/property-unassigned-code-value: New file.
33924         * modules/unictype/property-uppercase: New file.
33925         * modules/unictype/property-other-uppercase: New file.
33926         * modules/unictype/property-lowercase: New file.
33927         * modules/unictype/property-other-lowercase: New file.
33928         * modules/unictype/property-titlecase: New file.
33929         * modules/unictype/property-soft-dotted: New file.
33930         * modules/unictype/property-id-start: New file.
33931         * modules/unictype/property-other-id-start: New file.
33932         * modules/unictype/property-id-continue: New file.
33933         * modules/unictype/property-other-id-continue: New file.
33934         * modules/unictype/property-xid-start: New file.
33935         * modules/unictype/property-xid-continue: New file.
33936         * modules/unictype/property-pattern-white-space: New file.
33937         * modules/unictype/property-pattern-syntax: New file.
33938         * modules/unictype/property-join-control: New file.
33939         * modules/unictype/property-grapheme-base: New file.
33940         * modules/unictype/property-grapheme-extend: New file.
33941         * modules/unictype/property-other-grapheme-extend: New file.
33942         * modules/unictype/property-grapheme-link: New file.
33943         * modules/unictype/property-bidi-control: New file.
33944         * modules/unictype/property-bidi-left-to-right: New file.
33945         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
33946         * modules/unictype/property-bidi-arabic-right-to-left: New file.
33947         * modules/unictype/property-bidi-european-digit: New file.
33948         * modules/unictype/property-bidi-eur-num-separator: New file.
33949         * modules/unictype/property-bidi-eur-num-terminator: New file.
33950         * modules/unictype/property-bidi-arabic-digit: New file.
33951         * modules/unictype/property-bidi-common-separator: New file.
33952         * modules/unictype/property-bidi-block-separator: New file.
33953         * modules/unictype/property-bidi-segment-separator: New file.
33954         * modules/unictype/property-bidi-whitespace: New file.
33955         * modules/unictype/property-bidi-non-spacing-mark: New file.
33956         * modules/unictype/property-bidi-boundary-neutral: New file.
33957         * modules/unictype/property-bidi-pdf: New file.
33958         * modules/unictype/property-bidi-embedding-or-override: New file.
33959         * modules/unictype/property-bidi-other-neutral: New file.
33960         * modules/unictype/property-hex-digit: New file.
33961         * modules/unictype/property-ascii-hex-digit: New file.
33962         * modules/unictype/property-ideographic: New file.
33963         * modules/unictype/property-unified-ideograph: New file.
33964         * modules/unictype/property-radical: New file.
33965         * modules/unictype/property-ids-binary-operator: New file.
33966         * modules/unictype/property-ids-trinary-operator: New file.
33967         * modules/unictype/property-zero-width: New file.
33968         * modules/unictype/property-space: New file.
33969         * modules/unictype/property-non-break: New file.
33970         * modules/unictype/property-iso-control: New file.
33971         * modules/unictype/property-format-control: New file.
33972         * modules/unictype/property-dash: New file.
33973         * modules/unictype/property-hyphen: New file.
33974         * modules/unictype/property-punctuation: New file.
33975         * modules/unictype/property-line-separator: New file.
33976         * modules/unictype/property-paragraph-separator: New file.
33977         * modules/unictype/property-quotation-mark: New file.
33978         * modules/unictype/property-sentence-terminal: New file.
33979         * modules/unictype/property-terminal-punctuation: New file.
33980         * modules/unictype/property-currency-symbol: New file.
33981         * modules/unictype/property-math: New file.
33982         * modules/unictype/property-other-math: New file.
33983         * modules/unictype/property-paired-punctuation: New file.
33984         * modules/unictype/property-left-of-pair: New file.
33985         * modules/unictype/property-combining: New file.
33986         * modules/unictype/property-composite: New file.
33987         * modules/unictype/property-decimal-digit: New file.
33988         * modules/unictype/property-numeric: New file.
33989         * modules/unictype/property-diacritic: New file.
33990         * modules/unictype/property-extender: New file.
33991         * modules/unictype/property-ignorable-control: New file.
33992         * modules/unictype/property-test: New file.
33993         * modules/unictype/property-byname: New file.
33994         * modules/unictype/property-all: New file.
33995         * modules/unictype/scripts: New file.
33996         * modules/unictype/scripts-all: New file.
33997         * modules/unictype/block-of: New file.
33998         * modules/unictype/block-test: New file.
33999         * modules/unictype/block-list: New file.
34000         * modules/unictype/block-all: New file.
34001         * modules/unictype/syntax-c-whitespace: New file.
34002         * modules/unictype/syntax-java-whitespace: New file.
34003         * modules/unictype/syntax-c-ident: New file.
34004         * modules/unictype/syntax-java-ident: New file.
34005         * modules/unictype/ctype-alnum: New file.
34006         * modules/unictype/ctype-alpha: New file.
34007         * modules/unictype/ctype-cntrl: New file.
34008         * modules/unictype/ctype-digit: New file.
34009         * modules/unictype/ctype-graph: New file.
34010         * modules/unictype/ctype-lower: New file.
34011         * modules/unictype/ctype-print: New file.
34012         * modules/unictype/ctype-punct: New file.
34013         * modules/unictype/ctype-space: New file.
34014         * modules/unictype/ctype-upper: New file.
34015         * modules/unictype/ctype-xdigit: New file.
34016         * modules/unictype/ctype-blank: New file.
34017         * lib/unictype/bidi_byname.c: New file.
34018         * lib/unictype/bidi_name.c: New file.
34019         * lib/unictype/bidi_of.c: New file.
34020         * lib/unictype/bidi_test.c: New file.
34021         * lib/unictype/bitmap.h: New file.
34022         * lib/unictype/block_test.c: New file.
34023         * lib/unictype/blocks.c: New file.
34024         * lib/unictype/categ_C.c: New file.
34025         * lib/unictype/categ_Cc.c: New file.
34026         * lib/unictype/categ_Cf.c: New file.
34027         * lib/unictype/categ_Cn.c: New file.
34028         * lib/unictype/categ_Co.c: New file.
34029         * lib/unictype/categ_Cs.c: New file.
34030         * lib/unictype/categ_L.c: New file.
34031         * lib/unictype/categ_Ll.c: New file.
34032         * lib/unictype/categ_Lm.c: New file.
34033         * lib/unictype/categ_Lo.c: New file.
34034         * lib/unictype/categ_Lt.c: New file.
34035         * lib/unictype/categ_Lu.c: New file.
34036         * lib/unictype/categ_M.c: New file.
34037         * lib/unictype/categ_Mc.c: New file.
34038         * lib/unictype/categ_Me.c: New file.
34039         * lib/unictype/categ_Mn.c: New file.
34040         * lib/unictype/categ_N.c: New file.
34041         * lib/unictype/categ_Nd.c: New file.
34042         * lib/unictype/categ_Nl.c: New file.
34043         * lib/unictype/categ_No.c: New file.
34044         * lib/unictype/categ_P.c: New file.
34045         * lib/unictype/categ_Pc.c: New file.
34046         * lib/unictype/categ_Pd.c: New file.
34047         * lib/unictype/categ_Pe.c: New file.
34048         * lib/unictype/categ_Pf.c: New file.
34049         * lib/unictype/categ_Pi.c: New file.
34050         * lib/unictype/categ_Po.c: New file.
34051         * lib/unictype/categ_Ps.c: New file.
34052         * lib/unictype/categ_S.c: New file.
34053         * lib/unictype/categ_Sc.c: New file.
34054         * lib/unictype/categ_Sk.c: New file.
34055         * lib/unictype/categ_Sm.c: New file.
34056         * lib/unictype/categ_So.c: New file.
34057         * lib/unictype/categ_Z.c: New file.
34058         * lib/unictype/categ_Zl.c: New file.
34059         * lib/unictype/categ_Zp.c: New file.
34060         * lib/unictype/categ_Zs.c: New file.
34061         * lib/unictype/categ_and.c: New file.
34062         * lib/unictype/categ_and_not.c: New file.
34063         * lib/unictype/categ_byname.c: New file.
34064         * lib/unictype/categ_name.c: New file.
34065         * lib/unictype/categ_none.c: New file.
34066         * lib/unictype/categ_of.c: New file.
34067         * lib/unictype/categ_or.c: New file.
34068         * lib/unictype/categ_test.c: New file.
34069         * lib/unictype/combining.c: New file.
34070         * lib/unictype/ctype_alnum.c: New file.
34071         * lib/unictype/ctype_alpha.c: New file.
34072         * lib/unictype/ctype_blank.c: New file.
34073         * lib/unictype/ctype_cntrl.c: New file.
34074         * lib/unictype/ctype_digit.c: New file.
34075         * lib/unictype/ctype_graph.c: New file.
34076         * lib/unictype/ctype_lower.c: New file.
34077         * lib/unictype/ctype_print.c: New file.
34078         * lib/unictype/ctype_punct.c: New file.
34079         * lib/unictype/ctype_space.c: New file.
34080         * lib/unictype/ctype_upper.c: New file.
34081         * lib/unictype/ctype_xdigit.c: New file.
34082         * lib/unictype/decdigit.c: New file.
34083         * lib/unictype/digit.c: New file.
34084         * lib/unictype/identsyntaxmap.h: New file.
34085         * lib/unictype/mirror.c: New file.
34086         * lib/unictype/numeric.c: New file.
34087         * lib/unictype/pr_alphabetic.c: New file.
34088         * lib/unictype/pr_ascii_hex_digit.c: New file.
34089         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34090         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34091         * lib/unictype/pr_bidi_block_separator.c: New file.
34092         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34093         * lib/unictype/pr_bidi_common_separator.c: New file.
34094         * lib/unictype/pr_bidi_control.c: New file.
34095         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34096         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34097         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34098         * lib/unictype/pr_bidi_european_digit.c: New file.
34099         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34100         * lib/unictype/pr_bidi_left_to_right.c: New file.
34101         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34102         * lib/unictype/pr_bidi_other_neutral.c: New file.
34103         * lib/unictype/pr_bidi_pdf.c: New file.
34104         * lib/unictype/pr_bidi_segment_separator.c: New file.
34105         * lib/unictype/pr_bidi_whitespace.c: New file.
34106         * lib/unictype/pr_byname.c: New file.
34107         * lib/unictype/pr_byname.gperf: New file.
34108         * lib/unictype/pr_combining.c: New file.
34109         * lib/unictype/pr_composite.c: New file.
34110         * lib/unictype/pr_currency_symbol.c: New file.
34111         * lib/unictype/pr_dash.c: New file.
34112         * lib/unictype/pr_decimal_digit.c: New file.
34113         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34114         * lib/unictype/pr_deprecated.c: New file.
34115         * lib/unictype/pr_diacritic.c: New file.
34116         * lib/unictype/pr_extender.c: New file.
34117         * lib/unictype/pr_format_control.c: New file.
34118         * lib/unictype/pr_grapheme_base.c: New file.
34119         * lib/unictype/pr_grapheme_extend.c: New file.
34120         * lib/unictype/pr_grapheme_link.c: New file.
34121         * lib/unictype/pr_hex_digit.c: New file.
34122         * lib/unictype/pr_hyphen.c: New file.
34123         * lib/unictype/pr_id_continue.c: New file.
34124         * lib/unictype/pr_id_start.c: New file.
34125         * lib/unictype/pr_ideographic.c: New file.
34126         * lib/unictype/pr_ids_binary_operator.c: New file.
34127         * lib/unictype/pr_ids_trinary_operator.c: New file.
34128         * lib/unictype/pr_ignorable_control.c: New file.
34129         * lib/unictype/pr_iso_control.c: New file.
34130         * lib/unictype/pr_join_control.c: New file.
34131         * lib/unictype/pr_left_of_pair.c: New file.
34132         * lib/unictype/pr_line_separator.c: New file.
34133         * lib/unictype/pr_logical_order_exception.c: New file.
34134         * lib/unictype/pr_lowercase.c: New file.
34135         * lib/unictype/pr_math.c: New file.
34136         * lib/unictype/pr_non_break.c: New file.
34137         * lib/unictype/pr_not_a_character.c: New file.
34138         * lib/unictype/pr_numeric.c: New file.
34139         * lib/unictype/pr_other_alphabetic.c: New file.
34140         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34141         * lib/unictype/pr_other_grapheme_extend.c: New file.
34142         * lib/unictype/pr_other_id_continue.c: New file.
34143         * lib/unictype/pr_other_id_start.c: New file.
34144         * lib/unictype/pr_other_lowercase.c: New file.
34145         * lib/unictype/pr_other_math.c: New file.
34146         * lib/unictype/pr_other_uppercase.c: New file.
34147         * lib/unictype/pr_paired_punctuation.c: New file.
34148         * lib/unictype/pr_paragraph_separator.c: New file.
34149         * lib/unictype/pr_pattern_syntax.c: New file.
34150         * lib/unictype/pr_pattern_white_space.c: New file.
34151         * lib/unictype/pr_private_use.c: New file.
34152         * lib/unictype/pr_punctuation.c: New file.
34153         * lib/unictype/pr_quotation_mark.c: New file.
34154         * lib/unictype/pr_radical.c: New file.
34155         * lib/unictype/pr_sentence_terminal.c: New file.
34156         * lib/unictype/pr_soft_dotted.c: New file.
34157         * lib/unictype/pr_space.c: New file.
34158         * lib/unictype/pr_terminal_punctuation.c: New file.
34159         * lib/unictype/pr_test.c: New file.
34160         * lib/unictype/pr_titlecase.c: New file.
34161         * lib/unictype/pr_unassigned_code_value.c: New file.
34162         * lib/unictype/pr_unified_ideograph.c: New file.
34163         * lib/unictype/pr_uppercase.c: New file.
34164         * lib/unictype/pr_variation_selector.c: New file.
34165         * lib/unictype/pr_white_space.c: New file.
34166         * lib/unictype/pr_xid_continue.c: New file.
34167         * lib/unictype/pr_xid_start.c: New file.
34168         * lib/unictype/pr_zero_width.c: New file.
34169         * lib/unictype/scripts.c: New file.
34170         * lib/unictype/sy_c_ident.c: New file.
34171         * lib/unictype/sy_c_whitespace.c: New file.
34172         * lib/unictype/sy_java_ident.c: New file.
34173         * lib/unictype/sy_java_whitespace.c: New file.
34174
34175         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34176         Unicode 5.0.0.
34177         * lib/unictype/blocks.h: Likewise.
34178         * lib/unictype/categ_C.h: Likewise.
34179         * lib/unictype/categ_Cc.h: Likewise.
34180         * lib/unictype/categ_Cf.h: Likewise.
34181         * lib/unictype/categ_Cn.h: Likewise.
34182         * lib/unictype/categ_Co.h: Likewise.
34183         * lib/unictype/categ_Cs.h: Likewise.
34184         * lib/unictype/categ_L.h: Likewise.
34185         * lib/unictype/categ_Ll.h: Likewise.
34186         * lib/unictype/categ_Lm.h: Likewise.
34187         * lib/unictype/categ_Lo.h: Likewise.
34188         * lib/unictype/categ_Lt.h: Likewise.
34189         * lib/unictype/categ_Lu.h: Likewise.
34190         * lib/unictype/categ_M.h: Likewise.
34191         * lib/unictype/categ_Mc.h: Likewise.
34192         * lib/unictype/categ_Me.h: Likewise.
34193         * lib/unictype/categ_Mn.h: Likewise.
34194         * lib/unictype/categ_N.h: Likewise.
34195         * lib/unictype/categ_Nd.h: Likewise.
34196         * lib/unictype/categ_Nl.h: Likewise.
34197         * lib/unictype/categ_No.h: Likewise.
34198         * lib/unictype/categ_P.h: Likewise.
34199         * lib/unictype/categ_Pc.h: Likewise.
34200         * lib/unictype/categ_Pd.h: Likewise.
34201         * lib/unictype/categ_Pe.h: Likewise.
34202         * lib/unictype/categ_Pf.h: Likewise.
34203         * lib/unictype/categ_Pi.h: Likewise.
34204         * lib/unictype/categ_Po.h: Likewise.
34205         * lib/unictype/categ_Ps.h: Likewise.
34206         * lib/unictype/categ_S.h: Likewise.
34207         * lib/unictype/categ_Sc.h: Likewise.
34208         * lib/unictype/categ_Sk.h: Likewise.
34209         * lib/unictype/categ_Sm.h: Likewise.
34210         * lib/unictype/categ_So.h: Likewise.
34211         * lib/unictype/categ_Z.h: Likewise.
34212         * lib/unictype/categ_Zl.h: Likewise.
34213         * lib/unictype/categ_Zp.h: Likewise.
34214         * lib/unictype/categ_Zs.h: Likewise.
34215         * lib/unictype/categ_of.h: Likewise.
34216         * lib/unictype/combining.h: Likewise.
34217         * lib/unictype/ctype_alnum.h: Likewise.
34218         * lib/unictype/ctype_alpha.h: Likewise.
34219         * lib/unictype/ctype_blank.h: Likewise.
34220         * lib/unictype/ctype_cntrl.h: Likewise.
34221         * lib/unictype/ctype_digit.h: Likewise.
34222         * lib/unictype/ctype_graph.h: Likewise.
34223         * lib/unictype/ctype_lower.h: Likewise.
34224         * lib/unictype/ctype_print.h: Likewise.
34225         * lib/unictype/ctype_punct.h: Likewise.
34226         * lib/unictype/ctype_space.h: Likewise.
34227         * lib/unictype/ctype_upper.h: Likewise.
34228         * lib/unictype/ctype_xdigit.h: Likewise.
34229         * lib/unictype/decdigit.h: Likewise.
34230         * lib/unictype/digit.h: Likewise.
34231         * lib/unictype/mirror.h: Likewise.
34232         * lib/unictype/numeric.h: Likewise.
34233         * lib/unictype/pr_alphabetic.h: Likewise.
34234         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34235         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34236         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34237         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34238         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34239         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34240         * lib/unictype/pr_bidi_control.h: Likewise.
34241         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34242         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34243         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34244         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34245         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34246         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34247         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34248         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34249         * lib/unictype/pr_bidi_pdf.h: Likewise.
34250         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34251         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34252         * lib/unictype/pr_combining.h: Likewise.
34253         * lib/unictype/pr_composite.h: Likewise.
34254         * lib/unictype/pr_currency_symbol.h: Likewise.
34255         * lib/unictype/pr_dash.h: Likewise.
34256         * lib/unictype/pr_decimal_digit.h: Likewise.
34257         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34258         * lib/unictype/pr_deprecated.h: Likewise.
34259         * lib/unictype/pr_diacritic.h: Likewise.
34260         * lib/unictype/pr_extender.h: Likewise.
34261         * lib/unictype/pr_format_control.h: Likewise.
34262         * lib/unictype/pr_grapheme_base.h: Likewise.
34263         * lib/unictype/pr_grapheme_extend.h: Likewise.
34264         * lib/unictype/pr_grapheme_link.h: Likewise.
34265         * lib/unictype/pr_hex_digit.h: Likewise.
34266         * lib/unictype/pr_hyphen.h: Likewise.
34267         * lib/unictype/pr_id_continue.h: Likewise.
34268         * lib/unictype/pr_id_start.h: Likewise.
34269         * lib/unictype/pr_ideographic.h: Likewise.
34270         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34271         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34272         * lib/unictype/pr_ignorable_control.h: Likewise.
34273         * lib/unictype/pr_iso_control.h: Likewise.
34274         * lib/unictype/pr_join_control.h: Likewise.
34275         * lib/unictype/pr_left_of_pair.h: Likewise.
34276         * lib/unictype/pr_line_separator.h: Likewise.
34277         * lib/unictype/pr_logical_order_exception.h: Likewise.
34278         * lib/unictype/pr_lowercase.h: Likewise.
34279         * lib/unictype/pr_math.h: Likewise.
34280         * lib/unictype/pr_non_break.h: Likewise.
34281         * lib/unictype/pr_not_a_character.h: Likewise.
34282         * lib/unictype/pr_numeric.h: Likewise.
34283         * lib/unictype/pr_other_alphabetic.h: Likewise.
34284         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34285         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34286         * lib/unictype/pr_other_id_continue.h: Likewise.
34287         * lib/unictype/pr_other_id_start.h: Likewise.
34288         * lib/unictype/pr_other_lowercase.h: Likewise.
34289         * lib/unictype/pr_other_math.h: Likewise.
34290         * lib/unictype/pr_other_uppercase.h: Likewise.
34291         * lib/unictype/pr_paired_punctuation.h: Likewise.
34292         * lib/unictype/pr_paragraph_separator.h: Likewise.
34293         * lib/unictype/pr_pattern_syntax.h: Likewise.
34294         * lib/unictype/pr_pattern_white_space.h: Likewise.
34295         * lib/unictype/pr_private_use.h: Likewise.
34296         * lib/unictype/pr_punctuation.h: Likewise.
34297         * lib/unictype/pr_quotation_mark.h: Likewise.
34298         * lib/unictype/pr_radical.h: Likewise.
34299         * lib/unictype/pr_sentence_terminal.h: Likewise.
34300         * lib/unictype/pr_soft_dotted.h: Likewise.
34301         * lib/unictype/pr_space.h: Likewise.
34302         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34303         * lib/unictype/pr_titlecase.h: Likewise.
34304         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34305         * lib/unictype/pr_unified_ideograph.h: Likewise.
34306         * lib/unictype/pr_uppercase.h: Likewise.
34307         * lib/unictype/pr_variation_selector.h: Likewise.
34308         * lib/unictype/pr_white_space.h: Likewise.
34309         * lib/unictype/pr_xid_continue.h: Likewise.
34310         * lib/unictype/pr_xid_start.h: Likewise.
34311         * lib/unictype/pr_zero_width.h: Likewise.
34312         * lib/unictype/scripts.h: Likewise.
34313         * lib/unictype/scripts_byname.gperf: Likewise.
34314         * lib/unictype/sy_c_ident.h: Likewise.
34315         * lib/unictype/sy_c_whitespace.h: Likewise.
34316         * lib/unictype/sy_java_ident.h: Likewise.
34317         * lib/unictype/sy_java_whitespace.h: Likewise.
34318
34319         * lib/unictype/Makefile: New file.
34320         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34321         glibc.
34322         * lib/unictype/3level.h: New file, copied from glibc.
34323         * lib/unictype/3levelbit.h: New file.
34324
34325 2007-11-11  Bruno Haible  <bruno@clisp.org>
34326
34327         * modules/gperf: New file.
34328         * modules/iconv_open (Depends-on): Add it.
34329         (Makefile.am): Remove the GPERF definition.
34330
34331 2007-11-11  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34334         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34335
34336 2007-11-11  Bruno Haible  <bruno@clisp.org>
34337
34338         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34339         (usage): Remove function.
34340
34341 2007-11-11  Bruno Haible  <bruno@clisp.org>
34342
34343         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34344         gl_FUNC_CEILF_LIBS.
34345         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34346         gl_FUNC_CEIL_LIBS.
34347         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34348         gl_FUNC_CEILL_LIBS.
34349         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34350         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34351         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34352
34353 2007-11-11  Bruno Haible  <bruno@clisp.org>
34354
34355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34356         roundf were declared but do not exist on functions.
34357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34358         roundl were declared but do not exist on functions.
34359         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34360         HAVE_FLOORL_AND_CEILL, respectively.
34361         Needed for Sun C on Solaris 10.
34362
34363 2007-11-11  Bruno Haible  <bruno@clisp.org>
34364
34365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34366         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34367         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34368         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34369         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34370         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34371         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34372         HAVE_DECL_ROUNDF.
34373         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34374         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34376         of HAVE_DECL_ROUND*.
34377         * modules/math (Makefile.am): Update.
34378
34379 2007-11-10  Bruno Haible  <bruno@clisp.org>
34380
34381         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34382         ptrdiff_t as m4/intl.m4.
34383
34384 2007-11-10  Jim Meyering  <meyering@redhat.com>
34385
34386         Avoid link failure for the argmatch test.
34387         * tests/test-argmatch.c (usage): Define function to avoid a link
34388         failure: argmatch_die requires a usage function.
34389
34390 2007-11-09  Bruno Haible  <bruno@clisp.org>
34391
34392         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34393         * doc/functions/vsnprintf.texi: Likewise.
34394         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34395         with a size argument < 2.
34396
34397 2007-11-09  Bruno Haible  <bruno@clisp.org>
34398
34399         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34400         buffer. Fixes an inefficiency introduced on 2007-11-03.
34401
34402 2007-11-09  Bruno Haible  <bruno@clisp.org>
34403
34404         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34405         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34406
34407 2007-11-08  Jim Meyering  <meyering@redhat.com>
34408
34409         Change cache variable name prefix "jm_" to "gl_" everywhere.
34410         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34411         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34412         * m4/uptime.m4: s/gl_/jm_/
34413
34414 2007-11-07  Bruno Haible  <bruno@clisp.org>
34415
34416         Update to GNU gettext 0.17.
34417         * m4/intl.m4: Update to GNU gettext 0.17.
34418         * m4/po.m4: Likewise.
34419         * modules/gettext (Files): Remove m4/ulonglong.m4.
34420         (configure.ac): Require gettext infrastructure from version 0.17.
34421
34422 2007-11-06  Bruno Haible  <bruno@clisp.org>
34423
34424         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34425         symbolic values are not defined in a public header.
34426         * lib/freadable.c (freadable) [QNX]: Likewise.
34427         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34428         * lib/freading.c (freading) [QNX]: Likewise.
34429         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34430         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34431         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34432         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34433         Reported by Alain Magloire.
34434
34435         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34436
34437 2007-11-05  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34440         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34441         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34442         Reported by Eric Blake.
34443
34444 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34445             Bruno Haible  <bruno@clisp.org>
34446
34447         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34448         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34449         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34450         (malloc): Undefine also before including <stdlib.h>.
34451         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34452         Needed on OSF/1 4.0.
34453
34454 2007-11-05  Jim Meyering  <meyering@redhat.com>
34455
34456         git-version-gen: sync from coreutils.
34457         * build-aux/git-version-gen: Add comments.
34458         Change the first '-' to '.' in the snapshot version string,
34459         e.g., 6.9-377-08144 -> 6.9.377-08144
34460         Remove first parameter.
34461         Don't declare a version "-dirty" merely because a time
34462         stamp has changed.
34463
34464 2007-11-04  Bruno Haible  <bruno@clisp.org>
34465
34466         * lib/lock.h: Protect all macro definitions containing an 'if'
34467         statement through a "do { ... } while (0)".
34468         * lib/tls.h: Likewise.
34469
34470 2007-11-04  Bruno Haible  <bruno@clisp.org>
34471
34472         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34473
34474 2007-11-04  Bruno Haible  <bruno@clisp.org>
34475
34476         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34477         * modules/fprintf-posix (Depends-on): Add nocrash.
34478         * modules/snprintf-posix (Depends-on): Likewise.
34479         * modules/sprintf-posix (Depends-on): Likewise.
34480         * modules/vasnprintf-posix (Depends-on): Likewise.
34481         * modules/vasprintf-posix (Depends-on): Likewise.
34482         * modules/vfprintf-posix (Depends-on): Likewise.
34483         * modules/vsnprintf-posix (Depends-on): Likewise.
34484         * modules/vsprintf-posix (Depends-on): Likewise.
34485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34492
34493 2007-11-04  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/nocrash: New file.
34496         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34497         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34498
34499 2007-11-04  Bruno Haible  <bruno@clisp.org>
34500
34501         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34502         precision handling.
34503         * tests/test-vasprintf-posix.c (test_function): Likewise.
34504         * tests/test-snprintf-posix.h (test_function): Likewise.
34505         * tests/test-sprintf-posix.h (test_function): Likewise.
34506
34507         Fix *printf behaviour for large precisions on mingw and BeOS.
34508         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34509         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34511         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34513         gl_PRINTF_PRECISION and test its result. Invoke
34514         gl_PREREQ_VASNPRINTF_PRECISION.
34515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34522         * doc/functions/fprintf.texi: Update.
34523         * doc/functions/printf.texi: Update.
34524         * doc/functions/snprintf.texi: Update.
34525         * doc/functions/sprintf.texi: Update.
34526         * doc/functions/vfprintf.texi: Update.
34527         * doc/functions/vprintf.texi: Update.
34528         * doc/functions/vsnprintf.texi: Update.
34529         * doc/functions/vsprintf.texi: Update.
34530
34531 2007-11-04  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34534
34535 2007-11-04  Bruno Haible  <bruno@clisp.org>
34536
34537         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34538         Reported by Sylvain Beucler <beuc@gnu.org>.
34539
34540 2007-11-03  Bruno Haible  <bruno@clisp.org>
34541
34542         * tests/test-fprintf-posix2.sh: New file.
34543         * tests/test-fprintf-posix2.c: New file.
34544         * modules/fprintf-posix-tests (Files): Add them.
34545         (TESTS): Add test-fprintf-posix2.sh.
34546         (configure.ac): Check for getrlimit and setrlimit.
34547         (check_PROGRAMS): Add test-fprintf-posix2.
34548
34549         * tests/test-printf-posix2.sh: New file.
34550         * tests/test-printf-posix2.c: New file.
34551         * modules/printf-posix-tests (Files): Add them.
34552         (TESTS): Add test-printf-posix2.sh.
34553         (configure.ac): Check for getrlimit and setrlimit.
34554         (check_PROGRAMS): Add test-printf-posix2.
34555
34556         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34557         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34558         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34559         (decode_double): New function, copied from decode_long_double.
34560         (scale10_round_decimal_decoded): New function, extracted from
34561         scale10_round_decimal_long_double.
34562         (scale10_round_decimal_long_double): Use it.
34563         (scale10_round_decimal_double): New function.
34564         (floorlog10): New function.
34565         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34567         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34569         gl_PRINTF_ENOMEM and test its result. Invoke
34570         gl_PREREQ_VASNPRINTF_ENOMEM.
34571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34578         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34579         * modules/snprintf-posix (Depends-on): Likewise.
34580         * modules/sprintf-posix (Depends-on): Likewise.
34581         * modules/vasnprintf-posix (Depends-on): Likewise.
34582         * modules/vasprintf-posix (Depends-on): Likewise.
34583         * modules/vfprintf-posix (Depends-on): Likewise.
34584         * modules/vsnprintf-posix (Depends-on): Likewise.
34585         * modules/vsprintf-posix (Depends-on): Likewise.
34586         * doc/functions/fprintf.texi: Update.
34587         * doc/functions/printf.texi: Update.
34588         * doc/functions/snprintf.texi: Update.
34589         * doc/functions/sprintf.texi: Update.
34590         * doc/functions/vfprintf.texi: Update.
34591         * doc/functions/vprintf.texi: Update.
34592         * doc/functions/vsnprintf.texi: Update.
34593         * doc/functions/vsprintf.texi: Update.
34594
34595 2007-11-03  Bruno Haible  <bruno@clisp.org>
34596
34597         * modules/frexp-nolibm-tests: New file.
34598
34599         * modules/frexp-nolibm: New file.
34600         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34601
34602 2007-11-03  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34605         value is C99 compliant.
34606         Needed for OSF/1 5.1.
34607
34608 2007-11-03  Bruno Haible  <bruno@clisp.org>
34609
34610         Fix out-of-memory handling of vasnprintf.
34611         * lib/printf-parse.c: Include <errno.h>.
34612         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34613         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34614         is already set.
34615
34616 2007-11-02  Eric Blake  <ebb9@byu.net>
34617
34618         Fix tests on cygwin.
34619         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34620
34621 2007-11-01  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34624         warning.
34625         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34626         needed for POSIX compatibility.
34627
34628 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34629
34630         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34631         for compatibility with GNU.
34632
34633 2007-11-01  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34636         (putenv): Renamed from rpl_putenv. Change argument type from
34637         'const char *' to 'char *'.
34638         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34639         of defining putenv in config.h, just set REPLACE_PUTENV.
34640         * modules/putenv (Depends-on): Add stdlib.
34641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34642         (Include): Use <stdlib.h>.
34643         * lib/stdlib.in.h (putenv): New declaration.
34644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34645         REPLACE_PUTENV.
34646         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34647         REPLACE_PUTENV.
34648         Needed for MacOS X 10.5.0.
34649         Reported by Peter O'Gorman <peter@pogma.com>.
34650
34651 2007-11-01  Jim Meyering  <meyering@redhat.com>
34652
34653         Treat an empty date string exactly like "0".
34654         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34655         if the remaining date string (to be parsed) is empty, use "0".
34656         Reported by Mischa Molhoek and discussed in this thread:
34657         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34658
34659 2007-10-31  Bruno Haible  <bruno@clisp.org>
34660
34661         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34662         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34663         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34664         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34665         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34666         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34667
34668 2007-10-31  Bruno Haible  <bruno@clisp.org>
34669
34670         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34671         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34672         (AC_TYPE_LONG_LONG_INT): Use it.
34673         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34674         it as well.
34675         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34676         to m4/longlong.m4.
34677         * modules/stdint (Files): Remove m4/ulonglong.m4.
34678         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34679         m4/ulonglong.m4.
34680         * modules/strtoumax (Files): Likewise.
34681
34682 2007-10-30  Bruno Haible  <bruno@clisp.org>
34683
34684         * modules/xvasprintf-posix: New file.
34685         Suggested by Eric Blake.
34686
34687 2007-10-30  Bruno Haible  <bruno@clisp.org>
34688
34689         * modules/xprintf-posix-tests: New file.
34690         * tests/test-xprintf-posix.sh: New file.
34691         * tests/test-xprintf-posix.c: New file.
34692         * tests/test-xfprintf-posix.c: New file.
34693
34694         * modules/xprintf-posix: New file.
34695
34696 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34697
34698         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34699         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34700         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34701
34702 2007-10-29  Bruno Haible  <bruno@clisp.org>
34703
34704         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34705         contain the special marker '_cv_'.
34706         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34707         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34708         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34709         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34710         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34711         Reported by Ralf Wildenhues.
34712
34713 2007-10-29  Bruno Haible  <bruno@clisp.org>
34714
34715         * gnulib-tool (func_import): When --lgpl is not specified, set
34716         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34717         GPLv3.
34718         Reported by Simon Josefsson.
34719
34720 2007-10-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34723         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34724         HAVE_DECL_ISFINITE.
34725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34726         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34727         HAVE_DECL_ISFINITE.
34728
34729 2007-10-28  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34732         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34733
34734 2007-10-28  Bruno Haible  <bruno@clisp.org>
34735
34736         Fix link errors with Sun C 5.0 on Solaris 10.
34737         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34738         function is declared but not present in the compiler's libm.
34739         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34740         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34741         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34742         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34743         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34744         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34745         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34747         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34748         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34749         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34750         HAVE_DECL_FLOORL.
34751
34752 2007-10-28  Bruno Haible  <bruno@clisp.org>
34753
34754         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34755         gl_FUNC_FLOORL. Cache the result.
34756         (gl_FUNC_FLOORL): Use it.
34757         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34758         gl_FUNC_CEILL. Cache the result.
34759         (gl_FUNC_CEILL): Use it.
34760
34761         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34762         gl_FUNC_FLOOR. Cache the result.
34763         (gl_FUNC_FLOOR): Use it.
34764         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34765         gl_FUNC_CEIL. Cache the result.
34766         (gl_FUNC_CEIL): Use it.
34767
34768         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34769         gl_FUNC_FLOORF. Cache the result.
34770         (gl_FUNC_FLOORF): Use it.
34771         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34772         gl_FUNC_CEILF. Cache the result.
34773         (gl_FUNC_CEILF): Use it.
34774
34775 2007-10-28  Bruno Haible  <bruno@clisp.org>
34776
34777         * gnulib-tool: Allow specifying the LGPL version number through
34778         --lgpl=2 or --lgpl=3.
34779         (func_usage): Document --lgpl with argument.
34780         Handle --lgpl=... arguments.
34781         (func_import): Recognize also gl_LGPL calls with an argument. When
34782         --lgpl=2 is used and the module's license is just LGPL, report an
34783         error. Set sed_transform_lib_file according to the lgpl variable. In
34784         the generated files, use --lgpl or gl_LGPL invocations with argument,
34785         if necessary.
34786         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34787         an LGPv2+ license.
34788         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34789         gl_LGPL macro.
34790
34791 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34792             Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34795         (u16_uctomb_aux): Likewise.
34796         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34797         !HAVE_INLINE.
34798         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34799
34800 2007-10-28  Bruno Haible  <bruno@clisp.org>
34801
34802         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34803         Invoke AM_GETTEXT_OPTION if it exists.
34804         * modules/vasprintf: Likewise.
34805         * modules/verror: Likewise.
34806         * modules/xprintf: Likewise.
34807         * modules/xvasprintf: Likewise.
34808
34809 2007-10-27  Ben Pfaff  <blp@gnu.org>
34810
34811         * lib/math.in.h: Define isfinite macro and prototypes for
34812         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34813         implementations.
34814         * m4/math_h.m4: New substitutions for isfinite module.
34815         * lib/isfinite.c: New file.
34816         * m4/isfinite.m4: New file.
34817         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34818         * modules/isfinite: New file.
34819         * modules/isfinite-tests: New file.
34820         * tests/tests-isfinite.c: New file.
34821         * doc/functions/isfinite.texi: Mention isfinite module.
34822         * MODULES.html.sh: Mention new module.
34823
34824 2007-10-27  Ben Pfaff  <blp@gnu.org>
34825
34826         Ralf Wildenhues reported that Tru64 4.0D declares the round
34827         functions but does not have definitions.
34828         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34829         cannot be found in any library, set the output variable to
34830         "missing" instead of "".
34831         * m4/round.m4: Also use our substitute if we cannot find round in
34832         any library, even if it is declared.
34833         * m4/roundf.m4: Likewise for roundf.
34834         * m4/roundl.m4: Likewise for roundl.
34835         * lib/math.in.h: Undefine roundf, round, roundl before defining
34836         their replacements, to allow for hypothetical systems where these
34837         may be defined as macros but not available in libraries.
34838
34839 2007-10-27  Bruno Haible  <bruno@clisp.org>
34840
34841         * doc/gnulib.texi: Invoke @firstparagraphindent.
34842         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34843         changes in gnulib.
34844         (Source changes): New section.
34845
34846 2007-10-26  Bruno Haible  <bruno@clisp.org>
34847
34848         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
34849         borrowed from autoconf.
34850
34851 2007-10-26  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
34854         strerror returned the empty string. Needed on HP-UX 11.00.
34855
34856 2007-10-24  Micah Cowan  <micah@cowan.name>
34857
34858         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
34859         * build-aux/bootstrap: Remove support for now-unnecessary option,
34860         --cvs-user, and envvars CVS_USER, CVS_RSH.
34861
34862 2007-10-24  Jim Meyering  <meyering@redhat.com>
34863
34864         Avoid diagnostics from sha1sum when there is no cached checksum.
34865         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
34866         if the po.s1 file hasn't been created yet.
34867
34868         * build-aux/bootstrap: Sync from coreutils:
34869         2007-10-24  Jim Meyering  <meyering@redhat.com>
34870         Get gnulib from the git repository, not from an obsolete cvs one.
34871         * build-aux/bootstrap: Suggestion from Micah Cowan.
34872         2007-10-04  Jim Meyering  <jim@meyering.net>
34873         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
34874         (update_po_files): Work also when there are no .po files in po/.
34875
34876 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34877
34878         * README: Append ".git" to git and cg examples.
34879         Problem reported by Benoit Sigoure.
34880
34881 2007-10-23  Micah Cowan  <micah@cowan.name>
34882
34883         * users.txt: Add wget.
34884
34885 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34886
34887         Fix linking of some unistdio tests on FreeBSD.
34888         * modules/unistdio/u16-vsnprintf-tests
34889         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
34890         * modules/unistdio/u16-vsprintf-tests
34891         (test_u16_vsnprintf1_LDADD): Likewise.
34892         * modules/unistdio/u32-vsnprintf-tests
34893         (test_u32_vsnprintf1_LDADD): Likewise.
34894         * modules/unistdio/u32-vsprintf-tests
34895         (test_u32_vsprintf1_LDADD): Likewise.
34896         * modules/unistdio/u8-vsnprintf-tests
34897         (test_u8_vsnprintf1_LDADD): Likewise.
34898         * modules/unistdio/u8-vsprintf-tests
34899         (test_u8_vsprintf1_LDADD): Likewise.
34900         * modules/unistdio/ulc-vsnprintf-tests
34901         (test_ulc_vsnprintf1_LDADD): Likewise.
34902         * modules/unistdio/ulc-vsprintf-tests
34903         (test_ulc_vsprintf1_LDADD): Likewise.
34904
34905         Fix linking of some uniconv tests on FreeBSD.
34906         * modules/uniconv/u16-conv-from-enc-tests
34907         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
34908         * modules/uniconv/u16-conv-to-enc-tests
34909         (test_u16_conv_to_enc_LDADD): Likewise.
34910         * modules/uniconv/u16-strconv-from-enc-tests
34911         (test_u16_strconv_from_enc_LDADD): Likewise.
34912         * modules/uniconv/u16-strconv-to-enc-tests
34913         (test_u16_strconv_to_enc_LDADD): Likewise.
34914         * modules/uniconv/u32-conv-from-enc-tests
34915         (test_u32_conv_from_enc_LDADD): Likewise.
34916         * modules/uniconv/u32-conv-to-enc-tests
34917         (test_u32_conv_to_enc_LDADD): Likewise.
34918         * modules/uniconv/u32-strconv-from-enc-tests
34919         (test_u32_strconv_from_enc_LDADD): Likewise.
34920         * modules/uniconv/u32-strconv-to-enc-tests
34921         (test_u32_strconv_to_enc_LDADD): Likewise.
34922         * modules/uniconv/u8-conv-from-enc-tests
34923         (test_u8_conv_from_enc_LDADD): Likewise.
34924         * modules/uniconv/u8-conv-to-enc-tests
34925         (test_u8_conv_to_enc_LDADD): Likewise.
34926         * modules/uniconv/u8-strconv-from-enc-tests
34927         (test_u8_strconv_from_enc_LDADD): Likewise.
34928         * modules/uniconv/u8-strconv-to-enc-tests
34929         (test_u8_strconv_to_enc_LDADD): Likewise.
34930
34931 2007-10-22  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
34934         size.
34935
34936 2007-10-22  Eric Blake  <ebb9@byu.net>
34937
34938         Tweak x*printf documentation.
34939         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
34940         variable name and comments.
34941         Suggested by Bruno Haible.
34942
34943 2007-10-22  Bruno Haible  <bruno@clisp.org>
34944
34945         * lib/acl.c (copy_acl): Fix file name in comment.
34946
34947 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34948
34949         Fix Tru64 problem with stdbool.h.
34950         * lib/stdbool.in.h (false, true):
34951         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
34952         Don't declare as an enum in this situation; it runs afoul of Tru64.
34953         Problem reported by Steven M. Schweda in
34954         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
34955
34956 2007-10-22  Eric Blake  <ebb9@byu.net>
34957
34958         Also wrap vf?printf.
34959         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
34960         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
34961         (xvprintf, xvfprintf): New functions.
34962
34963 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34964
34965         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
34966         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
34967
34968         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
34969         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
34970
34971 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
34972
34973         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
34974         by Bruno Haible.
34975
34976 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34977
34978         * lib/getloadavg.c
34979         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
34980         Undef `sys' after including sys/table.h, for Tru64 4.0D.
34981
34982         * tests/test-i-ring.c: Work for C89.
34983
34984 2007-10-22  Bruno Haible  <bruno@clisp.org>
34985
34986         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
34987         -1u, in preprocessor expression, so that we don't test for the bug
34988         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
34989         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
34990
34991 2007-10-22  Eric Blake  <ebb9@byu.net>
34992
34993         * tests/test-yesno.sh: Silence stderr during test.
34994
34995 2007-10-22  Simon Josefsson  <simon@josefsson.org>
34996
34997         * modules/crypto/gc-camellia: New file.
34998
34999         * m4/gc-camellia.m4: New file.
35000
35001         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35002
35003         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35004
35005 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35006
35007         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35008         --help to stdout.  Reported by sms@antinode.org (Steven
35009         M. Schweda).
35010
35011 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35012
35013         * users.txt: Fix link to libksba.
35014
35015 2007-10-21  Ben Pfaff  <blp@gnu.org>
35016
35017         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35018         round.c roundf implementation that depends on floorf and ceilf to
35019         be tested unconditionally.
35020
35021 2007-10-21  Ben Pfaff  <blp@gnu.org>
35022
35023         * m4/check-libm-func.m4: Removed.
35024         * m4/check-math-lib.m4: New file.
35025         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35026         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35027         definition and lack of AC_LIBOBJ([roundf]).
35028         * m4/roundl.m4: Ditto, and similarly for roundl.
35029         * modules/round: Reference new m4 file.
35030         * modules/roundf: Ditto.
35031         * modules/roundl: Ditto.
35032         * tests/test-round2.c (main): Use ROUND instead of round.
35033         Bug report from Bruno Haible.
35034
35035 2007-10-21  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35038         context.
35039
35040 2007-10-21  Bruno Haible  <bruno@clisp.org>
35041
35042         * tests/test-wcwidth.c (main): Allow negative result for some control
35043         characters.
35044
35045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35046         Needed on OSF/1 5.1.
35047
35048 2007-10-21  Bruno Haible  <bruno@clisp.org>
35049
35050         * tests/test-floorf1.c: Include isnanf.h.
35051         (main): Use isnanf() instead of isnan().
35052         * tests/test-ceilf1.c: Include isnanf.h.
35053         (main): Use isnanf() instead of isnan().
35054         * tests/test-truncf1.c: Include isnanf.h.
35055         (main): Use isnanf() instead of isnan().
35056         * tests/test-roundf1.c: Include isnanf.h.
35057         (main): Use isnanf() instead of isnan().
35058
35059 2007-10-21  Eric Blake  <ebb9@byu.net>
35060
35061         * users.txt: Update URL for m4.
35062
35063 2007-10-21  Bruno Haible  <bruno@clisp.org>
35064
35065         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35066
35067 2007-10-21  Bruno Haible  <bruno@clisp.org>
35068
35069         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35070         Git's management files if the CVS files are not present.
35071
35072 2007-10-20  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35075         gcc-3.4.x.
35076
35077 2007-10-20  Ben Pfaff  <blp@gnu.org>
35078
35079         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35080         implementations.
35081         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35082         * lib/round.c: New file.
35083         * lib/roundf.c: New file.
35084         * lib/roundl.c: New file.
35085         * m4/round.m4: New file.
35086         * m4/roundf.m4: New file.
35087         * m4/roundl.m4: New file.
35088         * m4/check-libm-func-m4: New file.
35089         * modules/math: Replace round, roundf, roundl related @VARS@ in
35090         math.in.h.
35091         * modules/round: New file.
35092         * modules/round-tests: New file.
35093         * modules/roundf: New file.
35094         * modules/roundf-tests: New file.
35095         * modules/roundl: New file.
35096         * modules/roundl-tests: New file.
35097         * tests/test-round1.c: New file.
35098         * tests/test-round2.c: New file.
35099         * tests/test-roundf1.c: New file.
35100         * tests/test-roundf2.c: New file.
35101         * tests/test-roundl.c: New file.
35102         * doc/functions/round.texi: Mention round module.
35103         * doc/functions/roundf.texi: Mention roundf module.
35104         * doc/functions/roundl.texi: Mention roundl module.
35105         * MODULES.html.sh: Mention new modules.
35106         Thanks to Bruno Haible for suggestions.
35107
35108 2007-10-20  Jim Meyering  <meyering@redhat.com>
35109
35110         * lib/xprintf.c: Include <config.h> unconditionally.
35111
35112         Change xprintf's license to GPL.
35113         * modules/xprintf (License): s/LGPL/GPL/, since this module
35114         depends on modules (exit and exitfail) which are GPL.
35115         Suggestion from Bruno Haible.
35116
35117         xprintf fixes.
35118         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35119         Use a clearer diagnostic.
35120         Patch from Bruno Haible.
35121
35122 2007-10-20  Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35125         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35127
35128 2007-10-20  Bruno Haible  <bruno@clisp.org>
35129
35130         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35131         precision in the comparison result > x - 1 or similar.
35132         * tests/test-ceilf2.c (correct_result_p): Likewise.
35133         * tests/test-truncf2.c (correct_result_p): Likewise.
35134         * tests/test-trunc2.c (correct_result_p): Likewise.
35135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35136
35137 2007-10-20  Bruno Haible  <bruno@clisp.org>
35138
35139         * modules/ceil: New file.
35140         * m4/ceil.m4: New file.
35141         * doc/functions/ceil.texi: Mention the 'ceil' module.
35142
35143 2007-10-20  Bruno Haible  <bruno@clisp.org>
35144
35145         * modules/floor: New file.
35146         * m4/floor.m4: New file.
35147         * doc/functions/floor.texi: Mention the 'floor' module.
35148
35149 2007-10-20  Bruno Haible  <bruno@clisp.org>
35150
35151         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35152         of %a.
35153         * modules/floorf-tests (Depends-on): Likewise.
35154         * modules/truncf-tests (Depends-on): Likewise.
35155         * modules/trunc-tests (Depends-on): Likewise.
35156         Reported by Ben Pfaff.
35157
35158 2007-10-19  Jim Meyering  <meyering@redhat.com>
35159
35160         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35161         Don't bother testing specific errno values.  Just test ferror.
35162
35163         New module: xprintf
35164         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35165
35166 2007-10-19  Bruno Haible  <bruno@clisp.org>
35167
35168         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35169         syntax.
35170         * modules/javaexec (Makefile.am): Likewise.
35171         * modules/relocatable-prog (Makefile.am): Likewise.
35172         Suggested by Jim Meyering.
35173
35174 2007-10-18  Bruno Haible  <bruno@clisp.org>
35175
35176         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35177         Reported by Jim Meyering.
35178
35179 2007-10-18  Eric Blake  <ebb9@byu.net>
35180
35181         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35182
35183 2007-10-18  Bruno Haible  <bruno@clisp.org>
35184
35185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35186         the format string into writable memory. Needed in Fortify conditions.
35187
35188 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35189             Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35192         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35193         * modules/trim (Depends-on): Add mbchar.
35194         (configure.ac): Add gl_FUNC_MBRTOWC.
35195         (Makefile.am): Augment lib_SOURCES.
35196
35197 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35198
35199         Modify glob.c to use fstatat and dirfd, to simplify it.
35200         Suggested by Eric Blake.
35201         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35202         Don't include <stdbool.h>; not used.
35203         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35204         (link_exists_p): Simplify implementation, since we can now assume
35205         dirfd and fstatat.
35206         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35207
35208 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35209
35210         * gnulib-tool (func_get_dependencies): Fix sed script to
35211         match only tests.
35212
35213 2007-10-17  Bruno Haible  <bruno@clisp.org>
35214
35215         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35216         allow locale names without encoding suffix.
35217         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35219
35220 2007-10-16  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35223         * lib/getgroups.c (getgroups): Likewise.
35224         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35225
35226 2007-10-16  Bruno Haible  <bruno@clisp.org>
35227
35228         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35229         * modules/malloc-posix (License): Likewise.
35230         * modules/realloc-posix (License): Likewise.
35231         * modules/calloc-posix (License): Likewise.
35232         * modules/intprops (License): Change from GPL to LGPL, with
35233         Paul Eggert's approval.
35234
35235 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35236
35237         Merge glibc changes into lib/glob.c.
35238
35239         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35240         2007-10-15 04:59:03 UTC.  Here are the changes:
35241
35242         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35243
35244         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35245
35246         * lib/glob.c: Add some branch prediction throughout.
35247
35248         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35249
35250         [BZ #5103]
35251         * lib/glob.c (glob): Recognize patterns starting \/.
35252
35253         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35254
35255         [BZ #3996]
35256         * lib/glob.c (attribute_hidden): Define if not defined.
35257         (glob): Unescape dirname, filename or username when needed and not
35258         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35259         is NULL.  Handle unescaped [ in pattern without closing ].
35260         Don't pass GLOB_CHECK down to recursive glob for directories.
35261         (__glob_pattern_type): New function.
35262         (__glob_pattern_p): Implement using __glob_pattern_type.
35263         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35264         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35265         Remove unreachable code.
35266
35267         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35268
35269         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35270         explain why there are no leaks.
35271
35272         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35273
35274         [BZ #3253]
35275         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35276         time, rather allocate increasingly bigger arrays of pointers, if
35277         possible with alloca, if too large with malloc.
35278
35279 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35280
35281         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35282         Problem reported by H.Merijn Brand in
35283         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35285         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35286
35287 2007-10-15  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35290         with explicit rpl_ prefix.
35291         * lib/fopen.c (fopen): Likewise.
35292         * lib/freopen.c (freopen): Likewise.
35293         * lib/iconv.c (iconv): Likewise.
35294         * lib/iconv_close.c (iconv_close): Likewise.
35295
35296 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35297
35298         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35299
35300 2007-10-15  Bruno Haible  <bruno@clisp.org>
35301
35302         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35303         <stddef.h> instead of <stdlib.h> since we only need NULL.
35304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35305
35306 2007-10-15  Bruno Haible  <bruno@clisp.org>
35307
35308         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35309         Replace paragraph talking about LIBOBJS.
35310         Reported by Colin Watson <cjwatson@debian.org>.
35311
35312 2007-10-15  Bruno Haible  <bruno@clisp.org>
35313
35314         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35315         <stdlib.h> before using NULL.
35316
35317 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35318
35319         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35320         Reported by Albert Chin <china@thewrittenword.com>.
35321
35322 2007-10-14  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/iconv_open-utf-tests: New file.
35325         * tests/test-iconv-utf.c: New file.
35326
35327         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35328         * modules/iconv_open-utf: New file.
35329         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35330         (iconv, iconv_close): New declarations.
35331         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35332         be defined.
35333         (iconv_open): Add special handling of conversion between UTF-8 and
35334         UTF-{16,32}{BE,LE}.
35335         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35336         * lib/iconv_close.c: New file.
35337         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35338         gl_FUNC_ICONV_OPEN.
35339         (gl_FUNC_ICONV_OPEN): Use it.
35340         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35341         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35342         and REPLACE_ICONV_UTF.
35343         * modules/iconv_open (Depends-on): Add c-strcase.
35344         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35345         ICONV_CONST.
35346         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35347
35348 2007-10-13  Albert Chin  <china@thewrittenword.com>
35349             Bruno Haible  <bruno@clisp.org>
35350
35351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35352         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35353
35354 2007-10-13  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35357         defined, use the ISO C99 inline semantics.
35358         * lib/argp.h (ARGP_EI): Likewise.
35359
35360 2007-10-13  Bruno Haible  <bruno@clisp.org>
35361
35362         Handle 'inline' change in gcc 4.3.0.
35363         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35364         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35365         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35366         argp_fmtstream_point): Disable 'extern' declaration if the function
35367         definition is going to be provided inline.
35368         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35369         semantics, not the ISO C99 inline semantics.
35370         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35371         'extern' declaration if the function definition is going to be provided
35372         inline.
35373         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35374         the GNU C inline semantics, not the ISO C99 inline semantics. With
35375         GCC 4.2, avoid a warning.
35376
35377 2007-10-13  Bruno Haible  <bruno@clisp.org>
35378
35379         * lib/freading.h (freading): Enable the use of __freading for
35380         glibc >= 2.7.
35381         * lib/freading.c (freading): Likewise.
35382
35383 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35384
35385         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35386         "warning: C99 inline functions are not supported; using GNU89".
35387
35388 2007-10-12  Bruno Haible  <bruno@clisp.org>
35389
35390         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35391         of 2.
35392         * tests/test-ceilf2.c: New file.
35393         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35394
35395         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35396         * modules/ceilf-tests: Update.
35397
35398 2007-10-12  Bruno Haible  <bruno@clisp.org>
35399
35400         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35401         of 2.
35402         * tests/test-floorf2.c: New file.
35403         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35404
35405         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35406         * modules/floorf-tests: Update.
35407
35408 2007-10-12  Bruno Haible  <bruno@clisp.org>
35409
35410         * tests/test-trunc2.c: New file.
35411         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35412
35413         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35414         * modules/trunc-tests: Update.
35415
35416 2007-10-12  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35419         of 2.
35420         * tests/test-truncf2.c: New file.
35421         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35422
35423         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35424         * modules/truncf-tests: Update.
35425
35426 2007-10-11  Eric Blake  <ebb9@byu.net>
35427
35428         Don't claim strerror is broken on Interix.
35429         * doc/functions/strerror.texi (strerror): Known broken systems are
35430         now Solaris 8, and not Interix.
35431         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35432         Interix on cross-compile.
35433         Reported by Martin Koeppe in
35434         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35435
35436 2007-10-11  Bruno Haible  <bruno@clisp.org>
35437
35438         * modules/i-ring-tests: New file.
35439         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35440         instead of assert.
35441
35442 2007-10-11  Bruno Haible  <bruno@clisp.org>
35443
35444         * modules/filenamecat-tests: New file.
35445         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35446         * lib/filenamecat.c: Remove test code.
35447
35448 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35449
35450         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35451
35452         * lib/strerror.c: Include <string.h> always, to test interface,
35453         and to remove the need for the dummy.
35454         Include intprops.h to compute width instead of doing it ourselves
35455         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35456         (strerror): Define it to return NULL if there's no system strerror.
35457         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35458         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35459         ancient pre-strerror Unix systems well any more.  Saying "unknown
35460         system error" is enough.
35461         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35462         simpler strerror.c implementation.
35463         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35464         Simplify the tests to reflect the simpler strerror implementation.
35465         * modules/strerror (Depends-on): Add intprops.
35466
35467 2007-10-09  Eric Blake  <ebb9@byu.net>
35468
35469         Silence test-fpending.
35470         * modules/fpending-tests (Files): Add wrapper script.
35471         * tests/test-fpending.sh: New file.
35472
35473 2007-10-09  Bruno Haible  <bruno@clisp.org>
35474
35475         * MODULES.html.sh (func_module): Don't create a hyperlink for
35476         function names like 'printf_frexp'.
35477         (Misc): Add crc, memxor.
35478         (Characteristics of floating types): New section.
35479         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35480         isnanf-nolibm, signbit, trunc, truncf, truncl.
35481         (Enhancements for ISO C 99 functions): New subsection Input/output.
35482         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35483         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35484         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35485         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35486         (Enhancements for POSIX:2001 functions): Add chdir-long.
35487         (File system functions): Add areadlink, chdir-safer, read-file.
35488         Remove cycle-check.
35489         (File system as inode set): New section.
35490         (Date and time): Add gethrxtime.
35491         (Multithreading): Add openmp.
35492         (Internationalization functions): Add localename.
35493         (Unicode string functions): Add unistr/u*-mbsnlen.
35494         (Support for maintaining and releasing projects): Add git-version-gen.
35495         (Lone files): Remove directories.
35496
35497 2007-10-08  Ben Pfaff  <blp@gnu.org>
35498
35499         * lib/xmalloca.h: Fix typo in comment.
35500
35501 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35502
35503         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35504         when avoiding problems with integer overflow.  Use a portable test
35505         instead.
35506
35507 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35508
35509         * modules/dummy (License): Change to LGPLv2+.
35510         * modules/float (License): Likewise
35511         * modules/realloc (License): Likewise
35512         * modules/stdlib (License): Likewise
35513
35514 2007-10-07  Bruno Haible  <bruno@clisp.org>
35515
35516         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35517         * floor.c (TWO_MANT_DIG): Likewise.
35518         * ceil.c (TWO_MANT_DIG): Likewise.
35519         Reported by Ben Pfaff.
35520
35521 2007-10-07  Bruno Haible  <bruno@clisp.org>
35522
35523         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35524         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35525         * lib/frexp.c (FUNC): Likewise.
35526         * lib/printf-frexp.h (printf_frexp): Likewise.
35527         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35528         * lib/printf-frexp.c (FUNC): Likewise.
35529         Suggested by Jim Meyering.
35530
35531 2007-10-07  Jim Meyering  <meyering@redhat.com>
35532
35533         Make xnanosleep's integer overflow test more robust.
35534         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35535         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35536
35537 2007-10-07  Bruno Haible  <bruno@clisp.org>
35538
35539         * NEWS: Mention the license change.
35540
35541         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35542         abbreviations in the modules files.
35543
35544         Change copyright notice from GPLv2+ to GPLv3+.
35545         * README: Change copyright notice.
35546         * MODULES.html.sh: Likewise.
35547         * build-aux/bootstrap.conf: Likewise.
35548         * build-aux/config.libpath: Likewise.
35549         * build-aux/csharpcomp.sh.in: Likewise.
35550         * build-aux/csharpexec.sh.in: Likewise.
35551         * build-aux/install-reloc: Likewise.
35552         * build-aux/javacomp.sh.in: Likewise.
35553         * build-aux/javaexec.sh.in: Likewise.
35554         * build-aux/ldd.sh.in: Likewise.
35555         * build-aux/reloc-ldflags: Likewise.
35556         * build-aux/relocatable.sh.in: Likewise.
35557         * build-aux/x-to-1.in: Likewise.
35558         * check-module: Likewise.
35559         * config/srclistvars.sh: Likewise.
35560         * gnulib-tool: Likewise.
35561         * lib/acl-internal.h: Likewise.
35562         * lib/acl.c: Likewise.
35563         * lib/acl.h: Likewise.
35564         * lib/acl_entries.c: Likewise.
35565         * lib/areadlink-with-size.c: Likewise.
35566         * lib/areadlink.c: Likewise.
35567         * lib/areadlink.h: Likewise.
35568         * lib/argmatch.c: Likewise.
35569         * lib/argmatch.h: Likewise.
35570         * lib/argp-ba.c: Likewise.
35571         * lib/argp-eexst.c: Likewise.
35572         * lib/argp-fmtstream.c: Likewise.
35573         * lib/argp-fmtstream.h: Likewise.
35574         * lib/argp-fs-xinl.c: Likewise.
35575         * lib/argp-help.c: Likewise.
35576         * lib/argp-namefrob.h: Likewise.
35577         * lib/argp-parse.c: Likewise.
35578         * lib/argp-pin.c: Likewise.
35579         * lib/argp-pv.c: Likewise.
35580         * lib/argp-pvh.c: Likewise.
35581         * lib/argp-xinl.c: Likewise.
35582         * lib/argp.h: Likewise.
35583         * lib/at-func.c: Likewise.
35584         * lib/atanl.c: Likewise.
35585         * lib/backupfile.c: Likewise.
35586         * lib/backupfile.h: Likewise.
35587         * lib/basename.c: Likewise.
35588         * lib/binary-io.h: Likewise.
35589         * lib/byteswap.in.h: Likewise.
35590         * lib/c-stack.c: Likewise.
35591         * lib/c-stack.h: Likewise.
35592         * lib/c-strcasestr.c: Likewise.
35593         * lib/c-strcasestr.h: Likewise.
35594         * lib/c-strstr.c: Likewise.
35595         * lib/c-strstr.h: Likewise.
35596         * lib/c-strtod.c: Likewise.
35597         * lib/calloc.c: Likewise.
35598         * lib/canon-host.c: Likewise.
35599         * lib/canon-host.h: Likewise.
35600         * lib/canonicalize-lgpl.c: Likewise.
35601         * lib/canonicalize.c: Likewise.
35602         * lib/canonicalize.h: Likewise.
35603         * lib/ceil.c: Likewise.
35604         * lib/ceilf.c: Likewise.
35605         * lib/ceill.c: Likewise.
35606         * lib/chdir-long.c: Likewise.
35607         * lib/chdir-long.h: Likewise.
35608         * lib/chdir-safer.c: Likewise.
35609         * lib/chdir-safer.h: Likewise.
35610         * lib/chown.c: Likewise.
35611         * lib/classpath.c: Likewise.
35612         * lib/classpath.h: Likewise.
35613         * lib/clean-temp.c: Likewise.
35614         * lib/clean-temp.h: Likewise.
35615         * lib/cloexec.c: Likewise.
35616         * lib/close-stream.c: Likewise.
35617         * lib/closein.c: Likewise.
35618         * lib/closein.h: Likewise.
35619         * lib/closeout.c: Likewise.
35620         * lib/closeout.h: Likewise.
35621         * lib/concat-filename.c: Likewise.
35622         * lib/copy-file.c: Likewise.
35623         * lib/copy-file.h: Likewise.
35624         * lib/count-one-bits.h: Likewise.
35625         * lib/crc.c: Likewise.
35626         * lib/crc.h: Likewise.
35627         * lib/creat-safer.c: Likewise.
35628         * lib/csharpcomp.c: Likewise.
35629         * lib/csharpcomp.h: Likewise.
35630         * lib/csharpexec.c: Likewise.
35631         * lib/csharpexec.h: Likewise.
35632         * lib/cycle-check.c: Likewise.
35633         * lib/cycle-check.h: Likewise.
35634         * lib/diacrit.c: Likewise.
35635         * lib/diacrit.h: Likewise.
35636         * lib/diffseq.h: Likewise.
35637         * lib/dirchownmod.c: Likewise.
35638         * lib/dirent.in.h: Likewise.
35639         * lib/dirfd.c: Likewise.
35640         * lib/dirfd.h: Likewise.
35641         * lib/dirname.c: Likewise.
35642         * lib/dirname.h: Likewise.
35643         * lib/dummy.c: Likewise.
35644         * lib/dup-safer.c: Likewise.
35645         * lib/dup2.c: Likewise.
35646         * lib/eealloc.h: Likewise.
35647         * lib/error.c: Likewise.
35648         * lib/error.h: Likewise.
35649         * lib/euidaccess.c: Likewise.
35650         * lib/exclude.c: Likewise.
35651         * lib/exclude.h: Likewise.
35652         * lib/execute.c: Likewise.
35653         * lib/execute.h: Likewise.
35654         * lib/exitfail.c: Likewise.
35655         * lib/exitfail.h: Likewise.
35656         * lib/expl.c: Likewise.
35657         * lib/fatal-signal.c: Likewise.
35658         * lib/fatal-signal.h: Likewise.
35659         * lib/fbufmode.c: Likewise.
35660         * lib/fbufmode.h: Likewise.
35661         * lib/fchdir.c: Likewise.
35662         * lib/fchmodat.c: Likewise.
35663         * lib/fchownat.c: Likewise.
35664         * lib/fcntl--.h: Likewise.
35665         * lib/fcntl-safer.h: Likewise.
35666         * lib/fcntl.in.h: Likewise.
35667         * lib/fd-safer.c: Likewise.
35668         * lib/fflush.c: Likewise.
35669         * lib/file-has-acl.c: Likewise.
35670         * lib/file-set.c: Likewise.
35671         * lib/file-type.c: Likewise.
35672         * lib/file-type.h: Likewise.
35673         * lib/fileblocks.c: Likewise.
35674         * lib/filemode.c: Likewise.
35675         * lib/filemode.h: Likewise.
35676         * lib/filename.h: Likewise.
35677         * lib/filenamecat.c: Likewise.
35678         * lib/filenamecat.h: Likewise.
35679         * lib/findprog.c: Likewise.
35680         * lib/findprog.h: Likewise.
35681         * lib/float.in.h: Likewise.
35682         * lib/floor.c: Likewise.
35683         * lib/floorf.c: Likewise.
35684         * lib/floorl.c: Likewise.
35685         * lib/fopen-safer.c: Likewise.
35686         * lib/fopen.c: Likewise.
35687         * lib/fpending.c: Likewise.
35688         * lib/fpending.h: Likewise.
35689         * lib/fprintf.c: Likewise.
35690         * lib/fprintftime.h: Likewise.
35691         * lib/fpucw.h: Likewise.
35692         * lib/fpurge.c: Likewise.
35693         * lib/fpurge.h: Likewise.
35694         * lib/freadable.c: Likewise.
35695         * lib/freadable.h: Likewise.
35696         * lib/freadahead.c: Likewise.
35697         * lib/freadahead.h: Likewise.
35698         * lib/freading.c: Likewise.
35699         * lib/freading.h: Likewise.
35700         * lib/free.c: Likewise.
35701         * lib/freopen.c: Likewise.
35702         * lib/frexp.c: Likewise.
35703         * lib/frexpl.c: Likewise.
35704         * lib/fseek.c: Likewise.
35705         * lib/fseterr.c: Likewise.
35706         * lib/fseterr.h: Likewise.
35707         * lib/fstatat.c: Likewise.
35708         * lib/fstrcmp.c: Likewise.
35709         * lib/fstrcmp.h: Likewise.
35710         * lib/fsusage.c: Likewise.
35711         * lib/fsusage.h: Likewise.
35712         * lib/ftell.c: Likewise.
35713         * lib/ftello.c: Likewise.
35714         * lib/fts-cycle.c: Likewise.
35715         * lib/fts.c: Likewise.
35716         * lib/fts_.h: Likewise.
35717         * lib/full-read.c: Likewise.
35718         * lib/full-read.h: Likewise.
35719         * lib/full-write.c: Likewise.
35720         * lib/full-write.h: Likewise.
35721         * lib/fwritable.c: Likewise.
35722         * lib/fwritable.h: Likewise.
35723         * lib/fwriteerror.c: Likewise.
35724         * lib/fwriteerror.h: Likewise.
35725         * lib/fwriting.c: Likewise.
35726         * lib/fwriting.h: Likewise.
35727         * lib/gcd.c: Likewise.
35728         * lib/gcd.h: Likewise.
35729         * lib/getcwd.c: Likewise.
35730         * lib/getdate.h: Likewise.
35731         * lib/getdate.y: Likewise.
35732         * lib/getdomainname.c: Likewise.
35733         * lib/getdomainname.h: Likewise.
35734         * lib/getgroups.c: Likewise.
35735         * lib/gethostname.c: Likewise.
35736         * lib/gethrxtime.c: Likewise.
35737         * lib/gethrxtime.h: Likewise.
35738         * lib/getloadavg.c: Likewise.
35739         * lib/getndelim2.c: Likewise.
35740         * lib/getndelim2.h: Likewise.
35741         * lib/getnline.c: Likewise.
35742         * lib/getnline.h: Likewise.
35743         * lib/getopt.c: Likewise.
35744         * lib/getopt.in.h: Likewise.
35745         * lib/getopt1.c: Likewise.
35746         * lib/getopt_int.h: Likewise.
35747         * lib/getpagesize.h: Likewise.
35748         * lib/getsubopt.c: Likewise.
35749         * lib/gettime.c: Likewise.
35750         * lib/getugroups.c: Likewise.
35751         * lib/getugroups.h: Likewise.
35752         * lib/getusershell.c: Likewise.
35753         * lib/gl_anyavltree_list1.h: Likewise.
35754         * lib/gl_anyavltree_list2.h: Likewise.
35755         * lib/gl_anyhash_list1.h: Likewise.
35756         * lib/gl_anyhash_list2.h: Likewise.
35757         * lib/gl_anylinked_list1.h: Likewise.
35758         * lib/gl_anylinked_list2.h: Likewise.
35759         * lib/gl_anyrbtree_list1.h: Likewise.
35760         * lib/gl_anyrbtree_list2.h: Likewise.
35761         * lib/gl_anytree_list1.h: Likewise.
35762         * lib/gl_anytree_list2.h: Likewise.
35763         * lib/gl_anytree_oset.h: Likewise.
35764         * lib/gl_anytreehash_list1.h: Likewise.
35765         * lib/gl_anytreehash_list2.h: Likewise.
35766         * lib/gl_array_list.c: Likewise.
35767         * lib/gl_array_list.h: Likewise.
35768         * lib/gl_array_oset.c: Likewise.
35769         * lib/gl_array_oset.h: Likewise.
35770         * lib/gl_avltree_list.c: Likewise.
35771         * lib/gl_avltree_list.h: Likewise.
35772         * lib/gl_avltree_oset.c: Likewise.
35773         * lib/gl_avltree_oset.h: Likewise.
35774         * lib/gl_avltreehash_list.c: Likewise.
35775         * lib/gl_avltreehash_list.h: Likewise.
35776         * lib/gl_carray_list.c: Likewise.
35777         * lib/gl_carray_list.h: Likewise.
35778         * lib/gl_linked_list.c: Likewise.
35779         * lib/gl_linked_list.h: Likewise.
35780         * lib/gl_linkedhash_list.c: Likewise.
35781         * lib/gl_linkedhash_list.h: Likewise.
35782         * lib/gl_list.c: Likewise.
35783         * lib/gl_list.h: Likewise.
35784         * lib/gl_oset.c: Likewise.
35785         * lib/gl_oset.h: Likewise.
35786         * lib/gl_rbtree_list.c: Likewise.
35787         * lib/gl_rbtree_list.h: Likewise.
35788         * lib/gl_rbtree_oset.c: Likewise.
35789         * lib/gl_rbtree_oset.h: Likewise.
35790         * lib/gl_rbtreehash_list.c: Likewise.
35791         * lib/gl_rbtreehash_list.h: Likewise.
35792         * lib/gl_sublist.c: Likewise.
35793         * lib/gl_sublist.h: Likewise.
35794         * lib/group-member.c: Likewise.
35795         * lib/group-member.h: Likewise.
35796         * lib/hard-locale.c: Likewise.
35797         * lib/hard-locale.h: Likewise.
35798         * lib/hash-pjw.c: Likewise.
35799         * lib/hash-pjw.h: Likewise.
35800         * lib/hash-triple.c: Likewise.
35801         * lib/hash.c: Likewise.
35802         * lib/hash.h: Likewise.
35803         * lib/human.c: Likewise.
35804         * lib/human.h: Likewise.
35805         * lib/i-ring.c: Likewise.
35806         * lib/i-ring.h: Likewise.
35807         * lib/idcache.c: Likewise.
35808         * lib/imaxabs.c: Likewise.
35809         * lib/imaxdiv.c: Likewise.
35810         * lib/inet_pton.c: Likewise.
35811         * lib/inet_pton.h: Likewise.
35812         * lib/intprops.h: Likewise.
35813         * lib/inttostr.c: Likewise.
35814         * lib/inttostr.h: Likewise.
35815         * lib/inttypes.in.h: Likewise.
35816         * lib/isapipe.c: Likewise.
35817         * lib/isdir.c: Likewise.
35818         * lib/isnan.c: Likewise.
35819         * lib/isnan.h: Likewise.
35820         * lib/isnanf.c: Likewise.
35821         * lib/isnanf.h: Likewise.
35822         * lib/isnanl-nolibm.h: Likewise.
35823         * lib/isnanl.c: Likewise.
35824         * lib/isnanl.h: Likewise.
35825         * lib/javacomp.c: Likewise.
35826         * lib/javacomp.h: Likewise.
35827         * lib/javaexec.c: Likewise.
35828         * lib/javaexec.h: Likewise.
35829         * lib/javaversion.c: Likewise.
35830         * lib/javaversion.h: Likewise.
35831         * lib/javaversion.java: Likewise.
35832         * lib/lbrkprop.h: Likewise.
35833         * lib/lchmod.h: Likewise.
35834         * lib/lchown.c: Likewise.
35835         * lib/ldexpl.c: Likewise.
35836         * lib/linebreak.c: Likewise.
35837         * lib/linebreak.h: Likewise.
35838         * lib/linebuffer.c: Likewise.
35839         * lib/linebuffer.h: Likewise.
35840         * lib/locale.in.h: Likewise.
35841         * lib/logl.c: Likewise.
35842         * lib/long-options.c: Likewise.
35843         * lib/long-options.h: Likewise.
35844         * lib/lstat.c: Likewise.
35845         * lib/lstat.h: Likewise.
35846         * lib/math.in.h: Likewise.
35847         * lib/mbchar.c: Likewise.
35848         * lib/mbchar.h: Likewise.
35849         * lib/mbfile.h: Likewise.
35850         * lib/mbiter.h: Likewise.
35851         * lib/mbscasecmp.c: Likewise.
35852         * lib/mbscasestr.c: Likewise.
35853         * lib/mbschr.c: Likewise.
35854         * lib/mbscspn.c: Likewise.
35855         * lib/mbslen.c: Likewise.
35856         * lib/mbsncasecmp.c: Likewise.
35857         * lib/mbsnlen.c: Likewise.
35858         * lib/mbspbrk.c: Likewise.
35859         * lib/mbspcasecmp.c: Likewise.
35860         * lib/mbsrchr.c: Likewise.
35861         * lib/mbssep.c: Likewise.
35862         * lib/mbsspn.c: Likewise.
35863         * lib/mbsstr.c: Likewise.
35864         * lib/mbstok_r.c: Likewise.
35865         * lib/mbswidth.c: Likewise.
35866         * lib/mbswidth.h: Likewise.
35867         * lib/mbuiter.h: Likewise.
35868         * lib/memcasecmp.c: Likewise.
35869         * lib/memcasecmp.h: Likewise.
35870         * lib/memchr.c: Likewise.
35871         * lib/memcmp.c: Likewise.
35872         * lib/memcoll.c: Likewise.
35873         * lib/memcoll.h: Likewise.
35874         * lib/memcpy.c: Likewise.
35875         * lib/memrchr.c: Likewise.
35876         * lib/mkancesdirs.c: Likewise.
35877         * lib/mkdir-p.c: Likewise.
35878         * lib/mkdir-p.h: Likewise.
35879         * lib/mkdir.c: Likewise.
35880         * lib/mkdirat.c: Likewise.
35881         * lib/mkdtemp.c: Likewise.
35882         * lib/mkstemp-safer.c: Likewise.
35883         * lib/mkstemp.c: Likewise.
35884         * lib/modechange.c: Likewise.
35885         * lib/modechange.h: Likewise.
35886         * lib/mountlist.c: Likewise.
35887         * lib/mountlist.h: Likewise.
35888         * lib/mpsort.c: Likewise.
35889         * lib/nanosleep.c: Likewise.
35890         * lib/obstack.c: Likewise.
35891         * lib/obstack.h: Likewise.
35892         * lib/open-safer.c: Likewise.
35893         * lib/open.c: Likewise.
35894         * lib/openat-die.c: Likewise.
35895         * lib/openat-priv.h: Likewise.
35896         * lib/openat-proc.c: Likewise.
35897         * lib/openat.c: Likewise.
35898         * lib/openat.h: Likewise.
35899         * lib/pagealign_alloc.c: Likewise.
35900         * lib/pagealign_alloc.h: Likewise.
35901         * lib/physmem.c: Likewise.
35902         * lib/physmem.h: Likewise.
35903         * lib/pipe-safer.c: Likewise.
35904         * lib/pipe.c: Likewise.
35905         * lib/pipe.h: Likewise.
35906         * lib/posixtm.c: Likewise.
35907         * lib/posixtm.h: Likewise.
35908         * lib/posixver.c: Likewise.
35909         * lib/printf-frexp.c: Likewise.
35910         * lib/printf-frexp.h: Likewise.
35911         * lib/printf-frexpl.c: Likewise.
35912         * lib/printf-frexpl.h: Likewise.
35913         * lib/printf.c: Likewise.
35914         * lib/progname.c: Likewise.
35915         * lib/progname.h: Likewise.
35916         * lib/progreloc.c: Likewise.
35917         * lib/putenv.c: Likewise.
35918         * lib/quote.c: Likewise.
35919         * lib/quote.h: Likewise.
35920         * lib/quotearg.c: Likewise.
35921         * lib/quotearg.h: Likewise.
35922         * lib/raise.c: Likewise.
35923         * lib/readline.c: Likewise.
35924         * lib/readline.h: Likewise.
35925         * lib/readlink.c: Likewise.
35926         * lib/readtokens.c: Likewise.
35927         * lib/readtokens.h: Likewise.
35928         * lib/readtokens0.c: Likewise.
35929         * lib/readtokens0.h: Likewise.
35930         * lib/readutmp.c: Likewise.
35931         * lib/readutmp.h: Likewise.
35932         * lib/realloc.c: Likewise.
35933         * lib/relocwrapper.c: Likewise.
35934         * lib/rename-dest-slash.c: Likewise.
35935         * lib/rename.c: Likewise.
35936         * lib/rmdir.c: Likewise.
35937         * lib/rpmatch.c: Likewise.
35938         * lib/safe-read.c: Likewise.
35939         * lib/safe-read.h: Likewise.
35940         * lib/safe-write.c: Likewise.
35941         * lib/safe-write.h: Likewise.
35942         * lib/same-inode.h: Likewise.
35943         * lib/same.c: Likewise.
35944         * lib/same.h: Likewise.
35945         * lib/save-cwd.c: Likewise.
35946         * lib/save-cwd.h: Likewise.
35947         * lib/savedir.c: Likewise.
35948         * lib/savedir.h: Likewise.
35949         * lib/savewd.c: Likewise.
35950         * lib/savewd.h: Likewise.
35951         * lib/search.in.h: Likewise.
35952         * lib/setenv.c: Likewise.
35953         * lib/setenv.h: Likewise.
35954         * lib/settime.c: Likewise.
35955         * lib/sh-quote.c: Likewise.
35956         * lib/sh-quote.h: Likewise.
35957         * lib/sig2str.c: Likewise.
35958         * lib/sig2str.h: Likewise.
35959         * lib/signal.in.h: Likewise.
35960         * lib/signbitd.c: Likewise.
35961         * lib/signbitf.c: Likewise.
35962         * lib/signbitl.c: Likewise.
35963         * lib/sigprocmask.c: Likewise.
35964         * lib/sincosl.c: Likewise.
35965         * lib/sleep.c: Likewise.
35966         * lib/sprintf.c: Likewise.
35967         * lib/sqrtl.c: Likewise.
35968         * lib/stat-time.h: Likewise.
35969         * lib/stdio--.h: Likewise.
35970         * lib/stdio-safer.h: Likewise.
35971         * lib/stdlib--.h: Likewise.
35972         * lib/stdlib-safer.h: Likewise.
35973         * lib/stdlib.in.h: Likewise.
35974         * lib/stpcpy.c: Likewise.
35975         * lib/stpncpy.c: Likewise.
35976         * lib/strchrnul.c: Likewise.
35977         * lib/strcspn.c: Likewise.
35978         * lib/strerror.c: Likewise.
35979         * lib/strftime.c: Likewise.
35980         * lib/strftime.h: Likewise.
35981         * lib/striconveh.c: Likewise.
35982         * lib/striconveh.h: Likewise.
35983         * lib/striconveha.c: Likewise.
35984         * lib/striconveha.h: Likewise.
35985         * lib/stripslash.c: Likewise.
35986         * lib/strnlen1.c: Likewise.
35987         * lib/strnlen1.h: Likewise.
35988         * lib/strtod.c: Likewise.
35989         * lib/strtoimax.c: Likewise.
35990         * lib/strtok_r.c: Likewise.
35991         * lib/strtol.c: Likewise.
35992         * lib/strtoll.c: Likewise.
35993         * lib/strtoul.c: Likewise.
35994         * lib/strtoull.c: Likewise.
35995         * lib/sysexits.in.h: Likewise.
35996         * lib/tempname.c: Likewise.
35997         * lib/tempname.h: Likewise.
35998         * lib/timespec.h: Likewise.
35999         * lib/tls.c: Likewise.
36000         * lib/tls.h: Likewise.
36001         * lib/tmpdir.c: Likewise.
36002         * lib/tmpdir.h: Likewise.
36003         * lib/tmpfile-safer.c: Likewise.
36004         * lib/tmpfile.c: Likewise.
36005         * lib/trigl.c: Likewise.
36006         * lib/trigl.h: Likewise.
36007         * lib/trim.c: Likewise.
36008         * lib/trim.h: Likewise.
36009         * lib/trunc.c: Likewise.
36010         * lib/truncf.c: Likewise.
36011         * lib/truncl.c: Likewise.
36012         * lib/tsearch.c: Likewise.
36013         * lib/unicodeio.c: Likewise.
36014         * lib/unicodeio.h: Likewise.
36015         * lib/unistd--.h: Likewise.
36016         * lib/unistd-safer.h: Likewise.
36017         * lib/unistdio/ulc-fprintf.c: Likewise.
36018         * lib/unistdio/ulc-vfprintf.c: Likewise.
36019         * lib/unlinkdir.c: Likewise.
36020         * lib/unlinkdir.h: Likewise.
36021         * lib/unlocked-io.h: Likewise.
36022         * lib/unsetenv.c: Likewise.
36023         * lib/userspec.c: Likewise.
36024         * lib/utime.c: Likewise.
36025         * lib/utimecmp.c: Likewise.
36026         * lib/utimecmp.h: Likewise.
36027         * lib/utimens.c: Likewise.
36028         * lib/verify.h: Likewise.
36029         * lib/verror.c: Likewise.
36030         * lib/verror.h: Likewise.
36031         * lib/version-etc-fsf.c: Likewise.
36032         * lib/version-etc.c: Likewise.
36033         * lib/version-etc.h: Likewise.
36034         * lib/vfprintf.c: Likewise.
36035         * lib/vprintf.c: Likewise.
36036         * lib/vsprintf.c: Likewise.
36037         * lib/w32spawn.h: Likewise.
36038         * lib/wait-process.c: Likewise.
36039         * lib/wait-process.h: Likewise.
36040         * lib/wcwidth.c: Likewise.
36041         * lib/write-any-file.c: Likewise.
36042         * lib/xalloc-die.c: Likewise.
36043         * lib/xalloc.h: Likewise.
36044         * lib/xasprintf.c: Likewise.
36045         * lib/xgetcwd.c: Likewise.
36046         * lib/xgetcwd.h: Likewise.
36047         * lib/xgetdomainname.c: Likewise.
36048         * lib/xgetdomainname.h: Likewise.
36049         * lib/xgethostname.c: Likewise.
36050         * lib/xmalloc.c: Likewise.
36051         * lib/xmalloca.c: Likewise.
36052         * lib/xmalloca.h: Likewise.
36053         * lib/xmemcoll.c: Likewise.
36054         * lib/xnanosleep.c: Likewise.
36055         * lib/xreadlink.c: Likewise.
36056         * lib/xreadlink.h: Likewise.
36057         * lib/xsetenv.c: Likewise.
36058         * lib/xsetenv.h: Likewise.
36059         * lib/xstriconv.c: Likewise.
36060         * lib/xstriconv.h: Likewise.
36061         * lib/xstrndup.c: Likewise.
36062         * lib/xstrndup.h: Likewise.
36063         * lib/xstrtod.c: Likewise.
36064         * lib/xstrtod.h: Likewise.
36065         * lib/xstrtol-error.c: Likewise.
36066         * lib/xstrtol.c: Likewise.
36067         * lib/xstrtol.h: Likewise.
36068         * lib/xtime.h: Likewise.
36069         * lib/xvasprintf.c: Likewise.
36070         * lib/xvasprintf.h: Likewise.
36071         * lib/yesno.c: Likewise.
36072         * lib/yesno.h: Likewise.
36073         * posix-modules: Likewise.
36074         * tests/test-alloca-opt.c: Likewise.
36075         * tests/test-arcfour.c: Likewise.
36076         * tests/test-arctwo.c: Likewise.
36077         * tests/test-argmatch.c: Likewise.
36078         * tests/test-argp-2.sh: Likewise.
36079         * tests/test-argp.c: Likewise.
36080         * tests/test-arpa_inet.c: Likewise.
36081         * tests/test-array_list.c: Likewise.
36082         * tests/test-array_oset.c: Likewise.
36083         * tests/test-atexit.c: Likewise.
36084         * tests/test-avltree_list.c: Likewise.
36085         * tests/test-avltree_oset.c: Likewise.
36086         * tests/test-avltreehash_list.c: Likewise.
36087         * tests/test-base64.c: Likewise.
36088         * tests/test-binary-io.c: Likewise.
36089         * tests/test-byteswap.c: Likewise.
36090         * tests/test-c-ctype.c: Likewise.
36091         * tests/test-c-strcasecmp.c: Likewise.
36092         * tests/test-c-strcasestr.c: Likewise.
36093         * tests/test-c-strncasecmp.c: Likewise.
36094         * tests/test-c-strstr.c: Likewise.
36095         * tests/test-canonicalize-lgpl.c: Likewise.
36096         * tests/test-canonicalize.c: Likewise.
36097         * tests/test-carray_list.c: Likewise.
36098         * tests/test-ceilf.c: Likewise.
36099         * tests/test-ceill.c: Likewise.
36100         * tests/test-count-one-bits.c: Likewise.
36101         * tests/test-crc.c: Likewise.
36102         * tests/test-dirname.c: Likewise.
36103         * tests/test-fbufmode.c: Likewise.
36104         * tests/test-fcntl.c: Likewise.
36105         * tests/test-fflush.c: Likewise.
36106         * tests/test-floorf.c: Likewise.
36107         * tests/test-floorl.c: Likewise.
36108         * tests/test-fopen.c: Likewise.
36109         * tests/test-fprintf-posix.c: Likewise.
36110         * tests/test-fprintf-posix.h: Likewise.
36111         * tests/test-fpurge.c: Likewise.
36112         * tests/test-freadable.c: Likewise.
36113         * tests/test-freadahead.c: Likewise.
36114         * tests/test-freading.c: Likewise.
36115         * tests/test-freopen.c: Likewise.
36116         * tests/test-frexp.c: Likewise.
36117         * tests/test-frexpl.c: Likewise.
36118         * tests/test-fseek.c: Likewise.
36119         * tests/test-fseeko.c: Likewise.
36120         * tests/test-fseterr.c: Likewise.
36121         * tests/test-fstrcmp.c: Likewise.
36122         * tests/test-ftell.c: Likewise.
36123         * tests/test-ftello.c: Likewise.
36124         * tests/test-fwritable.c: Likewise.
36125         * tests/test-fwriting.c: Likewise.
36126         * tests/test-getaddrinfo.c: Likewise.
36127         * tests/test-getpass.c: Likewise.
36128         * tests/test-gettimeofday.c: Likewise.
36129         * tests/test-hmac-md5.c: Likewise.
36130         * tests/test-hmac-sha1.c: Likewise.
36131         * tests/test-iconv.c: Likewise.
36132         * tests/test-iconvme.c: Likewise.
36133         * tests/test-inttypes.c: Likewise.
36134         * tests/test-isnan.c: Likewise.
36135         * tests/test-isnanf.c: Likewise.
36136         * tests/test-isnanl-nolibm.c: Likewise.
36137         * tests/test-isnanl.c: Likewise.
36138         * tests/test-isnanl.h: Likewise.
36139         * tests/test-ldexpl.c: Likewise.
36140         * tests/test-linked_list.c: Likewise.
36141         * tests/test-linkedhash_list.c: Likewise.
36142         * tests/test-locale.c: Likewise.
36143         * tests/test-localename.c: Likewise.
36144         * tests/test-lock.c: Likewise.
36145         * tests/test-lseek.c: Likewise.
36146         * tests/test-malloca.c: Likewise.
36147         * tests/test-math.c: Likewise.
36148         * tests/test-mbscasecmp.c: Likewise.
36149         * tests/test-mbscasestr1.c: Likewise.
36150         * tests/test-mbscasestr2.c: Likewise.
36151         * tests/test-mbscasestr3.c: Likewise.
36152         * tests/test-mbscasestr4.c: Likewise.
36153         * tests/test-mbschr.c: Likewise.
36154         * tests/test-mbscspn.c: Likewise.
36155         * tests/test-mbsncasecmp.c: Likewise.
36156         * tests/test-mbspbrk.c: Likewise.
36157         * tests/test-mbspcasecmp.c: Likewise.
36158         * tests/test-mbsrchr.c: Likewise.
36159         * tests/test-mbsspn.c: Likewise.
36160         * tests/test-mbsstr1.c: Likewise.
36161         * tests/test-mbsstr2.c: Likewise.
36162         * tests/test-mbsstr3.c: Likewise.
36163         * tests/test-md5.c: Likewise.
36164         * tests/test-memmem.c: Likewise.
36165         * tests/test-netinet_in.c: Likewise.
36166         * tests/test-open.c: Likewise.
36167         * tests/test-printf-frexp.c: Likewise.
36168         * tests/test-printf-frexpl.c: Likewise.
36169         * tests/test-printf-posix.c: Likewise.
36170         * tests/test-printf-posix.h: Likewise.
36171         * tests/test-rbtree_list.c: Likewise.
36172         * tests/test-rbtree_oset.c: Likewise.
36173         * tests/test-rbtreehash_list.c: Likewise.
36174         * tests/test-read-file.c: Likewise.
36175         * tests/test-rijndael.c: Likewise.
36176         * tests/test-search.c: Likewise.
36177         * tests/test-signbit.c: Likewise.
36178         * tests/test-sleep.c: Likewise.
36179         * tests/test-snprintf-posix.c: Likewise.
36180         * tests/test-snprintf-posix.h: Likewise.
36181         * tests/test-snprintf.c: Likewise.
36182         * tests/test-sprintf-posix.c: Likewise.
36183         * tests/test-sprintf-posix.h: Likewise.
36184         * tests/test-stat-time.c: Likewise.
36185         * tests/test-stdbool.c: Likewise.
36186         * tests/test-stdint.c: Likewise.
36187         * tests/test-stdio.c: Likewise.
36188         * tests/test-stdlib.c: Likewise.
36189         * tests/test-stpncpy.c: Likewise.
36190         * tests/test-strcasestr.c: Likewise.
36191         * tests/test-striconv.c: Likewise.
36192         * tests/test-striconveh.c: Likewise.
36193         * tests/test-striconveha.c: Likewise.
36194         * tests/test-string.c: Likewise.
36195         * tests/test-sys_select.c: Likewise.
36196         * tests/test-sys_socket.c: Likewise.
36197         * tests/test-sys_stat.c: Likewise.
36198         * tests/test-sys_time.c: Likewise.
36199         * tests/test-sysexits.c: Likewise.
36200         * tests/test-time.c: Likewise.
36201         * tests/test-tls.c: Likewise.
36202         * tests/test-trunc.c: Likewise.
36203         * tests/test-truncf.c: Likewise.
36204         * tests/test-truncl.c: Likewise.
36205         * tests/test-unistd.c: Likewise.
36206         * tests/test-vasnprintf-posix.c: Likewise.
36207         * tests/test-vasnprintf-posix2.c: Likewise.
36208         * tests/test-vasnprintf.c: Likewise.
36209         * tests/test-vasprintf-posix.c: Likewise.
36210         * tests/test-vasprintf.c: Likewise.
36211         * tests/test-verify.c: Likewise.
36212         * tests/test-vfprintf-posix.c: Likewise.
36213         * tests/test-vprintf-posix.c: Likewise.
36214         * tests/test-vsnprintf-posix.c: Likewise.
36215         * tests/test-vsnprintf.c: Likewise.
36216         * tests/test-vsprintf-posix.c: Likewise.
36217         * tests/test-wchar.c: Likewise.
36218         * tests/test-wctype.c: Likewise.
36219         * tests/test-wcwidth.c: Likewise.
36220         * tests/test-xstrtol.c: Likewise.
36221         * tests/test-xvasprintf.c: Likewise.
36222         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36223         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36224         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36225         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36226         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36227         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36228         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36229         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36230         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36231         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36232         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36233         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36234         * tests/uniname/test-uninames.c: Likewise.
36235         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36236         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36237         * tests/unistdio/test-u16-printf1.h: Likewise.
36238         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36239         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36240         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36241         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36242         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36243         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36244         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36245         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36246         * tests/unistdio/test-u32-printf1.h: Likewise.
36247         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36248         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36249         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36250         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36251         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36252         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36253         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36254         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36255         * tests/unistdio/test-u8-printf1.h: Likewise.
36256         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36257         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36258         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36259         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36260         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36261         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36262         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36263         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36264         * tests/unistdio/test-ulc-printf1.h: Likewise.
36265         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36266         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36267         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36268         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36269         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36270         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36271         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36272         * tests/uniwidth/test-u16-width.c: Likewise.
36273         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36274         * tests/uniwidth/test-u32-width.c: Likewise.
36275         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36276         * tests/uniwidth/test-u8-width.c: Likewise.
36277         * tests/uniwidth/test-uc_width.c: Likewise.
36278         * config/srclist-update: Likewise.
36279         (fixlicense): Update to GPLv3+.
36280
36281         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36282         * tests/test-tsearch.c: Change copyright notice.
36283
36284         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36285         * lib/c-strcaseeq.h: Change copyright notice.
36286         * lib/streq.h: Likewise.
36287         * lib/uniconv.h: Likewise.
36288         * lib/uniconv/u-conv-from-enc.h: Likewise.
36289         * lib/uniconv/u-conv-to-enc.h: Likewise.
36290         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36291         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36292         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36293         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36294         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36295         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36296         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36297         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36298         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36299         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36300         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36301         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36302         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36303         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36304         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36305         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36306         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36307         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36308         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36309         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36310         * lib/uniname.h: Likewise.
36311         * lib/uniname/uniname.c: Likewise.
36312         * lib/unistdio.h: Likewise.
36313         * lib/unistdio/u-asnprintf.h: Likewise.
36314         * lib/unistdio/u-asprintf.h: Likewise.
36315         * lib/unistdio/u-printf-args.c: Likewise.
36316         * lib/unistdio/u-printf-args.h: Likewise.
36317         * lib/unistdio/u-printf-parse.h: Likewise.
36318         * lib/unistdio/u-snprintf.h: Likewise.
36319         * lib/unistdio/u-sprintf.h: Likewise.
36320         * lib/unistdio/u-vasprintf.h: Likewise.
36321         * lib/unistdio/u-vsnprintf.h: Likewise.
36322         * lib/unistdio/u-vsprintf.h: Likewise.
36323         * lib/unistdio/u16-asnprintf.c: Likewise.
36324         * lib/unistdio/u16-asprintf.c: Likewise.
36325         * lib/unistdio/u16-printf-parse.c: Likewise.
36326         * lib/unistdio/u16-snprintf.c: Likewise.
36327         * lib/unistdio/u16-sprintf.c: Likewise.
36328         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36329         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36330         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36331         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36332         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36333         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36334         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36335         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36336         * lib/unistdio/u16-vasnprintf.c: Likewise.
36337         * lib/unistdio/u16-vasprintf.c: Likewise.
36338         * lib/unistdio/u16-vsnprintf.c: Likewise.
36339         * lib/unistdio/u16-vsprintf.c: Likewise.
36340         * lib/unistdio/u32-asnprintf.c: Likewise.
36341         * lib/unistdio/u32-asprintf.c: Likewise.
36342         * lib/unistdio/u32-printf-parse.c: Likewise.
36343         * lib/unistdio/u32-snprintf.c: Likewise.
36344         * lib/unistdio/u32-sprintf.c: Likewise.
36345         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36346         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36347         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36348         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36349         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36350         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36351         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36352         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36353         * lib/unistdio/u32-vasnprintf.c: Likewise.
36354         * lib/unistdio/u32-vasprintf.c: Likewise.
36355         * lib/unistdio/u32-vsnprintf.c: Likewise.
36356         * lib/unistdio/u32-vsprintf.c: Likewise.
36357         * lib/unistdio/u8-asnprintf.c: Likewise.
36358         * lib/unistdio/u8-asprintf.c: Likewise.
36359         * lib/unistdio/u8-printf-parse.c: Likewise.
36360         * lib/unistdio/u8-snprintf.c: Likewise.
36361         * lib/unistdio/u8-sprintf.c: Likewise.
36362         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36363         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36364         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36365         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36366         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36367         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36368         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36369         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36370         * lib/unistdio/u8-vasnprintf.c: Likewise.
36371         * lib/unistdio/u8-vasprintf.c: Likewise.
36372         * lib/unistdio/u8-vsnprintf.c: Likewise.
36373         * lib/unistdio/u8-vsprintf.c: Likewise.
36374         * lib/unistdio/ulc-asnprintf.c: Likewise.
36375         * lib/unistdio/ulc-asprintf.c: Likewise.
36376         * lib/unistdio/ulc-printf-parse.c: Likewise.
36377         * lib/unistdio/ulc-snprintf.c: Likewise.
36378         * lib/unistdio/ulc-sprintf.c: Likewise.
36379         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36380         * lib/unistdio/ulc-vasprintf.c: Likewise.
36381         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36382         * lib/unistdio/ulc-vsprintf.c: Likewise.
36383         * lib/unistr.h: Likewise.
36384         * lib/unistr/u-cpy-alloc.h: Likewise.
36385         * lib/unistr/u-cpy.h: Likewise.
36386         * lib/unistr/u-endswith.h: Likewise.
36387         * lib/unistr/u-move.h: Likewise.
36388         * lib/unistr/u-set.h: Likewise.
36389         * lib/unistr/u-startswith.h: Likewise.
36390         * lib/unistr/u-stpcpy.h: Likewise.
36391         * lib/unistr/u-stpncpy.h: Likewise.
36392         * lib/unistr/u-strcat.h: Likewise.
36393         * lib/unistr/u-strcpy.h: Likewise.
36394         * lib/unistr/u-strcspn.h: Likewise.
36395         * lib/unistr/u-strdup.h: Likewise.
36396         * lib/unistr/u-strlen.h: Likewise.
36397         * lib/unistr/u-strncat.h: Likewise.
36398         * lib/unistr/u-strncpy.h: Likewise.
36399         * lib/unistr/u-strnlen.h: Likewise.
36400         * lib/unistr/u-strpbrk.h: Likewise.
36401         * lib/unistr/u-strspn.h: Likewise.
36402         * lib/unistr/u-strstr.h: Likewise.
36403         * lib/unistr/u-strtok.h: Likewise.
36404         * lib/unistr/u16-check.c: Likewise.
36405         * lib/unistr/u16-chr.c: Likewise.
36406         * lib/unistr/u16-cmp.c: Likewise.
36407         * lib/unistr/u16-cpy-alloc.c: Likewise.
36408         * lib/unistr/u16-cpy.c: Likewise.
36409         * lib/unistr/u16-endswith.c: Likewise.
36410         * lib/unistr/u16-mblen.c: Likewise.
36411         * lib/unistr/u16-mbsnlen.c: Likewise.
36412         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36413         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36414         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36415         * lib/unistr/u16-mbtouc.c: Likewise.
36416         * lib/unistr/u16-mbtoucr.c: Likewise.
36417         * lib/unistr/u16-move.c: Likewise.
36418         * lib/unistr/u16-next.c: Likewise.
36419         * lib/unistr/u16-prev.c: Likewise.
36420         * lib/unistr/u16-set.c: Likewise.
36421         * lib/unistr/u16-startswith.c: Likewise.
36422         * lib/unistr/u16-stpcpy.c: Likewise.
36423         * lib/unistr/u16-stpncpy.c: Likewise.
36424         * lib/unistr/u16-strcat.c: Likewise.
36425         * lib/unistr/u16-strchr.c: Likewise.
36426         * lib/unistr/u16-strcmp.c: Likewise.
36427         * lib/unistr/u16-strcpy.c: Likewise.
36428         * lib/unistr/u16-strcspn.c: Likewise.
36429         * lib/unistr/u16-strdup.c: Likewise.
36430         * lib/unistr/u16-strlen.c: Likewise.
36431         * lib/unistr/u16-strmblen.c: Likewise.
36432         * lib/unistr/u16-strmbtouc.c: Likewise.
36433         * lib/unistr/u16-strncat.c: Likewise.
36434         * lib/unistr/u16-strncmp.c: Likewise.
36435         * lib/unistr/u16-strncpy.c: Likewise.
36436         * lib/unistr/u16-strnlen.c: Likewise.
36437         * lib/unistr/u16-strpbrk.c: Likewise.
36438         * lib/unistr/u16-strrchr.c: Likewise.
36439         * lib/unistr/u16-strspn.c: Likewise.
36440         * lib/unistr/u16-strstr.c: Likewise.
36441         * lib/unistr/u16-strtok.c: Likewise.
36442         * lib/unistr/u16-to-u32.c: Likewise.
36443         * lib/unistr/u16-to-u8.c: Likewise.
36444         * lib/unistr/u16-uctomb-aux.c: Likewise.
36445         * lib/unistr/u16-uctomb.c: Likewise.
36446         * lib/unistr/u32-check.c: Likewise.
36447         * lib/unistr/u32-chr.c: Likewise.
36448         * lib/unistr/u32-cmp.c: Likewise.
36449         * lib/unistr/u32-cpy-alloc.c: Likewise.
36450         * lib/unistr/u32-cpy.c: Likewise.
36451         * lib/unistr/u32-endswith.c: Likewise.
36452         * lib/unistr/u32-mblen.c: Likewise.
36453         * lib/unistr/u32-mbsnlen.c: Likewise.
36454         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36455         * lib/unistr/u32-mbtouc.c: Likewise.
36456         * lib/unistr/u32-mbtoucr.c: Likewise.
36457         * lib/unistr/u32-move.c: Likewise.
36458         * lib/unistr/u32-next.c: Likewise.
36459         * lib/unistr/u32-prev.c: Likewise.
36460         * lib/unistr/u32-set.c: Likewise.
36461         * lib/unistr/u32-startswith.c: Likewise.
36462         * lib/unistr/u32-stpcpy.c: Likewise.
36463         * lib/unistr/u32-stpncpy.c: Likewise.
36464         * lib/unistr/u32-strcat.c: Likewise.
36465         * lib/unistr/u32-strchr.c: Likewise.
36466         * lib/unistr/u32-strcmp.c: Likewise.
36467         * lib/unistr/u32-strcpy.c: Likewise.
36468         * lib/unistr/u32-strcspn.c: Likewise.
36469         * lib/unistr/u32-strdup.c: Likewise.
36470         * lib/unistr/u32-strlen.c: Likewise.
36471         * lib/unistr/u32-strmblen.c: Likewise.
36472         * lib/unistr/u32-strmbtouc.c: Likewise.
36473         * lib/unistr/u32-strncat.c: Likewise.
36474         * lib/unistr/u32-strncmp.c: Likewise.
36475         * lib/unistr/u32-strncpy.c: Likewise.
36476         * lib/unistr/u32-strnlen.c: Likewise.
36477         * lib/unistr/u32-strpbrk.c: Likewise.
36478         * lib/unistr/u32-strrchr.c: Likewise.
36479         * lib/unistr/u32-strspn.c: Likewise.
36480         * lib/unistr/u32-strstr.c: Likewise.
36481         * lib/unistr/u32-strtok.c: Likewise.
36482         * lib/unistr/u32-to-u16.c: Likewise.
36483         * lib/unistr/u32-to-u8.c: Likewise.
36484         * lib/unistr/u32-uctomb.c: Likewise.
36485         * lib/unistr/u8-check.c: Likewise.
36486         * lib/unistr/u8-chr.c: Likewise.
36487         * lib/unistr/u8-cmp.c: Likewise.
36488         * lib/unistr/u8-cpy-alloc.c: Likewise.
36489         * lib/unistr/u8-cpy.c: Likewise.
36490         * lib/unistr/u8-endswith.c: Likewise.
36491         * lib/unistr/u8-mblen.c: Likewise.
36492         * lib/unistr/u8-mbsnlen.c: Likewise.
36493         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36494         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36495         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36496         * lib/unistr/u8-mbtouc.c: Likewise.
36497         * lib/unistr/u8-mbtoucr.c: Likewise.
36498         * lib/unistr/u8-move.c: Likewise.
36499         * lib/unistr/u8-next.c: Likewise.
36500         * lib/unistr/u8-prev.c: Likewise.
36501         * lib/unistr/u8-set.c: Likewise.
36502         * lib/unistr/u8-startswith.c: Likewise.
36503         * lib/unistr/u8-stpcpy.c: Likewise.
36504         * lib/unistr/u8-stpncpy.c: Likewise.
36505         * lib/unistr/u8-strcat.c: Likewise.
36506         * lib/unistr/u8-strchr.c: Likewise.
36507         * lib/unistr/u8-strcmp.c: Likewise.
36508         * lib/unistr/u8-strcpy.c: Likewise.
36509         * lib/unistr/u8-strcspn.c: Likewise.
36510         * lib/unistr/u8-strdup.c: Likewise.
36511         * lib/unistr/u8-strlen.c: Likewise.
36512         * lib/unistr/u8-strmblen.c: Likewise.
36513         * lib/unistr/u8-strmbtouc.c: Likewise.
36514         * lib/unistr/u8-strncat.c: Likewise.
36515         * lib/unistr/u8-strncmp.c: Likewise.
36516         * lib/unistr/u8-strncpy.c: Likewise.
36517         * lib/unistr/u8-strnlen.c: Likewise.
36518         * lib/unistr/u8-strpbrk.c: Likewise.
36519         * lib/unistr/u8-strrchr.c: Likewise.
36520         * lib/unistr/u8-strspn.c: Likewise.
36521         * lib/unistr/u8-strstr.c: Likewise.
36522         * lib/unistr/u8-strtok.c: Likewise.
36523         * lib/unistr/u8-to-u16.c: Likewise.
36524         * lib/unistr/u8-to-u32.c: Likewise.
36525         * lib/unistr/u8-uctomb-aux.c: Likewise.
36526         * lib/unistr/u8-uctomb.c: Likewise.
36527         * lib/unitypes.h: Likewise.
36528         * lib/uniwidth.h: Likewise.
36529         * lib/uniwidth/cjk.h: Likewise.
36530         * lib/uniwidth/u16-strwidth.c: Likewise.
36531         * lib/uniwidth/u16-width.c: Likewise.
36532         * lib/uniwidth/u32-strwidth.c: Likewise.
36533         * lib/uniwidth/u32-width.c: Likewise.
36534         * lib/uniwidth/u8-strwidth.c: Likewise.
36535         * lib/uniwidth/u8-width.c: Likewise.
36536         * lib/uniwidth/width.c: Likewise.
36537
36538 2007-10-07  Bruno Haible  <bruno@clisp.org>
36539
36540         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36541         The file is still under LGPL (see modules/inttypes).
36542
36543 2007-10-06  Bruno Haible  <bruno@clisp.org>
36544
36545         * modules/trunc (Dependencies): Add 'extensions'.
36546         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36547         Reported by Ben Pfaff <blp@gnu.org>.
36548
36549 2007-10-06  Bruno Haible  <bruno@clisp.org>
36550
36551         * modules/freopen-tests: New file.
36552         * tests/test-freopen.c: New file.
36553
36554         * modules/fopen-tests: New file.
36555         * tests/test-fopen.c: New file.
36556
36557         * modules/fopen: New file.
36558         * lib/fopen.c: New file.
36559         * m4/fopen.m4: New file.
36560         * modules/freopen: New file.
36561         * lib/freopen.c: New file.
36562         * m4/freopen.m4: New file.
36563         * lib/stdio.in.h (fopen, freopen): New declarations.
36564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36565         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36566         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36567         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36568         * doc/functions/fopen.texi: Mention the 'fopen' module.
36569         * doc/functions/freopen.texi: Mention the 'freopen' module.
36570
36571 2007-10-06  Bruno Haible  <bruno@clisp.org>
36572
36573         * modules/open-tests: New file.
36574         * tests/test-open.c: New file.
36575
36576         * modules/open: New file.
36577         * lib/open.c: New file.
36578         * m4/open.m4: New file.
36579         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36580         lib/open.c does.
36581         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36583         macros.
36584         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36585         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36586         REPLACE_OPEN.
36587         * doc/functions/open.texi: Mention the 'open' module.
36588
36589 2007-10-04  Bruno Haible  <bruno@clisp.org>
36590
36591         * modules/ceill-tests: New file.
36592         * tests/test-ceill.c: New file.
36593
36594         * modules/ceill: New file.
36595         * lib/ceill.c: Replace entire file.
36596         * m4/ceill.m4: New file.
36597         * lib/math.in.h (ceill): Replace declaration.
36598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36599         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36600         * doc/functions/ceill.texi: Mention the 'ceill' module.
36601         * modules/mathl (Files): Remove lib/ceill.c.
36602         (Depends-on): Add ceill.
36603
36604 2007-10-04  Bruno Haible  <bruno@clisp.org>
36605
36606         * modules/ceilf-tests: New file.
36607         * tests/test-ceilf.c: New file.
36608
36609         * modules/ceilf: New file.
36610         * lib/ceil.c: New file.
36611         * lib/ceilf.c: New file.
36612         * m4/ceilf.m4: New file.
36613         * lib/math.in.h (ceilf): New declaration.
36614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36615         HAVE_DECL_CEILF.
36616         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36617         HAVE_DECL_CEILF.
36618         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36619
36620 2007-10-04  Bruno Haible  <bruno@clisp.org>
36621
36622         * modules/floorl-tests: New file.
36623         * tests/test-floorl.c: New file.
36624
36625         * modules/floorl: New file.
36626         * lib/floorl.c: Replace entire file.
36627         * m4/floorl.m4: New file.
36628         * lib/math.in.h (floorl): Replace declaration.
36629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36630         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36631         * doc/functions/floorl.texi: Mention the 'floorl' module.
36632         * modules/mathl (Files): Remove lib/floorl.c.
36633         (Depends-on): Add floorl.
36634
36635 2007-10-04  Bruno Haible  <bruno@clisp.org>
36636
36637         * modules/floorf-tests: New file.
36638         * tests/test-floorf.c: New file.
36639
36640         * modules/floorf: New file.
36641         * lib/floor.c: New file.
36642         * lib/floorf.c: New file.
36643         * m4/floorf.m4: New file.
36644         * lib/math.in.h (floorf): New declaration.
36645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36646         HAVE_DECL_FLOORF.
36647         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36648         HAVE_DECL_FLOORF.
36649         * doc/functions/floorf.texi: Mention the 'floorf' module.
36650
36651 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36652             Bruno Haible  <bruno@clisp.org>
36653
36654         Advertise for the Git server instead of the CVS server.
36655         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36656         repository instead of the CVS one.
36657         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36658         about all VCS systems generically.
36659         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36660
36661 2007-10-04  Bruno Haible  <bruno@clisp.org>
36662
36663         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36664         means.
36665         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36666
36667 2007-10-04  Bruno Haible  <bruno@clisp.org>
36668
36669         * modules/truncl-tests: New file.
36670         * tests/test-truncl.c: New file.
36671
36672         * modules/truncl: New file.
36673         * lib/truncl.c: New file.
36674         * m4/truncl.m4: New file.
36675         * lib/math.in.h (truncl): New declaration.
36676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36677         HAVE_DECL_TRUNCL.
36678         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36679         HAVE_DECL_TRUNCL.
36680         * doc/functions/truncl.texi: Mention the 'truncl' module.
36681
36682 2007-10-04  Bruno Haible  <bruno@clisp.org>
36683
36684         * modules/truncf-tests: New file.
36685         * tests/test-truncf.c: New file.
36686
36687         * modules/truncf: New file.
36688         * lib/trunc.c: Make paramerizable through USE_* macros.
36689         * lib/truncf.c: New file.
36690         * m4/truncf.m4: New file.
36691         * lib/math.in.h (truncf): New declaration.
36692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36693         HAVE_DECL_TRUNCF.
36694         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36695         HAVE_DECL_TRUNCF.
36696         * doc/functions/truncf.texi: Mention the 'truncf' module.
36697
36698 2007-10-03  Bruno Haible  <bruno@clisp.org>
36699
36700         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36701         augmentation also for tests modules.
36702         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36703         * modules/atexit-tests (Makefile.am): Likewise.
36704         * modules/binary-io-tests (Makefile.am): Likewise.
36705         * modules/c-strcase-tests (Makefile.am): Likewise.
36706         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36707         * modules/canonicalize-tests (Makefile.am): Likewise.
36708         * modules/closein-tests (Makefile.am): Likewise.
36709         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36710         * modules/freadahead-tests (Makefile.am): Likewise.
36711         * modules/fseek-tests (Makefile.am): Likewise.
36712         * modules/fseeko-tests (Makefile.am): Likewise.
36713         * modules/ftell-tests (Makefile.am): Likewise.
36714         * modules/ftello-tests (Makefile.am): Likewise.
36715         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36716         * modules/isnanl-tests (Makefile.am): Likewise.
36717         * modules/lseek-tests (Makefile.am): Likewise.
36718         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36719         * modules/mbscasestr-tests (Makefile.am): Likewise.
36720         * modules/mbschr-tests (Makefile.am): Likewise.
36721         * modules/mbscspn-tests (Makefile.am): Likewise.
36722         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36723         * modules/mbspbrk-tests (Makefile.am): Likewise.
36724         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36725         * modules/mbsrchr-tests (Makefile.am): Likewise.
36726         * modules/mbsspn-tests (Makefile.am): Likewise.
36727         * modules/mbsstr-tests (Makefile.am): Likewise.
36728         * modules/printf-posix-tests (Makefile.am): Likewise.
36729         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36730         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36731         * modules/tsearch-tests (Makefile.am): Likewise.
36732         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36733         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36734         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36735         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36736         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36737         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36738         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36739         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36740         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36741         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36742         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36743         * modules/xstrtol-tests (Makefile.am): Likewise.
36744         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36745         * modules/yesno-tests (Makefile.am): Likewise.
36746
36747 2007-10-03  Bruno Haible  <bruno@clisp.org>
36748
36749         * modules/trunc-tests: New file.
36750         * tests/test-trunc.c: New file.
36751
36752         * modules/trunc: New file.
36753         * lib/trunc.c: New file.
36754         * m4/trunc.m4: New file.
36755         * lib/math.in.h (trunc): New declaration.
36756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36757         HAVE_DECL_TRUNC.
36758         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36759         HAVE_DECL_TRUNC.
36760         * doc/functions/trunc.texi: Mention the 'trunc' module.
36761
36762 2007-10-03  Bruno Haible  <bruno@clisp.org>
36763
36764         * tests/test-fpending.c: New file, mostly copied
36765         from coreutils/lib/t-fpending.c.
36766         * modules/fpending-tests: New file.
36767
36768 2007-10-03  Bruno Haible  <bruno@clisp.org>
36769
36770         Port the stdio extensions to QNX (untested).
36771         * lib/fseterr.c (fseterr): Add support for QNX.
36772         * lib/fbufmode.c (fbufmode): Likewise.
36773         * lib/freadable.c (freadable): Likewise.
36774         * lib/fwritable.c (fwritable): Likewise.
36775         * lib/freading.c (freading): Likewise.
36776         * lib/fwriting.c (fwriting): Likewise.
36777         * lib/freadahead.c (freadahed): Likewise.
36778         * lib/fpurge.c (fpurge): Likewise.
36779         * lib/fseeko.c (rpl_fseeko): Likewise.
36780
36781 2007-10-03  Bruno Haible  <bruno@clisp.org>
36782             Jim Meyering  <jim@meyering.net>
36783             Eric Blake  <ebb9@byu.net>
36784
36785         * doc/relocatable.texi: Use @command instead of @program.
36786
36787 2007-10-02  Jim Meyering  <jim@meyering.net>
36788
36789         Perform one more "_.h" -> ".in.h" substitution.
36790         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36791         instead of unistd_.h here, too.
36792
36793 2007-10-01  Bruno Haible  <bruno@clisp.org>
36794
36795         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36796         Needed for the alloca-opt module.
36797
36798 2007-09-30  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36801         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36802         alloca_.h.
36803         * lib/argz.in.h: Renamed from lib/argz_.h.
36804         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36805         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36806         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36807         byteswap_.h.
36808         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36809         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36810         dirent_.h.
36811         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36812         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36813         fcntl_.h.
36814         * lib/float.in.h: Renamed from lib/float_.h.
36815         * modules/float (Files, Makefile.am): Use float.in.h instead of
36816         float_.h.
36817         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36818         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36819         fnmatch_.h.
36820         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36821         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36822         getopt_.h.
36823         * lib/glob.in.h: Renamed from lib/glob_.h.
36824         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36825         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36826         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36827         iconv_.h.
36828         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36829         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36830         inttypes_.h.
36831         * lib/locale.in.h: Renamed from lib/locale_.h.
36832         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36833         locale_.h.
36834         * lib/math.in.h: Renamed from lib/math_.h.
36835         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36836         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36837         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36838         of netinet_in_.h. Add dependency.
36839         * lib/poll.in.h: Renamed from lib/poll_.h.
36840         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36841         * lib/search.in.h: Renamed from lib/search_.h.
36842         * modules/search (Files, Makefile.am): Use search.in.h instead of
36843         search_.h.
36844         * lib/signal.in.h: Renamed from lib/signal_.h.
36845         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
36846         _signal.h.
36847         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
36848         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
36849         stdbool_.h.
36850         * lib/stdint.in.h: Renamed from lib/stdint_.h.
36851         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
36852         stdint_.h.
36853         * lib/stdio.in.h: Renamed from lib/stdio_.h.
36854         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
36855         stdio_.h.
36856         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
36857         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
36858         stdlib_.h.
36859         * lib/string.in.h: Renamed from lib/string_.h.
36860         * modules/string (Files, Makefile.am): Use string.in.h instead of
36861         string_.h.
36862         * doc/gnulib-tool.texi (Initial import): Update.
36863         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
36864         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
36865         of sys_select_.h. Add dependency.
36866         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
36867         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
36868         of sys_socket_.h.
36869         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
36870         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
36871         sys_stat_.h.
36872         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
36873         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
36874         sys_time_.h.
36875         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
36876         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
36877         sysexits_.h.
36878         * lib/time.in.h: Renamed from lib/time_.h.
36879         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
36880         * lib/unistd.in.h: Renamed from lib/unistd_.h.
36881         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
36882         unistd_.h.
36883         * lib/wchar.in.h: Renamed from lib/wchar_.h.
36884         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
36885         wchar_.h.
36886         * lib/wctype.in.h: Renamed from lib/wctype_.h.
36887         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
36888         wctype_.h.
36889         * build-aux/bootstrap (slurp): Update.
36890         * lib/.cppi-disable: Update.
36891
36892 2007-09-30  Bruno Haible  <bruno@clisp.org>
36893
36894         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
36895         Needed on BeOS.
36896
36897 2007-09-30  Bruno Haible  <bruno@clisp.org>
36898
36899         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
36900
36901 2007-09-29  Bruno Haible  <bruno@clisp.org>
36902
36903         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
36904
36905 2007-09-29  Bruno Haible  <bruno@clisp.org>
36906
36907         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
36908         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
36909         * build-aux/install-reloc: Compile also areadlink.c.
36910         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
36911
36912 2007-09-29  Bruno Haible  <bruno@clisp.org>
36913
36914         * gnulib-tool (func_emit_initmacro_done): Indentation.
36915
36916 2007-09-29  Bruno Haible  <bruno@clisp.org>
36917
36918         * README: Add CVS checkout update instructions.
36919         Info from Bob Proulx <bob@proulx.com>.
36920
36921 2007-09-28  Eric Blake  <ebb9@byu.net>
36922
36923         Provide move-if-change.
36924         * build-aux/move-if-change: New file, based on best practice
36925         rather than any canonical upstream location.
36926
36927 2007-09-28  Jim Meyering  <jim@meyering.net>
36928
36929         Fix canonicalize loop-detection corner case.
36930         Do not attempt to stat the symlink values stored via seen_triple.
36931         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
36932         on linux-2.6.18, (but not 2.6.22).
36933         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
36934         triple_compare.  The former compares dev,ino,filename, while the latter
36935         would actually stat dirname(filename) when dev and ino were equal.
36936         * lib/hash-triple.c: Install <string.h>.
36937         (STREQ): Define.
36938         (triple_compare_ino_str): New function.
36939         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
36940
36941 2007-09-28  Eric Blake  <ebb9@byu.net>
36942
36943         Enforce that AC_REPLACE_FUNCS files exist.
36944         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
36945         override check for typos.
36946
36947         Fix test-closein on Solaris 10.
36948         * tests/test-closein.c (main): Don't assume stdin can be inherited
36949         closed on all systems.
36950         * tests/test-closein.sh: Likewise.
36951         Reported by Piotr Tarnowski.
36952
36953 2007-09-28  Jim Meyering  <jim@meyering.net>
36954
36955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
36956
36957 2007-09-27  Jim Meyering  <jim@meyering.net>
36958
36959         canonicalize: Avoid a false-positive cycle failure.
36960         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
36961         Sort.  Remove cycle-check.
36962         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
36963         not cycle-check.h.
36964         (seen_triple): New function.
36965         (canonicalize_filename_mode): Use it instead of cycle-check.
36966         * tests/test-canonicalize.c: Add a test for this bug.
36967         * tests/test-canonicalize.sh: Set up and run the test.
36968
36969         New module, file-set, from coreutils.
36970         * modules/file-set: Define it.
36971         * lib/file-set.c, lib/file-set.h: Implement.
36972
36973         New module, hash-triple, from coreutils.
36974         * modules/hash-triple: Define it.
36975         * lib/hash-triple.c, lib/hash-triple.h: Implement.
36976
36977 2007-09-25  Eric Blake  <ebb9@byu.net>
36978
36979         Fix strerror on Interix.
36980         * lib/string_.h (strerror): Declare replacement.
36981         * doc/functions/strerror.texi (strerror): Document the Interix
36982         shortcoming.
36983         * modules/string (Makefile.am): Support new hooks.
36984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
36985         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
36986         gl_FUNC_STRERROR_SEPARATE.
36987         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
36988         * lib/strerror.c (rpl_strerror): Provide replacement.
36989         * modules/strerror (Depends-on): Add string.
36990         (configure.ac): Detect use of module.
36991         * tests/test-strerror.c: New file.
36992         * modules/strerror-tests: New test module.
36993         * modules/argp (Depends-on): Add strerror.
36994         * modules/error (Depends-on): Likewise.
36995         Reported by Martin Koeppe.
36996
36997 2007-09-24  Bruno Haible  <bruno@clisp.org>
36998
36999         * README: Update git instructions.
37000
37001 2007-09-24  Eric Blake  <ebb9@byu.net>
37002
37003         Revert fpending breakage from 2007-09-08.
37004         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37005         __fpending.c.
37006
37007 2007-09-24  Jim Meyering  <jim@meyering.net>
37008
37009         filenamecat.c: Add a test.
37010         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37011         showing how the function works when DIR is the empty string.
37012
37013 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37014
37015         * tests/test-canonicalize.sh: Turn on executable bit.
37016
37017 2007-09-19  Eric Blake  <ebb9@byu.net>
37018
37019         * README: Update CVS instructions.
37020
37021 2007-09-18  Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/areadlink: New file.
37024         * lib/areadlink.h (areadlink): New declaration.
37025         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37026
37027 2007-09-17  Jim Meyering  <jim@meyering.net>
37028
37029         * lib/savewd.c (ESTALE) [!defined]: Define.
37030         Reported to be required on Interix by Martin Koeppe.
37031
37032 2007-09-17  Bruno Haible  <bruno@clisp.org>
37033
37034         * gnulib-tool (func_version): Use $version.
37035
37036 2007-09-16  Bruno Haible  <bruno@clisp.org>
37037
37038         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37039         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37040         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37041         Reported by Greg Schafer <gschafer@zip.com.au>.
37042
37043 2007-09-15  Bruno Haible  <bruno@clisp.org>
37044
37045         * gnulib-tool (sed): Try a little harder to make bash understand the
37046         alias.
37047         Reported by Bruce Korb <bruce.korb@gmail.com>.
37048
37049 2007-09-13  Eric Blake  <ebb9@byu.net>
37050
37051         * ChangeLog: Remove conflict markers.
37052
37053 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37054
37055         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37056         Reported by Bruno Haible <bruno@clisp.org>.
37057
37058 2007-09-12  Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37061         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37062         is not defined.
37063
37064 2007-09-12  Eric Blake  <ebb9@byu.net>
37065
37066         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37068         Autoconf definition.
37069         * modules/euidaccess (Depends-on): Add extensions, for
37070         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37071         * modules/fnmatch (Depends-on): Likewise.
37072         * modules/getaddrinfo (Depends-on): Likewise.
37073         * modules/getdelim (Depends-on): Likewise.
37074         * modules/getline (Depends-on): Likewise.
37075         * modules/getsubopt (Depends-on): Likewise.
37076         * modules/gettext (Depends-on): Likewise.
37077         * modules/group-member (Depends-on): Likewise.
37078         * modules/mbchar (Depends-on): Likewise.
37079         * modules/memmem (Depends-on): Likewise.
37080         * modules/mempcpy (Depends-on): Likewise.
37081         * modules/memrchr (Depends-on): Likewise.
37082         * modules/pagealign_alloc (Depends-on): Likewise.
37083         * modules/readutmp (Depends-on): Likewise.
37084         * modules/stpcpy (Depends-on): Likewise.
37085         * modules/stpncpy (Depends-on): Likewise.
37086         * modules/strchrnul (Depends-on): Likewise.
37087         * modules/strndup (Depends-on): Likewise.
37088         * modules/strsep (Depends-on): Likewise.
37089         * modules/strverscmp (Depends-on): Likewise.
37090         * modules/vasprintf (Depends-on): Likewise.
37091         * modules/wcwidth (Depends-on): Likewise.
37092         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37093         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37094         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37096         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37097         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37098         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37099         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37100         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37101         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37102         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37103         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37104         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37105         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37106         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37107         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37108         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37109         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37111         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37112         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37113         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37114         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37115         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37116         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37119         so that lock.m4 can be used in gettext without extensions module.
37120
37121 2007-09-11  Bruno Haible  <bruno@clisp.org>
37122
37123         * m4/isc-posix.m4: Remove file.
37124         Suggested by Eric Blake.
37125
37126 2007-09-11  Eric Blake  <ebb9@byu.net>
37127
37128         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37129
37130 2007-09-10  Bruno Haible  <bruno@clisp.org>
37131
37132         * posix-modules: Fix typo in error message.
37133         Reported by Matt <mkraai@beckman.com>.
37134
37135 2007-09-09  Bruno Haible  <bruno@clisp.org>
37136
37137         * doc/functions/getdelim.texi: Update list of platforms lacking the
37138         function.
37139         * doc/functions/getline.texi: Likewise.
37140
37141 2007-09-09  Jim Meyering  <jim@meyering.net>
37142
37143         * lib/hash.c (hash_initialize): Detect calloc failure.
37144         Reported by Bruno Haible.
37145
37146 2007-09-09  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37149         malloc or realloc fails.
37150
37151 2007-09-09  Bruno Haible  <bruno@clisp.org>
37152
37153         * modules/getcwd (Depends-on): Add malloc-posix.
37154         * modules/glob (Depends-on): Likewise.
37155         * modules/putenv (Depends-on): Likewise.
37156         * modules/strdup (Depends-on): Likewise.
37157         * modules/getdelim (Depends-on): Add realloc-posix.
37158         * modules/read-file (Depends-on): Likewise.
37159
37160 2007-09-09  Bruno Haible  <bruno@clisp.org>
37161
37162         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37163         (gl_FUNC_MALLOC_POSIX): Require it.
37164         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37165         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37166         * modules/realloc (Files): Add m4/malloc.m4.
37167         * modules/calloc (Files): Likewise.
37168
37169 2007-09-09  Bruno Haible  <bruno@clisp.org>
37170
37171         * modules/malloc-posix: New file.
37172         * modules/malloc (Depends-on): Add malloc-posix.
37173         * lib/malloc.c: Include errno.h.
37174         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37175         and a POSIX-compatible malloc into a single function. Set ENOMEM
37176         when returning NULL.
37177         * m4/malloc.m4: New file.
37178         * doc/functions/malloc.texi: Mention the malloc-posix module.
37179         * lib/stdlib_.h (malloc): New declaration.
37180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37181         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37182         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37183         and HAVE_MALLOC_POSIX.
37184
37185 2007-09-09  Bruno Haible  <bruno@clisp.org>
37186
37187         * modules/realloc-posix: New file.
37188         * modules/realloc (Depends-on): Add realloc-posix.
37189         * lib/realloc.c: Include errno.h.
37190         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37191         and a POSIX-compatible realloc into a single function. Set ENOMEM
37192         when returning NULL.
37193         * m4/realloc.m4: New file.
37194         * doc/functions/realloc.texi: Mention the realloc-posix module.
37195         * lib/stdlib_.h (realloc): New declaration.
37196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37197         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37198         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37199         and HAVE_REALLOC_POSIX.
37200
37201 2007-09-09  Bruno Haible  <bruno@clisp.org>
37202
37203         * modules/calloc-posix: New file.
37204         * modules/calloc (Depends-on): Add calloc-posix.
37205         * lib/calloc.c: Include errno.h.
37206         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37207         and a POSIX-compatible calloc into a single function. Set ENOMEM
37208         when returning NULL.
37209         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37210         * doc/functions/calloc.texi: Mention the calloc-posix module.
37211         * lib/stdlib_.h (calloc): New declaration.
37212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37213         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37214         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37215         and HAVE_CALLOC_POSIX.
37216
37217 2007-09-09  Bruno Haible  <bruno@clisp.org>
37218
37219         Allow for modules to show an arbitrary notice.
37220         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37221         * gnulib-tool: New option --extract-notice.
37222         (func_usage): Document it.
37223         (sed_extract_prog): Update.
37224         (func_get_notice): New function.
37225         (func_modules_notice): New function.
37226         (func_import, func_create_testdir): Invoke it.
37227         Suggested by Jim Meyering.
37228
37229 2007-09-09  Bruno Haible  <bruno@clisp.org>
37230
37231         * gnulib-tool: New options --verbose, --quiet.
37232         (func_usage): Document them.
37233         (verbose): New variable.
37234         (func_execute_command): New function.
37235         (func_import): Don't show the module list and the file list if
37236         $verbose < 0.
37237         (func_create_testdir): Likewise. Use func_execute_command.
37238         (func_create_megatestdir): Use func_execute_command.
37239
37240 2007-09-08  Bruno Haible  <bruno@clisp.org>
37241
37242         * gnulib-tool (func_import): Prefer rsync over wget when available,
37243         for fetching the PO files.
37244
37245 2007-09-08  Bruno Haible  <bruno@clisp.org>
37246
37247         * posix-modules: New file. Portions copied from gnulib-tool.
37248         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37249
37250 2007-09-08  Jim Meyering  <jim@meyering.net>
37251
37252         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37253         * lib/fpending.h: Rename from __fpending.h.
37254         * lib/fpending.c: Rename from __fpending.c.
37255         Include "fpending.h", not "__fpending.h".
37256         * lib/__fpending.h, lib/__fpending.c: Remove files.
37257         * modules/fpending (Files): Reflect new file names.
37258         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37259
37260 2007-09-08  Bruno Haible  <bruno@clisp.org>
37261
37262         * m4/inttypes-h.m4: Remove stub file.
37263
37264 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37265
37266         * doc/headers/stdint.texi: Discuss #include_next issue.
37267
37268 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37269
37270         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37271
37272 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37273
37274         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37275         in variable name.
37276
37277 2007-09-03  Jim Meyering  <jim@meyering.net>
37278
37279         New module: git-version-gen.
37280         * modules/git-version-gen: New file.
37281
37282         Import changes from coreutils for bootstrap script.
37283
37284         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37285
37286         bootstrap: uses rsync to download the .po files
37287         * build-aux/bootstrap (po_download_command_format): New global.
37288         (download_po_files): Use rsync.
37289         (update_po_files): Don't remove .po files after download,
37290         so future rsync runs can take advantage of the copies.
37291
37292         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37293
37294         Solve the unnecessary-.po-file-regeneration problem once and for all.
37295         * build-aux/bootstrap (download_po_files): New function, renamed from
37296         get_translations.  Now, downloads, but doesn't update LINGUAS.
37297         (update_po_files): New function.
37298
37299         bootstrap: Ignore more.
37300         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37301         uniwidth to e.g., lib/.gitignore.
37302         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37303
37304         * build-aux/bootstrap: New setting: vc_ignore.
37305         (insert_sorted_if_absent): Create $file if absent.
37306         Adapt to new, possibly empty, list: $vc_ignore.
37307
37308         bootstrap: generate more ignorable names
37309         * build-aux/bootstrap (slurp): When generating ignorable names,
37310         also map .sin to .sed, .gperf to .c, and .y to .c.
37311
37312 2007-09-03  Jim Meyering  <jim@meyering.net>
37313
37314         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37315         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37316
37317 2007-09-02  Bruno Haible  <bruno@clisp.org>
37318
37319         Fix mis-recognition of 'mcs' on QNX 6.
37320         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37321         output contains the string "Mono".
37322         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37323         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37324
37325 2007-09-01  Bruno Haible  <bruno@clisp.org>
37326
37327         Fix collision between uniwidth/* and linebreak modules.
37328         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37329         u32_width): Remove declarations.
37330         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37331         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37332         streq3, streq2, streq1, streq0): Remove functions.
37333         (STREQ): Remove macro.
37334         (is_cjk_encoding): Remove function.
37335         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37336         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37337         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37338         * NEWS: Document the change.
37339
37340 2007-09-01  Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/streq.h: Add double-inclusion guard.
37343
37344 2007-09-01  Karl Berry  <karl@gnu.org>
37345
37346         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37347
37348 2007-08-28  Jim Meyering  <jim@meyering.net>
37349
37350         Rename mreadlink_with_size to areadlink_with_size.
37351         * NEWS: Document the change.
37352         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37353         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37354         * lib/mreadlink.h: Rename this to...
37355         * lib/areadlink.h: ...this.
37356         * modules/mreadlink-with-size: Rename this to...
37357         * modules/areadlink-with-size: ...this.
37358         * lib/canonicalize.c: Reflect the renaming.
37359         * modules/canonicalize: Likewise.
37360
37361 2007-08-26  Bruno Haible  <bruno@clisp.org>
37362
37363         * gnulib-tool (func_import): When deciding which files to remove,
37364         consider also dangling symbolic links.
37365         Reported by Eric Blake.
37366
37367 2007-08-26  Bruno Haible  <bruno@clisp.org>
37368
37369         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37370
37371 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37372
37373         * lib/readline.c: Don't include getline.h, the prototype is now
37374         found in stdio.h.
37375
37376 2007-08-23  Jim Meyering  <jim@meyering.net>
37377
37378         Getdelim touchup.
37379         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37380         around the funlockfile call, since funlockfile never sets errno.
37381         Don't set errno upon failed realloc.
37382
37383 2007-08-22  Eric Blake  <ebb9@byu.net>
37384
37385         Getline touchups.
37386         * lib/getdelim.c (getdelim): Revert regression that required *n to
37387         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37389         getdelim, rather than whether implementation is missing.
37390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37391         * lib/stdio_.h (getline): Also declare if replacement is
37392         required.
37393         * doc/functions/getdelim.texi: New file.
37394         * doc/functions/getline.texi: Likewise.
37395         * doc/gnulib.texi (Function Substitutes): Add new files.
37396         Reported by Bruno Haible.
37397
37398 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37399
37400         * users.txt: Add Guile.
37401
37402 2007-08-22  Eric Blake  <ebb9@byu.net>
37403
37404         * tests/test-getdelim.c (main): Use remove, not unlink.
37405         * tests/test-getline.c (main): Likewise.
37406
37407         Move getline and getdelim into stdio.h, per POSIX 200x.
37408         * modules/getline (Files): Remove getline.h.
37409         (Depends-on): Add stdio.
37410         (configure.ac): Add module indicator.
37411         * modules/getdelim (Files): Remove getdelim.h.
37412         (Depends-on): Add stdio.
37413         (configure.ac): Add module indicator.
37414         * modules/stdio (Makefile.am): Work with new indicators.
37415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37416         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37417         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37418         * lib/getdelim.h: Delete.
37419         * lib/getline.h: Delete.
37420         * lib/stdio_.h (getdelim, getline): Declare.
37421         * modules/getdelim-tests: New module.
37422         * modules/getline-tests: Likewise.
37423         * tests/test-getdelim.c: New file.
37424         * tests/test-getline.c: Likewise.
37425         * NEWS: Document the change.
37426         * lib/getline.c: Update choice of header.
37427         * lib/csharpcomp.c: Likewise.
37428         * lib/getpass.c: Likewise.
37429         * lib/javacomp.c: Likewise.
37430         * lib/javaversion.c: Likewise.
37431         * lib/yesno.c: Likewise.
37432         * lib/getdelim.c: Likewise.
37433         (getdelim): Set errno on failure, and avoid memory leak.
37434
37435 2007-08-19  Bruno Haible  <bruno@clisp.org>
37436
37437         * modules/closein (Depends-on): Add freadahead.
37438         * lib/closein.c: Include freadahead.h.
37439         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37440         is zero.
37441
37442 2007-08-19  Bruno Haible  <bruno@clisp.org>
37443
37444         * modules/freadahead-tests: New file.
37445         * tests/test-freadahead.sh: New file.
37446         * tests/test-freadahead.c: New file.
37447
37448         * modules/freadahead: New file.
37449         * lib/freadahead.h: New file.
37450         * lib/freadahead.c: New file.
37451         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37452         fbufmode, fpurge, freadable, fwritable.
37453
37454 2007-08-19  Eric Blake  <ebb9@byu.net>
37455
37456         Test yesno in combination with closein.
37457         * lib/yesno.c (yesno): Document use of stdin.
37458         * modules/yesno-tests (Files): New module.
37459         * tests/test-yesno.c (main): New file.
37460         * tests/test-yesno.sh: Likewise.
37461
37462 2007-08-19  Bruno Haible  <bruno@clisp.org>
37463
37464         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37465         * lib/fseeko.c (rpl_fseeko): Likewise.
37466         * lib/fseterr.c (fseterr): Likewise.
37467
37468 2007-08-19  Bruno Haible  <bruno@clisp.org>
37469
37470         * tests/test-lseek.c (main): Disable a test for BeOS.
37471         * doc/functions/lseek.texi: Document the BeOS bug.
37472
37473 2007-08-19  Bruno Haible  <bruno@clisp.org>
37474             Eric Blake  <ebb9@byu.net>
37475
37476         * lib/lseek.c: Include <sys/stat.h>.
37477         (rpl_lseek): Add workaround code also for Unix platforms.
37478         Needed for BeOS.
37479         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37480         * doc/functions/lseek.texi: Document BeOS definiency.
37481
37482 2007-08-18  Bruno Haible  <bruno@clisp.org>
37483
37484         * modules/fstrcmp-tests: New file.
37485         * tests/test-fstrcmp.c: New file.
37486
37487 2007-08-18  Bruno Haible  <bruno@clisp.org>
37488
37489         * modules/fstrcmp: New file, from GNU gettext with modifications.
37490         * lib/fstrcmp.h: New file, from GNU gettext.
37491         * lib/fstrcmp.c: New file, from GNU gettext.
37492         * MODULES.html.sh (String handling): Add fstrcmp.
37493
37494 2007-08-18  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37497         'bool'.
37498         (diag, compareseq): Remove const from the ctxt argument.
37499         (USE_HEURISTIC): Undefine at the end.
37500
37501 2007-08-18  Jim Meyering  <jim@meyering.net>
37502
37503         New file: lib/idcache.h
37504         * NEWS: Mention the addition.
37505         * modules/idcache (Files): Add lib/idcache.h
37506         * lib/idcache.c: Include "idcache.h".
37507         Don't include <sys/types.h>.
37508         Add a FIXME comment.
37509         Move file-scoped "static" declarations to the top.
37510         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37511
37512 2007-08-17  Bruno Haible  <bruno@clisp.org>
37513         and Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         * MODULES.html.sh: Add diffseq.
37516         * modules/diffseq: New file.
37517         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37518         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37519
37520 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37521
37522         Import changes from coreutils for bootstrap script.
37523
37524         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37525
37526         * build-aux/bootstrap (slurp): Work even in environments where
37527         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37528         current code does not slurp files whose names start with ".", and
37529         this looks like it might be a troublesome area.
37530
37531         2007-07-11  Jim Meyering  <jim@meyering.net>
37532
37533         If there's a GPL vN copyright comment, require that N == 3.
37534
37535         2007-07-08  Jim Meyering  <jim@meyering.net>
37536
37537         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37538         * build-aux/bootstrap (mam_template): Move definition out of loop.
37539
37540         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37541
37542         * build-aux/bootstrap (symlink_to_dir): Rename function from
37543         symlink_to_gnulib.  Add a directory parameter.  Update all
37544         callers.
37545         (cp_mark_as_generated): Also check for -- and link to -- files in
37546         gl/.
37547
37548         2007-07-08  Jim Meyering  <jim@meyering.net>
37549
37550         Adapt to deeper hierarchy in gnulib.
37551         * build-aux/bootstrap (symlink_to_dir): If the destination
37552         directory doesn't exist, create it. This is required at least for
37553         "lib/uniwidth/cjk.h".
37554
37555         2007-05-15  Jim Meyering  <jim@meyering.net>
37556
37557         * build-aux/bootstrap: Now that generated Makefile.am files
37558         are no longer under version control, they must be created at
37559         bootstrap time.
37560
37561 2007-08-14  Ben Pfaff  <blp@gnu.org>
37562
37563         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37564
37565 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37566
37567         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37568         given the changes below.
37569         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37570         even on hosts that have padding bits beyond the supported 64.
37571
37572 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37573
37574         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37575         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37576         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37577         depends on it.
37578         (xstrtol_error): Remove.
37579         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37580         but with a different signature.
37581         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37582         * lib/xstrtol-error.c: Include exitfail.h.
37583         (xstrtol_fatal): New function, with a different signature from the
37584         old xstrtol_error, so that the caller need not worry about passing
37585         in an exit status, or about storage management of the option argument.
37586         (xstrtol_error): Now a static function.  Redo signature to
37587         implement xstrtol_fatal.  Output the correct number of hyphens in
37588         front of the option so that the caller need not worry about
37589         storage management.
37590         (N_): New macro.
37591         (_): Remove; not used now.
37592         * modules/xstrtol: Depend on getopt.
37593         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37594         of old STRTOL_FATAL_ERROR macro.
37595         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37596         of test program.
37597         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37598         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37599
37600 2007-08-08  Eric Blake  <ebb9@byu.net>
37601
37602         * lib/xstrtol-error.c: Add missing include.
37603
37604         Move xstrtol messages into gnulib domain, when --pobase is used.
37605         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37606         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37607         * modules/xstrtol (Files): Distribute new file.
37608         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37609         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37610         * tests/test-xstrtol.c: ...into new file.
37611         * tests/test-xstrtoul.c: Also test xstrtoul.
37612         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37613         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37614         * tests/test-xstrtol.sh: Drive the tests.
37615         * tests/test-xstrtoimax.sh: Likewise.
37616         * tests/test-xstrtoumax.sh: Likewise.
37617         * modules/xstrtol-tests: New module.
37618         * modules/xstrtoimax-tests: Likewise.
37619         * modules/xstrtoumax-tests: Likewise.
37620
37621 2007-08-08  Jim Meyering  <jim@meyering.net>
37622
37623         New function: mfile_name_concat.
37624         * lib/filenamecat.c (mfile_name_concat): New function, just like
37625         file_name_concat, but return NULL upon failure rather than exiting
37626         with a diagnostic.
37627         * lib/filenamecat.h: Declare it.
37628
37629 2007-08-07  Bruno Haible  <bruno@clisp.org>
37630
37631         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37632         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37633         warning from gcc.
37634         Reported by Eric Blake.
37635
37636 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37637
37638         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37639         * modules/crypto/arcfour (License): Likewise.
37640         * modules/crypto/des-tests (License): Likewise.
37641         * modules/crypto/gc-arctwo-tests (License): Likewise.
37642         * modules/crypto/gc-des-tests (License): Likewise.
37643         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37644         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37645         * modules/crypto/gc-md2-tests (License): Likewise.
37646         * modules/crypto/gc-md4-tests (License): Likewise.
37647         * modules/crypto/gc-md5-tests (License): Likewise.
37648         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37649         * modules/crypto/gc-rijndael-tests (License): Likewise.
37650         * modules/crypto/gc-sha1-tests (License): Likewise.
37651         * modules/crypto/gc-tests (License): Likewise.
37652         * modules/crypto/hmac-md5 (License): Likewise.
37653         * modules/crypto/hmac-sha1 (License): Likewise.
37654         * modules/crypto/md2-tests (License): Likewise.
37655         * modules/crypto/md4-tests (License): Likewise.
37656         * modules/crypto/md5 (License): Likewise.
37657         * modules/crypto/rijndael (License): Likewise.
37658         * modules/crypto/sha1 (License): Likewise.
37659         * modules/memxor (License): Likewise.
37660
37661 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37662         and Bruno Haible  <bruno@clisp.org>
37663
37664         * NEWS: Describe interface changes to human, xstrtol.
37665         * lib/human.h: Include <xstrtol.h>.
37666         (human_options): Return enum strtol_error, not int.  Remove
37667         bool arg; take int * instead.
37668         * lib/human.c: Don't include "gettext.h".
37669         (_): Remove; no longer used.
37670         Don't include <xstrtol.h>, since human.h does it.
37671         (human_options): Adjust to abovementioned interface changes.
37672         Do not report error to stderr; that's now the caller's
37673         responsibility.
37674         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37675         interface change.
37676         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37677         Str, Argument_type_string.  All uses changed.  Put " argument"
37678         in diagnostics to make them clearer.  Change wording of suffix
37679         message for clarity.
37680         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37681         Argument_type_string.
37682         (STRTOL_FATAL_WARN): Remove; no longer used.
37683         * modules/human (Depends-on): Remove gettext-h.
37684
37685 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37686
37687         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37688
37689 2007-07-31  Bruno Haible  <bruno@clisp.org>
37690
37691         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37692         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37693         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37694
37695 2007-07-31  Bruno Haible  <bruno@clisp.org>
37696
37697         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37698         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37699
37700 2007-07-30  Bruno Haible  <bruno@clisp.org>
37701
37702         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37703         * modules/c-ctype (License): Likewise.
37704         * modules/c-strcase (License): Likewise.
37705         * modules/check-version (License): Likewise.
37706         * modules/iconv (License): Likewise.
37707         * modules/iconv_open (License): Likewise.
37708         * modules/read-file (License): Likewise.
37709         * modules/striconv (License): Likewise.
37710         * modules/strverscmp (License): Likewise.
37711         * modules/vasprintf (License): Likewise.
37712         * modules/crypto/des (License): Likewise.
37713         * modules/crypto/gc (License): Likewise.
37714         * modules/crypto/gc-arcfour (License): Likewise.
37715         * modules/crypto/gc-arctwo (License): Likewise.
37716         * modules/crypto/gc-des (License): Likewise.
37717         * modules/crypto/gc-hmac-md5 (License): Likewise.
37718         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37719         * modules/crypto/gc-md2 (License): Likewise.
37720         * modules/crypto/gc-md4 (License): Likewise.
37721         * modules/crypto/gc-md5 (License): Likewise.
37722         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37723         * modules/crypto/gc-random (License): Likewise.
37724         * modules/crypto/gc-rijndael (License): Likewise.
37725         * modules/crypto/gc-sha1 (License): Likewise.
37726         * modules/crypto/md2 (License): Likewise.
37727         * modules/crypto/md4 (License): Likewise.
37728
37729 2007-07-30  Jim Meyering  <jim@meyering.net>
37730
37731         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37732         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37733         it has valid stat data.  This bug would cause du not to count the
37734         sizes of inaccessible directories.
37735         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37736         in <http://bugzilla.redhat.com/250077>.
37737
37738 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37739             Bruno Haible  <bruno@clisp.org>
37740
37741         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37742         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37743         #include_next, gives a diagnostic about it, but reports no error in
37744         the exit code.
37745         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37746
37747 2007-07-24  Ben Pfaff  <blp@gnu.org>
37748
37749         Improve name: "count-one-bits" is better than "popcount".
37750         * MODULES.html.sh: Update name.
37751         * lib/popcount.h: Renamed lib/count-one-bits.h.
37752         (popcount): Renamed count_one_bits.
37753         (popcountl): Renamed count_one_bits_l.
37754         (popcountll): Renamed count_one_bits_ll.
37755         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37756         * modules/popcount: Renamed module/count-one-bits.
37757         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37758         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37759
37760 2007-07-23  Ben Pfaff  <blp@gnu.org>
37761
37762         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37763         better code generation, and add U to large constants to avoid
37764         warnings, in non-GCC case.
37765         Suggested by Bruno Haible.
37766
37767 2007-07-23  Ben Pfaff  <blp@gnu.org>
37768
37769         * lib/popcount.h: Use verify_true instead of if...abort.
37770         * modules/popcount: Depend on verify module.
37771         Suggested by Jim Meyering.
37772
37773 2007-07-23  Bruno Haible  <bruno@clisp.org>
37774
37775         * gnulib-tool (func_import): Create a .cvsignore file also when the
37776         directory is not yet in CVS but the toplevel directory is. When
37777         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37778         Reported by Karl Berry.
37779
37780 2007-07-22  Ben Pfaff  <blp@gnu.org>
37781
37782         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37783         case.
37784         Suggested by Eric Blake.
37785
37786 2007-07-22  Ben Pfaff  <blp@gnu.org>
37787
37788         New module: popcount.
37789         * MODULES.html.sh: Add popcount.
37790         * modules/popcount: New file.
37791         * modules/popcount-tests: New file.
37792         * tests/test-popcount.c: New file.
37793         * lib/popcount.h: New file.
37794         * m4/popcount.m4: New file.
37795
37796 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37797
37798         * build-aux/announce-gen: Update to GPLv3.
37799
37800         * build-aux/config.guess: Update from config.
37801
37802 2007-07-21  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37805         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37806
37807 2007-07-20  Jim Meyering  <jim@meyering.net>
37808
37809         * check-module: Diagnose a self-dependency.
37810
37811 2007-07-19  Bruno Haible  <bruno@clisp.org>
37812
37813         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37814         empty.
37815         Reported by Eric Blake.
37816
37817 2007-07-18  Bruno Haible  <bruno@clisp.org>
37818
37819         * gnulib-tool: New options --po-base, --po-domain.
37820         (func_usage): Document them.
37821         (pobase, po_domain): New variables.
37822         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37823         DEFAULT_TEXT_DOMAIN.
37824         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37825         (func_import): Consider pobase and po_domain. Create a po/ directory.
37826         (func_create_testdir): Set pobase and po_domain to empty.
37827         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37828         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37829
37830 2007-07-18  Bruno Haible  <bruno@clisp.org>
37831
37832         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37833         EXTRA_DIST augmentation for files in build-aux/.
37834
37835 2007-07-16  Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37838         * modules/getdelim (License): Likewise.
37839
37840 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37841
37842         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37843         * modules/d-type (License): Likewise.
37844         * modules/extensions (License): Likewise.
37845         * modules/fnmatch (License): Likewise.
37846         * modules/fseeko (License): Likewise.
37847         * modules/getaddrinfo (License): Likewise.
37848         * modules/getline (License): Likewise.
37849         * modules/getlogin_r (License): Likewise.
37850         * modules/getpass (License): Likewise.
37851         * modules/gettimeofday (License): Likewise.
37852         * modules/glob (License): Likewise.
37853         * modules/inet_ntop (License): Likewise.
37854         * modules/malloc (License): Likewise.
37855         * modules/malloca (License): Likewise.
37856         * modules/memmem (License): Likewise.
37857         * modules/mempcpy (License): Likewise.
37858         * modules/memset (License): Likewise.
37859         * modules/minmax (License): Likewise.
37860         * modules/mktime (License): Likewise.
37861         * modules/netinet_in (License): Likewise.
37862         * modules/pathmax (License): Likewise.
37863         * modules/poll (License): Likewise.
37864         * modules/regex (License): Likewise.
37865         * modules/snprintf (License): Likewise.
37866         * modules/stdbool (License): Likewise.
37867         * modules/stdint (License): Likewise.
37868         * modules/stdio (License): Likewise.
37869         * modules/strcase (License): Likewise.
37870         * modules/strcasestr (License): Likewise.
37871         * modules/strdup (License): Likewise.
37872         * modules/string (License): Likewise.
37873         * modules/strndup (License): Likewise.
37874         * modules/strnlen (License): Likewise.
37875         * modules/strpbrk (License): Likewise.
37876         * modules/strptime (License): Likewise.
37877         * modules/strsep (License): Likewise.
37878         * modules/sys_select (License): Likewise.
37879         * modules/sys_socket (License): Likewise.
37880         * modules/sys_stat (License): Likewise.
37881         * modules/sys_time (License): Likewise.
37882         * modules/time (License): Likewise.
37883         * modules/time_r (License): Likewise.
37884         * modules/timegm (License): Likewise.
37885         * modules/unistd (License): Likewise.
37886         * modules/vsnprintf (License): Likewise.
37887         * modules/wctype (License): Likewise.
37888
37889 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37890
37891         * modules/argz (License): LGPLv2+.
37892
37893 2007-07-15  Karl Berry  <karl@gnu.org>
37894
37895         * doc/gnulib.texi: revise node structure per new fdl.texi.
37896
37897 2007-07-14  Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
37900         the output file.
37901         * lib/uniname/uninames.h: Regenerated.
37902
37903 2007-07-14  Karl Berry  <karl@gnu.org>
37904
37905         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
37906         omitting sectioning and index commands.
37907
37908 2007-07-13  Bruno Haible  <bruno@clisp.org>
37909
37910         New gnulib-tool option --more-symlinks.
37911         * gnulib-tool (func_usage): Document --more-symlinks.
37912         (do_copyrights): New variable.
37913         Recognize option --more-symlinks.
37914         (func_import): Don't add a copyright notice transform to
37915         sed_transform_lib_file if do_copyrights is empty.
37916
37917 2007-07-13  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/vasnprintf.c (decimal_point_char): Define also if
37920         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
37921         && !NEED_PRINTF_DIRECTIVE_A.
37922         Reported by Clemens Koller <clemens.koller@anagramm.de> via
37923         Gary V. Vaughan <gary@gnu.org>.
37924
37925 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
37926
37927         * lib/inttypes_.h: Undo previous change, since it was fixed
37928         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
37929
37930 2007-07-13  Bruno Haible  <bruno@clisp.org>
37931
37932         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37933         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
37934
37935 2007-07-13  Jim Meyering  <jim@meyering.net>
37936
37937         df: Don't fail for Tru64's "file-on-file mount".
37938         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
37939         so we fall through and use statfs instead.  Details here:
37940         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
37941         Reported by Albert Chin.
37942
37943 2007-07-13  Bruno Haible  <bruno@clisp.org>
37944
37945         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
37946         * modules/configmake (License): Likewise.
37947         * modules/gettext (License): Likewise.
37948         * modules/gettext-h (License): Likewise.
37949         * modules/include_next (License): Likewise.
37950         * modules/link-warning (License): Likewise.
37951         * modules/localcharset (License): Likewise.
37952         * modules/localename (License): Likewise.
37953         * modules/lock (License): Likewise.
37954         * modules/relocatable-lib-lgpl (License): Likewise.
37955         * modules/size_max (License): Likewise.
37956         * modules/vasnprintf (License): Likewise.
37957         * modules/wchar (License): Likewise.
37958         * modules/xsize (License): Likewise.
37959
37960 2007-07-13  Bruno Haible  <bruno@clisp.org>
37961
37962         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
37963         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
37964
37965 2007-07-12  Bruno Haible  <bruno@clisp.org>
37966
37967         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
37968         in the modules files.
37969
37970 2007-07-11  Karl Berry  <karl@gnu.org>
37971
37972         * MODULES.html.sh (func_module): use
37973          sed -e '\|^'"${includefile}"'$|d'
37974          instead of /.../d, to avoid errors on $includefile's containing /.
37975
37976 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37977
37978         * gnulib-tool (func_import): Avoid duplication of --avoid
37979         statements
37980         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
37981         names to `_' in variable names.
37982
37983 2007-07-10  Eric Blake  <ebb9@byu.net>
37984
37985         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
37986         * NEWS: Document this change.
37987
37988 2007-07-08  Bruno Haible  <bruno@clisp.org>
37989
37990         Update to Unicode 5.0.
37991         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
37992         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
37993         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
37994         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
37995         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
37996         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
37997         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
37998         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
37999         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38000         U+10A3F, U+1D242..U+1D244.
38001         (nonspacing_table_ind): Update.
38002         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38003         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38004
38005 2007-07-08  Bruno Haible  <bruno@clisp.org>
38006
38007         Update to Unicode 5.0.
38008         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38009         code transform. Extend the name index field of unicode_name_to_code and
38010         unicode_code_to_name from 16 to 24 bits.
38011         * lib/uniname/uniname.c (unicode_character_name,
38012         unicode_name_character): Add the range 0x12xxx to the code transform.
38013         * lib/uniname/uninames.h: Regenerated.
38014         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38015
38016 2007-07-07  Bruno Haible  <bruno@clisp.org>
38017
38018         * modules/wcwidth-tests: New file.
38019         * tests/test-wcwidth.c: New file.
38020
38021         Work around MacOS X wcwidth() bug.
38022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38023         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38024         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38025         original wcwidth in non-UTF-8 locales.
38026         * modules/wcwidth (Depends-on): Add localcharset, streq,
38027         uniwidth/width.
38028         * doc/functions/wcwidth.texi: Update.
38029
38030 2007-07-07  Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38033         (wcwidth): New declaration.
38034         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38035         macros.
38036         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38037         here. Prepare for creating <wchar.h> unconditionally.
38038         * modules/wchar (Depends-on): Add link-warning.
38039         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38040         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38041         * lib/wcwidth.h: Remove file.
38042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38043         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38044         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38045         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38046         (Include): Replace wcwidth.h with <wchar.h>.
38047         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38048         * lib/mbchar.h: Don't include wcwidth.h.
38049         * lib/mbswidth.c: Likewise.
38050         * NEWS: Mention the change.
38051
38052 2007-07-07  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38055         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38056         definition with an external declaration.
38057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38058         defined as a function. Remove AC_C_INLINE requirement.
38059         * modules/wcwidth (Files): Add lib/wcwidth.c.
38060         (Makefile.am): Remove redundant statement.
38061
38062 2007-07-07  Bruno Haible  <bruno@clisp.org>
38063
38064         * MODULES.html.sh (Unicode string functions): Add the new modules.
38065
38066         * tests/uniwidth/test-u32-strwidth.c: New file.
38067         * modules/uniwidth/u32-strwidth-tests: New file.
38068
38069         * lib/uniwidth/u32-strwidth.c: New file.
38070         * modules/uniwidth/u32-strwidth: New file.
38071
38072         * tests/uniwidth/test-u16-strwidth.c: New file.
38073         * modules/uniwidth/u16-strwidth-tests: New file.
38074
38075         * lib/uniwidth/u16-strwidth.c: New file.
38076         * modules/uniwidth/u16-strwidth: New file.
38077
38078         * tests/uniwidth/test-u8-strwidth.c: New file.
38079         * modules/uniwidth/u8-strwidth-tests: New file.
38080
38081         * lib/uniwidth/u8-strwidth.c: New file.
38082         * modules/uniwidth/u8-strwidth: New file.
38083
38084         * tests/uniwidth/test-u32-width.c: New file.
38085         * modules/uniwidth/u32-width-tests: New file.
38086
38087         * lib/uniwidth/u32-width.c: New file.
38088         * modules/uniwidth/u32-width: New file.
38089
38090         * tests/uniwidth/test-u16-width.c: New file.
38091         * modules/uniwidth/u16-width-tests: New file.
38092
38093         * lib/uniwidth/u16-width.c: New file.
38094         * modules/uniwidth/u16-width: New file.
38095
38096         * tests/uniwidth/test-u8-width.c: New file.
38097         * modules/uniwidth/u8-width-tests: New file.
38098
38099         * lib/uniwidth/u8-width.c: New file.
38100         * modules/uniwidth/u8-width: New file.
38101
38102         * tests/uniwidth/test-uc_width.c: New file.
38103         * modules/uniwidth/width-tests: New file.
38104
38105         * lib/uniwidth/width.c: New file, from GNU libiconv.
38106         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38107         * modules/uniwidth/width: New file.
38108
38109         * lib/uniwidth.h: New file, from GNU libiconv.
38110         * modules/uniwidth/base: New file.
38111
38112 2007-07-07  Bruno Haible  <bruno@clisp.org>
38113
38114         * lib/uniname.h: New file, from GNU gettext.
38115         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38116         * lib/uniname/uninames.h: New file, from GNU gettext.
38117         * lib/uniname/uniname.c: New file, from GNU gettext.
38118         * tests/uniname/test-uninames.sh: New file.
38119         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38120         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38121         * modules/uniname/base: New file.
38122         * modules/uniname/uniname: New file.
38123         * modules/uniname/uniname-tests: New file.
38124         * MODULES.html.sh (Unicode string functions): Add the new modules.
38125
38126 2007-07-06  Bruno Haible  <bruno@clisp.org>
38127
38128         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38129
38130 2007-07-06  Bruno Haible  <bruno@clisp.org>
38131
38132         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38133         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38134         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38135         include <sys/time.h>.
38136         Reported by Eric Blake.
38137
38138 2007-07-06  Eric Blake  <ebb9@byu.net>
38139
38140         Fix testing canonicalize on cygwin.
38141         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38142         Revert patch from 2007-06-19.
38143         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38144         canonicalize module is also in use.
38145         * tests/test-canonicalize.c: New file.
38146         * tests/test-canonicalize.sh: Likewise.
38147         * modules/canonicalize-tests: Likewise.
38148
38149 2007-07-06  Jim Meyering  <jim@meyering.net>
38150
38151         * lib/getugroups.c (getugroups): Detect getgrent failure.
38152         Adjust comment to reflect reality: this function may return -1.
38153
38154 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38155
38156         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38157         the new TP address.
38158         (usage): Fix typo
38159         (gnulib_mk): New variable.
38160
38161 2007-07-05  Jim Meyering  <jim@meyering.net>
38162
38163         Don't let endgrent clobber errno, no matter how improbable.
38164         * lib/getugroups.c (getugroups): Save and restore errno around
38165         endgrent call.
38166
38167         Close the group DB even when failing with 2^31 or more members.
38168         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38169
38170 2007-07-04  Jim Meyering  <jim@meyering.net>
38171
38172         * lib/getugroups.h: New file.
38173         * lib/getugroups.c: Include "getugroups.h".
38174         Remove uses of "register" keyword.
38175         Move local variable, "cp", down into scope where used.
38176         Give "username" parameter the "const" attribute.
38177         * modules/getugroups (Files): Add lib/getugroups.h
38178
38179 2007-07-04  Karl Berry  <karl@gnu.org>
38180
38181         * MODULES.html.sh (func_all_modules): Complete rename of
38182         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38183
38184 2007-07-02  Bruno Haible  <bruno@clisp.org>
38185
38186         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38187         mode, when inttypes.h comes from gnulib.
38188         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38189
38190 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38191
38192         * NEWS: Mention lgpl module name change.
38193
38194         * modules/lgpl-2.1: Renamed from lgpl.
38195
38196         * NEWS: Mention gpl module name change.
38197
38198         * modules/gpl-3.0: New file, based on gpl-2.0.
38199
38200         * modules/gpl-2.0: Renamed from gpl.
38201
38202         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38203         doc/gpl-2.0.texi.
38204
38205 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38206
38207         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38208         #define __STDC_LIMIT_MACROS temporarily while including
38209         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38210         Problem reported by Joel E. Denny in
38211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38212
38213 2007-07-01  Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/unistdio.h: New file.
38216         * lib/unistdio/u-asnprintf.h: New file.
38217         * lib/unistdio/u-asprintf.h: New file.
38218         * lib/unistdio/u-printf-args.c: New file.
38219         * lib/unistdio/u-printf-args.h: New file.
38220         * lib/unistdio/u-printf-parse.h: New file.
38221         * lib/unistdio/u-snprintf.h: New file.
38222         * lib/unistdio/u-sprintf.h: New file.
38223         * lib/unistdio/u-vasprintf.h: New file.
38224         * lib/unistdio/u-vsnprintf.h: New file.
38225         * lib/unistdio/u-vsprintf.h: New file.
38226         * lib/unistdio/ulc-asnprintf.c: New file.
38227         * lib/unistdio/ulc-asprintf.c: New file.
38228         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38229         * lib/unistdio/ulc-printf-parse.c: New file.
38230         * lib/unistdio/ulc-snprintf.c: New file.
38231         * lib/unistdio/ulc-sprintf.c: New file.
38232         * lib/unistdio/ulc-vasnprintf.c: New file.
38233         * lib/unistdio/ulc-vasprintf.c: New file.
38234         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38235         * lib/unistdio/ulc-vsnprintf.c: New file.
38236         * lib/unistdio/ulc-vsprintf.c: New file.
38237         * lib/unistdio/u8-asnprintf.c: New file.
38238         * lib/unistdio/u8-asprintf.c: New file.
38239         * lib/unistdio/u8-printf-parse.c: New file.
38240         * lib/unistdio/u8-snprintf.c: New file.
38241         * lib/unistdio/u8-sprintf.c: New file.
38242         * lib/unistdio/u8-vasnprintf.c: New file.
38243         * lib/unistdio/u8-vasprintf.c: New file.
38244         * lib/unistdio/u8-vsnprintf.c: New file.
38245         * lib/unistdio/u8-vsprintf.c: New file.
38246         * lib/unistdio/u8-u8-asnprintf.c: New file.
38247         * lib/unistdio/u8-u8-asprintf.c: New file.
38248         * lib/unistdio/u8-u8-snprintf.c: New file.
38249         * lib/unistdio/u8-u8-sprintf.c: New file.
38250         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38251         * lib/unistdio/u8-u8-vasprintf.c: New file.
38252         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38253         * lib/unistdio/u8-u8-vsprintf.c: New file.
38254         * lib/unistdio/u16-asnprintf.c: New file.
38255         * lib/unistdio/u16-asprintf.c: New file.
38256         * lib/unistdio/u16-printf-parse.c: New file.
38257         * lib/unistdio/u16-snprintf.c: New file.
38258         * lib/unistdio/u16-sprintf.c: New file.
38259         * lib/unistdio/u16-vasnprintf.c: New file.
38260         * lib/unistdio/u16-vasprintf.c: New file.
38261         * lib/unistdio/u16-vsnprintf.c: New file.
38262         * lib/unistdio/u16-vsprintf.c: New file.
38263         * lib/unistdio/u16-u16-asnprintf.c: New file.
38264         * lib/unistdio/u16-u16-asprintf.c: New file.
38265         * lib/unistdio/u16-u16-snprintf.c: New file.
38266         * lib/unistdio/u16-u16-sprintf.c: New file.
38267         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38268         * lib/unistdio/u16-u16-vasprintf.c: New file.
38269         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38270         * lib/unistdio/u16-u16-vsprintf.c: New file.
38271         * lib/unistdio/u32-asnprintf.c: New file.
38272         * lib/unistdio/u32-asprintf.c: New file.
38273         * lib/unistdio/u32-printf-parse.c: New file.
38274         * lib/unistdio/u32-snprintf.c: New file.
38275         * lib/unistdio/u32-sprintf.c: New file.
38276         * lib/unistdio/u32-vasnprintf.c: New file.
38277         * lib/unistdio/u32-vasprintf.c: New file.
38278         * lib/unistdio/u32-vsnprintf.c: New file.
38279         * lib/unistdio/u32-vsprintf.c: New file.
38280         * lib/unistdio/u32-u32-asnprintf.c: New file.
38281         * lib/unistdio/u32-u32-asprintf.c: New file.
38282         * lib/unistdio/u32-u32-snprintf.c: New file.
38283         * lib/unistdio/u32-u32-sprintf.c: New file.
38284         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38285         * lib/unistdio/u32-u32-vasprintf.c: New file.
38286         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38287         * lib/unistdio/u32-u32-vsprintf.c: New file.
38288         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38289         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38290         * tests/unistdio/test-ulc-printf1.h: New file.
38291         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38292         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38293         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38294         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38295         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38296         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38297         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38298         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38299         * tests/unistdio/test-u8-asnprintf1.c: New file.
38300         * tests/unistdio/test-u8-asnprintf1.h: New file.
38301         * tests/unistdio/test-u8-printf1.h: New file.
38302         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38303         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38304         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38305         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38306         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38307         * tests/unistdio/test-u8-vasprintf1.c: New file.
38308         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38309         * tests/unistdio/test-u8-vsprintf1.c: New file.
38310         * tests/unistdio/test-u16-asnprintf1.c: New file.
38311         * tests/unistdio/test-u16-asnprintf1.h: New file.
38312         * tests/unistdio/test-u16-printf1.h: New file.
38313         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38314         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38315         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38316         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38317         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38318         * tests/unistdio/test-u16-vasprintf1.c: New file.
38319         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38320         * tests/unistdio/test-u16-vsprintf1.c: New file.
38321         * tests/unistdio/test-u32-asnprintf1.c: New file.
38322         * tests/unistdio/test-u32-asnprintf1.h: New file.
38323         * tests/unistdio/test-u32-printf1.h: New file.
38324         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38325         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38326         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38327         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38328         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38329         * tests/unistdio/test-u32-vasprintf1.c: New file.
38330         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38331         * tests/unistdio/test-u32-vsprintf1.c: New file.
38332         * modules/unistdio/base: New file.
38333         * modules/unistdio/u-printf-args: New file.
38334         * modules/unistdio/ulc-asnprintf: New file.
38335         * modules/unistdio/ulc-asprintf: New file.
38336         * modules/unistdio/ulc-fprintf: New file.
38337         * modules/unistdio/ulc-printf-parse: New file.
38338         * modules/unistdio/ulc-snprintf: New file.
38339         * modules/unistdio/ulc-sprintf: New file.
38340         * modules/unistdio/ulc-vasnprintf: New file.
38341         * modules/unistdio/ulc-vasprintf: New file.
38342         * modules/unistdio/ulc-vfprintf: New file.
38343         * modules/unistdio/ulc-vsnprintf: New file.
38344         * modules/unistdio/ulc-vsprintf: New file.
38345         * modules/unistdio/u8-asnprintf: New file.
38346         * modules/unistdio/u8-asprintf: New file.
38347         * modules/unistdio/u8-printf-parse: New file.
38348         * modules/unistdio/u8-snprintf: New file.
38349         * modules/unistdio/u8-sprintf: New file.
38350         * modules/unistdio/u8-vasnprintf: New file.
38351         * modules/unistdio/u8-vasprintf: New file.
38352         * modules/unistdio/u8-vsnprintf: New file.
38353         * modules/unistdio/u8-vsprintf: New file.
38354         * modules/unistdio/u8-u8-asnprintf: New file.
38355         * modules/unistdio/u8-u8-asprintf: New file.
38356         * modules/unistdio/u8-u8-snprintf: New file.
38357         * modules/unistdio/u8-u8-sprintf: New file.
38358         * modules/unistdio/u8-u8-vasnprintf: New file.
38359         * modules/unistdio/u8-u8-vasprintf: New file.
38360         * modules/unistdio/u8-u8-vsnprintf: New file.
38361         * modules/unistdio/u8-u8-vsprintf: New file.
38362         * modules/unistdio/u16-asnprintf: New file.
38363         * modules/unistdio/u16-asprintf: New file.
38364         * modules/unistdio/u16-printf-parse: New file.
38365         * modules/unistdio/u16-snprintf: New file.
38366         * modules/unistdio/u16-sprintf: New file.
38367         * modules/unistdio/u16-vasnprintf: New file.
38368         * modules/unistdio/u16-vasprintf: New file.
38369         * modules/unistdio/u16-vsnprintf: New file.
38370         * modules/unistdio/u16-vsprintf: New file.
38371         * modules/unistdio/u16-u16-asnprintf: New file.
38372         * modules/unistdio/u16-u16-asprintf: New file.
38373         * modules/unistdio/u16-u16-snprintf: New file.
38374         * modules/unistdio/u16-u16-sprintf: New file.
38375         * modules/unistdio/u16-u16-vasnprintf: New file.
38376         * modules/unistdio/u16-u16-vasprintf: New file.
38377         * modules/unistdio/u16-u16-vsnprintf: New file.
38378         * modules/unistdio/u16-u16-vsprintf: New file.
38379         * modules/unistdio/u32-asnprintf: New file.
38380         * modules/unistdio/u32-asprintf: New file.
38381         * modules/unistdio/u32-printf-parse: New file.
38382         * modules/unistdio/u32-snprintf: New file.
38383         * modules/unistdio/u32-sprintf: New file.
38384         * modules/unistdio/u32-vasnprintf: New file.
38385         * modules/unistdio/u32-vasprintf: New file.
38386         * modules/unistdio/u32-vsnprintf: New file.
38387         * modules/unistdio/u32-vsprintf: New file.
38388         * modules/unistdio/u32-u32-asnprintf: New file.
38389         * modules/unistdio/u32-u32-asprintf: New file.
38390         * modules/unistdio/u32-u32-snprintf: New file.
38391         * modules/unistdio/u32-u32-sprintf: New file.
38392         * modules/unistdio/u32-u32-vasnprintf: New file.
38393         * modules/unistdio/u32-u32-vasprintf: New file.
38394         * modules/unistdio/u32-u32-vsnprintf: New file.
38395         * modules/unistdio/u32-u32-vsprintf: New file.
38396         * modules/unistdio/ulc-asnprintf-tests: New file.
38397         * modules/unistdio/ulc-vasnprintf-tests: New file.
38398         * modules/unistdio/ulc-vasprintf-tests: New file.
38399         * modules/unistdio/ulc-vsnprintf-tests: New file.
38400         * modules/unistdio/ulc-vsprintf-tests: New file.
38401         * modules/unistdio/u8-asnprintf-tests: New file.
38402         * modules/unistdio/u8-vasnprintf-tests: New file.
38403         * modules/unistdio/u8-vasprintf-tests: New file.
38404         * modules/unistdio/u8-vsnprintf-tests: New file.
38405         * modules/unistdio/u8-vsprintf-tests: New file.
38406         * modules/unistdio/u16-asnprintf-tests: New file.
38407         * modules/unistdio/u16-vasnprintf-tests: New file.
38408         * modules/unistdio/u16-vasprintf-tests: New file.
38409         * modules/unistdio/u16-vsnprintf-tests: New file.
38410         * modules/unistdio/u16-vsprintf-tests: New file.
38411         * modules/unistdio/u32-asnprintf-tests: New file.
38412         * modules/unistdio/u32-vasnprintf-tests: New file.
38413         * modules/unistdio/u32-vasprintf-tests: New file.
38414         * modules/unistdio/u32-vsnprintf-tests: New file.
38415         * modules/unistdio/u32-vsprintf-tests: New file.
38416         * MODULES.html.sh (Unicode string functions): Add the new modules.
38417
38418 2007-07-01  Bruno Haible  <bruno@clisp.org>
38419
38420         * lib/sprintf.c (sprintf): Limit the available length estimation,
38421         to avoid address wraparound.
38422         * lib/vsprintf.c (vsprintf): Likewise.
38423         * modules/sprintf-posix (Dependencies): Add stdint.
38424         * modules/vsprintf-posix (Dependencies): Likewise.
38425
38426 2007-07-01  Bruno Haible  <bruno@clisp.org>
38427
38428         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38429         Windows PATH as well. Conservative double-quoting. Comments.
38430
38431 2007-07-01  Bruno Haible  <bruno@clisp.org>
38432             Eric Blake  <ebb9@byu.net>
38433             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38434
38435         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38436         empty components in $PATH, denoting '.'.
38437
38438 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38439
38440         * gnulib-tool: Fix indentation.
38441         (func_create_megatestdir): Likewise.
38442         Report by Bruno Haible.
38443
38444 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38445
38446         Sync from Automake.
38447         * build-aux/gnupload: Fix shell portability issues with for loops.
38448         Report by Karl Berry.
38449
38450 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38451
38452         * build-aux/maint.mk (POURL): Use translationproject.org.
38453
38454 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38455             Bruno Haible  <bruno@clisp.org>
38456
38457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38458         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38459         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38460         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38461         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38462
38463 2007-06-27  Bruno Haible  <bruno@clisp.org>
38464
38465         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38466         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38467
38468 2007-06-26  Karl Berry  <karl@gnu.org>
38469
38470         * MODULES.html.sh: remove xreadlink-with-size.
38471
38472 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38473
38474         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38475         method that I hope also handles the double-include problem noted
38476         by Bruno Haible in
38477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38478
38479 2007-06-23  Bruno Haible  <bruno@clisp.org>
38480
38481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38482         Don't let the 'mostlyclean' target fail if the last subdirectory could
38483         not be removed.
38484         Reported by Karl Berry.
38485
38486 2007-06-23  Bruno Haible  <bruno@clisp.org>
38487
38488         * gnulib-tool (echo): Add a speedier workaround for ksh.
38489         * tests/test-echo.sh: Likewise.
38490
38491 2007-06-23  Bruno Haible  <bruno@clisp.org>
38492
38493         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38494         * tests/test-echo.sh: Likewise.
38495
38496 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38497
38498         * gnulib-tool (IFS): Initialize early, so we don't set it to
38499         empty later.
38500         (self_abspathname): Rewrite algorithm to set it, reindent.
38501         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38502         (func_create_megatestdir): Merge some sed scripts.
38503
38504 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38505
38506         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38507         exposed by Sun Studio 11 cc on Solaris 8.
38508
38509 2007-06-22  Bruno Haible  <bruno@clisp.org>
38510
38511         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38512         backslashes.
38513         * tests/test-echo.sh: New file.
38514
38515 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38516
38517         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38518         simplify `sed_replace_build_aux' scripts, they are portable but
38519         echoing them with `echo' is not.
38520         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38521
38522 2007-06-21  Karl Berry  <karl@gnu.org>
38523
38524         * config/srclist.txt: guess we can't handle the licenses via
38525         srclist at the moment.
38526
38527 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38528
38529         * MODULES.html.sh: Add include_next.
38530         * modules/include_next: New file.
38531
38532 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38533
38534         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38535         INCLUDE_NEXT.
38536         (gl_CHECK_NEXT_HEADERS): New macro.
38537         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38538         the obsolescent gl_ABSOLUTE_HEADER.
38539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38540         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38541         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38542         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38543         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38544         * m4/math_h.m4 (gl_MATH_H): Likewise.
38545         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38546         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38547         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38548         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38549         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38550         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38551         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38553         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38554         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38555         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38556         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38557         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38558         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38559         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38560         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38561         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38562         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38563         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38564         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38565         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38566         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38567         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38568         * lib/float_.h: Likewise.
38569         * lib/inttypes_.h: Likewise.
38570         * lib/math_.h: Likewise.
38571         * lib/search_.h: Likewise.
38572         * lib/signal_.h: Likewise.
38573         * lib/stdint_.h: Likewise.
38574         * lib/stdio_.h: Likewise.
38575         * lib/stdlib_.h: Likewise.
38576         * lib/string_.h: Likewise.
38577         * lib/sys_stat_.h: Likewise.
38578         * lib/sys_time_.h: Likewise.
38579         * lib/time_.h: Likewise.
38580         * lib/unistd_.h: Likewise.
38581         * lib/wchar_.h: Likewise.
38582         * lib/wctype_.h: Likewise.
38583         * lib/dirent_.h: Likewise.
38584         * lib/iconv_.h: Likewise.
38585         * lib/locale_.h: Likewise.
38586         * lib/netinet_in_.h: Likewise.
38587         * lib/sys_select_.h: Likewise.
38588         * lib/sys_socket_.h: Likewise.
38589         * lib/sysexits_.h: Likewise.
38590         * modules/fcntl (Depends-on): Depend on include_next, not
38591         absolute_header.
38592         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38593         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38594         * modules/fchdir: Likewise.
38595         * modules/float: Likewise.
38596         * modules/iconv_open: Likewise.
38597         * modules/inttypes: Likewise.
38598         * modules/locale: Likewise.
38599         * modules/math: Likewise.
38600         * modules/netinet_in: Likewise.
38601         * modules/search: Likewise.
38602         * modules/signal: Likewise.
38603         * modules/stdint: Likewise.
38604         * modules/stdio: Likewise.
38605         * modules/stdlib: Likewise.
38606         * modules/string: Likewise.
38607         * modules/sys_select: Likewise.
38608         * modules/sys_socket: Likewise.
38609         * modules/sys_stat: Likewise.
38610         * modules/sys_time: Likewise.
38611         * modules/sysexits: Likewise.
38612         * modules/time: Likewise.
38613         * modules/unistd: Likewise.
38614         * modules/wchar: Likewise.
38615         * modules/wctype: Likewise.
38616         * modules/sys_stat: Change maintainer to "all".
38617         * modules/unistd: Likewise.
38618
38619 2007-06-20  Karl Berry  <karl@gnu.org>
38620
38621         * config/srclist.txt: track www changes in license files.
38622
38623 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38624
38625         * build-aux/bootstrap: Remove stray dot.
38626         Make sure build_aux settings are honored when linking
38627         gnulib_extra_files.
38628
38629 2007-06-19  Eric Blake  <ebb9@byu.net>
38630
38631         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38632         Allow compilation on cygwin.
38633
38634 2007-06-19  Jim Meyering  <jim@meyering.net>
38635
38636         xreadlink-with-size: Remove module.  No longer used.
38637         Ex-callers now use xreadlink or mreadlink-with-size.
38638         * modules/xreadlink-with-size: Remove module.
38639         * lib/xreadlink-with-size.c: Remove file.
38640         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38641         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38642         just before the function definition *is* accurate.
38643
38644         Eliminate one way canonicalize_filename_mode could exit.
38645         * lib/canonicalize.c (canonicalize_filename_mode):
38646         Use mreadlink_with_size, not xreadlink_with_size.
38647
38648 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38649
38650         Detect porting problems to FreeBSD/arm, which has time_t wider than
38651         long int.  Original problem reported for GNU diff by Xin Li in
38652         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38653         * modules/getdate (Depends-on): Add intprops, verify.
38654         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38655         is an integer type no wider than long int.
38656
38657 2007-06-18  Jim Meyering  <jim@meyering.net>
38658
38659         New module: mreadlink-with-size.
38660         * MODULES.html.sh: Add mreadlink-with-size.
38661         * modules/mreadlink-with-size: New module
38662         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38663         not xreadlink-with-size.
38664         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38665
38666 2007-06-16  Bruno Haible  <bruno@clisp.org>
38667
38668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38669         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38670         Reported by Gary V. Vaughan <gary@gnu.org>.
38671
38672 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38673
38674         Revamp lchown so that it lives in unistd.h where it belongs.
38675         * lib/lchown.h: Remove.
38676         * lib/dirchownmod.c: Don't include lib/lchown.h.
38677         * lib/fchownat.c: Likewise.
38678         * lib/openat.c: Likewise.
38679         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38680         does not follow symlinks.
38681         (EOPNOTSUPP): Define if not defined.
38682         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38683         is defined to 0.
38684         (lchown): New decl.
38685         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38686         Do not check for lchown decl.
38687         Set REPLACE_LCHOWN.
38688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38689         REPLACE_LCHOWN.
38690         * modules/chown: Make it clear it follows symlinks.
38691         * modules/lchown: Make it clear it doesn't follow symlinks.
38692         (Files): Remove lib/lchown.h
38693         (Depends-on): Add unistd.
38694         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38695         (Include): Include <unistd.h>, not "lchown.h".
38696         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38697         REPLACE_LCHOWN.
38698
38699 2007-06-15  Jim Meyering  <jim@meyering.net>
38700
38701         Change license (GPL to LGPL) of fsusage and dependents.
38702         * modules/fsusage (License): Change to LGPL.
38703         * modules/full-read (License): Likewise.
38704         * modules/full-write (License): Likewise.
38705         * modules/safe-read (License): Likewise.
38706         * modules/safe-write (License): Likewise.
38707
38708 2007-06-14  Ben Pfaff  <blp@gnu.org>
38709
38710         Missing part of allocsa -> malloca transition.
38711         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38712         gl_MALLOCA.
38713
38714 2007-06-12  Bruno Haible  <bruno@clisp.org>
38715
38716         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38717         to ia64, x86_64, i386.
38718         Reported by Eric Blake.
38719
38720 2007-06-12  Bruno Haible  <bruno@clisp.org>
38721
38722         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38723         cross-compiling to x86_64.
38724
38725 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38726
38727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38728         glitch reported by Ralf Wildenhues in
38729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38730
38731         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38732         Vin Shelton.
38733
38734 2007-06-11  Bruno Haible  <bruno@clisp.org>
38735
38736         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38737         replacement string.
38738         Reported by Eric Blake.
38739
38740 2007-06-10  Bruno Haible  <bruno@clisp.org>
38741
38742         Prepare vasnprintf code for use with Unicode strings.
38743         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38744         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38745         TYPE_U32_STRING.
38746         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38747         a_u32_string variants.
38748         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38749         * lib/printf-args.c: Don't include config.h and the specification
38750         header if PRINTF_FETCHARGS is already defined.
38751         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38752         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38753         TYPE_U16_STRING, TYPE_U32_STRING.
38754         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38755         u16_directive, u16_directives, u32_directive, u32_directives): New
38756         types.
38757         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38758         New declarations.
38759         * lib/printf-parse.c: Don't include config.h and the specification
38760         header if PRINTF_PARSE is already defined. Eliminate the set of
38761         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38762         them now. Include c-ctype.h.
38763         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38764         directive and CHAR_T_ONLY_ASCII.
38765         * lib/vasnprintf.c: Don't include config.h and the specification header
38766         if VASNPRINTF is already defined.
38767         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38768         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38769         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38770         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38771         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38772         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38773         code accordingly.
38774         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38775         pad_ourselves also in this case, with the 'c' and 's' directives, and
38776         with a different notion of "width".
38777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38778
38779 2007-06-10  Bruno Haible  <bruno@clisp.org>
38780
38781         * modules/unistr/u32-mbsnlen: New file.
38782         * lib/unistr/u32-mbsnlen.c: New file.
38783
38784         * modules/unistr/u16-mbsnlen: New file.
38785         * lib/unistr/u16-mbsnlen.c: New file.
38786
38787         * modules/unistr/u8-mbsnlen: New file.
38788         * lib/unistr/u8-mbsnlen.c: New file.
38789
38790         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38791         declarations.
38792
38793 2007-06-10  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/string_.h (mbsnlen): New declaration.
38796         * lib/mbsnlen.c: New file.
38797         * m4/mbsnlen.m4: New file.
38798         * modules/mbsnlen: New file.
38799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38800         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38801         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38802
38803 2007-06-10  Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38806
38807 2007-06-10  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38810         * lib/mbuiter.h: Likewise.
38811
38812 2007-06-10  Bruno Haible  <bruno@clisp.org>
38813
38814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38815         declaration.
38816
38817 2007-06-10  Karl Berry  <karl@gnu.org>
38818
38819         * config/srclist.txt: remove gettext entries, Bruno prefers
38820         to update individually.
38821
38822 2007-06-10  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38825         'maxlen'. Ensure only length + width bytes are allocated, not
38826         length + 1 + width.
38827
38828 2007-06-09  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38831         (CHAR_T): Remove macro.
38832         (VASNPRINTF): Update.
38833
38834 2007-06-09  Bruno Haible  <bruno@clisp.org>
38835
38836         * MODULES.html.sh (Unicode string functions): Add the new modules.
38837
38838         * modules/uniconv/u32-conv-to-enc: New file.
38839         * lib/uniconv/u32-conv-to-enc.c: New file.
38840         * modules/uniconv/u32-conv-to-enc-tests: New file.
38841         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38842
38843         * modules/uniconv/u16-conv-to-enc: New file.
38844         * lib/uniconv/u16-conv-to-enc.c: New file.
38845         * lib/uniconv/u-conv-to-enc.h: New file.
38846         * modules/uniconv/u16-conv-to-enc-tests: New file.
38847         * tests/uniconv/test-u16-conv-to-enc.c: New file.
38848
38849         * modules/uniconv/u8-conv-to-enc: New file.
38850         * lib/uniconv/u8-conv-to-enc.c: New file.
38851         * modules/uniconv/u8-conv-to-enc-tests: New file.
38852         * tests/uniconv/test-u8-conv-to-enc.c: New file.
38853
38854         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38855         u32_conv_to_encoding): New declarations.
38856
38857 2007-06-09  Bruno Haible  <bruno@clisp.org>
38858
38859         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
38860
38861 2007-06-09  Bruno Haible  <bruno@clisp.org>
38862
38863         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
38864         * modules/malloca: Renamed from modules/allocsa, updated.
38865         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
38866         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
38867         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
38868         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
38869         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
38870         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
38871         * modules/xmalloca: Renamed from modules/xallocsa, updated.
38872         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
38873         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
38874         * modules/c-strcasestr (Depends-on): Update.
38875         * lib/c-strcasestr.c: Update.
38876         * modules/c-strstr (Depends-on): Update.
38877         * lib/c-strstr.c: Update.
38878         * modules/canonicalize-lgpl (Depends-on): Update.
38879         * lib/canonicalize-lgpl.c: Update.
38880         * modules/clean-temp (Depends-on): Update.
38881         * lib/clean-temp.c: Update.
38882         * modules/csharpcomp (Depends-on): Update.
38883         * lib/csharpcomp.c: Update.
38884         * modules/csharpexec (Depends-on): Update.
38885         * lib/csharpexec.c: Update.
38886         * modules/javacomp (Depends-on): Update.
38887         * lib/javacomp.c: Update.
38888         * modules/javaexec (Depends-on): Update.
38889         * lib/javaexec.c: Update.
38890         * modules/mbscasestr (Depends-on): Update.
38891         * lib/mbscasestr.c: Update.
38892         * modules/mbsstr (Depends-on): Update.
38893         * lib/mbsstr.c: Update.
38894         * modules/setenv (Depends-on): Update.
38895         * lib/setenv.c: Update.
38896         * modules/strcasestr (Depends-on): Update.
38897         * lib/strcasestr.c: Update.
38898         * modules/striconveha (Depends-on): Update.
38899         * lib/striconveha.c: Update.
38900         * modules/relocatable-prog-wrapper (Files): Update.
38901         * lib/relocwrapper.c: Update.
38902         * build-aux/install-reloc: Update.
38903         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
38904
38905 2007-06-08  Bruno Haible  <bruno@clisp.org>
38906
38907         Port to uClibc.
38908         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
38909         * lib/fpurge.c (fpurge): Likewise.
38910         * lib/freading.c (freading): Likewise.
38911         * lib/fseeko.c (rpl_fseeko): Likewise.
38912         * lib/fseterr.c (fseterr): Likewise.
38913         * lib/fwriting.c (fwriting): Likewise.
38914         * tests/test-fflush.c (main): Avoid a failure on uClibc.
38915
38916 2007-06-08  Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
38919         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
38920         * modules/gettext (Files): Add m4/intlmacosx.m4.
38921
38922 2007-06-07  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/localename-tests: New file.
38925         * tests/test-localename.c: New file.
38926
38927         New module 'localename'.
38928         * lib/localename.h: New file.
38929         * lib/localename.c: New file, from GNU gettext.
38930         * m4/localename.m4: New file.
38931         * modules/localename: New file.
38932
38933 2007-06-07  Bruno Haible  <bruno@clisp.org>
38934
38935         Work around the lack of <wchar.h> on some builds of uClibc.
38936         * doc/headers/wchar.texi: Update.
38937         * lib/wchar_.h: Include <wchar.h> only if it exists.
38938         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
38939         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
38940         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
38941         doesn't exist.
38942         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
38943         * modules/mbfile (Depends-on): Add wchar.
38944         * modules/mbiter (Depends-on): Likewise.
38945         * modules/mbuiter (Depends-on): Likewise.
38946         Reported by Simon Josefsson.
38947
38948 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
38949
38950         Work around problem reported by Steven M. Schweda in
38951         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
38952         Tru64 5.1B with the Compaq compiler environment installed declares
38953         an 'isblank' function but does not define it in the C library.
38954         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
38955         * lib/regex_internal.h (isblank): Likewise.
38956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
38957         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38958
38959 2007-06-05  Bruno Haible  <bruno@clisp.org>
38960
38961         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
38962         ia64.
38963         * modules/printf-safe: New file.
38964         * modules/fprintf-posix (Depends-on): Add printf-safe.
38965         * modules/printf-posix (Depends-on): Likewise.
38966         * modules/snprintf-posix (Depends-on): Likewise.
38967         * modules/sprintf-posix (Depends-on): Likewise.
38968         * modules/vasnprintf-posix (Depends-on): Likewise.
38969         * modules/vasprintf-posix (Depends-on): Likewise.
38970         * modules/vfprintf-posix (Depends-on): Likewise.
38971         * modules/vprintf-posix (Depends-on): Likewise.
38972         * modules/vsnprintf-posix (Depends-on): Likewise.
38973         * modules/vsprintf-posix (Depends-on): Likewise.
38974         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38975         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
38976         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
38977         "no" on i386, x86_64, ia64.
38978         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
38979         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38980         on i386, x86_64, ia64.
38981         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
38982         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38983         on i386, x86_64, ia64.
38984         * tests/test-vasnprintf-posix.c: Include float.h.
38985         (LDBL80_WORDS): New macro.
38986         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38987         on i386, x86_64, ia64.
38988         * tests/test-vasprintf-posix.c: Include float.h.
38989         (LDBL80_WORDS): New macro.
38990         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
38991         on i386, x86_64, ia64.
38992         * tests/test-snprintf-posix.c: Include float.h.
38993         * tests/test-sprintf-posix.c: Likewise.
38994         * tests/test-vsnprintf-posix.c: Likewise.
38995         * tests/test-vsprintf-posix.c: Likewise.
38996
38997 2007-06-05  Bruno Haible  <bruno@clisp.org>
38998
38999         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39000         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39001         non-IEEE numbers on i386, x86_64, ia64.
39002         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39003         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39004         * tests/test-isnanl.h: Include float.h.
39005         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39006
39007 2007-06-05  Bruno Haible  <bruno@clisp.org>
39008
39009         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39010         also the %a / %A. Handle the %a / %A code before this extra handling.
39011
39012 2007-06-05  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39015         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39016
39017 2007-06-05  Bruno Haible  <bruno@clisp.org>
39018
39019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39020         typo in variable name.
39021
39022 2007-06-05  Eric Blake  <ebb9@byu.net>
39023
39024         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39025         Reported by Simon Josefsson.
39026
39027 2007-06-04  Bruno Haible  <bruno@clisp.org>
39028
39029         Avoid test failures on some PowerPC platforms.
39030         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39031         Define differently for PowerPC.
39032         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39033         Reported by Gary V. Vaughan <gary@gnu.org>.
39034
39035 2007-06-02  Bruno Haible  <bruno@clisp.org>
39036
39037         Fix test-stdint failure on FreeBSD/ia64.
39038         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39039         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39040         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39041         * doc/headers/stdint.texi: Update.
39042
39043 2007-06-01  Bruno Haible  <bruno@clisp.org>
39044
39045         * tests/test-binary-io.c (main): Pass a third argument to open().
39046         Reported by Gary V. Vaughan <gary@gnu.org>.
39047
39048 2007-06-01  Bruno Haible  <bruno@clisp.org>
39049
39050         * doc/functions/frexpl.texi: Update for mingw.
39051
39052 2007-06-01  Bruno Haible  <bruno@clisp.org>
39053
39054         * tests/test-lseek.c (main): Disable test of errno for invalid third
39055         argument.
39056         * doc/functions/lseek.texi: Update.
39057         Reported by Gary V. Vaughan <gary@gnu.org>.
39058
39059 2007-05-28  Bruno Haible  <bruno@clisp.org>
39060
39061         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39062
39063 2007-05-31  Eric Blake  <ebb9@byu.net>
39064
39065         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39066         cross compiling.
39067
39068 2007-05-30  Eric Blake  <ebb9@byu.net>
39069         and Bruno Haible  <bruno@clisp.org>
39070
39071         Work around mingw test failures exposed by m4-1.4.9b.
39072         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39073         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39074         moment.
39075
39076 2007-05-30  Bruno Haible  <bruno@clisp.org>
39077
39078         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39079         assuming that they are closed. Needed on HP-UX 11.
39080
39081 2007-05-29  Bruno Haible  <bruno@clisp.org>
39082
39083         Fix a problem with #include_next.
39084         * lib/dirent_.h: Split the double-inclusion guard.
39085         * lib/fcntl_.h: Likewise.
39086         * lib/float_.h: Likewise.
39087         * lib/iconv_.h: Likewise.
39088         * lib/inttypes_.h: Likewise.
39089         * lib/locale_.h: Likewise.
39090         * lib/math_.h: Likewise.
39091         * lib/netinet_in_.h: Likewise.
39092         * lib/search_.h: Likewise.
39093         * lib/signal_.h: Likewise.
39094         * lib/stdint_.h: Likewise.
39095         * lib/stdio_.h: Likewise.
39096         * lib/stdlib_.h: Likewise.
39097         * lib/string_.h: Likewise.
39098         * lib/sys_select_.h: Likewise.
39099         * lib/sys_socket_.h: Likewise.
39100         * lib/sys_stat_.h: Likewise.
39101         * lib/sys_time_.h: Likewise.
39102         * lib/sysexits_.h: Likewise.
39103         * lib/time_.h: Likewise.
39104         * lib/unistd_.h: Likewise.
39105         * lib/wchar_.h: Likewise.
39106         * lib/wctype_.h: Likewise.
39107
39108 2007-05-29  Bruno Haible  <bruno@clisp.org>
39109
39110         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39111         for the moment.
39112
39113 2007-05-29  Bruno Haible  <bruno@clisp.org>
39114
39115         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39116         invocation.
39117         Reported by Eric Blake.
39118
39119 2007-05-29  Bruno Haible  <bruno@clisp.org>
39120
39121         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39122         compiling case.
39123
39124 2007-05-29  Eric Blake  <ebb9@byu.net>
39125             Bruno Haible  <bruno@clisp.org>
39126
39127         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39128         cross compiles.
39129
39130 2007-05-28  Eric Blake  <ebb9@byu.net>
39131
39132         * modules/closein-tests (test_closein_LDADD): Support test on
39133         cygwin with libtool.
39134
39135 2007-05-28  Bruno Haible  <bruno@clisp.org>
39136
39137         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39138         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39139         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39140         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39141         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39142         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39143         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39144         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39145         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39146
39147 2007-05-28  Eric Blake  <ebb9@byu.net>
39148
39149         Unconditionally include <config.h> in unit tests.
39150         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39151         * tests/test-allocsa.c, tests/test-arcfour.c,
39152         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39153         tests/test-array_list.c, tests/test-array_oset.c,
39154         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39155         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39156         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39157         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39158         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39159         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39160         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39161         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39162         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39163         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39164         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39165         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39166         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39167         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39168         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39169         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39170         test-md5.c, test-memmem.c, test-printf-posix.c,
39171         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39172         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39173         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39174         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39175         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39176         test-vasnprintf-posix2.c, test-vasnprintf.c,
39177         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39178         test-vfprintf-posix.c, test-vprintf-posix.c,
39179         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39180         test-xvasprintf.c: Likewise.
39181
39182 2007-05-28  Bruno Haible  <bruno@clisp.org>
39183
39184         * gnulib-tool (func_import): Remember the --with-tests command-line
39185         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39186         Reported by Eric Blake.
39187
39188 2007-05-28  Bruno Haible  <bruno@clisp.org>
39189
39190         * modules/ftell-tests: New file.
39191         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39192         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39193
39194         * lib/ftell.c: New file.
39195         * modules/ftell: New file.
39196         * m4/ftell.m4: New file.
39197         * doc/functions/ftell.texi: Update.
39198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39199         REPLACE_FTELL.
39200         * lib/stdio_.h (rpl_ftell): New declaration.
39201         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39202         REPLACE_FTELL.
39203
39204 2007-05-28  Eric Blake  <ebb9@byu.net>
39205
39206         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39207
39208 2007-05-28  Bruno Haible  <bruno@clisp.org>
39209
39210         * modules/fseek-tests: New file.
39211         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39212         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39213
39214         * lib/fseek.c: New file.
39215         * modules/fseek: New file.
39216         * m4/fseek.m4: New file.
39217         * doc/functions/fseek.texi: Update.
39218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39219         REPLACE_FSEEK.
39220         * lib/stdio_.h (rpl_fseek): New declaration.
39221         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39222         REPLACE_FSEEK.
39223
39224 2007-05-28  Bruno Haible  <bruno@clisp.org>
39225
39226         * lib/stdio_.h (fflush): More comments.
39227
39228 2007-05-28  Bruno Haible  <bruno@clisp.org>
39229
39230         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39231         runtime test.
39232
39233 2007-05-28  Eric Blake  <ebb9@byu.net>
39234
39235         Improve lseek module.
39236         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39237         * lib/unistd_.h (lseek): Scale back link warning message.
39238         * tests/test-lseek.c: Beef up test.
39239         * tests/test-lseek.sh: Exercise more facets of lseek.
39240         Reported by Bruno Haible.
39241
39242 2007-05-28  Bruno Haible  <bruno@clisp.org>
39243
39244         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39245         to define.
39246
39247 2007-05-27  Bruno Haible  <bruno@clisp.org>
39248
39249         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39250
39251 2007-05-27  Bruno Haible  <bruno@clisp.org>
39252
39253         * modules/openmp: New file.
39254         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39255         Noah Misch.
39256
39257 2007-05-26  Bruno Haible  <bruno@clisp.org>
39258
39259         * modules/chdir-long (Depends-on): Add fchdir.
39260         * modules/chdir-safer (Depends-on): Likewise.
39261         * modules/fts (Depends-on): Likewise.
39262         * modules/fts-lgpl (Depends-on): Likewise.
39263         * modules/openat (Depends-on): Likewise.
39264         * modules/savewd (Depends-on): Likewise.
39265
39266 2007-05-24  Eric Blake  <ebb9@byu.net>
39267
39268         Fix lseek on mingw.
39269         * modules/lseek: New module.
39270         * m4/lseek.m4: New file.
39271         * lib/lseek.c: New file.
39272         * modules/lseek-tests: New file.
39273         * tests/test-lseek.c: New file.
39274         * tests/test-lseek.sh: New file.
39275         * MODULES.html.sh: Document lseek module.
39276         * modules/fflush (Depends-on): Add lseek, fseeko.
39277         * modules/fseeko (Depends-on): Likewise.
39278         * modules/ftello (Depends-on): Likewise.
39279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39280         broken.
39281         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39282         broken.
39283         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39284         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39285         * lib/ftello.c (rpl_ftello): Likewise.
39286         * tests/test-fseeko.c (main): Test this.
39287         * tests/test-fseeko.sh: Likewise.
39288         * tests/test-ftello.c (main): Likewise.
39289         * tests/test-ftello.sh: Likewise.
39290         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39291         implies replacing fseek.
39292         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39293         HAVE_FTELLO.
39294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39295         * modules/unistd (Makefile.am): Likewise.
39296         * lib/unistd_.h (lseek): Declare a replacement.
39297         * doc/functions/lseek.texi (lseek): Document this fix.
39298         * doc/functions/fseek.texi (fseek): Likewise.
39299         * doc/functions/ftell.texi (ftell): Likewise.
39300
39301 2007-05-24  Bruno Haible  <bruno@clisp.org>
39302
39303         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39304         in the printed representation of a NaN.
39305         * tests/test-vasprintf-posix.c (test_function): Likewise.
39306         * tests/test-snprintf-posix.h (test_function): Likewise.
39307         * tests/test-sprintf-posix.h (test_function): Likewise.
39308         Reported by Eric Blake.
39309
39310 2007-05-23  Eric Blake  <ebb9@byu.net>
39311
39312         Fix fseeko/ftello on cygwin 1.5.24.
39313         * doc/functions/fseeko.texi (fseeko): Document the fix.
39314         * doc/functions/ftello.texi (ftello): Document the fix.
39315         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39316         * doc/functions/stdout.text (stdout): New file.
39317         * doc/functions/stderr.text (stderr): New file.
39318         * doc/gnulib.texi (Function Substitutes): Use new files.
39319         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39320         prior to 1.7.0.
39321         * tests/test-ftello.c (main): Likewise for ftello.
39322         * tests/test-fseeko.sh: New file.
39323         * tests/test-ftello.sh: New file.
39324         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39325         with seekable stdin.
39326         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39327         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39328         (gl_REPLACE_FSEEKO): New macro.
39329         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39330         * modules/fseeko (Files): Distribute fseeko.c.
39331         * modules/ftello (Files): Distribute ftello.c.
39332         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39333         mode.
39334         * lib/ftello.c (rpl_ftello): New file.
39335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39336         fseeko, ftello.
39337         (gl_STDIN_LARGE_OFFSET): New macro.
39338         * modules/stdio (Makefile.am): Perform the replacement.
39339         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39340
39341 2007-05-23  Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39344         GNULIB_POSIXCHECK is defined.
39345
39346 2007-05-21  Bruno Haible  <bruno@clisp.org>
39347
39348         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39349         Check also the output for NaN arguments. When cross-compiling, guess
39350         no on IRIX.
39351         * lib/vasnprintf.c: Update comments.
39352         * tests/test-vasnprintf-posix.c (strisnan): New function.
39353         (test_function): Use it.
39354         * tests/test-vasprintf-posix.c (strisnan): New function.
39355         (test_function): Use it.
39356         * tests/test-snprintf-posix.h (strisnan): New function.
39357         (test_function): Use it.
39358         * tests/test-sprintf-posix.h (strisnan): New function.
39359         (test_function): Use it.
39360         Reported by Eric Blake.
39361
39362 2007-05-20  Bruno Haible  <bruno@clisp.org>
39363
39364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39365         numbers that fails on BeOS.
39366         * doc/functions/frexpl.texi: Update.
39367
39368 2007-05-20  Jim Meyering  <jim@meyering.net>
39369
39370         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39371         forced upon us by glibc-2.6.
39372
39373 2007-05-20  Bruno Haible  <bruno@clisp.org>
39374
39375         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39376         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39377         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39378         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39379         NEED_PRINTF_INFINITE.
39380         (is_infinitel): New function.
39381         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39383         gl_PREREQ_VASNPRINTF_INFINITE.
39384         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39386         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39387         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39388         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39389         gl_PREREQ_VASNPRINTF_INFINITE.
39390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39391         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39392         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39394         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39396         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39397         * doc/functions/fprintf.texi: Update.
39398         * doc/functions/printf.texi: Update.
39399         * doc/functions/snprintf.texi: Update.
39400         * doc/functions/sprintf.texi: Update.
39401         * doc/functions/vfprintf.texi: Update.
39402         * doc/functions/vprintf.texi: Update.
39403         * doc/functions/vsnprintf.texi: Update.
39404         * doc/functions/vsprintf.texi: Update.
39405
39406 2007-05-20  Bruno Haible  <bruno@clisp.org>
39407
39408         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39409         was not found in libc.
39410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39411
39412 2007-05-20  Bruno Haible  <bruno@clisp.org>
39413
39414         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39415         printed as "-nan" instead of "nan".
39416         * tests/test-vasprintf-posix.c (test_function): Likewise.
39417         * tests/test-snprintf-posix.h (test_function): Likewise.
39418         * tests/test-sprintf-posix.h (test_function): Likewise.
39419         Needed for HP-UX 11.
39420
39421 2007-05-20  Jim Meyering  <jim@meyering.net>
39422
39423         Fix buggy test for the fchownat-deref bug.
39424         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39425         symlink required for the run-test.  Without it, this test would
39426         always declare that fchownat doesn't work, and client code would
39427         unnecessarily use the replacement function with fixed libc.
39428         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39429         Reported by Greg Schafer.
39430
39431 2007-05-19  Bruno Haible  <bruno@clisp.org>
39432
39433         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39434         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39435         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39436         Needed for IRIX 6.5 and Solaris 2.5.1.
39437
39438 2007-05-19  Bruno Haible  <bruno@clisp.org>
39439
39440         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39441         (test_function): Skip tests involving -0.0 on platforms where
39442         -0.0 = 0.0.
39443         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39444         (test_function): Skip tests involving -0.0 on platforms where
39445         -0.0 = 0.0.
39446         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39447         (test_function): Skip tests involving -0.0 on platforms where
39448         -0.0 = 0.0.
39449         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39450         (test_function): Skip tests involving -0.0 on platforms where
39451         -0.0 = 0.0.
39452         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39453         tests.
39454         * tests/test-printf-posix.h (test_function): Likewise.
39455         * tests/test-printf-posix.output: Remove all -0.0 related results.
39456         Needed for IRIX 6.5.
39457
39458 2007-05-19  Bruno Haible  <bruno@clisp.org>
39459
39460         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39461         printed as "nan0x7fffffff" instead of "nan".
39462         * tests/test-vasprintf-posix.c (test_function): Likewise.
39463         * tests/test-snprintf-posix.h (test_function): Likewise.
39464         * tests/test-sprintf-posix.h (test_function): Likewise.
39465         * tests/test-fprintf-posix.h (NaN): Remove macro.
39466         (test_function): Remove all NaN related tests.
39467         * tests/test-printf-posix.h (NaN): Remove macro.
39468         (test_function): Remove all NaN related tests.
39469         * tests/test-printf-posix.output: Remove all NaN related results.
39470         Needed for IRIX 6.5.
39471
39472 2007-05-19  Bruno Haible  <bruno@clisp.org>
39473
39474         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39476
39477 2007-05-19  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/float_.h: New file.
39480         * m4/float_h.m4: New file.
39481         * modules/float: New file.
39482         * modules/isnanl (Dependencies): Add float.
39483         * modules/isnanl-nolibm (Dependencies): Likewise.
39484         * modules/mathl (Dependencies): Likewise.
39485         * modules/printf-frexpl (Dependencies): Likewise.
39486         * modules/signbit (Dependencies): Likewise.
39487         * modules/vasnprintf (Dependencies): Likewise.
39488         * doc/headers/float.texi: Update.
39489
39490 2007-05-19  Jim Meyering  <jim@meyering.net>
39491
39492         * lib/utimens.c (gl_futimens): Rename from futimens,
39493         now that glibc-2.6 declares futimens.
39494         * lib/utimens.h: Likewise.
39495
39496 2007-05-19  Bruno Haible  <bruno@clisp.org>
39497
39498         Avoid test failures on mingw.
39499         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39500         * tests/test-printf-posix.sh: Likewise.
39501         * tests/test-vfprintf-posix.sh: Likewise.
39502         * tests/test-vprintf-posix.sh: Likewise.
39503
39504 2007-05-19  Bruno Haible  <bruno@clisp.org>
39505
39506         Fix *printf result for NaN, Inf, -0.0 on mingw.
39507         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39508         * lib/vasnprintf.c: Include math.h and isnan.h.
39509         (is_infinite_or_zero): New function.
39510         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39511         values in the %f, %F, %e, %E, %g, %G directives.
39512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39514         gl_PRINTF_INFINITE and test its result. Invoke
39515         gl_PREREQ_VASNPRINTF_INFINITE.
39516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39523         * doc/functions/fprintf.texi: Update.
39524         * doc/functions/printf.texi: Update.
39525         * doc/functions/snprintf.texi: Update.
39526         * doc/functions/sprintf.texi: Update.
39527         * doc/functions/vfprintf.texi: Update.
39528         * doc/functions/vprintf.texi: Update.
39529         * doc/functions/vsnprintf.texi: Update.
39530         * doc/functions/vsprintf.texi: Update.
39531
39532 2007-05-19  Bruno Haible  <bruno@clisp.org>
39533
39534         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39535         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39536         Instead of multiplying with 10^k, set extra_zeroes to k.
39537         (scale10_round_long_double): Remove function.
39538
39539 2007-05-18  Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39542         introduced on 2007-05-06.
39543
39544 2007-05-18  Bruno Haible  <bruno@clisp.org>
39545
39546         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39547         %g directives.
39548         * tests/test-vasprintf-posix.c (test_function): Likewise.
39549         * tests/test-snprintf-posix.h (test_function): Likewise.
39550         * tests/test-sprintf-posix.h (test_function): Likewise.
39551
39552 2007-05-18  Bruno Haible  <bruno@clisp.org>
39553
39554         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39555         (strmatch): New function.
39556         (test_function): Test the %f directive on numbers of various exponents.
39557         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39558         (strmatch): New function.
39559         (test_function): Test the %f directive on numbers of various exponents.
39560         * tests/test-snprintf-posix.h (strmatch): New function.
39561         (test_function): Test the %f directive on numbers of various exponents.
39562         * tests/test-sprintf-posix.h (strmatch): New function.
39563         (test_function): Test the %f directive on numbers of various exponents.
39564         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39565         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39566         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39567         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39568
39569 2007-05-18  Bruno Haible  <bruno@clisp.org>
39570
39571         Add support for 'long double' number output.
39572         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39573         * lib/vasnprintf.c: Include math.h and float+.h.
39574         (mp_limb_t): New type.
39575         (GMP_LIMB_BITS): New macro.
39576         (mp_twolimb_t): New type.
39577         (GMP_TWOLIMB_BITS): New macro.
39578         (mpn_t): New type.
39579         (multiply, divide, convert_to_decimal, decode_long_double,
39580         scale10_round_long_double, scale10_round_decimal_long_double,
39581         floorlog10l): New functions.
39582         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39583         for the %f, %F, %e, %E, %g, %G directives.
39584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39586         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39587         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39595         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39596         * modules/snprintf-posix (Depends-on): Likewise.
39597         * modules/sprintf-posix (Depends-on): Likewise.
39598         * modules/vasnprintf-posix (Depends-on): Likewise.
39599         * modules/vasprintf-posix (Depends-on): Likewise.
39600         * modules/vfprintf-posix (Depends-on): Likewise.
39601         * modules/vsnprintf-posix (Depends-on): Likewise.
39602         * modules/vsprintf-posix (Depends-on): Likewise.
39603         * modules/vasnprintf (Files): Add lib/float+.h.
39604         * doc/functions/fprintf.texi: Update.
39605         * doc/functions/printf.texi: Update.
39606         * doc/functions/snprintf.texi: Update.
39607         * doc/functions/sprintf.texi: Update.
39608         * doc/functions/vfprintf.texi: Update.
39609         * doc/functions/vprintf.texi: Update.
39610         * doc/functions/vsnprintf.texi: Update.
39611         * doc/functions/vsprintf.texi: Update.
39612
39613 2007-05-18  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39616
39617 2007-05-18  Bruno Haible  <bruno@clisp.org>
39618
39619         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39620         for printing 64-bit integers. Needed for mingw.
39621
39622 2007-05-18  Bruno Haible  <bruno@clisp.org>
39623
39624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39625         gl_FUNC_FREXPL_WORKS.
39626         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39627
39628 2007-05-18  Bruno Haible  <bruno@clisp.org>
39629
39630         * modules/frexpl-nolibm-tests: New file.
39631
39632         * modules/frexpl-nolibm: New file.
39633         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39634
39635 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39636
39637         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39638         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39639         GCC 4.2, which otherwise issues a lot of warnings.
39640         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39641         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39642         Likewise.
39643         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39644         * modules/iconv_open (iconv.h): Likewise.
39645         * modules/locale (locale.h): Likewise.
39646         * modules/netinet_in (netinet/in.h): Likewise.
39647         * modules/sys_select (sys_select.h): Likewise.
39648         * modules/sys_socket (sys/socket.h): Likewise.
39649         * modules/sys_stat (sys/stat.h): Likewise.
39650         * modules/sysexits (sysexits.h): Likewise.
39651         * modules/unistd (unistd.h): Likewise.
39652
39653 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39654
39655         * modules/closein-tests (Makefile.am): Distribute
39656         `test-closein.sh'.
39657
39658 2007-05-17  Bruno Haible  <bruno@clisp.org>
39659
39660         * tests/test-printf-posix.output: Renamed from
39661         tests/test-fprintf-posix.out.
39662         * modules/fprintf-posix-tests: Update.
39663         * modules/printf-posix-tests: Update.
39664         * modules/vfprintf-posix-tests: Update.
39665         * modules/vprintf-posix-tests: Update.
39666         * tests/test-fprintf-posix.sh: Update.
39667         * tests/test-printf-posix.sh: Update.
39668         * tests/test-vfprintf-posix.sh: Update.
39669         * tests/test-vprintf-posix.sh: Update.
39670         Reported by Ralf Wildenhues.
39671
39672 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39673
39674         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39675         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39676         GCC 4.2, which otherwise issues a lot of warnings.
39677         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39678         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39679         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39680         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39681         it should no longer be needed.
39682         * lib/string_.h: Likewise.
39683         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39684         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39685         * modules/inttypes (inttypes.h): Likewise.
39686         * modules/math (math.h): Likewise.
39687         * modules/search (search.h): Likewise.
39688         * modules/signal (signal.h): Likewise.
39689         * modules/stdint (stdint.h): Likewise.
39690         * modules/stdio (stdio.h): Likewise.
39691         * modules/stdlib (stdlib.h): Likewise.
39692         * modules/string (string.h): Likewise.
39693         * modules/sys_time (sys/time.h): Likewise.
39694         * modules/time (time.h): Likewise.
39695         * modules/wchar (wchar.h): Likewise.
39696         * modules/wctype (wtype.h): Likewise.
39697
39698 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39699
39700         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39701
39702 2007-05-13  Bruno Haible  <bruno@clisp.org>
39703
39704         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39705         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39706         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39707         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39708         (gl_PREREQ_STRTOK_R): Don't require it here.
39709
39710 2007-05-13  Bruno Haible  <bruno@clisp.org>
39711
39712         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39713         when used in C++ mode.
39714
39715 2007-05-12  Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/linebuffer.h: Tweak doc.
39718         * lib/linebuffer.c: Likewise.
39719
39720 2007-05-12  James Youngman  <jay@gnu.org>
39721
39722         * lib/linebuffer.c (readlinebuffer_delim): New function,
39723         like readlinebuffer, but use a caller-specified delimiter.
39724         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39725         as the delimiter.
39726         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39727
39728 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39729
39730         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39731         * modules/openat (Files): Remove openat-die.c.
39732         (Depends-on): Add openat-die.
39733         * modules/openat-die: New module.
39734
39735 2007-05-06  Bruno Haible  <bruno@clisp.org>
39736
39737         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39738         Update with info about Cygwin.
39739         * doc/functions/fprintf.texi: Update.
39740         * doc/functions/printf.texi: Update.
39741         * doc/functions/snprintf.texi: Update.
39742         * doc/functions/sprintf.texi: Update.
39743         * doc/functions/vfprintf.texi: Update.
39744         * doc/functions/vprintf.texi: Update.
39745         * doc/functions/vsnprintf.texi: Update.
39746         * doc/functions/vsprintf.texi: Update.
39747         Reported by Eric Blake.
39748
39749 2007-05-06  Bruno Haible  <bruno@clisp.org>
39750
39751         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39752         padding ourselves for the floating-point directives.
39753         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39756         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39757         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39758         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39759         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39760         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39762         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39764         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39765         * tests/test-snprintf-posix.h (test_function): Also check the width
39766         and some flags in the %f directive.
39767         * tests/test-sprintf-posix.h (test_function): Likewise.
39768         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39769         * tests/test-vasprintf-posix.c (test_function): Likewise.
39770         * doc/functions/fprintf.texi: Update.
39771         * doc/functions/printf.texi: Update.
39772         * doc/functions/snprintf.texi: Update.
39773         * doc/functions/sprintf.texi: Update.
39774         * doc/functions/vfprintf.texi: Update.
39775         * doc/functions/vprintf.texi: Update.
39776         * doc/functions/vsnprintf.texi: Update.
39777         * doc/functions/vsprintf.texi: Update.
39778
39779 2007-05-06  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39782         pass the ' flag character to sprintf or snprintf.
39783         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39786         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39787         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39789         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39792         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39793         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39794         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39795         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39796         flag.
39797         * tests/test-sprintf-posix.h (test_function): Likewise.
39798         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39799         * tests/test-vasprintf-posix.c (test_function): Likewise.
39800         * doc/functions/fprintf.texi: Update.
39801         * doc/functions/printf.texi: Update.
39802         * doc/functions/snprintf.texi: Update.
39803         * doc/functions/sprintf.texi: Update.
39804         * doc/functions/vfprintf.texi: Update.
39805         * doc/functions/vprintf.texi: Update.
39806         * doc/functions/vsnprintf.texi: Update.
39807         * doc/functions/vsprintf.texi: Update.
39808
39809 2007-05-01  Bruno Haible  <bruno@clisp.org>
39810
39811         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39812
39813 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39816         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39817
39818 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39819
39820         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39821         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39822         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39823
39824 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39825
39826         * lib/argp-help.c (struct hol_entry): New member `ord'.
39827         (HOL_ENTRY_PTRCMP): Use ord for comparison
39828         (hol_sort): Initialize ord.
39829
39830 2007-05-01  Bruno Haible  <bruno@clisp.org>
39831
39832         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39833         Reported by Eric Blake.
39834         * doc/gnulib.texi (Function Substitutes): Update.
39835
39836 2007-05-01  Bruno Haible  <bruno@clisp.org>
39837
39838         * doc/functions.texi: Remove file, now redundant through
39839         doc/functions/*.texi.
39840
39841 2007-05-01  Bruno Haible  <bruno@clisp.org>
39842
39843         * modules/argp (Depends-on): Add sleep.
39844
39845 2007-05-01  Bruno Haible  <bruno@clisp.org>
39846
39847         * modules/sleep-tests: New file.
39848         * tests/test-sleep.c: New file.
39849
39850         * modules/sleep: New file.
39851         * lib/sleep.c: New file.
39852         * m4/sleep.m4: New file.
39853         * lib/unistd_.h (sleep): New declaration.
39854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
39855         HAVE_SLEEP.
39856         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
39857         * doc/functions/sleep.texi: Document the sleep module.
39858
39859 2007-05-01  Bruno Haible  <bruno@clisp.org>
39860
39861         * lib/sigprocmask.h: Remove file.
39862         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
39863         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
39864         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
39865         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
39866         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
39867         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
39868         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
39869         HAVE_SIGSET_T as a shell variable.
39870         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
39871         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
39872         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
39873         (Depends-on): Add signal. Remove verify.
39874         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
39875         (Include): Mention <signal.h> instead of sigprocmask.h.
39876         * NEWS: Mention the change.
39877         * lib/fatal-signal.c: Don't include sigprocmask.h.
39878
39879 2007-05-01  Bruno Haible  <bruno@clisp.org>
39880
39881         * modules/signal: New file.
39882         * lib/signal_.h: New file.
39883         * m4/signal_h.m4: New file.
39884
39885 2007-05-01  Bruno Haible  <bruno@clisp.org>
39886
39887         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
39888         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
39889         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
39890         HAVE_WCTYPE_CTMP_BUG into wctype.h.
39891
39892 2007-05-01  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
39895         configure time.
39896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
39897         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
39898         * modules/sys_stat (Makefile.am): Substitute their values into
39899         sys/stat.h.
39900
39901 2007-05-01  Bruno Haible  <bruno@clisp.org>
39902
39903         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
39904         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
39905         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
39906
39907 2007-05-01  Bruno Haible  <bruno@clisp.org>
39908
39909         * doc/header/assert.texi: Undo last change: don't mention the gnulib
39910         'assert' module here.
39911
39912 2007-05-01  Bruno Haible  <bruno@clisp.org>
39913
39914         * doc/functions/*.texi: New files.
39915         * doc/functions/google-ranking.txt: New file.
39916         * doc/gnulib.texi (Function Substitutes): New chapter.
39917         (ctime, inet_ntoa): Remove sections.
39918         * doc/ctime.texi: Remove file.
39919         * doc/inet_ntoa.texi: Remove file.
39920         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
39921         dependencies.
39922         (%.info): New rule, specifying a --reference-limit.
39923
39924 2007-05-01  Bruno Haible  <bruno@clisp.org>
39925
39926         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
39927
39928 2007-05-01  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
39931         the portability of 'mkdir' to mingw systems.
39932
39933 2007-05-01  Bruno Haible  <bruno@clisp.org>
39934
39935         * doc/headers/google-ranking.txt: New file.
39936
39937 2007-04-30  Eric Blake  <ebb9@byu.net>
39938
39939         Prefer fseeko to fseek.
39940         * modules/getpass (Depends-on): Add fseeko.
39941         * lib/getpass.c (getpass): Use fseeko, not fseek.
39942
39943 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
39944
39945         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
39946         assumes the sorting is stable, while most qsort implementations
39947         are not.  Use argument addresses to ensure they never compare as
39948         equal.
39949
39950         * tests/test-argp-2.sh (usage-indent test): Fix output
39951         (func_compare): Restore diff options
39952         * tests/test-argp.c: Restore #include "progname.h"
39953
39954 2007-04-29  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
39957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39958         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
39959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39960         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
39961         (configure.ac): Define CHECK_SNPRINTF_POSIX.
39962         (TESTS, check_PROGRAMS): Add test-snprintf.
39963         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
39964         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
39965         (TESTS, check_PROGRAMS): Add test-vsnprintf.
39966         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
39967         assertions that fail on HP-UX, OSF/1, or IRIX.
39968         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
39969
39970 2007-04-29  Bruno Haible  <bruno@clisp.org>
39971
39972         * MODULES.html.sh (posix_functions): Remove 'contents'.
39973
39974 2007-04-29  Karl Berry  <karl@gnu.org>
39975
39976         * config/srclist.txt (gendocs_template_min): new entry.
39977
39978 2007-04-29  Bruno Haible  <bruno@clisp.org>
39979
39980         Work around fpurge bug on BSD systems.
39981         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
39982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
39983         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
39984         fpurge to rpl_fpurge if the system already has this function.
39985         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
39986         the case where the system already has this function. Correct invariants
39987         on BSD systems.
39988         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
39989         BSD systems.
39990
39991 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39992
39993         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
39994         proposed by Sven Verdoolaege.
39995
39996         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
39997         options.
39998         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
39999         (usage and help tests): Update
40000
40001 2007-04-29  Bruno Haible  <bruno@clisp.org>
40002
40003         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40004         Print more information in case of failure. Disable a test on BeOS.
40005
40006 2007-04-29  Bruno Haible  <bruno@clisp.org>
40007
40008         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40009         This helps debugging on systems on which no gdb is available.
40010
40011 2007-04-29  Bruno Haible  <bruno@clisp.org>
40012
40013         * lib/freading.h: Improve comments.
40014         * lib/fwriting.h: Likewise.
40015         * tests/test-freading.c (main): Don't check freading immediately after
40016         repositioning. Needed for glibc.
40017
40018 2007-04-29  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/freading.c (freading): Trivial simplification.
40021
40022 2007-04-28  Bruno Haible  <bruno@clisp.org>
40023
40024         * tests/test-fwriting.c (main): Also test the interaction between
40025         fflush and fwriting.
40026         * modules/fwriting-tests (Depends-on): Add fflush.
40027
40028         * tests/test-freading.c (main): Also test the interaction between
40029         fflush and freading.
40030         * modules/freading-tests (Depends-on): Add fflush.
40031
40032 2007-04-28  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40035         fseeko and ftello.
40036         Suggested by Eric Blake.
40037
40038 2007-04-28  Jim Meyering  <jim@meyering.net>
40039
40040         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40041         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40042         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40043
40044 2007-04-27  Eric Blake  <ebb9@byu.net>
40045
40046         * doc/headers/assert.texi (assert.h): Document assert module use.
40047
40048 2007-04-27  Bruno Haible  <bruno@clisp.org>
40049
40050         * doc/headers/*.texi: New files.
40051         * doc/gnulib.texi (Header File Substitutes): New chapter.
40052         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40053         dependencies.
40054         (standards.info ,standards.html, standards.dvi): Update dependencies.
40055         (mostlyclean, clean): New targets.
40056
40057 2007-04-27  Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40060         * modules/sysexits (Files, Makefile.am): Update.
40061
40062         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40063         * modules/sys_socket (Files, Makefile.am): Update.
40064
40065         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40066         * modules/sys_stat (Files, Makefile.am): Update.
40067
40068 2007-04-27  Eric Blake  <ebb9@byu.net>
40069
40070         * lib/freading.h: Improve comments.
40071         * lib/fwriting.h: Likewise.
40072         * lib/fflush.c: Likewise.
40073
40074         Fix closein for mingw.
40075         * modules/closein-tests: Add tests for closein.
40076         * tests/test-closein.c: New file.
40077         * tests/test-closein.sh: Likewise.
40078         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40079         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40080
40081 2007-04-27  Bruno Haible  <bruno@clisp.org>
40082
40083         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40084         version is < 6.
40085         * lib/math_.h [__DECC]: Likewise.
40086         * lib/stdio_.h [__DECC]: Likewise.
40087         * lib/stdlib_.h [__DECC]: Likewise.
40088         * lib/string_.h [__DECC]: Likewise.
40089         * lib/time_.h [__DECC]: Likewise.
40090         * lib/wchar_.h [__DECC]: Likewise.
40091         * lib/wctype_.h [__DECC]: Likewise.
40092
40093 2007-04-27  Bruno Haible  <bruno@clisp.org>
40094
40095         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40096
40097 2007-04-27  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/fflush.c: Add comments.
40100         * modules/fpurge-tests (Depends-on): Add fflush.
40101         * modules/freadable-tests (Depends-on): Likewise.
40102         * modules/fwritable-tests (Depends-on): Likewise.
40103
40104 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40105
40106         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40107         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40108         Report by Bruno Haible <bruno@clisp.org>.
40109
40110 2007-04-26  Eric Blake  <ebb9@byu.net>
40111
40112         Fix fflush on mingw.
40113         * modules/fflush (Depends-on): Add freading.
40114         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40115         but unread data.
40116
40117 2007-04-26  Eric Blake  <ebb9@byu.net>
40118         and Bruno Haible  <bruno@clisp.org>
40119
40120         Implement freading and fwriting.
40121         * lib/freading.c: New file.
40122         * lib/freading.h: Likewise.
40123         * m4/freading.m4: Likewise.
40124         * modules/freading: Likewise.
40125         * modules/freading-tests: Likewise.
40126         * tests/test-freading.c: Likewise.
40127         * lib/fwriting.c: New file.
40128         * lib/fwriting.h: Likewise.
40129         * m4/fwriting.m4: Likewise.
40130         * modules/fwriting: Likewise.
40131         * modules/fwriting-tests: Likewise.
40132         * tests/test-fwriting.c: Likewise.
40133         * MODULES.html.sh (File stream based Input/Output): Mention them.
40134
40135 2007-04-26  Bruno Haible  <bruno@clisp.org>
40136
40137         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40138         'long' when we assume it.
40139         Suggested by Eric Blake.
40140
40141 2007-04-26  Bruno Haible  <bruno@clisp.org>
40142
40143         Ensure fseeko, ftello are declared on glibc systems.
40144         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40145         * modules/fseeko (configure.ac-early): Likewise.
40146         * modules/ftello (configure.ac-early): Likewise.
40147         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40148         AC_FUNC_FSEEKO for this.
40149         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40150         (gl_CHECK_FSEEKO): Remove macro.
40151
40152 2007-04-26  Bruno Haible  <bruno@clisp.org>
40153
40154         * tests/test-fflush.c (main): Also check the ftell result after
40155         fflush and fseek/fseeko.
40156         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40157         file descriptor position cache in the stream.
40158         * lib/fseeko.c (rpl_fseeko): Likewise.
40159
40160 2007-04-26  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/fflush-tests (Depends-on): Add fseeko.
40163
40164 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40165             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40166
40167         * lib/argz_.h: ensure error_t definition is obtained in same
40168         mechanism system argz.h would have.
40169         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40170         argz facilities are known bad.  Err on the side of caution if
40171         cross-compiling.
40172
40173 2007-04-25  Eric Blake  <ebb9@byu.net>
40174
40175         * lib/fpurge.c (includes): Use stdlib.h for free.
40176         * tests/test-fflush.c (main): Also test fflush-fseeko.
40177
40178 2007-04-25  Bruno Haible  <bruno@clisp.org>
40179
40180         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40181         * lib/fseeko.c: New file.
40182         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40183         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40184         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40185         gl_FUNC_FSEEKO.
40186         (gl_FUNC_FSEEKO): Invoke it.
40187         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40188         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40189         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40190
40191 2007-04-25  Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/fflush (Depends-on): Add ftello.
40194
40195 2007-04-25  Bruno Haible  <bruno@clisp.org>
40196
40197         * modules/ftello-tests: New file.
40198         * tests/test-ftello.c: New file.
40199
40200         * modules/ftello: New file.
40201         * m4/ftello.m4: New file.
40202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40203         HAVE_FTELLO.
40204         * lib/stdio_.h (ftello): New declaration.
40205         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40206         HAVE_FTELLO.
40207
40208 2007-04-25  Bruno Haible  <bruno@clisp.org>
40209
40210         * modules/fseeko-tests: New file.
40211         * tests/test-fseeko.c: New file.
40212
40213         * modules/fseeko: New file.
40214         * m4/fseeko.m4: New file.
40215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40216         HAVE_FSEEKO.
40217         * lib/stdio_.h (fseeko): New declaration.
40218         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40219         HAVE_FSEEKO.
40220
40221 2007-04-25  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40224
40225 2007-04-25  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40228         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40229         * tests/test-unistd.c: Likewise.
40230         * tests/test-fcntl.c: Likewise.
40231
40232 2007-04-23  Eric Blake  <ebb9@byu.net>
40233
40234         * lib/fflush.c: Fix missing include.
40235         Reported by Bruno Haible.
40236
40237 2007-04-23  Bruno Haible  <bruno@clisp.org>
40238
40239         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40240         Reported by Eric Blake.
40241
40242 2007-04-23  Bruno Haible  <bruno@clisp.org>
40243
40244         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40245
40246 2007-04-23  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40249
40250 2007-04-23  Bruno Haible  <bruno@clisp.org>
40251
40252         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40253         Needed on HP-UX 11.
40254
40255 2007-04-16  Eric Blake  <ebb9@byu.net>
40256
40257         Make fflush rely on fpurge.
40258         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40259         open coding all variants.
40260         * modules/fflush (Depends-on): Add fpurge and unistd.
40261         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40262         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40263
40264         Fix --with-tests compilation on cygwin.
40265         * modules/argmatch-tests (Makefile.am): List gnulib library first
40266         in LDADD.
40267         * modules/argp-tests (Makefile.am): Likewise.
40268         * modules/array-list-tests (Makefile.am): Likewise.
40269         * modules/array-oset-tests (Makefile.am): Likewise.
40270         * modules/avltree-list-tests (Makefile.am): Likewise.
40271         * modules/avltree-oset-tests (Makefile.am): Likewise.
40272         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40273         * modules/carray-list-tests (Makefile.am): Likewise.
40274         * modules/dirname-tests (Makefile.am): Likewise.
40275         * modules/frexp-tests (Makefile.am): Likewise.
40276         * modules/isnanl-tests (Makefile.am): Likewise.
40277         * modules/linked-list-tests (Makefile.am): Likewise.
40278         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40279         * modules/lock-tests (Makefile.am): Likewise.
40280         * modules/rbtree-list-tests (Makefile.am): Likewise.
40281         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40282         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40283         * modules/tls-tests (Makefile.am): Likewise.
40284         * modules/tsearch-tests (Makefile.am): Likewise.
40285         * modules/xvasprintf-tests (Makefile.am): Likewise.
40286
40287         Fix fpurge for cygwin.
40288         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40289         value.
40290         * modules/fpurge-tests (Depends-on): Clean up trash.
40291
40292 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40293
40294         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40295
40296         * m4/autobuild.m4: Re-indent.
40297
40298 2007-04-13  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/fpurge-tests: New file.
40301         * tests/test-fpurge.c: New file.
40302
40303         * modules/fpurge: New file.
40304         * lib/fpurge.h: New file.
40305         * lib/fpurge.c: New file.
40306         * m4/fpurge.m4: New file.
40307
40308 2007-04-13  Bruno Haible  <bruno@clisp.org>
40309
40310         * modules/fbufmode-tests: New file.
40311         * tests/test-fbufmode.c: New file.
40312
40313         * modules/fbufmode: New file.
40314         * lib/fbufmode.h: New file.
40315         * lib/fbufmode.c: New file.
40316         * m4/fbufmode.m4: New file.
40317
40318 2007-04-13  Bruno Haible  <bruno@clisp.org>
40319
40320         * modules/fwritable-tests: New file.
40321         * tests/test-fwritable.c: New file.
40322
40323         * modules/fwritable: New file.
40324         * lib/fwritable.h: New file.
40325         * lib/fwritable.c: New file.
40326         * m4/fwritable.m4: New file.
40327
40328 2007-04-13  Bruno Haible  <bruno@clisp.org>
40329
40330         * modules/freadable-tests: New file.
40331         * tests/test-freadable.c: New file.
40332
40333         * modules/freadable: New file.
40334         * lib/freadable.h: New file.
40335         * lib/freadable.c: New file.
40336         * m4/freadable.m4: New file.
40337
40338 2007-04-13  Bruno Haible  <bruno@clisp.org>
40339
40340         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40341         MOSTLYCLEANFILES.
40342
40343 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40344
40345         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40346         gzip bootstrap.conf to avoid dragging in i18n machinery.
40347         (gnulib_tool_option): Use it.
40348
40349 2007-04-13  Bruno Haible  <bruno@clisp.org>
40350
40351         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40352         %F directives.
40353         * tests/test-vasprintf-posix.c (test_function): Likewise.
40354         * tests/test-snprintf-posix.h (test_function): Likewise.
40355         * tests/test-sprintf-posix.h (test_function): Likewise.
40356         * tests/test-fprintf-posix.h (test_function): Likewise.
40357         * tests/test-printf-posix.h (test_function): Likewise.
40358         * tests/test-fprintf-posix.out: Likewise.
40359
40360 2007-04-13  Bruno Haible  <bruno@clisp.org>
40361
40362         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40363         * modules/tls-tests (configure.ac): Likewise.
40364         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40365
40366 2007-04-13  Bruno Haible  <bruno@clisp.org>
40367
40368         * lib/tls.c (glthread_tls_get): Fix return type.
40369         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40370
40371 2007-04-12  Eric Blake  <ebb9@byu.net>
40372
40373         * modules/gettime (Depends-on): Remove gettime.
40374         Reported by Dmitry V. Levin.
40375
40376 2007-04-12  Bruno Haible  <bruno@clisp.org>
40377
40378         * modules/fflush (Include): Mention <stdio.h>.
40379         * modules/strtoimax (Include): Mention <inttypes.h>.
40380         * modules/strtoumax (Include): Likewise.
40381
40382 2007-04-12  Eric Blake  <ebb9@byu.net>
40383
40384         * .cvsignore: New file.
40385         * .gitignore: Likewise.
40386
40387 2007-04-12  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40390         not before, since $(LDADD) often contains libgnu.a.
40391         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40392         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40393         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40394         Needed on Cygwin.
40395
40396 2007-04-12  Eric Blake  <ebb9@byu.net>
40397
40398         Work around glibc's failure to flush stdin on fclose.
40399         * lib/closein.c (close_stdin): Flush stdin before closing.
40400
40401         Work around glibc's failure to reset seekable stdin on exit.
40402         * modules/closein: New module.
40403         * lib/closein.c: New file.
40404         * lib/closein.h: Likewise.
40405         * m4/closein.m4: Likewise.
40406         * MODULES.html.sh (File stream based Input/Output): Document it.
40407
40408 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40409
40410         * gnulib-tool: Rename generated 'autobuild' script to
40411         'do-autobuild' in --create-megatestdir output.
40412
40413         * doc/gnulib.texi (Build robot for gnulib): Fix.
40414
40415 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40416
40417         * modules/sysexits (Depends-on): Add absolute-header.
40418
40419 2007-04-12  Eric Blake  <ebb9@byu.net>
40420
40421         No need to preserve errno on success.
40422         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40423         Reported by Bruno Haible.
40424
40425 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40426
40427         * MODULES.html.sh (Support for maintaining and releasing
40428         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40429
40430 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40431
40432         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40433
40434 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40435
40436         * modules/autobuild: New module.
40437
40438         * m4/autobuild.m4: New file.
40439
40440 2007-04-11  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40443         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40470         Reported by Eric Blake.
40471
40472 2007-04-11  Bruno Haible  <bruno@clisp.org>
40473
40474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40475
40476 2007-04-10  Bruno Haible  <bruno@clisp.org>
40477
40478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40479         for NaN and Infinity. Needed on FreeBSD 6.1.
40480         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40481         regarding results for "%010a" of Infinity and NaN.
40482         * tests/test-vasprintf-posix.c (test_function): Likewise.
40483         * tests/test-snprintf-posix.h (test_function): Likewise.
40484         * tests/test-sprintf-posix.h (test_function): Likewise.
40485         * tests/test-fprintf-posix.h (test_function): Likewise.
40486         * tests/test-printf-posix.h (test_function): Likewise.
40487         * tests/test-fprintf-posix.out: Likewise.
40488
40489 2007-04-10  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/locale-tests: New file.
40492         * tests/test-locale.c: New file.
40493
40494         * modules/locale: New file.
40495         * lib/locale_.h: New file.
40496         * m4/locale_h.m4: New file.
40497
40498 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40499             Bruno Haible  <bruno@clisp.org>
40500
40501         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40502         be determined, test for availability of the copysignf, copysign,
40503         copysignl functions.
40504         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40505         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40506         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40507
40508 2007-04-09  Eric Blake  <ebb9@byu.net>
40509
40510         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40511         * modules/stdio (Makefile.am): Support fflush.
40512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40513         * modules/fflush: New file.
40514         * lib/fflush.c: Likewise.
40515         * m4/fflush.m4: Likewise.
40516         * modules/fflush-tests: New test.
40517         * tests/test-fflush.c: Likewise.
40518         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40519
40520 2007-04-06  Bruno Haible  <bruno@clisp.org>
40521
40522         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40523         (VASNPRINTF): Use signbit for faster determination whether to print a
40524         minus sign.
40525         * modules/vasnprintf (Files): Remove lib/float+.h.
40526         * modules/fprintf-posix (Depends-on): Add signbit.
40527         * modules/snprintf-posix (Depends-on): Likewise.
40528         * modules/sprintf-posix (Depends-on): Likewise.
40529         * modules/vasnprintf-posix (Depends-on): Likewise.
40530         * modules/vasprintf-posix (Depends-on): Likewise.
40531         * modules/vfprintf-posix (Depends-on): Likewise.
40532         * modules/vsnprintf-posix (Depends-on): Likewise.
40533         * modules/vsprintf-posix (Depends-on): Likewise.
40534
40535 2007-04-06  Bruno Haible  <bruno@clisp.org>
40536
40537         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40538         * tests/test-frexpl.c (main): Likewise.
40539         * tests/test-ldexpl.c (main): Likewise.
40540         * modules/frexp-tests (Depends-on): Add signbit.
40541         * modules/frexpl-tests (Depdends-on): Likewise.
40542         * modules/ldexpl-tests (Depdends-on): Likewise.
40543
40544 2007-04-06  Bruno Haible  <bruno@clisp.org>
40545
40546         * modules/signbit-tests: New file.
40547         * tests/test-signbit.c: New file.
40548
40549         * modules/signbit: New file.
40550         * lib/signbitf.c: New file.
40551         * lib/signbitd.c: New file.
40552         * lib/signbitl.c: New file.
40553         * m4/signbit.m4: New file.
40554         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40555         (signbit): New macro.
40556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40557         REPLACE_SIGNBIT.
40558         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40559         REPLACE_FREXPL into math.h.
40560
40561 2007-04-06  Bruno Haible  <bruno@clisp.org>
40562
40563         * modules/isnanf-nolibm-tests: New file.
40564         * tests/test-isnanf.c: New file.
40565
40566         * modules/isnanf-nolibm: New file.
40567         * lib/isnanf.h: New file.
40568         * lib/isnanf.c: New file.
40569         * lib/isnan.c: Consider the USE_FLOAT macro.
40570         * m4/isnanf.m4: New file.
40571
40572 2007-04-06  Bruno Haible  <bruno@clisp.org>
40573
40574         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40575         (Link): New section.
40576
40577         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40578
40579 2007-04-06  Bruno Haible  <bruno@clisp.org>
40580
40581         Assume the 'long double' type.
40582         * m4/longdouble.m4: Remove file.
40583         * config/srclist.txt: Don't mention longdouble.m4.
40584         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40585         * lib/float+.h: Likewise.
40586         * lib/frexp.c: Likewise.
40587         * lib/printf-args.h: Likewise.
40588         * lib/printf-args.c: Likewise.
40589         * lib/printf-frexp.c: Likewise.
40590         * lib/printf-parse.c: Likewise.
40591         * lib/vasnprintf.c: Likewise.
40592         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40593         * m4/intl.m4: Likewise.
40594         * m4/isnanl.m4: Likewise.
40595         * m4/printf.m4: Likewise.
40596         * m4/printf-frexpl.m4: Likewise.
40597         * m4/vasnprintf.m4: Likewise.
40598         * modules/allocsa (Files): Remove m4/longdouble.m4.
40599         * modules/gettext (Files): Likewise.
40600         * modules/relocatable-prog-wrapper (Files): Likewise.
40601         * modules/vasnprintf (Files): Likewise.
40602         * modules/isnanl (Files): Likewise.
40603         (Include): Simplify.
40604         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40605         (Include): Simplify.
40606         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40607         (Include): Simplify.
40608         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40609         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40610         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40611         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40612         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40613         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40614         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40615         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40616         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40617         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40618         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40619         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40620         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40621         * tests/test-isnanl.c: Likewise.
40622         * tests/test-snprintf-posix.h: Likewise.
40623         * tests/test-sprintf-posix.h: Likewise.
40624         * tests/test-vasnprintf-posix.c: Likewise.
40625         * tests/test-vasnprintf-posix2.c: Likewise.
40626         * tests/test-vasprintf-posix.c: Likewise.
40627
40628 2007-04-06  Bruno Haible  <bruno@clisp.org>
40629
40630         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40631         * lib/math_.h [__DECC]: Include the overridden include file through
40632         #include_next, outside the double-inclusion guard.
40633         * lib/stdio_.h [__DECC]: Likewise.
40634         * lib/stdlib_.h [__DECC]: Likewise.
40635         * lib/string_.h [__DECC]: Likewise.
40636         * lib/time_.h [__DECC]: Likewise.
40637         * lib/wchar_.h [__DECC]: Likewise.
40638         * lib/wctype_.h [__DECC]: Likewise.
40639         * lib/inttypes_.h [__DECC]: Likewise.
40640         Reported by Albert Chin <china@thewrittenword.com> in
40641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40642
40643 2007-04-04  Eric Blake  <ebb9@byu.net>
40644
40645         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40646         1.5.x.
40647
40648 2007-04-04  Bruno Haible  <bruno@clisp.org>
40649
40650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40651         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40652
40653 2007-04-04  Bruno Haible  <bruno@clisp.org>
40654
40655         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40656         results for "%010a" of Infinity and NaN.
40657         * tests/test-vasprintf-posix.c (test_function): Likewise.
40658         * tests/test-snprintf-posix.h (test_function): Likewise.
40659         * tests/test-sprintf-posix.h (test_function): Likewise.
40660         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40661         * tests/test-printf-posix.h (test_function): Likewise.
40662         * tests/test-fprintf-posix.out: Update.
40663         Needed for FreeBSD 6.1.
40664
40665 2007-04-04  Bruno Haible  <bruno@clisp.org>
40666
40667         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40668         directly used by the gnulib modules nor by gnulib-tool.
40669
40670 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40671
40672         * DEPENDENCIES: Give overall description of version dependency
40673         desirability.  Use more-typical names for apps.
40674         Add shell, coreutils, diffutils, grep, tar, gzip.
40675
40676 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40677
40678         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40679
40680 2007-04-04  Karl Berry  <karl@gnu.org>
40681
40682         * MODULES.html.sh (func_module): missing '.
40683
40684 2007-04-03  Bruno Haible  <bruno@clisp.org>
40685
40686         * modules/argmatch-tests (Makefile.am): New variable
40687         test_argmatch_LDADD.
40688         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40689         * modules/array-list-tests (Makefile.am): New variable
40690         test_array_list_LDADD.
40691         * modules/array-oset-tests (Makefile.am): New variable
40692         test_array_oset_LDADD.
40693         * modules/avltree-list-tests (Makefile.am): New variable
40694         test_avltree_list_LDADD.
40695         * modules/avltree-oset-tests (Makefile.am): New variable
40696         test_avltree_oset_LDADD.
40697         * modules/avltreehash-list-tests (Makefile.am): New variable
40698         test_avltreehash_list_LDADD.
40699         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40700         test_canonicalize_lgpl_LDADD.
40701         * modules/carray-list-tests (Makefile.am): New variable
40702         test_carray_list_LDADD.
40703         * modules/dirname-tests (Makefile.am): New variable
40704         test_dirname_LDADD.
40705         * modules/linked-list-tests (Makefile.am): New variable
40706         test_linked_list_LDADD.
40707         * modules/linkedhash-list-tests (Makefile.am): New variable
40708         test_linkedhash_list_LDADD.
40709         * modules/rbtree-list-tests (Makefile.am): New variable
40710         test_rbtree_list_LDADD.
40711         * modules/rbtree-oset-tests (Makefile.am): New variable
40712         test_rbtree_oset_LDADD.
40713         * modules/rbtreehash-list-tests (Makefile.am): New variable
40714         test_rbtreehash_list_LDADD.
40715         * modules/xvasprintf-tests (Makefile.am): New variable
40716         test_xvasprintf_LDADD.
40717         Reported by Eric Blake.
40718
40719 2007-04-03  Eric Blake  <ebb9@byu.net>
40720
40721         * DEPENDENCIES: Weaken m4 requirements.
40722
40723 2007-04-03  Bruno Haible  <bruno@clisp.org>
40724
40725         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40726         * modules/isnanl-tests (configure.ac): Likewise.
40727
40728 2007-04-03  Ben Pfaff  <blp@gnu.org>
40729
40730         * modules/iconv_open: Add $(srcdir)/ to source directory
40731         references in Makefile fragments that call gperf, to fix VPATH
40732         builds.
40733
40734 2007-04-03  Bruno Haible  <bruno@clisp.org>
40735
40736         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40737         * lib/ldexpl.c: Undo last change.
40738
40739 2007-04-03  Bruno Haible  <bruno@clisp.org>
40740
40741         * modules/printf-frexpl (Depends-on): Undo last change.
40742         (Files): Add m4/ldexpl.m4.
40743
40744 2007-04-03  Bruno Haible  <bruno@clisp.org>
40745
40746         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40747         * modules/isnanl (Link): New section.
40748
40749         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40750         * modules/frexp (Link): New section.
40751
40752         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40753         * modules/frexpl (Link): New section.
40754
40755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40756         * modules/ldexpl (Link): New section.
40757
40758 2007-04-03  Bruno Haible  <bruno@clisp.org>
40759
40760         * modules/TEMPLATE-EXTENDED: New file.
40761         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40762
40763 2007-04-03  Bruno Haible  <bruno@clisp.org>
40764
40765         * DEPENDENCIES: New file.
40766         Suggested by Simon Josefsson.
40767
40768 2007-04-03  Bruno Haible  <bruno@clisp.org>
40769
40770         * doc/gnulib.texi: Escape @.
40771
40772 2007-04-03  James Youngman  <jay@gnu.org>
40773         and Paul Eggert  <eggert@cs.ucla.edu>
40774
40775         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40776         birthtime on all systems that have birthtime, not just those which
40777         use st_birthtimensec rather than st_birthtim.  Putting zero in
40778         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40779         that the birth time is not available for files on an NFS mount.
40780
40781 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40782
40783         * modules/memxor: Move back from crypto/, suggested by Bruno.
40784         * modules/crypto/hmac-sha1: Fix memxor dependency.
40785
40786         * modules/crypto/gc: Moved from ../.
40787
40788 2007-04-02  Eric Blake  <ebb9@byu.net>
40789
40790         * lib/ldexpl.c (includes): Avoid libm.
40791
40792         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40793
40794 2007-04-02  Bruno Haible  <bruno@clisp.org>
40795
40796         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40797         on IRIX.
40798
40799 2007-04-02  Bruno Haible  <bruno@clisp.org>
40800
40801         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40802         x86 or x86_64 platforms running MacOS X.
40803         Reported by Ryan Schmidt <@ryandesign.com>.
40804
40805 2007-04-02  Bruno Haible  <bruno@clisp.org>
40806
40807         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40808         i386.
40809
40810 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40811
40812         * modules/crypto/arcfour: Moved from ../.
40813         * modules/crypto/arcfour-tests: Moved from ../.
40814         * modules/crypto/arctwo: Moved from ../.
40815         * modules/crypto/arctwo-tests: Moved from ../.
40816         * modules/crypto/des: Moved from ../.
40817         * modules/crypto/des-tests: Moved from ../.
40818         * modules/crypto/gc-arcfour: Moved from ../.
40819         * modules/crypto/gc-arcfour-tests: Moved from ../.
40820         * modules/crypto/gc-arctwo: Moved from ../.
40821         * modules/crypto/gc-arctwo-tests: Moved from ../.
40822         * modules/crypto/gc-des: Moved from ../.
40823         * modules/crypto/gc-des-tests: Moved from ../.
40824         * modules/crypto/gc-hmac-md5: Moved from ../.
40825         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40826         * modules/crypto/gc-hmac-sha1: Moved from ../.
40827         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40828         * modules/crypto/gc-md2: Moved from ../.
40829         * modules/crypto/gc-md2-tests: Moved from ../.
40830         * modules/crypto/gc-md4: Moved from ../.
40831         * modules/crypto/gc-md4-tests: Moved from ../.
40832         * modules/crypto/gc-md5: Moved from ../.
40833         * modules/crypto/gc-md5-tests: Moved from ../.
40834         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40835         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40836         * modules/crypto/gc-random: Moved from ../.
40837         * modules/crypto/gc-rijndael: Moved from ../.
40838         * modules/crypto/gc-rijndael-tests: Moved from ../.
40839         * modules/crypto/gc-sha1: Moved from ../.
40840         * modules/crypto/gc-sha1-tests: Moved from ../.
40841         * modules/crypto/gc-tests: Moved from ../.
40842         * modules/crypto/hmac-md5: Moved from ../.
40843         * modules/crypto/hmac-md5-tests: Moved from ../.
40844         * modules/crypto/hmac-sha1: Moved from ../.
40845         * modules/crypto/hmac-sha1-tests: Moved from ../.
40846         * modules/crypto/md2: Moved from ../.
40847         * modules/crypto/md2-tests: Moved from ../.
40848         * modules/crypto/md4: Moved from ../.
40849         * modules/crypto/md4-tests: Moved from ../.
40850         * modules/crypto/md5: Moved from ../.
40851         * modules/crypto/md5-tests: Moved from ../.
40852         * modules/crypto/memxor: Moved from ../.
40853         * modules/crypto/rijndael: Moved from ../.
40854         * modules/crypto/rijndael-tests: Moved from ../.
40855         * modules/crypto/sha1: Moved from ../.
40856
40857 2007-03-30  James Youngman  <jay@gnu.org>
40858
40859         * tests/test-stat-time.c (prepare_test): use chmod() rather than
40860         rename() to change the ctime of a file (because ctime is unaffected
40861         by rename on jfs2 on AIX 5.1).
40862         (main): Start by doing cleanup, in case a previous run failed leaving
40863         test files behind.
40864
40865 2007-03-31  Bruno Haible  <bruno@clisp.org>
40866
40867         Support old proprietary implementations of iconv.
40868         * modules/iconv_open: New file.
40869         * lib/iconv_.h: New file.
40870         * m4/iconv_h.m4: New file.
40871         * lib/iconv_open.c: New file.
40872         * lib/iconv_open-aix.gperf: New file.
40873         * lib/iconv_open-hpux.gperf: New file.
40874         * lib/iconv_open-irix.gperf: New file.
40875         * lib/iconv_open-osf.gperf: New file.
40876         * m4/iconv_open.m4: New file.
40877         * modules/linebreak (Depends-on): Add iconv_open.
40878         * modules/striconv (Depends-on): Likewise.
40879         * modules/striconveh (Depends-on): Likewise.
40880         * modules/unicodeio (Depends-on): Likewise.
40881         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
40882         (iconv_t)(-1).
40883         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
40884         conversion if cd is (iconv_t)(-1).
40885         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
40886         is not possible.
40887
40888 2007-03-31  Bruno Haible  <bruno@clisp.org>
40889
40890         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
40891         work on Solaris either. Protect also second use of "autodetect_jp".
40892
40893 2007-03-31  Bruno Haible  <bruno@clisp.org>
40894
40895         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
40896         the function is not present.
40897
40898 2007-03-31  Bruno Haible  <bruno@clisp.org>
40899
40900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
40901         the function is not present.
40902
40903 2007-03-31  Bruno Haible  <bruno@clisp.org>
40904
40905         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
40906         a bug in HP-UX iconv_open().
40907
40908 2007-03-31  Bruno Haible  <bruno@clisp.org>
40909
40910         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
40911         (Mathematics <math.h>): New section, add fpieee.
40912         (Input/output <stdio.h>): Add fseterr.
40913         (Mathematics <math.h>): New section, add printf-frexp.
40914         (Container data structures): Add sublist.
40915         (Core language properties): Add fpucw, inline.
40916         (Functions for greatest-width integer types <inttypes.h>): Add
40917         imaxabs, imaxdiv, inttypes.
40918         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
40919         isnanl-nolibm, ldexp.
40920         (Mathematics <math.h>): New section, add printf-frexpl.
40921         (Support for systems lacking POSIX:2001): Add fprintf-posix,
40922         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
40923         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
40924         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
40925         (Unicode string functions): Add unistr/u*-mbtoucr.
40926         (Java): Add javacomp-script, javaexec-script.
40927         (C#): Add csharpcomp-script, csharpexec-script.
40928         (Support for building libraries and executables): Add havelib,
40929         relocatable-*.
40930         (Support for maintaining and releasing projects): Renamed from
40931         'Support for maintaining and release projects'. Add announce-gen.
40932
40933 2007-03-31  Bruno Haible  <bruno@clisp.org>
40934
40935         * README: Talk primarily about git.
40936         (git and CVS): Renamed from CVS.
40937         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
40938         gnulib is available through git.
40939         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
40940
40941 2007-03-30  Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
40944         * lib/poll_.h: Likewise.
40945         * lib/stat_.h: Likewise.
40946         * lib/sys_time_.h: Likewise.
40947         * lib/sysexit_.h: Likewise.
40948         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
40949         * lib/stdbool_.h: Likewise.
40950         * lib/byteswap_.h: Add double-inclusion guard.
40951
40952 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
40953
40954         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
40955
40956 2007-03-30  Karl Berry  <karl@gnu.org>
40957
40958         * config/srclist-update: double space after USA in the license
40959         substitution, since that's how it's usually (?) written.
40960
40961 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40962
40963         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
40964         reported by Bruno Haible.
40965
40966 2007-03-29  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
40969         a bug in AIX iconv().
40970
40971 2007-03-29  Bruno Haible  <bruno@clisp.org>
40972
40973         * modules/ldexpl-tests: New file.
40974         * tests/test-ldexpl.c: New file.
40975
40976 2007-03-29  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/ldexpl.c: Include fpucw.h.
40979         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
40980         multiplication.
40981         * modules/ldexpl (Depends-on): Add fpucw.
40982
40983 2007-03-29  Bruno Haible  <bruno@clisp.org>
40984
40985         * modules/ldexpl: New file.
40986         * m4/ldexpl.m4: New file.
40987         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
40988         set.
40989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
40990         REPLACE_LDEXPL.
40991         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
40992         REPLACE_LDEXPL.
40993         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40994         gl_FUNC_LDEXPL_WORKS.
40995         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
40996         * modules/mathl (Files): Remove lib/ldexpl.c.
40997         (Depends-on): Add ldexpl.
40998
40999 2007-03-29  Bruno Haible  <bruno@clisp.org>
41000
41001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41002
41003 2007-03-29  Bruno Haible  <bruno@clisp.org>
41004
41005         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41006         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41007         and possibly also HP-UX.
41008         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41009         work on AIX, IRIX, HP-UX, OSF/1.
41010         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41011         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41012         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41013         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41014         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41015         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41016
41017 2007-03-29  Bruno Haible  <bruno@clisp.org>
41018
41019         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41020
41021 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41022
41023         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41024         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41025
41026 2007-03-29  Eric Blake  <ebb9@byu.net>
41027
41028         * lib/acl-internal.h: Remove redundant include.
41029         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41030         Cygwin when a file is locked.
41031
41032 2007-03-29  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41035         file.
41036         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41037
41038 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41039
41040         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41041         try to remove a parent directory if the child couldn't be removed
41042         (except for the first rmdir, which could fail because the child
41043         doesn't exist).  Problem reported by Jeff Blaine in
41044         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41045
41046 2007-03-28  Bruno Haible  <bruno@clisp.org>
41047
41048         * lib/striconveh.c (utf8conv_carefully): New function.
41049         (mem_cd_iconveh_internal): Invoke it.
41050
41051 2007-03-28  Bruno Haible  <bruno@clisp.org>
41052
41053         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41054         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41055         input.
41056         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41057         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41058         unistr/u8-uctomb.
41059
41060 2007-03-28  Bruno Haible  <bruno@clisp.org>
41061
41062         * modules/unistr/u8-mbtoucr: New file.
41063         * lib/unistr/u8-mbtoucr.c: New file.
41064         * modules/unistr/u16-mbtoucr: New file.
41065         * lib/unistr/u16-mbtoucr.c: New file.
41066         * modules/unistr/u16-mbtoucr: New file.
41067         * lib/unistr/u16-mbtoucr.c: New file.
41068         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41069
41070 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41071             Bruno Haible  <bruno@clisp.org>
41072
41073         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41074         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41075         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41076
41077         * m4/stdio_h.m4: Add stubs for vasprintf too.
41078
41079         * modules/stdio: Support vasprintf in sed command.
41080
41081         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41082         vasprintf.h.  Add stdio module indicator.
41083
41084         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41085         vasprintf.h.
41086
41087         * lib/vasprintf.h: File removed.
41088
41089         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41090         * lib/vasprintf.c: Ditto.
41091         * lib/xvasprintf.c: Ditto.
41092         * tests/test-vasprintf-posix.c: Ditto.
41093         * tests/test-vasprintf.c: Ditto.
41094
41095 2007-03-27  Bruno Haible  <bruno@clisp.org>
41096
41097         Make vasnprintf multithread-safe.
41098         * lib/vasnprintf.c (decimal_point_char): New function.
41099         (VASNPRINTF): Use it.
41100         Suggested by Simon Josefsson.
41101
41102 2007-03-27  Eric Blake  <ebb9@byu.net>
41103
41104         Support sub-second birthtime on cygwin.
41105         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41106         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41107         (get_stat_birthtime): Also work with st_birthtim.
41108
41109 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41110
41111         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41112         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41113         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41114         (get_stat_birthtime_ns): Simplify compile-time tests.
41115         (get_stat_birthtime): Change the API to look like
41116         get_stat_mtime etc., except return a negative tv_nsec on error.
41117         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41118         Don't check for "spare" fields.
41119         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41120         or for struct stat.st_birthtime, as these tests aren't used.
41121         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41122
41123 2007-03-27  Bruno Haible  <bruno@clisp.org>
41124
41125         * lib/stat-time.h: Include <sys/stat.h>.
41126
41127 2007-03-27  James Youngman  <jay@gnu.org>
41128
41129         * lib/stat-time.h (get_stat_birthtime): New function for
41130           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41131         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41132           and its variants.
41133         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41134         * modules/stat-time-test: New file.
41135         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41136
41137 2007-03-26  Bruno Haible  <bruno@clisp.org>
41138
41139         Better support of signalling NaNs.
41140         * lib/atanl.c: Include isnanl.h.
41141         (atanl): Perform test for NaN at the beginning of the function and
41142         through a call to isnanl.
41143         * lib/cosl.c: Include isnanl.h.
41144         (cosl): Perform test for NaN at the beginning of the function and
41145         through a call to isnanl.
41146         * lib/ldexpl.c: Include isnanl.h.
41147         (ldexpl): Perform test for NaN through a call to isnanl.
41148         * lib/logl.c: Include isnanl.h.
41149         (logl): Perform test for NaN at the beginning of the function and
41150         through a call to isnanl.
41151         * lib/sinl.c: Include isnanl.h.
41152         (sinl): Perform test for NaN at the beginning of the function and
41153         through a call to isnanl.
41154         * lib/sqrtl.c: Include isnanl.h.
41155         (sqrtl): Perform test for NaN at the beginning of the function and
41156         through a call to isnanl.
41157         * lib/tanl.c: Include isnanl.h.
41158         (tanl): Perform test for NaN at the beginning of the function and
41159         through a call to isnanl.
41160         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41161         * modules/mathl (Depends-on): Add isnanl.
41162
41163 2007-03-26  Eric Blake  <ebb9@byu.net>
41164
41165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41166         regression in logic sense of previous patch.
41167
41168 2007-03-26  Bruno Haible  <bruno@clisp.org>
41169
41170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41171         unportable shell command "if ! ...".
41172         Reported by Ralf Wildenhues.
41173
41174 2007-03-25  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41177         <sysexits.h> file, and only add EX_CONFIG.
41178         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41179         absolute file name and whether it is sufficient. Substitute also
41180         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41181         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41182         ABSOLUTE_SYSEXITS_H into sysexits.h.
41183
41184 2007-03-25  Bruno Haible  <bruno@clisp.org>
41185
41186         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41187         hints is NULL.
41188
41189 2007-03-25  Bruno Haible  <bruno@clisp.org>
41190
41191         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41192         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41193
41194 2007-03-25  Bruno Haible  <bruno@clisp.org>
41195
41196         * lib/vasnprintf.c: Include langinfo.h.
41197         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41198         multithread-safe.
41199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41205         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41206         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41207         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41208         Reported by Simon Josefsson.
41209
41210 2007-03-25  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41213         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41214         * modules/vasnprintf (Depends-on): Add stdint.
41215
41216 2007-03-25  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/fpieee: New file.
41219         * m4/fpieee.m4: New file.
41220         * modules/isnan-nolibm (Depends-on): Add fpieee.
41221         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41222         * modules/isnanl (Depends-on): Add fpieee.
41223
41224 2007-03-25  Bruno Haible  <bruno@clisp.org>
41225
41226         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41227
41228 2007-03-25  Bruno Haible  <bruno@clisp.org>
41229
41230         Avoid test failures on IRIX 6.5.
41231         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41232         (main): Use it.
41233         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41234         macros.
41235         (main): Use them.
41236
41237 2007-03-25  Bruno Haible  <bruno@clisp.org>
41238
41239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41240         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41241         exists but doesn't work.
41242         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41243         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41245         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41246
41247 2007-03-25  Bruno Haible  <bruno@clisp.org>
41248
41249         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41250         returns inf. Needed on IRIX 6.5.
41251
41252 2007-03-25  Bruno Haible  <bruno@clisp.org>
41253
41254         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41255         (main): Use isnanl instead of x != x idiom.
41256         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41257
41258         * tests/test-frexp.c: Include isnan.h.
41259         (main): Use isnan instead of x != x idiom.
41260         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41261
41262 2007-03-25  Bruno Haible  <bruno@clisp.org>
41263
41264         * tests/test-frexp.c (NaN): New function/macro.
41265         (main): Use it instead of 0.0 / 0.0.
41266         * tests/test-isnan.c (NaN): New function/macro.
41267         (main): Use it instead of 0.0 / 0.0.
41268         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41269         (test_function): Use it instead of 0.0 / 0.0.
41270         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41271         (test_function): Use it instead of 0.0 / 0.0.
41272         * tests/test-snprintf-posix.h (NaN): New function/macro.
41273         (test_function): Use it instead of 0.0 / 0.0.
41274         * tests/test-sprintf-posix.h (NaN): New function/macro.
41275         (test_function): Use it instead of 0.0 / 0.0.
41276         * tests/test-fprintf-posix.h (NaN): New function/macro.
41277         (test_function): Use it instead of 0.0 / 0.0.
41278         * tests/test-printf-posix.h (NaN): New function/macro.
41279         (test_function): Use it instead of 0.0 / 0.0.
41280
41281         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41282
41283 2007-03-25  Bruno Haible  <bruno@clisp.org>
41284
41285         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41286
41287 2007-03-25  Bruno Haible  <bruno@clisp.org>
41288
41289         * lib/regexec.c (merge_state_with_log): Make static.
41290
41291 2007-03-25  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/trigl.c (kernel_rem_pio2): Make static.
41294
41295 2007-03-25  Bruno Haible  <bruno@clisp.org>
41296
41297         * lib/sincosl.c (sincosl_table): Make static.
41298
41299 2007-03-25  Bruno Haible  <bruno@clisp.org>
41300
41301         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41302         if the compiler does not support C99.
41303
41304 2007-03-25  Bruno Haible  <bruno@clisp.org>
41305
41306         * modules/time (Makefile.am): Ensure all rule action lines start with a
41307         tab.
41308
41309 2007-03-24  Bruno Haible  <bruno@clisp.org>
41310
41311         * modules/tsearch-tests: New file.
41312         * tests/test-tsearch.sh: New file.
41313         * tests/test-tsearch.c: New file, mostly copied from glibc.
41314
41315         * modules/search-tests: New file.
41316         * tests/test-search.c: New file.
41317
41318         * modules/search: New file.
41319         * lib/search_.h: New file, incorporating lib/tsearch.h.
41320         * m4/search_h.m4: New file.
41321         * lib/tsearch.h: Remove file.
41322         * lib/tsearch.c: Include search.h instead of tsearch.h.
41323         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41324         HAVE_TSEARCH.
41325         * modules/tsearch (Files): Remove lib/tsearch.h.
41326         (Depends-on): Add search.
41327         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41328         (Include): Change tsearch.h into search.h.
41329
41330 2007-03-24  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/fpucw: New file.
41333         * lib/fpucw.h: New file.
41334         * lib/frexp.c: Include fpucw.h.
41335         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41336         (FUNC): Use them.
41337         * lib/printf-frexp.c: Include fpucw.h.
41338         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41339         (FUNC): Use them.
41340         * lib/vasnprintf.c: Include fpucw.h.
41341         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41342         'long double' calculations.
41343         * tests/test-frexpl.c: Include fpucw.h.
41344         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41345         * tests/test-printf-frexpl.c: Include fpucw.h.
41346         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41347         * modules/frexpl (Depends-on): Add fpucw.
41348         * modules/printf-frexpl (Depends-on): Likewise.
41349         * modules/fprintf-posix (Depends-on): Likewise.
41350         * modules/snprintf-posix (Depends-on): Likewise.
41351         * modules/sprintf-posix (Depends-on): Likewise.
41352         * modules/vasnprintf-posix (Depends-on): Likewise.
41353         * modules/vasprintf-posix (Depends-on): Likewise.
41354         * modules/vfprintf-posix (Depends-on): Likewise.
41355         * modules/vsnprintf-posix (Depends-on): Likewise.
41356         * modules/vsprintf-posix (Depends-on): Likewise.
41357         * modules/frexpl-tests (Depends-on): Likewise.
41358         * modules/printf-frexpl-tests (Depends-on): Likewise.
41359
41360 2007-03-24  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/float+.h: New file.
41363         * lib/isnan.c: Include float+.h.
41364         (SIZE): New macro.
41365         (FUNC): Compare only SIZE bytes of the value.
41366         * lib/vasnprintf.c: Include float+.h.
41367         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41368         SIZEOF_LDBL or SIZEOF_DBL bytes.
41369         * modules/isnan-nolibm (Files): Add lib/float+.h.
41370         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41371         * modules/isnanl (Files): Add lib/float+.h.
41372         * modules/vasnprintf (Files): Add lib/float+.h.
41373
41374 2007-03-24  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41377         include isnanl-nolibm.h.
41378
41379 2007-03-24  Bruno Haible  <bruno@clisp.org>
41380
41381         * tests/test-read-file.c (main): Don't produce spurious output for
41382         expected situations. Make the test fail if it encountered unexpected
41383         results.
41384
41385 2007-03-24  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41388         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41389
41390 2007-03-24  Bruno Haible  <bruno@clisp.org>
41391
41392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41393
41394 2007-03-24  Bruno Haible  <bruno@clisp.org>
41395
41396         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41397         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41398
41399         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41400         * modules/utf8-ucs4: Turn into a symbolic link to module
41401         unistr/u8-mbtouc.
41402
41403         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41404         utf8-ucs4-unsafe.
41405         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41406         unistr/u8-mbtouc-unsafe.
41407
41408         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41409         * modules/utf16-ucs4: Turn into a symbolic link to module
41410         unistr/u16-mbtouc.
41411
41412         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41413         utf16-ucs4-unsafe.
41414         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41415         unistr/u16-mbtouc-unsafe.
41416
41417         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41418         * modules/ucs4-utf8: Turn into a symbolic link to module
41419         unistr/u8-ubtomb.
41420
41421         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41422         * modules/ucs4-utf16: Turn into a symbolic link to module
41423         unistr/u16-ubtomb.
41424
41425 2007-03-24  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41428         Enable the function only if HAVE_INLINE.
41429         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41430         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41431         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41432         Enable the function only if HAVE_INLINE.
41433         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41434         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41435         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41436         Enable the function only if HAVE_INLINE.
41437         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41438         Enable the function only if HAVE_INLINE.
41439         * modules/utf8-ucs4: Update.
41440         * modules/utf8-ucs4-unsafe: Update.
41441         * modules/utf16-ucs4: Update.
41442         * modules/utf16-ucs4-unsafe: Update.
41443         * modules/ucs4-utf8: Update.
41444         * modules/ucs4-utf16: Update.
41445
41446 2007-03-24  Bruno Haible  <bruno@clisp.org>
41447
41448         * lib/utf8-ucs4.h: Remove file.
41449         * lib/utf8-ucs4-unsafe.h: Remove file.
41450         * lib/utf16-ucs4.h: Remove file.
41451         * lib/utf16-ucs4-unsafe.h: Remove file.
41452         * lib/ucs4-utf8.h: Remove file.
41453         * lib/ucs4-utf16.h: Remove file.
41454         * lib/unistr.h: Include their previous contents.
41455         * m4/utf-ucs4.m4: Remove file.
41456         * m4/ucs4-utf.m4: Remove file.
41457         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41458         (Depends-on): Add unistr/base.
41459         (configure.ac): Remove gl_UTF_UCS4.
41460         (Makefile.am): Update.
41461         (Include): Change to unistr.h.
41462         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41463         (Depends-on): Add unistr/base.
41464         (configure.ac): Remove gl_UTF_UCS4.
41465         (Makefile.am): Update.
41466         (Include): Change to unistr.h.
41467         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41468         (Depends-on): Add unistr/base.
41469         (configure.ac): Remove gl_UTF_UCS4.
41470         (Makefile.am): Update.
41471         (Include): Change to unistr.h.
41472         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41473         (Depends-on): Add unistr/base.
41474         (configure.ac): Remove gl_UTF_UCS4.
41475         (Makefile.am): Update.
41476         (Include): Change to unistr.h.
41477         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41478         (Depends-on): Add unistr/base.
41479         (configure.ac): Remove gl_UCS4_UTF.
41480         (Makefile.am): Update.
41481         (Include): Change to unistr.h.
41482         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41483         (Depends-on): Add unistr/base.
41484         (configure.ac): Remove gl_UCS4_UTF.
41485         (Makefile.am): Update.
41486         (Include): Change to unistr.h.
41487         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41488         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41489         utf8-ucs4-unsafe.h.
41490         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41491         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41492         utf16-ucs4-unsafe.h.
41493         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41494         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41495         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41496         * lib/unistr/u8-strchr.c: Likewise.
41497         * lib/unistr/u8-strrchr.c: Likewise.
41498         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41499         * lib/unistr/u16-strchr.c: Likewise.
41500         * lib/unistr/u16-strrchr.c: Likewise.
41501         * lib/striconveh.c: Update.
41502         * lib/linebreak.c: Update.
41503
41504 2007-03-24  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41507         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41508
41509 2007-03-22  Bruno Haible  <bruno@clisp.org>
41510
41511         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41512
41513 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41514
41515         * MODULES.html.sh (File system functions): New module write-any-file.
41516         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41517         * m4/write-any-file.m4: New files.
41518
41519 2007-03-23  Eric Blake  <ebb9@byu.net>
41520
41521         * gnulib-tool: Rearrange space-tab sequences, since some editors
41522         like to eat them.
41523
41524 2007-03-23  Eric Blake  <ebb9@byu.net>
41525
41526         * lib/version-etc.c (version_etc_va): Update license wording to
41527         be more concise.  Recommended by Richard Stallman.
41528
41529 2007-03-22  Bruno Haible  <bruno@clisp.org>
41530
41531         * lib/poll.c (MSG_PEEK): New fallback definition.
41532
41533 2007-03-22  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41536         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41537         (main): Update.
41538         Fixes a compilation error on BeOS.
41539
41540 2007-03-22  Bruno Haible  <bruno@clisp.org>
41541
41542         * modules/frexpl-tests: New file.
41543         * tests/test-frexpl.c: New file.
41544
41545         * modules/frexpl: New file.
41546         * m4/frexpl.m4: New file.
41547         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41548         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41550         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41551         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41552         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41553
41554 2007-03-22  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/frexpl.c: Share code with lib/frexp.c.
41557         * modules/mathl (Files): Add lib/frexp.c.
41558         (Depends-on): Add isnanl-nolibm.
41559
41560 2007-03-22  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/printf-frexp (Files): Add m4/frexp.m4.
41563         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41564         only if the found frexp function actually works.
41565
41566 2007-03-22  Bruno Haible  <bruno@clisp.org>
41567
41568         * lib/frexp.c: Remove older implementation that uses divisions.
41569
41570 2007-03-21  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/frexp-tests: New file.
41573         * tests/test-frexp.c: New file.
41574
41575         * modules/frexp: New file.
41576         * lib/frexp.c: New file.
41577         * m4/frexp.m4: New file.
41578         * lib/math_.h (frexp): New declaration.
41579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41580         REPLACE_FREXP.
41581         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41582
41583 2007-03-21  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/isnanl-tests: New file.
41586         * tests/test-isnanl.c: New file.
41587
41588         * modules/isnanl: New file.
41589         * lib/isnanl.h: New file.
41590         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41591         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41592         gl_FUNC_ISNANL_WORKS.
41593         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41594         New macros.
41595
41596 2007-03-21  Bruno Haible  <bruno@clisp.org>
41597
41598         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41599         lib/isnanl.h.
41600         (Include): Update.
41601         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41602         * lib/vasnprintf.c: Update.
41603         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41604         tests/test-isnanl.h, remove tests/test-isnanl.c.
41605         (Makefile.am): Update.
41606         * tests/test-isnanl-nolibm.c: New file.
41607         * tests/test-isnanl.h: New file.
41608         * tests/test-isnanl.c: Remove file.
41609
41610 2007-03-21  Jim Meyering  <jim@meyering.net>
41611
41612         When trying to open ".", treat ESTALE like EACCES.
41613         * lib/savewd.c (savewd_save): Resort to forking not just upon
41614         failure with EACCES, but also when errno is ESTALE.
41615
41616 2007-03-20  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41619         Needed on AIX 5.1. Reported by Matthew Woehlke.
41620
41621 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41622
41623         Suggestions by Bruno Haible:
41624         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41625         our own.
41626         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41627         * modules/acl (Depends-on): Add gettext.
41628
41629 2007-03-19  Bruno Haible  <bruno@clisp.org>
41630
41631         * modules/iconvme: Remove file.
41632         * lib/iconvme.h: Remove file.
41633         * lib/iconvme.c: Remove file.
41634         * m4/iconvme.m4: Remove file.
41635
41636 2007-03-19  Bruno Haible  <bruno@clisp.org>
41637
41638         * doc/relocatable-maint.texi: Break long shell script line.
41639         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41640
41641 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41642
41643         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41644         handle file_has_acl.
41645         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41646         * lib/acl.c: Move header inclusions and related macro defns into
41647         lib/acl-internal.h.
41648         (S_ISLNK): Remove defn, since that's now done for us.
41649         (file_has_acl): Move to lib/file-has-acl.c.
41650         Call acl_trivial if available.  This is the crucial part of the fix.
41651         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41652         shared within the library.  Rewrite a bit, partly to make it compatible
41653         with the GNU coding style.
41654         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41655         Remove unnecessary double-quotes.
41656         Don't test for acl_to_text; the build will catch that.
41657         Replace acl_entries if it doesn't exist and it is needed.
41658         Check for -lsec and acl_trivial (as used on Solaris 10).
41659         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41660         lib/file-has-acl.c.
41661         (Depends-on): Add sys_stat, for S_ISLNK.
41662
41663 2007-03-19  Ben Pfaff  <blp@gnu.org>
41664
41665         * doc/gnulib.texi: Fix typos.
41666         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41667
41668 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41669
41670         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41671         If size is zero here, buf must be zero.
41672
41673 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41674
41675         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41676         <bruno@clisp.org>.
41677
41678 2007-03-18  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41681         Suggested by Eric Blake.
41682
41683 2007-03-18  Ben Pfaff  <blp@gnu.org>
41684
41685         * doc/relocatable.texi: Recommend using as prefix a directory
41686         that does not exist and will never be created.  Based on
41687         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41688         and others.
41689
41690 2007-03-17  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/fchownat.c: Include lchown.h.
41693
41694 2007-03-17  Bruno Haible  <bruno@clisp.org>
41695
41696         Fix endless loop when the given allocated size was > INT_MAX.
41697         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41698         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41699         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41700         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41701         * lib/sprintf.c (sprintf): Likewise.
41702
41703 2007-03-17  Bruno Haible  <bruno@clisp.org>
41704
41705         * tests/test-argp-2.sh (func_compare): Output a context diff.
41706
41707 2007-03-17  Bruno Haible  <bruno@clisp.org>
41708
41709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41710         locale's decimal-point character.
41711
41712 2007-03-17  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41715         before comparing it. Needed because on some platforms (e.g. x86) a
41716         'long double' occupies less bytes than sizeof (long double).
41717
41718 2007-03-17  Bruno Haible  <bruno@clisp.org>
41719
41720         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41721         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41722         * tests/test-getaddrinfo.c (simple): Likewise.
41723         * tests/test-read-file.c (main): Likewise.
41724
41725 2007-03-17  Bruno Haible  <bruno@clisp.org>
41726
41727         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41728
41729 2007-03-17  Bruno Haible  <bruno@clisp.org>
41730
41731         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41732         unused variable.
41733
41734 2007-03-17  Bruno Haible  <bruno@clisp.org>
41735
41736         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41737         * tests/test-c-strncasecmp.c: Likewise.
41738
41739 2007-03-17  Bruno Haible  <bruno@clisp.org>
41740
41741         * modules/stdlib (Depends-on): Add unistd.
41742         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41743         Needed for MacOS X 10.3.
41744
41745 2007-03-17  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41748
41749 2007-03-17  Bruno Haible  <bruno@clisp.org>
41750
41751         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41752
41753 2007-03-17  Bruno Haible  <bruno@clisp.org>
41754
41755         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41756         to reflect files copied from gnulib (with or without modifications).
41757         Suggested by Jim Meyering.
41758
41759 2007-03-17  Eric Blake  <ebb9@byu.net>
41760
41761         * NEWS: Document stdlib change from 2007-02-18.
41762
41763 2007-03-17  Jim Meyering  <jim@meyering.net>
41764
41765         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41766         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41767         someone uses a name containing shell meta-characters.
41768         Reported by Alfred M. Szmidt.
41769
41770         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41771
41772 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41773
41774         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41775         and copy gettext configuration files only if configure.ac contains
41776         a use of AM_GNU_GETTEXT_VERSION.
41777
41778 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41779
41780         * build-aux/bootstrap (gnulib_name): New variable.
41781         (gnulib_tool_options): Use it.
41782
41783 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41784
41785         * tests/test-des.c: Use new namespace.
41786
41787 2007-03-15  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41790         Reported by James Youngman <jay@gnu.org>.
41791
41792 2007-03-15  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41795         declared prototype. Needed with cc on OSF/1 5.1.
41796
41797 2007-03-15  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41800         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41801         (struct gl_list_implementation): Add dispose_fn argument to the
41802         'create_empty', 'create' methods.
41803         (struct gl_list_impl_base): Add field 'dispose_fn'.
41804         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41805         argument.
41806         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41807         dispose_fn argument.
41808         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41809         dispose_fn on the dropped values.
41810         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41811         dispose_fn argument.
41812         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41813         dropped values.
41814         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41815         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41816         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41817         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41818         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41819         argument.
41820         (gl_tree_list_free): Call dispose_fn on the dropped values.
41821         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41822         the dropped values.
41823         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41824         Add dispose_fn argument.
41825         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41826         Call dispose_fn on the dropped values.
41827         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41828         Add dispose_fn argument.
41829         (gl_sublist_create): Initialize the 'dispose_fn' field.
41830         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41831         * tests/test-array_list.c (main): Update.
41832         * tests/test-carray_list.c (main): Update.
41833         * tests/test-avltree_list.c (main): Update.
41834         * tests/test-rbtree_list.c (main): Update.
41835         * tests/test-avltreehash_list.c (main): Update.
41836         * tests/test-rbtreehash_list.c (main): Update.
41837         * tests/test-linked_list.c (main): Update.
41838         * tests/test-linkedhash_list.c (main): Update.
41839         * tests/test-array_oset.c (main): Update.
41840
41841 2007-03-15  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41844         (gl_oset_create_empty): Add dispose_fn argument.
41845         (struct gl_oset_implementation): Add dispose_fn argument to
41846         'create_empty' method.
41847         (struct gl_oset_impl_base): Add dispose_fn field.
41848         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
41849         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
41850         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
41851         values.
41852         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
41853         (gl_tree_oset_free): Call dispose_fn on the dropped values.
41854         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41855         dropped value.
41856         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
41857         dropped value.
41858         * tests/test-array_oset.c (main): Update.
41859         * tests/test-avltree_oset.c (main): Update.
41860         * tests/test-rbtree_oset.c (main): Update.
41861         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
41862
41863 2007-03-13  Bruno Haible  <bruno@clisp.org>
41864
41865         * tests/test-stdbool.c (i): Update after last patch.
41866
41867 2007-03-12  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/quotearg.c: Include <wctype.h> early, before the definition of
41870         the iswprint macro. Needed on Solaris 2.5.1.
41871
41872 2007-03-12  Bruno Haible  <bruno@clisp.org>
41873
41874         * tests/test-printf-frexp.c (main): Declare x as volatile.
41875
41876 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41877
41878         * doc/gnulib.texi (Build robot for gnulib): New section.
41879
41880 2007-03-12  Jim Meyering  <jim@meyering.net>
41881
41882         * build-aux/bootstrap: New file.
41883         * build-aux/bootstrap.conf: New file, from coreutils.
41884
41885 2007-03-11  Bruno Haible  <bruno@clisp.org>
41886
41887         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
41888
41889 2007-03-12  Simon Josefsson  <simon@josefsson.org>
41890
41891         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
41892         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
41893         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
41894
41895 2007-03-11  Bruno Haible  <bruno@clisp.org>
41896
41897         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
41898         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
41899
41900 2007-03-11  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
41903         formula. Needed for SunPRO C 5.0.
41904
41905 2007-03-11  Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/long-options (Depends-on): Add getopt.
41908
41909 2007-03-11  Bruno Haible  <bruno@clisp.org>
41910
41911         * modules/modechange (Depends-on): Add stdbool.
41912
41913 2007-03-11  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/i-ring (Depends-on): Add stdbool.
41916
41917 2007-03-11  Bruno Haible  <bruno@clisp.org>
41918
41919         * modules/gc-des (Depends-on): Add stdbool.
41920
41921 2007-03-11  Bruno Haible  <bruno@clisp.org>
41922
41923         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
41924
41925 2007-03-11  Bruno Haible  <bruno@clisp.org>
41926
41927         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
41928
41929 2007-03-11  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
41932
41933 2007-03-11  Bruno Haible  <bruno@clisp.org>
41934
41935         * lib/vasnprintf.c (sprintf): Undefine.
41936
41937 2007-03-11  Bruno Haible  <bruno@clisp.org>
41938
41939         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
41940         initializers in SunPRO C and Compaq C compilers.
41941
41942 2007-03-11  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
41945         decrementing code ANSI C compliant.
41946
41947 2007-03-11  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
41950         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
41951
41952 2007-03-11  Bruno Haible  <bruno@clisp.org>
41953
41954         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
41955         <stdbool.h> substitute doesn't pass.
41956
41957 2007-03-11  Bruno Haible  <bruno@clisp.org>
41958
41959         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
41960
41961 2007-03-11  Bruno Haible  <bruno@clisp.org>
41962
41963         * gnulib-tool (func_create_megatestdir): Create also an autobuild
41964         script, for submission to autobuild.josefsson.org.
41965
41966 2007-03-10  Bruno Haible  <bruno@clisp.org>
41967
41968         * modules/canonicalize-lgpl-tests: New file.
41969         * tests/test-canonicalize-lgpl.sh: New file.
41970         * tests/test-canonicalize-lgpl.c: New file.
41971
41972         * modules/c-strcase-tests: New file.
41973         * tests/test-c-strcase.sh: New file.
41974         * tests/test-c-strcasecmp.c: New file.
41975         * tests/test-c-strncasecmp.c: New file.
41976
41977         * modules/atexit-tests: New file.
41978         * tests/test-atexit.sh: New file.
41979         * tests/test-atexit.c: New file.
41980
41981 2007-03-10  Bruno Haible  <bruno@clisp.org>
41982
41983         * tests/test-binary-io.sh: Use temporary filenames that are not so
41984         likely to clash with those of other tests (in a parallel make).
41985         * tests/test-binary-io.c: Likewise.
41986
41987 2007-03-10  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
41990         fallback; use #error instead.
41991         Suggested by Simon Josefsson.
41992
41993 2007-03-10  Bruno Haible  <bruno@clisp.org>
41994
41995         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
41996         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
41997         first and the last.
41998
41999 2007-03-10  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42002
42003 2007-03-10  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42006         "make distcheck".
42007         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42008         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42009         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42010
42011 2007-03-10  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42014         variable.
42015         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42016         variable.
42017
42018 2007-03-09  Eric Blake  <ebb9@byu.net>
42019         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42020
42021         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42022         types are not being provided by gnulib.
42023         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42024         types are supported.
42025
42026 2007-03-10  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/stdio_.h (__attribute__): New macro.
42029         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42030         vsprintf): Specify __attribute__ __format__ for GCC.
42031         Suggested by Eric Blake.
42032
42033 2007-03-09  Bruno Haible  <bruno@clisp.org>
42034
42035         * modules/printf-posix-tests: New file.
42036         * tests/test-printf-posix.sh: New file.
42037         * tests/test-printf-posix.c: New file.
42038
42039         * modules/printf-posix: New file.
42040         * lib/printf.c: New file.
42041         * m4/printf-posix-rpl.m4: New file.
42042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42043         REPLACE_PRINTF.
42044         * lib/stdio_.h (printf): New declaration.
42045         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42046         ____strfmon____): New macros.
42047         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42048         REPLACE_PRINTF.
42049
42050 2007-03-09  Bruno Haible  <bruno@clisp.org>
42051
42052         * tests/test-vasnprintf-posix2.sh: New file.
42053         * tests/test-vasnprintf-posix2.c: New file.
42054         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42055         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42056         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42057
42058         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42059         a locale dependent decimal point, rather than always '.'.
42060
42061 2007-03-09  Eric Blake  <ebb9@byu.net>
42062
42063         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42064         spite of platforms like Tandem/NSK that define it to -1.
42065
42066 2007-03-08  Bruno Haible  <bruno@clisp.org>
42067
42068         * modules/vprintf-posix-tests: New file.
42069         * tests/test-vprintf-posix.sh: New file.
42070         * tests/test-vprintf-posix.c: New file.
42071         * tests/test-printf-posix.h: New file.
42072
42073         * modules/vprintf-posix: New file.
42074         * lib/vprintf.c: New file.
42075         * m4/vprintf-posix.m4: New file.
42076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42077         REPLACE_VPRINTF.
42078         * lib/stdio_.h (vprintf): New declaration.
42079         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42080         REPLACE_VPRINTF.
42081
42082 2007-03-08  Bruno Haible  <bruno@clisp.org>
42083
42084         * modules/fprintf-posix-tests: New file.
42085         * tests/test-fprintf-posix.sh: New file.
42086         * tests/test-fprintf-posix.c: New file.
42087
42088         * modules/fprintf-posix: New file.
42089         * lib/fprintf.c: New file.
42090         * m4/fprintf-posix.m4: New file.
42091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42092         REPLACE_FPRINTF.
42093         * lib/stdio_.h (fprintf): New declaration.
42094         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42095         REPLACE_FPRINTF.
42096
42097 2007-03-08  Bruno Haible  <bruno@clisp.org>
42098
42099         * modules/vfprintf-posix-tests: New file.
42100         * tests/test-vfprintf-posix.sh: New file.
42101         * tests/test-vfprintf-posix.c: New file.
42102         * tests/test-fprintf-posix.h: New file.
42103         * tests/test-fprintf-posix.out: New file.
42104
42105         * modules/vfprintf-posix: New file.
42106         * lib/vfprintf.c: New file.
42107         * m4/vfprintf-posix.m4: New file.
42108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42109         REPLACE_VFPRINTF.
42110         * lib/stdio_.h (vfprintf): New declaration.
42111         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42112         REPLACE_VFPRINTF.
42113
42114 2007-03-08  Bruno Haible  <bruno@clisp.org>
42115
42116         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42117
42118 2007-03-08  Bruno Haible  <bruno@clisp.org>
42119
42120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42121         instead of 'expr' invocations.
42122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42126         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42127         Suggested by Paul Eggert.
42128
42129 2007-03-08  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/fseterr-tests: New file.
42132         * tests/test-fseterr.c: New file.
42133
42134         * modules/fseterr: New file.
42135         * lib/fseterr.h: New file.
42136         * lib/fseterr.c: New file.
42137
42138 2007-03-08  Bruno Haible  <bruno@clisp.org>
42139
42140         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42141         * lib/getopt_.h: Likewise.
42142         * lib/mbswidth.h: Likewise.
42143         * lib/setenv.h: Likewise.
42144         * lib/vasnprintf.h: Likewise.
42145         * lib/vasprintf.h: Likewise.
42146         * lib/verror.h: Likewise.
42147         * lib/xsetenv.h: Likewise.
42148         * lib/xvasprintf.h: Likewise.
42149
42150 2007-03-08  Jim Meyering  <jim@meyering.net>
42151
42152         * users.txt: Add parted.
42153
42154         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42155
42156 2007-03-07  Bruno Haible  <bruno@clisp.org>
42157
42158         * m4/printf.m4: Make the shell script snippets copy&pastable.
42159
42160 2007-03-02  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/netinet_in_.h: New file.
42163         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42164         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42165         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42166         (Depends-on): Add absolute-header.
42167         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42168         into netinet/in.h.
42169
42170 2007-03-03  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/sys_select_.h: New file.
42173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42174         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42175         * modules/sys_select (Files): Add lib/sys_select_.h.
42176         (Depends-on): Add absolute-header.
42177         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42178         into sys/select.h.
42179
42180 2007-03-02  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42183         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42184         values.
42185         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42186         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42187         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42188         * modules/sys_socket (Depends-on): Add absolute-header.
42189         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42190         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42191         (Include): Remove requirement of inclusion of <sys/types.h>.
42192
42193 2007-03-02  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/byteswap_.h (bswap_32): Fix formula.
42196
42197 2007-03-06  Bruno Haible  <bruno@clisp.org>
42198
42199         * modules/sprintf-posix-tests: New file.
42200         * tests/test-sprintf-posix.c: New file.
42201
42202         * modules/sprintf-posix: New file.
42203         * lib/sprintf.c: New file.
42204         * m4/sprintf-posix.m4: New file.
42205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42206         REPLACE_SPRINTF.
42207         * lib/stdio_.h (sprintf): New declaration.
42208         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42209         REPLACE_SPRINTF.
42210
42211 2007-03-06  Bruno Haible  <bruno@clisp.org>
42212
42213         * modules/vsprintf-posix-tests: New file.
42214         * tests/test-vsprintf-posix.c: New file.
42215         * tests/test-sprintf-posix.h: New file.
42216
42217         * modules/vsprintf-posix: New file.
42218         * lib/vsprintf.c: New file.
42219         * m4/vsprintf-posix.m4: New file.
42220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42221         REPLACE_VSPRINTF.
42222         * lib/stdio_.h (vsprintf): New declaration.
42223         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42224         REPLACE_VSPRINTF.
42225
42226 2007-03-06  Bruno Haible  <bruno@clisp.org>
42227
42228         * modules/vsnprintf (Depend-on): Remove minmax.
42229
42230 2007-03-06  Bruno Haible  <bruno@clisp.org>
42231
42232         * modules/snprintf-posix-tests: New file.
42233         * tests/test-snprintf-posix.c: New file.
42234
42235         * modules/snprintf-posix: New file.
42236         * m4/snprintf-posix.m4: New file.
42237         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42238         gl_FUNC_SNPRINTF.
42239         (gl_FUNC_SNPRINTF): Invoke it.
42240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42241         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42242         is set.
42243         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42244
42245 2007-03-06  Bruno Haible  <bruno@clisp.org>
42246
42247         * modules/vsnprintf-posix-tests: New file.
42248         * tests/test-vsnprintf-posix.c: New file.
42249         * tests/test-snprintf-posix.h: New file.
42250
42251         * modules/vsnprintf-posix: New file.
42252         * m4/vsnprintf-posix.m4: New file.
42253         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42254         gl_FUNC_VSNPRINTF.
42255         (gl_FUNC_VSNPRINTF): Invoke it.
42256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42257         * lib/stdio_.h (vsnprintf): Define as a replacement if
42258         REPLACE_VSNPRINTF is set.
42259         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42260
42261 2007-03-06  Bruno Haible  <bruno@clisp.org>
42262
42263         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42265
42266 2007-03-06  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42269         (asinl): Declare also if HAVE_DECL_ASINL is set.
42270         (atanl): Declare also if HAVE_DECL_ATANL is set.
42271         (ceill): Declare also if HAVE_DECL_CEILL is set.
42272         (cosl): Declare also if HAVE_DECL_COSL is set.
42273         (expl): Declare also if HAVE_DECL_EXPL is set.
42274         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42275         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42276         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42277         (logl): Declare also if HAVE_DECL_LOGL is set.
42278         (sinl): Declare also if HAVE_DECL_SINL is set.
42279         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42280         (tanl): Declare also if HAVE_DECL_TANL is set.
42281         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42284         declaration of frexpl, ldexpl.
42285         * modules/printf-frexpl (Depends-on): Add math.
42286         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42287
42288 2007-03-05  Bruno Haible  <bruno@clisp.org>
42289
42290         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42291         frexpl and ldexpl are declared.
42292         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42293
42294 2007-03-05  Bruno Haible  <bruno@clisp.org>
42295
42296         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42297         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42298
42299 2007-03-05  Bruno Haible  <bruno@clisp.org>
42300
42301         * lib/stdio_.h: Include <stddef.h>.
42302
42303 2007-03-05  Bruno Haible  <bruno@clisp.org>
42304
42305         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42306
42307 2007-03-05  Bruno Haible  <bruno@clisp.org>
42308
42309         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42310         NetBSD 4, from Ralf Wildenhues.
42311
42312 2007-03-04  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/vasprintf.h: Update #if logic for the case when the functions
42315         exist but are overridden.
42316
42317 2007-03-04  Bruno Haible  <bruno@clisp.org>
42318
42319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42320         implementations: glibc-2.4 and MacOS X 10.3.
42321         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42322         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42323         * tests/test-vasprintf-posix.c (test_function): Likewise.
42324
42325 2007-03-04  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/vasprintf-posix-tests: New file.
42328         * tests/test-vasprintf-posix.c: New file.
42329
42330         * modules/vasprintf-posix: New file.
42331         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42332         defined.
42333         * m4/vasprintf-posix.m4: New file.
42334         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42335         gl_FUNC_VASPRINTF.
42336         (gl_FUNC_VASPRINTF): Invoke it.
42337         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42338         here.
42339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42340
42341 2007-03-04  Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42344         REPLACE_GETTIMEOFDAY.
42345         * modules/sys_time (Makefile.am): Likewise.
42346         * m4/sys_time_h.m4: Likewise.
42347         * m4/gettimeofday.m4: Likewise.
42348
42349 2007-03-04  Bruno Haible  <bruno@clisp.org>
42350
42351         * modules/vasnprintf-posix-tests: New file.
42352         * tests/test-vasnprintf-posix.c: New file.
42353
42354         * modules/vasnprintf-posix: New file.
42355         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42356         printf-frexpl.h.
42357         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42358         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42359         REPLACE_VASNPRINTF is defined.
42360         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42361         gl_FUNC_VASNPRINTF.
42362         (gl_FUNC_VASNPRINTF): Invoke it.
42363         * m4/vasnprintf-posix.m4: New file.
42364         * m4/printf.m4: New file.
42365
42366 2007-03-04  Bruno Haible  <bruno@clisp.org>
42367
42368         Compile progreloc.c only if --enable-relocatable is specified.
42369         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42370         if --enable-relocatable was specified.
42371         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42372         lib_SOURCES.
42373
42374 2007-03-04  Jim Meyering  <jim@meyering.net>
42375
42376         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42377         Use it consistently, rather than enumerating errno constants.
42378
42379 2007-03-04  Bruno Haible  <bruno@clisp.org>
42380
42381         * modules/xvasprintf-tests: New file.
42382         * tests/test-xvasprintf.c: New file.
42383
42384         * modules/vasprintf-tests: New file.
42385         * tests/test-vasprintf.c: New file.
42386
42387         * modules/vasnprintf-tests: New file.
42388         * tests/test-vasnprintf.c: New file.
42389
42390         * modules/vsnprintf-tests: New file.
42391         * tests/test-vsnprintf.c: New file.
42392
42393         * modules/snprintf-tests: New file.
42394         * tests/test-snprintf.c: New file.
42395
42396 2007-03-04  Bruno Haible  <bruno@clisp.org>
42397
42398         Compile relocatable.c only if --enable-relocatable is specified.
42399         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42400         gl_RELOCATABLE_LIBRARY.
42401         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42402         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42403         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42404         gl_RELOCATABLE_LIBRARY.
42405         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42406         (Makefile.am): Remove lib_SOURCES.
42407         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42408         gl_RELOCATABLE_LIBRARY.
42409         (Makefile.am): Remove lib_SOURCES.
42410         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42411         always.
42412         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42413         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42414
42415 2007-03-04  Bruno Haible  <bruno@clisp.org>
42416
42417         * modules/argmatch-tests: New file.
42418         * tests/test-argmatch.c: New file.
42419
42420         * tests/test-allocsa.c (main): Halve the number of loop runs.
42421
42422         * modules/alloca-opt-tests: New file.
42423         * tests/test-alloca-opt.c: New file.
42424
42425 2007-03-04  Jim Meyering  <jim@meyering.net>
42426
42427         Work around difference between Linux ACLs and Solaris 10 ZFS.
42428         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42429         for EINVAL.
42430
42431 2007-03-03  Bruno Haible  <bruno@clisp.org>
42432
42433         * modules/relocatable-prog (Depends-on): Add back progreloc's
42434         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42435
42436 2007-03-03  Bruno Haible  <bruno@clisp.org>
42437
42438         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42439         * modules/relocatable-lib: New file.
42440
42441 2007-03-03  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/relocatable-prog: Renamed from modules/relocatable.
42444         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42445
42446 2007-03-03  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42449         m4/relocatable-lib.m4.
42450         (Depends-on): Remove 'relocatable'.
42451         (configure.ac): Add gl_RELOCATABLE_NOP.
42452
42453 2007-03-03  Bruno Haible  <bruno@clisp.org>
42454
42455         * modules/relocatable-prog-wrapper: New file.
42456         * modules/relocatable (Depends-on): Add it. Remove all other
42457         dependencies except progname.
42458         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42459
42460         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42461         (gl_FUNC_STRERROR): Nop.
42462         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42463
42464         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42465         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42466
42467         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42468         (gl_FUNC_READLINK): Update.
42469
42470         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42471
42472 2007-03-03  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42475         * modules/xreadlink (Depends-on): Add unistd.
42476         * modules/xreadlink-with-size (Depends-on): Likewise.
42477
42478 2007-03-03  Bruno Haible  <bruno@clisp.org>
42479
42480         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42481         extracted from gt_FUNC_SETENV.
42482         (gt_FUNC_SETENV): Remove macro.
42483         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42484         remove gt_FUNC_SETENV.
42485
42486 2007-03-03  Bruno Haible  <bruno@clisp.org>
42487
42488         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42489         ENABLE_RELOCATABLE here.
42490         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42491
42492 2007-03-03  Bruno Haible  <bruno@clisp.org>
42493
42494         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42495         * tests/test-rbtreehash_list.c: Include progname.h.
42496         (main): Call set_program_name.
42497
42498         * modules/rbtree-oset-tests (Depends-on): Add progname.
42499         * tests/test-rbtree_oset.c: Include progname.h.
42500         (main): Call set_program_name.
42501
42502         * modules/rbtree-list-tests (Depends-on): Add progname.
42503         * tests/test-rbtree_list.c: Include progname.h.
42504         (main): Call set_program_name.
42505
42506         * modules/linked-list-tests (Depends-on): Add progname.
42507         * tests/test-linked_list.c: Include progname.h.
42508         (main): Call set_program_name.
42509
42510 2007-03-03  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42513         All uses of __restrict changed to _Restrict_.
42514         * lib/glob_.h (__restrict): Remove macro.
42515
42516 2007-03-02  Bruno Haible  <bruno@clisp.org>
42517
42518         * modules/gettext (configure.ac): Require gettext infrastructure
42519         from version 0.16.1.
42520
42521 2007-03-02  Bruno Haible  <bruno@clisp.org>
42522
42523         * modules/linkedhash-list-tests (Depends-on): Add progname.
42524         * tests/test-linkedhash_list.c: Include progname.h.
42525         (main): Call set_program_name.
42526
42527         * modules/carray-list-tests (Depends-on): Add progname.
42528         * tests/test-carray_list.c: Include progname.h.
42529         (main): Call set_program_name.
42530
42531         * modules/avltreehash-list-tests (Depends-on): Add progname.
42532         * tests/test-avltreehash_list.c: Include progname.h.
42533         (main): Call set_program_name.
42534
42535         * modules/avltree-oset-tests (Depends-on): Add progname.
42536         * tests/test-avltree_oset.c: Include progname.h.
42537         (main): Call set_program_name.
42538
42539         * modules/avltree-list-tests (Depends-on): Add progname.
42540         * tests/test-avltree_list.c: Include progname.h.
42541         (main): Call set_program_name.
42542
42543         * modules/array-oset-tests (Depends-on): Add progname.
42544         * tests/test-array_oset.c: Include progname.h.
42545         (main): Call set_program_name.
42546
42547         * modules/array-list-tests (Depends-on): Add progname.
42548         * tests/test-array_list.c: Include progname.h.
42549         (main): Call set_program_name.
42550
42551         * modules/argp-tests (Depends-on): Add progname.
42552         * tests/test-argp.c: Include argp.h first. Include progname.h.
42553         (main): Call set_program_name.
42554
42555 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42556
42557         * doc/gnulib-tool.texi (Initial import): Reword description of
42558         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42559         limited effect even if defined after the first system include.
42560
42561 2007-03-01  Bruno Haible  <bruno@clisp.org>
42562
42563         * build-aux/config.libpath: Update to libtool-1.5.22.
42564         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42565
42566 2007-03-01  Bruno Haible  <bruno@clisp.org>
42567
42568         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42569         foo_CFLAGS.
42570         Reported by Ralf Wildenhues.
42571
42572 2007-03-01  Bruno Haible  <bruno@clisp.org>
42573
42574         * build-aux/install-reloc: Remove object files left over by some
42575         compilers.
42576         Reported by Ralf Wildenhues.
42577
42578 2007-03-01  Bruno Haible  <bruno@clisp.org>
42579
42580         * build-aux/install-reloc: Break long lines.
42581
42582 2007-03-01  Bruno Haible  <bruno@clisp.org>
42583
42584         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42585         Reported by Ralf Wildenhues.
42586
42587 2007-03-01  Bruno Haible  <bruno@clisp.org>
42588
42589         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42590         include ordering constraints.
42591
42592 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42593
42594         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42596         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42597         as another example.
42598         * lib/time_.h: Fix misspelling.
42599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42600         Require gl_HEADER_TIME_H_DEFAULTS.
42601         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42602         * m4/time_r.m4 (gl_TIME_R): Likewise.
42603         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42604
42605 2007-03-01  Bruno Haible  <bruno@clisp.org>
42606
42607         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42608         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42609
42610 2007-03-01  Jim Meyering  <jim@meyering.net>
42611
42612         * modules/xreadlink (Maintainer): Add my name.
42613         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42614
42615 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42616             Bruno Haible  <bruno@clisp.org>
42617
42618         * build-aux/install-reloc: Compile also c-ctype.c.
42619         * build-aux/relocatable.sh.in: New file.
42620         * doc/relocatable.texi: New file.
42621         * doc/relocatable-maint.texi: New file.
42622         * doc/gnulib.texi: Include relocatable-maint.texi.
42623         * lib/progreloc.c: Include unistd.h unconditionally.
42624         * lib/relocwrapper.c: Include unistd.h unconditionally.
42625         Include c-ctype.h.
42626         (add_dotbin): Use c_tolower.
42627         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42628         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42629         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42630         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42631         to m4/relocatable-lib.m4.
42632         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42633         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42634         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42635         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42636         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42637         * modules/relocatable: New file.
42638         * modules/relocatable-lib: New file.
42639         * modules/relocatable-script: New file.
42640
42641 2007-02-28  Bruno Haible  <bruno@clisp.org>
42642
42643         Import --enable-relocatable infrastructure.
42644         * build-aux/config.libpath: New file, from GNU gettext.
42645         * build-aux/install-reloc: New file, from GNU gettext.
42646         * build-aux/reloc-ldflags: New file, from GNU gettext.
42647         * lib/relocatable.h: New file, from GNU gettext.
42648         * lib/relocatable.c: New file, from GNU gettext.
42649         * lib/relocwrapper.c: New file, from GNU gettext.
42650         * m4/relocatable.m4: New file, from GNU gettext.
42651
42652 2007-02-28  Bruno Haible  <bruno@clisp.org>
42653
42654         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42655
42656         * modules/xreadlink: New file, from GNU gettext with modifications.
42657         * lib/xreadlink.c: New file, from GNU gettext.
42658         * lib/xreadlink.h: Add comments.
42659         (xreadlink): New declaration.
42660
42661         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42662         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42663         lib/xreadlink-with-size.c.
42664         (configure.ac): Remove gl_XREADLINK invocation.
42665         (Makefile.am): Augment lib_SOURCES.
42666         * m4/xreadlink.m4: Remove file.
42667         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42668         (xreadlink_with_size): Renamed from xreadink.
42669         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42670         * modules/canonicalize (Depends-on): Replace xreadlink with
42671         xreadlink-with-size.
42672         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42673
42674 2007-02-25  Jim Meyering  <jim@meyering.net>
42675
42676         * build-aux/announce-gen: When complaining about excess arguments,
42677         list them.
42678
42679 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42680
42681         * README: Document signed integer overflow situation more
42682         accurately.
42683
42684 2007-02-25  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42687         'a' or 'A' conversion.
42688
42689 2007-02-25  Bruno Haible  <bruno@clisp.org>
42690
42691         * modules/filename: Renamed from modules/pathname.
42692         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42693         lib/concatpath.c with lib/concat-filename.c.
42694         (Makefile.am): Update.
42695         (Include): Replace pathname.h with filename.h.
42696         * lib/filename.h: Renamed from lib/pathname.h.
42697         (concatenated_filename): Renamed from concatenated_pathname.
42698         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42699         (concatenated_filename): Renamed from concatenated_pathname.
42700         * lib/findprog.c: Include filename.h instead of pathname.h.
42701         (find_in_path): Update.
42702         * lib/javacomp.c: Include filename.h instead of pathname.h.
42703         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42704         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42705         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42706         is_oldgcj_14_13_usable, is_javac_usable): Update.
42707         * lib/javaexec.c: Include filename.h instead of pathname.h.
42708         (execute_java_class): Update.
42709         * modules/findprog: Update.
42710         * modules/javacomp: Update.
42711         * modules/javaexec: Update.
42712         * MODULES.html.sh (File system functions): Add 'filename', remove
42713         'pathname'.
42714
42715 2007-02-25  Bruno Haible  <bruno@clisp.org>
42716
42717         * modules/printf-frexpl-tests: New file.
42718         * tests/test-printf-frexpl.c: New file.
42719
42720         * modules/printf-frexpl: New file.
42721         * lib/printf-frexpl.h: New file.
42722         * lib/printf-frexpl.c: New file.
42723         * m4/printf-frexpl.m4: New file.
42724
42725 2007-02-25  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/printf-frexp-tests: New file.
42728         * tests/test-printf-frexp.c: New file.
42729
42730         * modules/printf-frexp: New file.
42731         * lib/printf-frexp.h: New file.
42732         * lib/printf-frexp.c: New file.
42733         * m4/printf-frexp.m4: New file.
42734
42735 2007-02-25  Bruno Haible  <bruno@clisp.org>
42736
42737         Assume automake >= 1.10 for the tests.
42738         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42739         * modules/arctwo-tests: Likewise.
42740         * modules/argp-tests: Likewise.
42741         * modules/avltree-list-tests: Likewise.
42742         * modules/avltree-oset-tests: Likewise.
42743         * modules/avltreehash-list-tests: Likewise.
42744         * modules/carray-list-tests: Likewise.
42745         * modules/crc-tests: Likewise.
42746         * modules/des-tests: Likewise.
42747         * modules/gc-arcfour-tests: Likewise.
42748         * modules/gc-arctwo-tests: Likewise.
42749         * modules/gc-des-tests: Likewise.
42750         * modules/gc-hmac-md5-tests: Likewise.
42751         * modules/gc-hmac-sha1-tests: Likewise.
42752         * modules/gc-md2-tests: Likewise.
42753         * modules/gc-md4-tests: Likewise.
42754         * modules/gc-md5-tests: Likewise.
42755         * modules/gc-pbkdf2-sha1-tests: Likewise.
42756         * modules/gc-rijndael-tests: Likewise.
42757         * modules/gc-sha1-tests: Likewise.
42758         * modules/gc-tests: Likewise.
42759         * modules/getaddrinfo-tests: Likewise.
42760         * modules/hmac-md5-tests: Likewise.
42761         * modules/hmac-sha1-tests: Likewise.
42762         * modules/linked-list-tests: Likewise.
42763         * modules/linkedhash-list-tests: Likewise.
42764         * modules/lock-tests: Likewise.
42765         * modules/md2-tests: Likewise.
42766         * modules/md4-tests: Likewise.
42767         * modules/md5-tests: Likewise.
42768         * modules/rbtree-list-tests: Likewise.
42769         * modules/rbtree-oset-tests: Likewise.
42770         * modules/rbtreehash-list-tests: Likewise.
42771         * modules/read-file-tests: Likewise.
42772         * modules/rijndael-tests: Likewise.
42773         * modules/stdint-tests: Likewise.
42774         * modules/tls-tests: Likewise.
42775
42776 2007-02-24  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42779         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42780         function; instead check whether isnan with a double argument links.
42781         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42782         function; instead check whether isnan with a 'long double' argument
42783         links.
42784         Reported by Eric Blake <ebb9@byu.net>.
42785
42786 2007-02-24  Bruno Haible  <bruno@clisp.org>
42787
42788         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42789         defined.
42790         * lib/isnanl.c: Remove all code. Just include isnan.c.
42791         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42792
42793 2007-02-25  Jim Meyering  <jim@meyering.net>
42794
42795         Avoid conflicting types for 'unsetenv' on FreeBSD.
42796         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42797         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42798         in stdlib.h.
42799
42800 2007-02-24  Bruno Haible  <bruno@clisp.org>
42801
42802         * modules/isnanl-nolibm-tests: New file.
42803         * tests/test-isnanl.c: New file.
42804
42805         * modules/isnanl-nolibm: New file.
42806         * lib/isnanl.h: New file.
42807         * lib/isnanl.c: New file.
42808         * m4/isnanl.m4: New file.
42809
42810 2007-02-24  Bruno Haible  <bruno@clisp.org>
42811
42812         * modules/isnan-nolibm-tests: New file.
42813         * tests/test-isnan.c: New file.
42814
42815         * modules/isnan-nolibm: New file.
42816         * lib/isnan.h: New file.
42817         * lib/isnan.c: New file.
42818         * m4/isnan.m4: New file.
42819
42820 2007-02-24  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42823         assume that an exponent fits in 20 bits.
42824
42825 2007-02-24  Jim Meyering  <jim@meyering.net>
42826
42827         * m4/regex.m4: Update the description of the configure-time option,
42828         --without-included-regex, to state accurately what the defaults are,
42829         and perhaps to give people an idea why using this option is risky.
42830
42831 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42834         loops on small arguments.  This attempts to avoid the problem
42835         Bruno Haible reported for AIX 4.3.2 in
42836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42837
42838 2007-02-23  Bruno Haible  <bruno@clisp.org>
42839
42840         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42841         Needed for help2man.
42842
42843 2007-02-23  Karl Berry  <karl@gnu.org>
42844
42845         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
42846         exists, foo.h should be cvs-ignored, not committed.
42847
42848 2007-02-23  Eric Blake  <ebb9@byu.net>
42849
42850         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
42851         * lib/stat-time.h (includes): Likewise.
42852         * lib/utimecmp.c (includes): Likewise.
42853         * lib/utimens.h (includes): Likewise.
42854         * lib/getdate.y (includes): Also include "timespec.h" for use
42855         internal to the module.
42856         * modules/utimens (Depends-on): Revert yesterday's patch.
42857         * modules/nanosleep (Depends-on): Add missing dependency.
42858
42859 2007-02-22  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/glob.c: Don't include getlogin_r.h.
42862
42863 2007-02-22  Jim Meyering  <jim@meyering.net>
42864
42865         * modules/utimens (Depends-on): Add timespec, required for
42866         utimens.h's inclusion of timespec.h.
42867
42868 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
42869
42870         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
42871         long unreadable paths in GNU/Linux.  Problem reported by Andreas
42872         Schwab in
42873         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
42874         I'll try to think of a better way to fix the Solaris problem.
42875
42876         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
42877         like glibc; on Solaris 10, it fails with errno == EINVAL.
42878         POSIX says the behavior is unspecified if the first argument is NULL,
42879         so play it safe and never pass NULL to the system getcwd.
42880
42881 2007-02-21  Jim Meyering  <jim@meyering.net>
42882
42883         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
42884         of gettimeofday.  It would conflict with the one now always
42885         provided via sys_time_.h.  Reported by Matthew Woehlke, as
42886         an IRIX 6.5 build failure.
42887
42888 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42889
42890         Minor fixups to port to Solaris 10 with Sun C 5.8.
42891         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
42892         * modules/getcwd (Depends-on): Add dirfd.
42893         * lib/putenv.c (putenv): #undef it.
42894         (rpl_putenv): New decl.
42895         (malloc, free): Include <stdlib.h> rather than prototyping separately.
42896
42897 2007-02-20  Bruno Haible  <bruno@clisp.org>
42898
42899         * modules/stdio-tests: New file.
42900         * tests/test-stdio.c: New file.
42901
42902         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
42903         (Depends-on): Add stdio.
42904         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42905         (Include): Use <stdio.h> instead of vsnprintf.h.
42906         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42907         HAVE_DECL_VSNPRINTF.
42908         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
42909
42910         * modules/snprintf (Files): Remove lib/snprintf.h.
42911         (Depends-on): Add stdio.
42912         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42913         (Include): Use <stdio.h> instead of snprintf.h.
42914         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
42915         HAVE_DECL_SNPRINTF.
42916         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
42917         * lib/getaddrinfo.c: Likewise.
42918
42919         * modules/stdio: New file.
42920         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
42921         * lib/snprintf.h: Remove file.
42922         * lib/vsnprintf.h: Remove file.
42923         * lib/.cppi-disable: Remove snprintf.h.
42924         * m4/stdio_h.m4: New file.
42925         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
42926
42927 2007-02-20  Jim Meyering  <jim@meyering.net>
42928
42929         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
42930         used by e.g., mingw.  From Bruno Haible.
42931
42932 2007-02-19  Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
42935         warnings.
42936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42937
42938 2007-02-19  Bruno Haible  <bruno@clisp.org>
42939
42940         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
42941         from mingw users.
42942
42943 2007-02-19  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
42946         warnings.
42947         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
42948
42949 2007-02-19  Jim Meyering  <jim@meyering.net>
42950
42951         Don't use FD after a successful "fdopendir (fd)".
42952         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
42953         Reset it by calling dirfd on the just-obtained DIR*.
42954
42955         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
42956         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
42957
42958 2007-02-18  Bruno Haible  <bruno@clisp.org>
42959
42960         * lib/readlink.c: Include <unistd.h>.
42961         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
42962         HAVE_READLINK.
42963         * modules/readlink (Depends-on): Add unistd.
42964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42965         (Include): Add <unistd.h>.
42966
42967         * lib/getlogin_r.h: Remove file.
42968         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
42969         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
42970         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
42971         HAVE_DECL_GETLOGIN_R.
42972         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
42973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42974         (Include): Use <unistd.h> instead of getlogin_r.h.
42975
42976         * lib/getcwd.h: Remove file.
42977         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
42978         * lib/xgetcwd.c: Likewise.
42979         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
42980         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
42981         * modules/getcwd (Files): Remove lib/getcwd.h.
42982         (Depends-on): Add unistd.
42983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42984         (Include): Use <unistd.h> instad of getcwd.h.
42985
42986         * lib/ftruncate.c: Include <unistd.h> first.
42987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
42988         Set HAVE_FTRUNCATE.
42989         * modules/ftruncate (Depends-on): Add unistd.
42990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42991
42992         * lib/fchdir.c: Include <unistd.h> first.
42993         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
42994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
42995         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
42996         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42997         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
42998
42999         * lib/dup2.c: Include <unistd.h> first.
43000         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43001         HAVE_DUP2.
43002         * modules/dup2 (Depends-on): Add unistd.
43003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43004
43005         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43006         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43007         REPLACE_CHOWN. Don't define chown as a macro here.
43008         * modules/chown (Depends-on): Add unistd.
43009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43010
43011         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43012         Add definition for GL_LINK_WARNING.
43013         (chown, dup2): New declarations.
43014         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43015         link warning.
43016         (ftruncate): New declaration.
43017         (getcwd): New declaration, taken from old getcwd.h.
43018         (getlogin_r): New declaration, taken from old getlogin_r.h.
43019         (readlink): New declaration.
43020         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43021         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43022         (gl_PREREQ_UNISTD): Remove macro.
43023         (gl_UNISTD_MODULE_INDICATOR): New macro.
43024         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43025         many new variables. Don't set UNISTD_H.
43026         * modules/unistd (Description): Change.
43027         (Depends-on): Add link-warning.
43028         (configure.ac): Update.
43029         (Makefile.am): Create unistd.h always. Substitute many new variables
43030         into it.
43031
43032 2007-02-18  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43035         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43036         HAVE_GETSUBOPT.
43037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43038         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43039         * lib/getsubopt.h: Remove file.
43040         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43041         (Depends-on): Add stdlib.
43042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43043         (Includes): Use <stdlib.h> instead of getsubopt.h.
43044         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43045         Set HAVE_GETSUBOPT.
43046         * lib/getsubopt.c: Don't include getsubopt.h.
43047
43048 2007-02-18  Bruno Haible  <bruno@clisp.org>
43049
43050         * modules/fchdir (Depends-on): Add dup2.
43051
43052 2007-02-18  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/stdlib_.h: Handle glibc's special invocation convention
43055         specially.
43056
43057 2007-02-18  Bruno Haible  <bruno@clisp.org>
43058
43059         * modules/stdlib-tests: New file.
43060         * tests/test-stdlib.c: New file.
43061
43062         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43063         (Depends-on): Add stdlib.
43064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43065         (Includes): Use <stdlib.h> instead of mkstemp.h.
43066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43067         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43068         * lib/mkstemp.c: Don't include mkstemp.h.
43069         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43070         * lib/stdlib--.h: Don't include mkstemp.h.
43071
43072         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43073         (Depends-on): Add stdlib.
43074         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43075         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43076         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43077         HAVE_MKDTEMP.
43078         * lib/mkdtemp.c: Don't include mkdtemp.h.
43079         * lib/clean-temp.c: Don't include mkdtemp.h.
43080
43081         * modules/exit (Files): Remove lib/exit.h.
43082         (Depends-on): Add stdlib.
43083         (Makefile.am): Remove lib_SOURCES.
43084         (Include): Use <stdlib.h> instead of exit.h.
43085         * lib/argmatch.c: Don't include exit.h.
43086         * lib/execute.c: Likewise.
43087         * lib/pagealign_alloc.c: Likewise.
43088         * lib/pipe.c: Likewise.
43089         * lib/wait-process.c: Likewise.
43090         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43091         * lib/exitfail.c: Likewise.
43092         * lib/savewd.c: Likewise.
43093         * lib/xsetenv.c: Likewise.
43094
43095         * modules/stdlib: New file.
43096         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43097         and extra comments about mkstemp().
43098         * lib/exit.h: Remove file.
43099         * lib/mkdtemp.h: Remove file.
43100         * lib/mkstemp.h: Remove file.
43101         * m4/stdlib_h.m4: New file.
43102         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43103
43104 2007-02-18  Bruno Haible  <bruno@clisp.org>
43105
43106         * modules/math-tests: New file.
43107         * tests/test-math.c: New file.
43108
43109         * modules/math: New file.
43110         * modules/mathl (Files): Remove lib/mathl.h.
43111         (Depends-on): Add math.
43112         (Makefile.am): Don't mention mathl.h.
43113         (Include): Use <math.h> instead of mathl.h.
43114         * lib/math_.h: New file.
43115         * lib/mathl.h: Remove file.
43116         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43117         mathl.h.
43118         * lib/asinl.c: Likewise.
43119         * lib/atanl.c: Likewise.
43120         * lib/ceill.c: Likewise.
43121         * lib/cosl.c: Likewise.
43122         * lib/expl.c: Likewise.
43123         * lib/floorl.c: Likewise.
43124         * lib/frexpl.c: Likewise.
43125         * lib/ldexpl.c: Likewise.
43126         * lib/logl.c: Likewise.
43127         * lib/sincosl.c: Likewise.
43128         * lib/sinl.c: Likewise.
43129         * lib/sqrtl.c: Likewise.
43130         * lib/tanl.c: Likewise.
43131         * lib/trigl.c: Likewise.
43132         * m4/math_h.m4: New file.
43133         * MODULES.html.sh (Mathematics): Add math.
43134
43135 2007-02-17  Bruno Haible  <bruno@clisp.org>
43136
43137         * modules/wctype-tests: New file.
43138         * tests/test-wctype.c: New file.
43139
43140         * modules/wchar-tests: New file.
43141         * tests/test-wchar.c: New file.
43142
43143         * modules/unistd-tests: New file.
43144         * tests/test-unistd.c: New file.
43145
43146         * modules/time-tests: New file.
43147         * tests/test-time.c: New file.
43148
43149         * modules/sysexits-tests: New file.
43150         * tests/test-sysexits.c: New file.
43151
43152         * modules/sys_time-tests: New file.
43153         * tests/test-sys_time.c: New file.
43154
43155         * modules/sys_stat-tests: New file.
43156         * tests/test-sys_stat.c: New file.
43157
43158         * modules/sys_socket-tests: New file.
43159         * tests/test-sys_socket.c: New file.
43160
43161         * modules/sys_select-tests: New file.
43162         * tests/test-sys_select.c: New file.
43163
43164         * modules/string-tests: New file.
43165         * tests/test-string.c: New file.
43166
43167         * modules/stdbool-tests: New file.
43168         * tests/test-stdbool.c: New file.
43169
43170         * modules/netinet_in-tests: New file.
43171         * tests/test-netinet_in.c: New file.
43172
43173         * modules/inttypes-tests: New file.
43174         * tests/test-inttypes.c: New file.
43175
43176         * modules/fcntl-tests: New file.
43177         * tests/test-fcntl.c: New file.
43178
43179         * modules/byteswap-tests: New file.
43180         * tests/test-byteswap.c: New file.
43181
43182         * modules/arpa_inet-tests: New file.
43183         * tests/test-arpa_inet.c: New file.
43184
43185 2007-02-17  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43188         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43189         if the corresponding module is not enabled. Emit link warnings if
43190         the function is used nevertheless.
43191         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43192         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43193         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43194         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43195         * modules/inttypes (Depends-on): Add link-warning.
43196         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43197         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43198         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43199         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43200         * modules/imaxdiv (configure.ac): Likewise.
43201         * modules/strtoimax (configure.ac): Likewise.
43202         * modules/strtoumax (configure.ac): Likewise.
43203
43204 2007-02-17  Bruno Haible  <bruno@clisp.org>
43205
43206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43207         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43208         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43209         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43210
43211 2007-02-17  Bruno Haible  <bruno@clisp.org>
43212
43213         * modules/link-warning: New file.
43214         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43215         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43216         * modules/string (Depends-on): Add link-warning.
43217         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43218         string.h.
43219         * MODULES.html.sh (Support for building libraries and executables): Add
43220         link-warning.
43221
43222 2007-02-17  Bruno Haible  <bruno@clisp.org>
43223
43224         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43225         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43226         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43227         long lines.
43228
43229 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43230             Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/tmpfile: New file.
43233         * lib/tmpfile.c: New file.
43234         * m4/tmpfile.m4: New file.
43235         * MODULES.html.sh (func_all_modules): New section "Input/output".
43236
43237 2007-02-15  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43240         (supports_delete_on_close): New function.
43241         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43242
43243 2007-02-14  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/mbspcasecmp-tests: New file.
43246         * tests/test-mbspcasecmp.sh: New file.
43247         * tests/test-mbspcasecmp.c: New file.
43248
43249         New module mbspcasecmp.
43250         * modules/mbspcasecmp: New file.
43251         * lib/mbspcasecmp.c: New file.
43252         * lib/string_.h (strncasecmp): Change warning message.
43253         (mbspcasecmp): New declaration.
43254         * m4/mbspcasecmp.m4: New file.
43255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43256         GNULIB_MBSPCASECMP.
43257         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43258         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43259
43260 2007-02-14  Bruno Haible  <bruno@clisp.org>
43261
43262         * modules/mbsncasecmp-tests: New file.
43263         * tests/test-mbsncasecmp.sh: New file.
43264         * tests/test-mbsncasecmp.c: New file.
43265
43266         New module mbsncasecmp.
43267         * modules/mbsncasecmp: New file.
43268         * lib/mbsncasecmp.c: New file.
43269         * lib/string_.h (mbsncasecmp): New declaration.
43270         * m4/mbsncasecmp.m4: New file.
43271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43272         GNULIB_MBSNCASECMP.
43273         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43274         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43275
43276 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43277
43278         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43279         Verify that it doesn't overlap with our flags.
43280         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43281         do not have the desired effect in multibyte locales; instead, use
43282         mbscasecmp.
43283         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43284         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43285         we don't require GNU fnmatch ourselves (if our users require it, they
43286         should do so explicitly).
43287
43288         Fix regex code so it doesn't rely on strcasecmp.
43289         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43290         Otherwise, include gnulib's langinfo.h.
43291         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43292         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43293         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43294         * modules/regex (FILES): Remove m4/codeset.m4.
43295         (Depends-on): Add localcharset.  Remove strcase.
43296
43297 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43298
43299         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43300         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43301
43302 2007-02-13  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43306
43307 2007-02-12  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43310         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43311         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43312         time warning rather than a link error.
43313
43314 2007-02-12  Bruno Haible  <bruno@clisp.org>
43315
43316         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43317         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43319
43320 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43321
43322         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43323         args, not 2.
43324
43325 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43326
43327         New module 'time', so that apps can include <time.h> as per
43328         POSIX and GNU instead of separate include files like time_r.h
43329         and timegm.h.  This implementation tries out a simpler approach
43330         for replacing decls in standard include files (as compared to
43331         the string module), somewhat as an experiment.
43332
43333         * config/srclist.txt: Comment out mktime.c for now.
43334         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43335         since it doesn't apply any more.  Use generic wording instead.
43336         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43337         'time'.
43338         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43339         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43340         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43341         Don't include <sys/types.h>; no longer needed since we assume C89.
43342         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43343         * lib/strftime.c: Likewise.
43344         * lib/time_r.c: Likewise.
43345         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43346         * lib/nanosleep.c: Include <time.h> first, to check interface.
43347         * lib/strptime.c: Likewise.
43348         * lib/time_r.c: Likewise.
43349         * lib/timegm.c: Likewise.
43350         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43351         needed.
43352         * lib/timegm.c: Don't include timegm.h; no longer needed.
43353         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43354         time.h now handles any problems in that area.
43355         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43356         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43357         that time.h defines struct timespec.
43358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43359         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43360         handles that.
43361         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43362         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43363         needed.  Set REPLACE_LOCALTIME.
43364         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43365         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43366         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43367         nanosleep; time_h.m4 now does that.  Don't require
43368         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43369         module handles this now.
43370         * modules/getdate (Depends-on): Remove timespec.  Add time.
43371         * modules/nanosleep (Depends-on): Likewise.
43372         * modules/stat-time (Depends-on): Likewise.
43373         * modules/nanosleep (Include): Include time.h, not timespec.h.
43374         * modules/strptime (Files): Remove lib/strptime.h.
43375         (Depends-on): Add extensions, time.
43376         (Include): Include time.h, not strptime.h.
43377         * modules/time_r (Files): Remove lib/time_r.h.
43378         (Depends-on): Add time.
43379         (Include): Include time.h, not time_r.h.
43380         * modules/timegm: Likewise.
43381         * modules/timespec (Description): Now does timespec-related decls
43382         of our own, instead of struct timespec itself.
43383         (Depends-on): Add time; remove extensions.
43384         (Maintainer): Add self.
43385         * modules/utimecmp (Depends-on): Add time; remove timespec.
43386         * modules/utimens (Depends-on): Likewise.
43387         * modules/xnanosleep (Depends-on): Likewise.
43388
43389 2007-02-11  Bruno Haible  <bruno@clisp.org>
43390
43391         * lib/c-strstr.c: Include allocsa.h.
43392         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43393         * lib/c-strcasestr.c: Include allocsa.h.
43394         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43395         * lib/strcasestr.c: Include allocsa.h.
43396         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43397         * lib/mbsstr.c: Include allocsa.h.
43398         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43399         allocsa/freesa instead of malloc/free.
43400         * lib/mbscasestr.c: Include allocsa.h.
43401         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43402         allocsa/freesa instead of malloc/free.
43403         * modules/c-strstr (Depends-on): Add allocsa.
43404         * modules/c-strcasestr (Depends-on): Likewise.
43405         * modules/strcasestr (Depends-on): Likewise.
43406         * modules/mbsstr (Depends-on): Likewise.
43407         * modules/mbscasestr (Depends-on): Likewise.
43408
43409 2007-02-11  Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43412
43413         * modules/mbsspn-tests: New file.
43414         * tests/test-mbsspn.sh: New file.
43415         * tests/test-mbsspn.c: New file.
43416
43417 2007-02-11  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43420
43421         * modules/mbspbrk-tests: New file.
43422         * tests/test-mbspbrk.sh: New file.
43423         * tests/test-mbspbrk.c: New file.
43424
43425 2007-02-11  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43428         unneeded cast.
43429
43430         * modules/mbscspn-tests: New file.
43431         * tests/test-mbscspn.sh: New file.
43432         * tests/test-mbscspn.c: New file.
43433
43434 2007-02-11  Bruno Haible  <bruno@clisp.org>
43435
43436         * modules/mbscasecmp-tests: New file.
43437         * tests/test-mbscasecmp.sh: New file.
43438         * tests/test-mbscasecmp.c: New file.
43439
43440 2007-02-11  Bruno Haible  <bruno@clisp.org>
43441
43442         Ensure O(n) worst-case complexity of mbscasestr.
43443         * lib/mbscasestr.c: Include stdbool.h.
43444         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43445         functions.
43446         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43447         the bookkeeping indicates that it's worth it.
43448         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43449
43450         * modules/mbscasestr-tests: New file.
43451         * tests/test-mbscasestr1.c: New file.
43452         * tests/test-mbscasestr2.sh: New file.
43453         * tests/test-mbscasestr2.c: New file.
43454         * tests/test-mbscasestr3.sh: New file.
43455         * tests/test-mbscasestr3.c: New file.
43456         * tests/test-mbscasestr4.sh: New file.
43457         * tests/test-mbscasestr4.c: New file.
43458         * m4/locale-tr.m4: New file.
43459
43460 2007-02-11  Bruno Haible  <bruno@clisp.org>
43461
43462         Ensure O(n) worst-case complexity of mbsstr.
43463         * lib/mbsstr.c: Include stdbool.h.
43464         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43465         functions.
43466         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43467         bookkeeping indicates that it's worth it.
43468         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43469
43470         * modules/mbsstr-tests: New file.
43471         * tests/test-mbsstr1.c: New file.
43472         * tests/test-mbsstr2.sh: New file.
43473         * tests/test-mbsstr2.c: New file.
43474         * tests/test-mbsstr3.sh: New file.
43475         * tests/test-mbsstr3.c: New file.
43476         * m4/locale-fr.m4: New file.
43477
43478 2007-02-11  Bruno Haible  <bruno@clisp.org>
43479
43480         * lib/mbsrchr.c (mbsrchr): Fix bug.
43481
43482         * modules/mbsrchr-tests: New file.
43483         * tests/test-mbsrchr.sh: New file.
43484         * tests/test-mbsrchr.c: New file.
43485
43486 2007-02-11  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/mbschr.c (mbschr): Fix bug.
43489
43490         * modules/mbschr-tests: New file.
43491         * tests/test-mbschr.sh: New file.
43492         * tests/test-mbschr.c: New file.
43493         * m4/locale-zh.m4: New file.
43494
43495 2007-02-11  Bruno Haible  <bruno@clisp.org>
43496
43497         Support for copying multibyte string iterators.
43498         * lib/mbiter.h: Include <string.h>.
43499         (mbiter_multi_copy): New function.
43500         (mbi_copy): New macro.
43501         * lib/mbuiter.h: Include <string.h>.
43502         (mbuiter_multi_copy): New function.
43503         (mbui_copy): New macro.
43504
43505 2007-02-11  Bruno Haible  <bruno@clisp.org>
43506
43507         New module mbslen.
43508         * modules/mbslen: New file.
43509         * lib/mbslen.c: New file.
43510         * lib/string_.h (mbslen): New declaration.
43511         * m4/mbslen.m4: New file.
43512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43513         GNULIB_MBSLEN.
43514         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43515         * MODULES.html.sh (Internationalization functions): Add mbslen.
43516
43517 2007-02-11  Bruno Haible  <bruno@clisp.org>
43518
43519         Ensure O(n) worst-case complexity of strcasestr substitute.
43520         * lib/strcasestr.c: Include stdbool.h.
43521         (knuth_morris_pratt): New function.
43522         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43523         bookkeeping indicates that it's worth it.
43524         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43525
43526         * modules/strcasestr-tests: New file.
43527         * tests/test-strcasestr.c: New file.
43528
43529 2007-02-11  Bruno Haible  <bruno@clisp.org>
43530
43531         Ensure O(n) worst-case complexity of c_strcasestr.
43532         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43533         (knuth_morris_pratt): New function.
43534         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43535         the bookkeeping indicates that it's worth it.
43536         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43537
43538         * modules/c-strcasestr-tests: New file.
43539         * tests/test-c-strcasestr.c: New file.
43540
43541 2007-02-11  Bruno Haible  <bruno@clisp.org>
43542
43543         Ensure O(n) worst-case complexity of c_strstr.
43544         * lib/c-strstr.c: Include stdbool.h, string.h.
43545         (knuth_morris_pratt): New function.
43546         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43547         bookkeeping indicates that it's worth it.
43548         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43549
43550         * lib/c-strstr.c: Complete rewrite for maintainability.
43551
43552         * modules/c-strstr-tests: New file.
43553         * tests/test-c-strstr.c: New file.
43554
43555 2007-02-11  Bruno Haible  <bruno@clisp.org>
43556
43557         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43558         5.2.1 and earlier, whereby \055 was treated just like the range
43559         delimiter '-'.
43560         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43561
43562 2007-02-08  Bruno Haible  <bruno@clisp.org>
43563
43564         * modules/regex (Depends-on): Add stdbool.
43565         Reported by Dalibor Topic <robilad@kaffe.org>.
43566
43567 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43568
43569         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43570         Prefer returning from main to exiting from it.
43571         Remove unnecessary parens after sizeof.
43572
43573 2007-02-05  Bruno Haible  <bruno@clisp.org>
43574
43575         New module mbssep.
43576         * modules/mbssep: New file.
43577         * lib/mbssep.c: New file.
43578         * lib/string_.h (strsep): Add a conditional link warning.
43579         (mbssep): New declaration.
43580         * m4/mbssep.m4: New file.
43581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43582         GNULIB_MBSSEP.
43583         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43584         * MODULES.html.sh (Internationalization functions): Add mbssep.
43585
43586 2007-02-05  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43589         Optimize search in case of 1 delimiter.
43590
43591 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43592
43593         * lib/acl.h: Include sys/types.h before sys/acl.h.
43594
43595 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43596
43597         Merge upstream fix for glibc bugzilla #3957:
43598
43599         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43600
43601         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43602         bit for RE_HAT_LISTS_NOT_NEWLINE.
43603         (build_charclass_op): Remove bogus comment.
43604
43605 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43606
43607         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43608
43609 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43610
43611         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43612         * lib/memmem.c [!defined _LIBC]: Include config.h.
43613
43614 2007-02-04  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43617         warning message.
43618
43619 2007-02-04  Bruno Haible  <bruno@clisp.org>
43620
43621         New module mbstok_r.
43622         * modules/mbstok_r: New file.
43623         * lib/mbstok_r.c: New file.
43624         * lib/string_.h (strtok_r): Change argument names to match the
43625         comments. Add a conditional link warning.
43626         (mbstok_r): New declaration.
43627         * m4/mbstok_r.m4: New file.
43628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43629         GNULIB_MBSTOK_R.
43630         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43631         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43632
43633 2007-02-04  Bruno Haible  <bruno@clisp.org>
43634
43635         New module mbsspn.
43636         * modules/mbsspn: New file.
43637         * lib/mbsspn.c: New file.
43638         * lib/string_.h (strspn): Add a conditional link warning.
43639         (mbsspn): New declaration.
43640         * m4/mbsspn.m4: New file.
43641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43642         GNULIB_MBSSPN.
43643         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43644         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43645
43646 2007-02-04  Bruno Haible  <bruno@clisp.org>
43647
43648         New module mbspbrk.
43649         * modules/mbspbrk: New file.
43650         * lib/mbspbrk.c: New file.
43651         * lib/string_.h (strpbrk): Add a conditional link warning.
43652         (mbspbrk): New declaration.
43653         * m4/mbspbrk.m4: New file.
43654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43655         GNULIB_MBSPBRK.
43656         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43657         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43658
43659 2007-02-04  Bruno Haible  <bruno@clisp.org>
43660
43661         New module mbscspn.
43662         * modules/mbscspn: New file.
43663         * lib/mbscspn.c: New file.
43664         * lib/string_.h (strcspn): Add a conditional link warning.
43665         (mbscspn): New declaration.
43666         * m4/mbscspn.m4: New file.
43667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43668         GNULIB_MBSCSPN.
43669         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43670         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43671
43672 2007-02-04  Bruno Haible  <bruno@clisp.org>
43673
43674         New module mbscasestr, reduced goal of strcasestr.
43675         * modules/mbscasestr: New file.
43676         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43677         (mbscasestr): Renamed from strcasestr.
43678         * lib/strcasestr.c: Don't include mbuiter.h.
43679         (strcasestr): Remove support for multibyte locales.
43680         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43681         Change the conditional link warning.
43682         (mbscasestr): New declaration.
43683         * m4/mbscasestr.m4: New file.
43684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43685         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43686         REPLACE_STRCASESTR.
43687         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43689         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43690         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43691         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43692         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43693         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43694         (Depends-on): Remove mbuiter.
43695         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43696
43697 2007-02-04  Bruno Haible  <bruno@clisp.org>
43698
43699         Simplify handling of strncasecmp.
43700         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43701         the conditional link warning.
43702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43703         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43704         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43705         * modules/strcase (configure.ac): Don't invoke
43706         gl_STRING_MODULE_INDICATOR.
43707         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43708
43709 2007-02-04  Bruno Haible  <bruno@clisp.org>
43710
43711         New module mbscasecmp, reduced goal of strcasecmp.
43712         * modules/mbscasecmp: New file.
43713         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43714         (mbscasecmp): Renamed from strcasecmp.
43715         * lib/strcasecmp.c: Don't include mbuiter.h.
43716         (strcasecmp): Remove support for multibyte locales.
43717         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43718         Change the conditional link warning.
43719         (mbscasecmp): New declaration.
43720         * m4/mbscasecmp.m4: New file.
43721         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43722         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43723         REPLACE_STRCASECMP.
43724         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43726         GNULIB_MBSCASECMP.
43727         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43728         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43729         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43730         (Depends-on): Remove mbuiter.
43731         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43732
43733 2007-02-04  Bruno Haible  <bruno@clisp.org>
43734
43735         New module mbsstr. Remove module strstr.
43736         * modules/mbsstr: New file.
43737         * modules/strstr: Remove file.
43738         * lib/mbsstr.c: Renamed from lib/strstr.c.
43739         (mbsstr): Renamed from strstr.
43740         * lib/string_.h (strstr): Remove declaration. Change the conditional
43741         link warning.
43742         (mbsstr): New declaration.
43743         * m4/mbsstr.m4: New file.
43744         * m4/strstr.m4: Remove file.
43745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43746         REPLACE_STRSTR.
43747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43748         Don't initialize GNULIB_STRSTR.
43749         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43750         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43751         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43752         (Support for systems lacking ANSI C 89): Remove strstr.
43753
43754 2007-02-04  Bruno Haible  <bruno@clisp.org>
43755
43756         New module mbsrchr.
43757         * modules/mbsrchr: New file.
43758         * lib/mbsrchr.c: New file.
43759         * lib/string_.h (strrchr): Add a conditional link warning.
43760         (mbsrchr): New declaration.
43761         * m4/mbsrchr.m4: New file.
43762         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43763         GNULIB_MBSRCHR.
43764         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43765         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43766
43767 2007-02-04  Bruno Haible  <bruno@clisp.org>
43768
43769         New module mbschr.
43770         * modules/mbschr: New file.
43771         * lib/mbschr.c: New file.
43772         * lib/string_.h (strchr): Add a conditional link warning.
43773         (mbschr): New declaration.
43774         * m4/mbschr.m4: New file.
43775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43776         GNULIB_MBSCHR.
43777         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43778         * MODULES.html.sh (Internationalization functions): Add mbschr.
43779
43780 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43781
43782         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43783
43784         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43785
43786 2007-02-04  Bruno Haible  <bruno@clisp.org>
43787
43788         New module description section 'configure.ac-early'.
43789         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43790         (func_get_autoconf_early_snippet): New function.
43791         (func_import, func_create_testdir): Use it. Remove special cases for
43792         modules 'extensions' and 'lock'.
43793         * modules/extensions (configure.ac-early): Require
43794         gl_USE_SYSTEM_EXTENSIONS.
43795         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43796
43797 2007-02-04  Bruno Haible  <bruno@clisp.org>
43798
43799         Make use of gcj-4.3's -fsource and -ftarget option.
43800         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43801         and if so try the options -fsource and -ftarget.
43802         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43803         source_version, ftarget_option, target_version arguments.
43804         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43805         (is_envjavac_oldgcj_14_14_usable): Renamed from
43806         is_envjavac_gcj_14_14_usable.
43807         (is_envjavac_oldgcj_14_13_usable): Renamed from
43808         is_envjavac_gcj_14_13_usable.
43809         (is_gcj_present): Update.
43810         (is_gcj_43, is_gcj43_usable): New functions.
43811         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43812         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43813         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43814         try the options -fsource and -ftarget.
43815
43816 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43817
43818         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43819         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43820         larger value.
43821
43822 2007-02-03  Jim Meyering  <jim@meyering.net>
43823
43824         Give tools a better chance to allocate space for very large buffers.
43825         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43826
43827         Make pwd and readlink work also when run with an unreadable parent dir
43828         on systems with openat support.
43829         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43830         provided getcwd function, even when we have openat support.
43831         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43832
43833 2007-02-02  Bruno Haible  <bruno@clisp.org>
43834
43835         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43836         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43837         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43838         portability problems if one of these functions is only used on specific
43839         platforms.
43840         Reported by Paul Eggert.
43841
43842 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43843
43844         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
43845         is causing more trouble than it's curing.
43846         * lib/regex_internal.h (__mempcpy): Remove.
43847         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
43848         (and make the code a tad smaller to boot).
43849         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
43850
43851 2007-02-02  Jim Meyering  <jim@meyering.net>
43852
43853         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
43854         section, not in the Makefile.am: one.
43855
43856 2007-02-02  Eric Blake  <ebb9@byu.net>
43857
43858         * lib/strchrnul.c: Always include config.h first.
43859
43860         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
43861         gnulib strstr is not necessary here.
43862
43863 2007-02-02  Simon Josefsson  <simon@josefsson.org>
43864
43865         * m4/socklen.m4: Fix typo.
43866
43867 2007-02-02  Eric Blake  <ebb9@byu.net>
43868
43869         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
43870         * modules/netinet_in (Makefile.am): Likewise.
43871
43872 2007-02-01  Bruno Haible  <bruno@clisp.org>
43873
43874         * lib/string_.h (GL_LINK_WARNING): New macro.
43875         (strcasecmp, strstr, strcasestr): If provided by the system,
43876         conditionally define as a macro that leads to a warning instead of to
43877         an error.
43878         (strncasecmp): Conditionally define as a macro that leads to a warning.
43879
43880 2007-02-01  Karl Berry  <karl@gnu.org>
43881
43882         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
43883
43884 2007-02-01  Bruno Haible  <bruno@clisp.org>
43885
43886         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
43887         renamings.
43888
43889 2007-02-01  Eric Blake  <ebb9@byu.net>
43890
43891         * modules/regex (Depends-on): Revert dependence on mempcpy.
43892         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
43893         module's definition of mempcpy.
43894         Reported by Paul Eggert.
43895
43896 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
43897
43898         * lib/string_.h: If the gnulib module XYZ is not present, undefine
43899         the symbol XYZ before redefining it.  This fixes a problem with
43900         programs that don't use XYZ, when compiled on systems that define
43901         XYZ to something else.
43902
43903 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
43904
43905         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
43906         occurs when "mkdir -m foo" creates a setgid directory that is (1)
43907         writeable to group or other and (2) is intended to have a special
43908         mode bit that is set or cleared.  In such a case, the directory
43909         should be neither group- nor other-writeable until the special
43910         mode bits are right.
43911
43912 2007-01-31  Eric Blake  <ebb9@byu.net>
43913
43914         * modules/mountlist (Depends-on): Add strstr.
43915
43916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
43917         bug.
43918         * modules/string (Makefile.am): Remove redundant replacement.
43919         * modules/regex (Depends-on): Add mempcpy.
43920
43921 2007-01-31  Bruno Haible  <bruno@clisp.org>
43922
43923         New module description field 'Link'.
43924         * gnulib-tool (func_usage): Document --extract-link-directive.
43925         (sed_extract_prog): Recognize 'Link' directive.
43926         (func_get_link_directive): New function.
43927         (func_import): Show summary of link directives.
43928         Handle --extract-link-directive option.
43929         * modules/acl (Link): New section.
43930         * modules/clock-time (Link): New section.
43931         * modules/euidaccess (Link): New section.
43932         * modules/gettext (Link): New section.
43933         * modules/iconv (Link): New section.
43934         * modules/lock (Link): New section.
43935         * modules/nanosleep (Link): New section.
43936         * modules/readline (Link): New section.
43937
43938 2007-01-27  Bruno Haible  <bruno@clisp.org>
43939
43940         Enforce the use of gnulib modules for unportable <string.h> functions.
43941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
43942         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
43943         (gl_HEADER_STRING_H_BODY): Require it.
43944         * lib/string_.h: If the gnulib module XYZ is not present, redefine
43945         the symbol XYZ to one that gives a link error.
43946         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
43947         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
43948         * modules/mempcpy (configure.ac): Likewise.
43949         * modules/memrchr (configure.ac): Likewise.
43950         * modules/stpcpy (configure.ac): Likewise.
43951         * modules/stpncpy (configure.ac): Likewise.
43952         * modules/strcase (configure.ac): Likewise.
43953         * modules/strcasestr (configure.ac): Likewise.
43954         * modules/strchrnul (configure.ac): Likewise.
43955         * modules/strdup (configure.ac): Likewise.
43956         * modules/strndup (configure.ac): Likewise.
43957         * modules/strnlen (configure.ac): Likewise.
43958         * modules/strpbrk (configure.ac): Likewise.
43959         * modules/strsep (configure.ac): Likewise.
43960         * modules/strstr (configure.ac): Likewise.
43961         * modules/strtok_r (configure.ac): Likewise.
43962
43963 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
43964
43965         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
43966
43967 2007-01-30  Jim Meyering  <jim@meyering.net>
43968
43969         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
43970
43971 2007-01-29  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
43974         * lib/execute.c: Likewise.
43975         * lib/pipe.c: Likewise.
43976         * lib/printf-args.h: Likewise.
43977         * lib/printf-args.c: Likewise.
43978         * lib/printf-parse.c: Likewise.
43979         * lib/vasnprintf.c: Likewise.
43980
43981 2007-01-29  Eric Blake  <ebb9@byu.net>
43982
43983         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
43984         declaration.
43985
43986 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43987
43988         * lib/strptime.h (strptime): Use 'restrict' for args where
43989         POSIX requires this.
43990         * lib/strptime.c (strptime): Likewise.
43991         Change license notice from LGPL to GPL, since gnulib-tool will
43992         change this as needed.
43993         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
43994         defined.
43995         Include "strptime.h" first, to check interface.
43996         Do not #undef _LIBC and _NL_CURRENT.
43997         Do not include <stdlib.h>; no longer needed.
43998         Include "time_r.h" and declare ptime_locale_status
43999         only if _LIBC is not defined.
44000         (__P): Remove unused macro.
44001         (match_string): Bring back glibc version, but use it only if _LIBC
44002         is defined.
44003         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44004         Remove unnecessary assertion and abort() call.
44005         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44006         * m4/strptime.m4: Fix serial number comment.
44007         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44008         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44009         (Depends-on): Add time_r.
44010
44011 2007-01-29  Bruno Haible  <bruno@clisp.org>
44012
44013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44014         strptime.
44015         * modules/strptime (Depends-on): Add stdbool.
44016         * lib/strptime.h: Include <time.h> always. Add comments.
44017
44018 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44019
44020         * modules/strptime: New file.
44021         * lib/strptime.h: New file.
44022         * lib/strptime.c: New file.
44023         * m4/strptime.m4: New file.
44024
44025 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44026
44027         * MODULES.html.sh: New module mpsort.
44028         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44029
44030         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44031         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44033         All uses changed.
44034         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44035         All uses changed.
44036         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44037         to _Restrict_.
44038         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44039         the parameter matches the prototype.
44040
44041 2007-01-28  Jim Meyering  <jim@meyering.net>
44042
44043         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44044         sys/time.h here, reverting that part of the previous patch:
44045         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44046
44047 2007-01-28  Bruno Haible  <bruno@clisp.org>
44048
44049         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44050         value of $(SYS_TIME_H).
44051         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44052         remove it conditionally, too. [added by Jim Meyering]
44053         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44054         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44055         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44056         GETTIMEOFDAY_REPLACEMENT to 1.
44057
44058 2007-01-28  Bruno Haible  <bruno@clisp.org>
44059
44060         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44061         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44063         Set UNISTD_H instead of UNISTD_H2.
44064         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44065
44066 2007-01-28  Bruno Haible  <bruno@clisp.org>
44067
44068         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44069         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44070
44071 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44072
44073         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44074         (func_create_testdir): Ensure C locale for `grep' and `tr'
44075         character ranges.
44076         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44077         ACLOCAL_AMFLAGS parsing state machine.
44078
44079 2007-01-27  Bruno Haible  <bruno@clisp.org>
44080
44081         * modules/unistr/base: Update.
44082
44083 2007-01-27  Bruno Haible  <bruno@clisp.org>
44084
44085         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44086         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44087         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44088         modules/unistr/u32-mbtouc.
44089         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44090         * lib/unistr.h: Update.
44091         * lib/linebreak.c: Update.
44092         * modules/unistr/u32-mbtouc: Renamed from
44093         modules/unistr/u32-mbtouc-safe.
44094         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44095         * lib/unistr.h: Update.
44096         * lib/unistr/u32-to-u8.c: Update.
44097         * lib/unistr/u32-to-u16.c: Update.
44098
44099 2007-01-27  Bruno Haible  <bruno@clisp.org>
44100
44101         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44102         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44103         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44104         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44105         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44106         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44107         modules/unistr/u16-mbtouc.
44108         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44109         * lib/unistr.h: Update.
44110         * lib/linebreak.c: Update.
44111         * modules/linebreak: Update.
44112         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44113         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44114         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44115         * modules/unistr/u16-mbtouc: Renamed from
44116         modules/unistr/u16-mbtouc-safe.
44117         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44118         * lib/unistr.h: Update.
44119         * lib/unistr/u16-to-u8.c: Update.
44120         * modules/unistr/u16-to-u8: Update.
44121         * lib/unistr/u16-to-u32.c: Update.
44122         * modules/unistr/u16-to-u32: Update.
44123
44124 2007-01-27  Bruno Haible  <bruno@clisp.org>
44125
44126         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44127         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44128         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44129         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44130         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44131         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44132         modules/unistr/u8-mbtouc.
44133         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44134         * lib/unistr.h: Update.
44135         * lib/striconveh.c: Update.
44136         * modules/striconveh: Update.
44137         * lib/linebreak.c: Update.
44138         * modules/linebreak: Update.
44139         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44140         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44141         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44142         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44143         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44144         * lib/unistr.h: Update.
44145         * lib/striconveh.c: Update.
44146         * modules/striconveh: Update.
44147         * lib/unistr/u8-to-u16.c: Update.
44148         * modules/unistr/u8-to-u16: Update.
44149         * lib/unistr/u8-to-u32.c: Update.
44150         * modules/unistr/u8-to-u32: Update.
44151
44152 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44153
44154         Sync from Libtool.
44155         * lib/argz.c: Do not include strings.h nor memory.h, include
44156         string.h unconditionally.  Patch by Simon Josefsson.
44157
44158 2007-01-27  Bruno Haible  <bruno@clisp.org>
44159
44160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44161         from gl_HEADER_STRING_H_BODY.
44162         (gl_HEADER_STRING_H_BODY): Require it.
44163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44166         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44167         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44168         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44170         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44171         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44172         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44174         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44175         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44176         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44177         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44178
44179 2007-01-27  Bruno Haible  <bruno@clisp.org>
44180
44181         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44182         check_PROGRAMS into noinst_PROGRAMS.
44183         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44184         check_PROGRAMS in this case.
44185         (func_import): Set for_test to false.
44186         (func_create_testdir): Set for_test to true.
44187
44188 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44189             Bruno Haible  <bruno@clisp.org>
44190
44191         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44192         (Depends-on): Add string.
44193         (Includes): Use <string.h> instead of strcasestr.h.
44194         * modules/string (Makefile.am): Also substitute the value of
44195         REPLACE_STRCASESTR.
44196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44197         assume strcasestr is declared in <string.h> not <strings.h>. Also
44198         set REPLACE_STRCASESTR.
44199         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44200         REPLACE_STRCASESTR.
44201         * lib/strcasestr.h: Remove file.
44202         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44203         * lib/string_.h (strcasestr): New declaration.
44204
44205 2007-01-27  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/string_.h: Use 'extern'.
44208
44209 2007-01-27  Jim Meyering  <jim@meyering.net>
44210
44211         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44212         of set-but-not-used local, "q".
44213
44214         * lib/mempcpy.c: Include <config.h> before <string.h>.
44215         This fixes a compilation error on HP-UX, due to the system's
44216         "restrict"-using mempcpy prototype.
44217
44218 2007-01-26  Bruno Haible  <bruno@clisp.org>
44219
44220         Small optimization.
44221         * lib/javacomp.c: Include c-strstr.h.
44222          (is_envjavac_gcj): Use c_strstr instead of strstr.
44223         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44224
44225 2007-01-26  Bruno Haible  <bruno@clisp.org>
44226
44227         * MODULES.html.sh (Unicode string functions): Add the new modules.
44228
44229         * modules/uniconv/u32-strconv-to-locale: New file.
44230         * lib/uniconv/u32-strconv-to-locale.c: New file.
44231
44232         * modules/uniconv/u16-strconv-to-locale: New file.
44233         * lib/uniconv/u16-strconv-to-locale.c: New file.
44234
44235         * modules/uniconv/u8-strconv-to-locale: New file.
44236         * lib/uniconv/u8-strconv-to-locale.c: New file.
44237
44238         * modules/uniconv/u32-strconv-from-locale: New file.
44239         * lib/uniconv/u32-strconv-from-locale.c: New file.
44240
44241         * modules/uniconv/u16-strconv-from-locale: New file.
44242         * lib/uniconv/u16-strconv-from-locale.c: New file.
44243
44244         * modules/uniconv/u8-strconv-from-locale: New file.
44245         * lib/uniconv/u8-strconv-from-locale.c: New file.
44246
44247         * modules/uniconv/u32-strconv-to-enc: New file.
44248         * lib/uniconv/u32-strconv-to-enc.c: New file.
44249         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44250         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44251
44252         * modules/uniconv/u16-strconv-to-enc: New file.
44253         * lib/uniconv/u16-strconv-to-enc.c: New file.
44254         * lib/uniconv/u-strconv-to-enc.h: New file.
44255         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44256         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44257
44258         * modules/uniconv/u8-strconv-to-enc: New file.
44259         * lib/uniconv/u8-strconv-to-enc.c: New file.
44260         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44261         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44262
44263         * modules/uniconv/u32-strconv-from-enc: New file.
44264         * lib/uniconv/u32-strconv-from-enc.c: New file.
44265         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44266         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44267
44268         * modules/uniconv/u16-strconv-from-enc: New file.
44269         * lib/uniconv/u16-strconv-from-enc.c: New file.
44270         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44271         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44272
44273         * modules/uniconv/u8-strconv-from-enc: New file.
44274         * lib/uniconv/u8-strconv-from-enc.c: New file.
44275         * lib/uniconv/u-strconv-from-enc.h: New file.
44276         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44277         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44278
44279         * modules/uniconv/u32-conv-from-enc: New file.
44280         * lib/uniconv/u32-conv-from-enc.c: New file.
44281         * modules/uniconv/u32-conv-from-enc-tests: New file.
44282         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44283
44284         * modules/uniconv/u16-conv-from-enc: New file.
44285         * lib/uniconv/u16-conv-from-enc.c: New file.
44286         * lib/uniconv/u-conv-from-enc.h: New file.
44287         * modules/uniconv/u16-conv-from-enc-tests: New file.
44288         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44289
44290         * modules/uniconv/u8-conv-from-enc: New file.
44291         * lib/uniconv/u8-conv-from-enc.c: New file.
44292         * modules/uniconv/u8-conv-from-enc-tests: New file.
44293         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44294
44295         * modules/uniconv/base: New file.
44296         * lib/uniconv.h: New file.
44297
44298 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         * doc/gnulib-tool.texi (Initial import): Update to match current
44301         behavior with strdup module.
44302         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44303         * lib/memmem.h: Remove; all uses removed.  This is now done
44304         by <string.h>.
44305         * lib/mempcpy.h: Likewise.
44306         * lib/memrchr.h: Likewise.
44307         * lib/stpcpy.h: Likewise.
44308         * lib/stpncpy.h: Likewise.
44309         * lib/strcase.h: Likewise.
44310         * lib/strchrnul.h: Likewise.
44311         * lib/strdup.h: Likewise.
44312         * lib/strndup.h: Likewise.
44313         * lib/strnlen.h: Likewise.
44314         * lib/strpbrk.h: Likewise.
44315         * lib/strsep.h: Likewise.
44316         * lib/strstr.h: Likewise.
44317         * lib/strtok_r.h: Likewise.
44318         * lib/string_.h: New file.
44319         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44320         Rely on <string.h> instead.
44321         * lib/canon-host.c: Likewise.
44322         * lib/chdir-long.c: Likewise.
44323         * lib/concatpath.c: Likewise.
44324         * lib/exclude.c: Likewise.
44325         * lib/fchdir.c: Likewise.
44326         * lib/getaddrinfo.c: Likewise.
44327         * lib/getcwd.c: Likewise.
44328         * lib/getsubopt.c: Likewise.
44329         * lib/glob.c: Likewise.
44330         * lib/hard-locale.c: Likewise.
44331         * lib/iconvme.c: Likewise.
44332         * lib/javacomp.c: Likewise.
44333         * lib/mempcpy.c: Likewise.
44334         * lib/memrchr.c: Likewise.
44335         * lib/regex_internal.h: Likewise.
44336         * lib/stpncpy.c: Likewise.
44337         * lib/strcasecmp.c: Likewise.
44338         * lib/strchrnul.c: Likewise.
44339         * lib/strdup.c: Likewise.
44340         * lib/striconv.c: Likewise.
44341         * lib/striconveh.c: Likewise.
44342         * lib/striconveha.c: Likewise.
44343         * lib/strncasecmp.c: Likewise.
44344         * lib/strndup.c: Likewise.
44345         * lib/strnlen.c: Likewise.
44346         * lib/strsep.c: Likewise.
44347         * lib/strstr.c: Likewise.
44348         * lib/strtok_r.c: Likewise.
44349         * lib/userspec.c: Likewise.
44350         * lib/w32spawn.h: Likewise.
44351         * lib/xstrndup.c: Likewise.
44352         * lib/mountlist.c (strstr): Remove decl.
44353         * m4/string_h.m4: New file.
44354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44355         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44356         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44357         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44358         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44359         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44360         Set REPLACE_STRCASECMP if necessary.
44361         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44362         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44363         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44364         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44365         HAVE_DECL_STRDUP if necessary.
44366         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44367         since gl_FUNC_STRNDUP does that now.
44368         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44369         Check for decl here...
44370         (gl_PREREQ_STRNLEN): ... not here.
44371         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44372         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44373         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44374         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44375         necessary.
44376         * modules/string: New file.
44377         * modules/memmem (Files): Remove special-purpose include file.
44378         (Depends-on): Add string.
44379         (Include): Include <string.h>, not the removed file.
44380         * modules/mempcpy: Likewise.
44381         * modules/memrchr: Likewise.
44382         * modules/stpcpy: Likewise.
44383         * modules/stpncpy: Likewise.
44384         * modules/strcase: Likewise.
44385         * modules/strchrnul: Likewise.
44386         * modules/strdup: Likewise.
44387         * modules/strndup: Likewise.
44388         * modules/strnlen: Likewise.
44389         * modules/strpbrk: Likewise.
44390         * modules/strsep: Likewise.
44391         * modules/strstr: Likewise.
44392         * modules/strtok_r: Likewise.
44393         * tests/test-dirname.c: Don't include "strdup.h", since
44394         <string.h> now suffices.
44395         * tests/test-memmem.c: Don't include "memmem.h", since
44396         <string.h> now suffices.
44397
44398 2007-01-25  Bruno Haible  <bruno@clisp.org>
44399
44400         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44401         *resultp is 0.
44402
44403         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44404         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44405         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44406         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44407
44408         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44409         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44410         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44411         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44412         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44413         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44414
44415 2007-01-24  Bruno Haible  <bruno@clisp.org>
44416
44417         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44418         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44419         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44420         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44421         gl_FUNC_FTS_CORE.
44422         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44423         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44424         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44425         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44426         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44427         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44428         gl_FUNC_FCHOWNAT.
44429         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44430         gl_FUNC_STRFTIME.
44431         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44432         Reported by Ralf Wildenhues.
44433
44434 2007-01-24  Bruno Haible  <bruno@clisp.org>
44435
44436         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44437         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44438         gl_GETADDRINFO.
44439         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44440         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44441         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44442
44443 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44444
44445         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44446         Don't use 'exit'; just return from 'main'.
44447         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44448
44449         * lib/fnmatch_.h: Readjust white space and comments to match
44450         glibc, to avoid spurious diffs.
44451
44452 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44453
44454         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44455         2004-12-01 change by Jakub Jelinek, since this code won't compile
44456         if !LIBC.  Problem reported by Bob Proulx.
44457
44458 2007-01-23  Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/striconveh.c: Include c-strcaseeq.h.
44461         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44462         * modules/striconveh (Depends-on): Add c-strcaseeq.
44463
44464 2007-01-23  Bruno Haible  <bruno@clisp.org>
44465
44466         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44467
44468         * modules/c-strcaseeq: New file.
44469         * lib/c-strcaseeq.h: New file.
44470
44471         * modules/streq: New file.
44472         * lib/streq.h: New file.
44473
44474 2007-01-23  Bruno Haible  <bruno@clisp.org>
44475
44476         * modules/striconveha-tests: New file.
44477         * tests/test-striconveha.c: New file.
44478
44479         * lib/striconveha.h: Include <stdbool.h>.
44480         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44481         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44482         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44483         (mem_iconveha): New function.
44484         (str_iconveha_notranslit): Renamed from str_iconveha.
44485         (str_iconveha): New function.
44486         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44487         c-strcase.
44488
44489 2007-01-23  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44492         encodings without forgiving before trying any encoding with handler.
44493         (str_iconveha): Try all encodings without forgiving before trying any
44494         encoding with handler.
44495
44496 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         Import the following changes from libc.
44499
44500         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44501
44502         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44503
44504         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44505
44506         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44507         normal_bracket label.
44508
44509         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44510
44511         [BZ #361]
44512         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44513         to normal_bracket after fetching the next character.
44514
44515 2007-01-22  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44518         argument.
44519         * lib/striconveh.c (iconv_carefully_1): New function.
44520         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44521         argument.
44522         (str_cd_iconveh): Update.
44523         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44524         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44525         * tests/test-striconveh.c (MAGIC): New macro.
44526         (new_offsets): New function.
44527         (main): Test call with and without offsets.
44528
44529 2007-01-22  Bruno Haible  <bruno@clisp.org>
44530
44531         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44532         * modules/sys_select (Makefile.am): Likewise.
44533         * modules/sys_socket (Makefile.am): Likewise.
44534         * modules/sys_time (Makefile.am): Likewise.
44535
44536 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         * modules/gettimeofday (License): Change from GPL to LGPL, since
44539         gettimeofday is a library function.
44540
44541 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44542
44543         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44544
44545 2007-01-21  Bruno Haible  <bruno@clisp.org>
44546
44547         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44548
44549 2007-01-21  Bruno Haible  <bruno@clisp.org>
44550
44551         * modules/striconveha: New file.
44552         * lib/striconveha.h: New file.
44553         * lib/striconveha.c: New file.
44554         * MODULES.html.sh (Internationalization functions): Add striconveha.
44555         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44556         string.
44557         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44558
44559 2007-01-21  Bruno Haible  <bruno@clisp.org>
44560
44561         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44562         * lib/striconveh.c (str_iconveh): Likewise.
44563
44564 2007-01-21  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/striconveh.h (mem_iconveh): New declaration.
44567         * lib/striconveh.c (mem_iconveh): New function.
44568         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44569
44570 2007-01-21  Bruno Haible  <bruno@clisp.org>
44571
44572         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44573
44574         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44575         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44576         original result buffer.
44577         (str_cd_iconveh): Update.
44578         * tests/test-striconveh.c (main): Update.
44579
44580         * lib/striconv.h (mem_cd_iconv): Change specification.
44581         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44582         result buffer.
44583         (str_cd_iconv): Update.
44584         * tests/test-striconv.c (main): Update.
44585
44586 2007-01-21  Bruno Haible  <bruno@clisp.org>
44587
44588         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44589
44590 2007-01-20  Jim Meyering  <jim@meyering.net>
44591
44592         * lib/userspec.c (parse_with_separator): If a user or group string
44593         starts with "+", skip the corresponding name-to-ID look-up, since
44594         such a look-up must fail: user and group names may not include "+".
44595
44596 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44597
44598         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44599         since we now assume the sys_time module.
44600         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44601         check for sys/time.h; no longer needed.
44602         * modules/poll (Depends-on): Depend on sys_time.
44603
44604 2007-01-18  Bruno Haible  <bruno@clisp.org>
44605
44606         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44607         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44608
44609         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44610         gettimeofday.
44611
44612         * tests/test-gettimeofday.c: Include <time.h>.
44613         (dummy): Remove variable.
44614
44615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44616         gl_HEADER_SYS_TIME_H.
44617         (gl_HEADER_SYS_TIME_H): New macro.
44618
44619         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44620         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44622         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44623         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44625         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44626         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44627         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44628         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44629         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44630
44631         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44632         last change; it caused a compilation error when cross-compiling to
44633         Cygwin.
44634
44635 2007-01-18  Jim Meyering  <jim@meyering.net>
44636
44637         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44638         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44639         than the race-prone "test -d sys || mkdir sys".
44640         (configure.ac): Use AC_PROG_MKDIR_P.
44641         * modules/sys_select: Likewise.
44642         * modules/sys_socket: Likewise.
44643         * modules/sys_time: Likewise.
44644
44645 2007-01-18  Eric Blake  <ebb9@byu.net>
44646
44647         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44648         replace gettimeofday.
44649         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44650         name, to avoid infinite recursion.
44651
44652 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44653
44654         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44655         module sys_time.
44656         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44657         assume timespec.h defines struct timeval.
44658         * lib/settime.c: Likewise.
44659         * lib/utimens.c: Likewise.
44660         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44661         since we now assume the gettimeofday module.
44662         * lib/tempname.c (__gen_tempname): Likewise.
44663         * lib/gettimeofday.h: Remove.
44664         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44665         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44666         Include <time.h>, for 'time()'.
44667         (localtime_buffer_addr): Also use this workaround if
44668         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44669         to simplify the uses.  All uses changed.
44670         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44671         that #undef is inside {}, and 'const' follows type name consistently.
44672         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44673         (gettimeofday): Do not use the maximum possible value for
44674         tv->tv_usec, since that might break usages other than ls.c.
44675         Instead, we'll leave ls.c alone.  This undoes today's patch
44676         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44677         we've never observed the problem but might as well keep the
44678         canary.
44679         * lib/nanosleep.c: Include timespec.h first, for interface check.
44680         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44681         now assume the sys_time module.
44682         * lib/tempname.c: Likewise.
44683         * lib/timespec.h: Likewise.
44684         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44685         needed.
44686         * lib/strftime.c: Likewise.
44687         * lib/timespec.h: Likewise.
44688         * lib/posixtm.c: Include posixtm.h first, for interface check.
44689         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44690         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44691         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44692         * lib/sys_time_.h: New file.
44693         * lib/timespec.h (struct timespec): Use long int, not long.
44694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44695         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44696         Remove obsolescent call to AC_HEADER_TIME.
44697         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44699         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44700         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44701         Likewise.
44702         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44703         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44705         into the sys_time module.  Check for gettimeofday just once.
44706         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44707         for gettimeofday signature to just check the signature.  Merely
44708         compile it, since linking doesn't test signature.  Improve test for
44709         whether gettimeofday.o is actually needed.
44710         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44711         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44712         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44713         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44714         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44715         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44716         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44717         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44718         than worrying about sys/time.h.
44719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44720         Don't bother worrying about TIME_WITH_SYS_TIME.
44721         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44722         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44723         * m4/sys_time_h.m4: New file.
44724         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44725         Don't include sys/time.h.  Return from main rather than exiting.
44726         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44727         all uses changed.
44728         * modules/gethrxtime (Depends-on): Add sys_time.
44729         * modules/gettime (Depends-on): Likewise.
44730         * modules/gettimeofday (Depends-on): Likewise.
44731         * modules/nanosleep (Depends-on): Likewise.
44732         * modules/settime (Depends-on): Likewise.
44733         * modules/tempname (Depends-on): Likewise.
44734         * modules/utimens (Depends-on): Likewise.
44735         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44736         (Include:) Change back to <sys/time.h>.
44737         (Maintainer:) Add self.
44738         * modules/sys_time: New file.
44739         * modules/tempname (Depends-on): Add gettimeofday.
44740         * tests/test-gettimeofday.c: Include <sys/time.h>
44741         rather than gettimeofday.h.
44742
44743 2007-01-17  Bruno Haible  <bruno@clisp.org>
44744
44745         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44746         the license default to GPL.
44747         (func_create_testdir): Don't complain if a module is LGPL and its
44748         tests module depends on GPLed modules.
44749
44750 2007-01-17  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/gettimeofday.c (gettimeofday): Add code for the case
44753         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44754         maximum possible value for tv->tv_usec, rather than the minimum one.
44755
44756 2005-10-08  Martin Lambers  <marlam@marlam.de>
44757 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44758 2007-01-16  Bruno Haible  <bruno@clisp.org>
44759
44760         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44761         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44762         gl_FUNC_GETTIMEOFDAY.
44763         (Include): Add gettimeofday.h.
44764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44765         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44766         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44767         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44768         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44769         * lib/gettimeofday.h: New file.
44770         * lib/gettimeofday.c: Include <sys/timeb.h>.
44771         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44772         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44773         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44774         fall back on time().
44775
44776         * tests/test-gettimeofday.c: New file.
44777         * modules/gettimeofday-tests: New file.
44778
44779 2007-01-16  Eric Blake  <ebb9@byu.net>
44780
44781         * modules/fnmatch (Depends-on): Depend on wchar.
44782         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44783         * m4/fnmatch.m4: Likewise.
44784         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44785         * m4/mbchar.m4: Likewise.
44786         * modules/mbswidth (Depends-on): Depend on wchar.
44787         * lib/mbswidth.c: Assume <wchar.h>.
44788         * m4/mbswidth.m4: Likewise.
44789         * modules/quotearg (Depends-on): Depend on wchar.
44790         * lib/quotearg.c: Assume <wchar.h>.
44791         * m4/quotearg.m4: Likewise.
44792         * modules/regex (Depends-on): Depend on wchar.
44793         * lib/regex_internal.h: Assume <wchar.h>.
44794         * m4/regex.m4: Likewise.
44795         * modules/stdint (Depends-on): Depend on wchar.
44796         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44797         * m4/stdint.m4: Likewise.
44798         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44799         * modules/strftime (Depends-on): Depend on wchar.
44800         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44801         * modules/strtol (Depends-on): Depend on wchar.
44802         * lib/strtol.c: Assume <wchar.h>.
44803         * modules/wcwidth (Depends-on): Depend on wchar.
44804         * lib/wcwidth.h: Assume <wchar.h>.
44805         * m4/wcwidth.m4: Likewise.
44806
44807 2007-01-16  Bruno Haible  <bruno@clisp.org>
44808
44809         * modules/csharpexec-script: New, created from...
44810         * modules/csharpexec: ... this.
44811
44812 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44813
44814         * modules/javaexec-script: New, created from...
44815         * modules/javaexec: ... this.
44816
44817 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44818
44819         * modules/poll (Dependencies): Add sys_select.
44820
44821 2007-01-15  Jim Meyering  <jim@meyering.net>
44822
44823         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44824         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44825         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44826         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44827
44828 2007-01-15  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/striconveh: New file.
44831         * lib/striconveh.h: New file.
44832         * lib/striconveh.c: New file.
44833         * MODULES.html.sh (Internationalization functions): Add striconveh.
44834
44835         * modules/striconveh-tests: New file.
44836         * tests/test-striconveh.c: New file.
44837
44838 2007-01-15  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44841         not from GNU libiconv or GNU libc.
44842
44843 2007-01-15  Bruno Haible  <bruno@clisp.org>
44844
44845         * doc/gnulib-intro.texi (Copyright): Explain the different license
44846         terms for module descriptions, autoconf macros, tests, documentation.
44847
44848 2007-01-14  Bruno Haible  <bruno@clisp.org>
44849
44850         * modules/striconv-tests: New file.
44851         * tests/test-striconv.c: New file.
44852
44853 2007-01-14  Bruno Haible  <bruno@clisp.org>
44854
44855         * modules/iconv-tests: New file.
44856         * tests/test-iconv.c: New file.
44857
44858 2007-01-14  Bruno Haible  <bruno@clisp.org>
44859
44860         * gnulib-tool (func_get_license): For test modules, use the license of
44861         the main module.
44862
44863 2007-01-14  Bruno Haible  <bruno@clisp.org>
44864
44865         * modules/iconv (Include): Clarify that <iconv.h> can only be included
44866         if iconv is found to exist.
44867
44868 2007-01-14  Bruno Haible  <bruno@clisp.org>
44869
44870         * modules/c-ctype-tests: New file.
44871         * tests/test-c-ctype.c: New file.
44872
44873 2007-01-14  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/binary-io-tests: New file.
44876         * tests/test-binary-io.sh: New file.
44877         * tests/test-binary-io.c: New file.
44878
44879 2007-01-14  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/array-oset-tests: New file.
44882         * tests/test-array_oset.c: New file.
44883
44884 2007-01-14  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/array-list-tests: New file.
44887         * tests/test-array_list.c: New file.
44888
44889 2007-01-14  Bruno Haible  <bruno@clisp.org>
44890
44891         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
44892         and make.
44893         Reported by Simon Josefsson in
44894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
44895
44896 2007-01-14  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/allocsa-tests: New file.
44899         * tests/test-allocsa.c: New file.
44900
44901 2007-01-14  Bruno Haible  <bruno@clisp.org>
44902
44903         * modules/fchdir (Depends-on): Add absolute-header.
44904         * modules/unistd (Depends-on): Likewise.
44905
44906 2006-12-30  Bruno Haible  <bruno@clisp.org>
44907
44908         * modules/fchdir: New file.
44909         * modules/unistd (Files): Add lib/unistd_.h.
44910         (Makefile.am): Generate unistd.h from unistd_.h.
44911         * lib/fchdir.c: New file.
44912         * lib/dirent_.h: New file.
44913         * lib/unistd_.h: New file.
44914         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
44915         * m4/fchdir.m4: New file.
44916         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
44917         (gl_HEADER_UNISTD): Invoke it.
44918         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
44919         function.
44920         * lib/backupfile.c (opendir, closedir): Undefine.
44921         * lib/chown.c (open, close): Undefine.
44922         * lib/clean-temp.c (open, close): Undefine.
44923         * lib/copy-file.c (open, close): Undefine.
44924         * lib/execute.c (open, close): Undefine.
44925         * lib/fsusage.c (open, close): Undefine.
44926         * lib/gc-gnulib.c (open, close): Undefine.
44927         * lib/getcwd.c (opendir, closedir): Undefine.
44928         * lib/glob.c (opendir, closedir): Undefine.
44929         * lib/javacomp.c (open, close): Undefine.
44930         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
44931         * lib/openat-proc.c (open, close): Undefine.
44932         * lib/pagealign_alloc.c (open, close): Undefine.
44933         * lib/pipe.c (open, close): Undefine.
44934         * lib/progreloc.c (open, close): Undefine.
44935         * lib/savedir.c (opendir, closedir): Undefine.
44936         * lib/utime.c (open, close): Undefine.
44937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
44938
44939 2007-01-10  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
44942
44943 2007-01-12  Eric Blake  <ebb9@byu.net>
44944
44945         Provide a robust <wchar.h>.  Further simplifications are now
44946         possible in other modules, but not included here.
44947         * modules/wchar: New module.
44948         * m4/wchar.m4: New file.
44949         * lib/wchar_.h: Likewise.
44950         * modules/mbchar (Depends-on): Depend on wchar, as the first use
44951         of the new module.
44952         * MODULES.html.sh (Extended multibyte and wide character utilities):
44953         New section.
44954
44955 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
44956
44957         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
44958         to a reasonable default for memory allocation.
44959         (xreadlink): Don't allocate a huge buffer, to work around a buggy
44960         file system that reports garbage st_size values for symlinks.
44961         Problem reported by Liyang Hu.
44962
44963 2007-01-11  Simon Josefsson  <simon@josefsson.org>
44964
44965         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
44966         Emacs .#* auto-save files).
44967
44968 2007-01-11  Bruno Haible  <bruno@clisp.org>
44969
44970         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
44971         directory.
44972
44973 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44974
44975         Use @...@ consistently in lib/wctype_.h.
44976         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
44977         on it being set to 1 or 0.
44978         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
44979         go back to AC_SUBSTing it.
44980         * modules/wctype (Makefile.am): Undo previous change.
44981
44982 2007-01-10  Eric Blake  <ebb9@byu.net>
44983
44984         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
44985         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
44986         * modules/wctype (Makefile.am): Likewise.
44987         Reported by Chris McGuire.
44988
44989 2007-01-10  Jim Meyering  <jim@meyering.net>
44990
44991         fts.c: a small readability/maintainability improvement
44992         * lib/fts.c (fts_read): Make this code slightly more readable and
44993         maintainable by hoisting the "sp->fts_cur = p" assignments to
44994         immediately follow the statements that set P.  Derived from
44995         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
44996
44997 2007-01-10  Eric Blake  <ebb9@byu.net>
44998
44999         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45000         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45002         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45003         Reported by Chris McGuire.
45004
45005 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45006
45007         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45008         in sed script.
45009
45010 2007-01-09  Bruno Haible  <bruno@clisp.org>
45011
45012         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45013         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45014         variables.
45015         (func_module): Use them.
45016
45017 2007-01-09  Bruno Haible  <bruno@clisp.org>
45018
45019         * modules/unistr/base: New file.
45020         * lib/unistr.h: New file.
45021
45022         * modules/unistr/u8-to-u16: New file.
45023         * lib/unistr/u8-to-u16.c: New file.
45024
45025         * modules/unistr/u8-to-u32: New file.
45026         * lib/unistr/u8-to-u32.c: New file.
45027
45028         * modules/unistr/u16-to-u8: New file.
45029         * lib/unistr/u16-to-u8.c: New file.
45030
45031         * modules/unistr/u16-to-u32: New file.
45032         * lib/unistr/u16-to-u32.c: New file.
45033
45034         * modules/unistr/u32-to-u8: New file.
45035         * lib/unistr/u32-to-u8.c: New file.
45036
45037         * modules/unistr/u32-to-u16: New file.
45038         * lib/unistr/u32-to-u16.c: New file.
45039
45040         * modules/unistr/u8-check: New file.
45041         * modules/unistr/u16-check: New file.
45042         * modules/unistr/u32-check: New file.
45043         * lib/unistr/u8-check.c: New file.
45044         * lib/unistr/u16-check.c: New file.
45045         * lib/unistr/u32-check.c: New file.
45046
45047         * modules/unistr/u8-chr: New file.
45048         * modules/unistr/u16-chr: New file.
45049         * modules/unistr/u32-chr: New file.
45050         * lib/unistr/u8-chr.c: New file.
45051         * lib/unistr/u16-chr.c: New file.
45052         * lib/unistr/u32-chr.c: New file.
45053
45054         * modules/unistr/u8-cmp: New file.
45055         * modules/unistr/u16-cmp: New file.
45056         * modules/unistr/u32-cmp: New file.
45057         * lib/unistr/u8-cmp.c: New file.
45058         * lib/unistr/u16-cmp.c: New file.
45059         * lib/unistr/u32-cmp.c: New file.
45060
45061         * modules/unistr/u8-cpy: New file.
45062         * modules/unistr/u16-cpy: New file.
45063         * modules/unistr/u32-cpy: New file.
45064         * lib/unistr/u8-cpy.c: New file.
45065         * lib/unistr/u16-cpy.c: New file.
45066         * lib/unistr/u32-cpy.c: New file.
45067         * lib/unistr/u-cpy.h: New file.
45068
45069         * modules/unistr/u8-cpy-alloc: New file.
45070         * modules/unistr/u16-cpy-alloc: New file.
45071         * modules/unistr/u32-cpy-alloc: New file.
45072         * lib/unistr/u8-cpy-alloc.c: New file.
45073         * lib/unistr/u16-cpy-alloc.c: New file.
45074         * lib/unistr/u32-cpy-alloc.c: New file.
45075         * lib/unistr/u-cpy-alloc.h: New file.
45076
45077         * modules/unistr/u8-endswith: New file.
45078         * modules/unistr/u16-endswith: New file.
45079         * modules/unistr/u32-endswith: New file.
45080         * lib/unistr/u8-endswith.c: New file.
45081         * lib/unistr/u16-endswith.c: New file.
45082         * lib/unistr/u32-endswith.c: New file.
45083         * lib/unistr/u-endswith.h: New file.
45084
45085         * modules/unistr/u8-mblen: New file.
45086         * modules/unistr/u16-mblen: New file.
45087         * modules/unistr/u32-mblen: New file.
45088         * lib/unistr/u8-mblen.c: New file.
45089         * lib/unistr/u16-mblen.c: New file.
45090         * lib/unistr/u32-mblen.c: New file.
45091
45092         * modules/unistr/u8-mbtouc: New file.
45093         * modules/unistr/u16-mbtouc: New file.
45094         * modules/unistr/u32-mbtouc: New file.
45095         * lib/unistr/u8-mbtouc.c: New file.
45096         * lib/unistr/u16-mbtouc.c: New file.
45097         * lib/unistr/u32-mbtouc.c: New file.
45098
45099         * modules/unistr/u8-mbtouc-safe: New file.
45100         * modules/unistr/u16-mbtouc-safe: New file.
45101         * modules/unistr/u32-mbtouc-safe: New file.
45102         * lib/unistr/u8-mbtouc-safe.c: New file.
45103         * lib/unistr/u16-mbtouc-safe.c: New file.
45104         * lib/unistr/u32-mbtouc-safe.c: New file.
45105
45106         * modules/unistr/u8-move: New file.
45107         * modules/unistr/u16-move: New file.
45108         * modules/unistr/u32-move: New file.
45109         * lib/unistr/u8-move.c: New file.
45110         * lib/unistr/u16-move.c: New file.
45111         * lib/unistr/u32-move.c: New file.
45112         * lib/unistr/u-move.h: New file.
45113
45114         * modules/unistr/u8-next: New file.
45115         * modules/unistr/u16-next: New file.
45116         * modules/unistr/u32-next: New file.
45117         * lib/unistr/u8-next.c: New file.
45118         * lib/unistr/u16-next.c: New file.
45119         * lib/unistr/u32-next.c: New file.
45120
45121         * modules/unistr/u8-prev: New file.
45122         * modules/unistr/u16-prev: New file.
45123         * modules/unistr/u32-prev: New file.
45124         * lib/unistr/u8-prev.c: New file.
45125         * lib/unistr/u16-prev.c: New file.
45126         * lib/unistr/u32-prev.c: New file.
45127
45128         * modules/unistr/u8-set: New file.
45129         * modules/unistr/u16-set: New file.
45130         * modules/unistr/u32-set: New file.
45131         * lib/unistr/u8-set.c: New file.
45132         * lib/unistr/u16-set.c: New file.
45133         * lib/unistr/u32-set.c: New file.
45134         * lib/unistr/u-set.h: New file.
45135
45136         * modules/unistr/u8-startswith: New file.
45137         * modules/unistr/u16-startswith: New file.
45138         * modules/unistr/u32-startswith: New file.
45139         * lib/unistr/u8-startswith.c: New file.
45140         * lib/unistr/u16-startswith.c: New file.
45141         * lib/unistr/u32-startswith.c: New file.
45142         * lib/unistr/u-startswith.h: New file.
45143
45144         * modules/unistr/u8-stpcpy: New file.
45145         * modules/unistr/u16-stpcpy: New file.
45146         * modules/unistr/u32-stpcpy: New file.
45147         * lib/unistr/u8-stpcpy.c: New file.
45148         * lib/unistr/u16-stpcpy.c: New file.
45149         * lib/unistr/u32-stpcpy.c: New file.
45150         * lib/unistr/u-stpcpy.h: New file.
45151
45152         * modules/unistr/u8-stpncpy: New file.
45153         * modules/unistr/u16-stpncpy: New file.
45154         * modules/unistr/u32-stpncpy: New file.
45155         * lib/unistr/u8-stpncpy.c: New file.
45156         * lib/unistr/u16-stpncpy.c: New file.
45157         * lib/unistr/u32-stpncpy.c: New file.
45158         * lib/unistr/u-stpncpy.h: New file.
45159
45160         * modules/unistr/u8-strcat: New file.
45161         * modules/unistr/u16-strcat: New file.
45162         * modules/unistr/u32-strcat: New file.
45163         * lib/unistr/u8-strcat.c: New file.
45164         * lib/unistr/u16-strcat.c: New file.
45165         * lib/unistr/u32-strcat.c: New file.
45166         * lib/unistr/u-strcat.h: New file.
45167
45168         * modules/unistr/u8-strchr: New file.
45169         * modules/unistr/u16-strchr: New file.
45170         * modules/unistr/u32-strchr: New file.
45171         * lib/unistr/u8-strchr.c: New file.
45172         * lib/unistr/u16-strchr.c: New file.
45173         * lib/unistr/u32-strchr.c: New file.
45174
45175         * modules/unistr/u8-strcmp: New file.
45176         * modules/unistr/u16-strcmp: New file.
45177         * modules/unistr/u32-strcmp: New file.
45178         * lib/unistr/u8-strcmp.c: New file.
45179         * lib/unistr/u16-strcmp.c: New file.
45180         * lib/unistr/u32-strcmp.c: New file.
45181
45182         * modules/unistr/u8-strcpy: New file.
45183         * modules/unistr/u16-strcpy: New file.
45184         * modules/unistr/u32-strcpy: New file.
45185         * lib/unistr/u8-strcpy.c: New file.
45186         * lib/unistr/u16-strcpy.c: New file.
45187         * lib/unistr/u32-strcpy.c: New file.
45188         * lib/unistr/u-strcpy.h: New file.
45189
45190         * modules/unistr/u8-strcspn: New file.
45191         * modules/unistr/u16-strcspn: New file.
45192         * modules/unistr/u32-strcspn: New file.
45193         * lib/unistr/u8-strcspn.c: New file.
45194         * lib/unistr/u16-strcspn.c: New file.
45195         * lib/unistr/u32-strcspn.c: New file.
45196         * lib/unistr/u-strcspn.h: New file.
45197
45198         * modules/unistr/u8-strdup: New file.
45199         * modules/unistr/u16-strdup: New file.
45200         * modules/unistr/u32-strdup: New file.
45201         * lib/unistr/u8-strdup.c: New file.
45202         * lib/unistr/u16-strdup.c: New file.
45203         * lib/unistr/u32-strdup.c: New file.
45204         * lib/unistr/u-strdup.h: New file.
45205
45206         * modules/unistr/u8-strlen: New file.
45207         * modules/unistr/u16-strlen: New file.
45208         * modules/unistr/u32-strlen: New file.
45209         * lib/unistr/u8-strlen.c: New file.
45210         * lib/unistr/u16-strlen.c: New file.
45211         * lib/unistr/u32-strlen.c: New file.
45212         * lib/unistr/u-strlen.h: New file.
45213
45214         * modules/unistr/u8-strmblen: New file.
45215         * modules/unistr/u16-strmblen: New file.
45216         * modules/unistr/u32-strmblen: New file.
45217         * lib/unistr/u8-strmblen.c: New file.
45218         * lib/unistr/u16-strmblen.c: New file.
45219         * lib/unistr/u32-strmblen.c: New file.
45220
45221         * modules/unistr/u8-strmbtouc: New file.
45222         * modules/unistr/u16-strmbtouc: New file.
45223         * modules/unistr/u32-strmbtouc: New file.
45224         * lib/unistr/u8-strmbtouc.c: New file.
45225         * lib/unistr/u16-strmbtouc.c: New file.
45226         * lib/unistr/u32-strmbtouc.c: New file.
45227
45228         * modules/unistr/u8-strncat: New file.
45229         * modules/unistr/u16-strncat: New file.
45230         * modules/unistr/u32-strncat: New file.
45231         * lib/unistr/u8-strncat.c: New file.
45232         * lib/unistr/u16-strncat.c: New file.
45233         * lib/unistr/u32-strncat.c: New file.
45234         * lib/unistr/u-strncat.h: New file.
45235
45236         * modules/unistr/u8-strncmp: New file.
45237         * modules/unistr/u16-strncmp: New file.
45238         * modules/unistr/u32-strncmp: New file.
45239         * lib/unistr/u8-strncmp.c: New file.
45240         * lib/unistr/u16-strncmp.c: New file.
45241         * lib/unistr/u32-strncmp.c: New file.
45242
45243         * modules/unistr/u8-strncpy: New file.
45244         * modules/unistr/u16-strncpy: New file.
45245         * modules/unistr/u32-strncpy: New file.
45246         * lib/unistr/u8-strncpy.c: New file.
45247         * lib/unistr/u16-strncpy.c: New file.
45248         * lib/unistr/u32-strncpy.c: New file.
45249         * lib/unistr/u-strncpy.h: New file.
45250
45251         * modules/unistr/u8-strnlen: New file.
45252         * modules/unistr/u16-strnlen: New file.
45253         * modules/unistr/u32-strnlen: New file.
45254         * lib/unistr/u8-strnlen.c: New file.
45255         * lib/unistr/u16-strnlen.c: New file.
45256         * lib/unistr/u32-strnlen.c: New file.
45257         * lib/unistr/u-strnlen.h: New file.
45258
45259         * modules/unistr/u8-strpbrk: New file.
45260         * modules/unistr/u16-strpbrk: New file.
45261         * modules/unistr/u32-strpbrk: New file.
45262         * lib/unistr/u8-strpbrk.c: New file.
45263         * lib/unistr/u16-strpbrk.c: New file.
45264         * lib/unistr/u32-strpbrk.c: New file.
45265         * lib/unistr/u-strpbrk.h: New file.
45266
45267         * modules/unistr/u8-strrchr: New file.
45268         * modules/unistr/u16-strrchr: New file.
45269         * modules/unistr/u32-strrchr: New file.
45270         * lib/unistr/u8-strrchr.c: New file.
45271         * lib/unistr/u16-strrchr.c: New file.
45272         * lib/unistr/u32-strrchr.c: New file.
45273
45274         * modules/unistr/u8-strspn: New file.
45275         * modules/unistr/u16-strspn: New file.
45276         * modules/unistr/u32-strspn: New file.
45277         * lib/unistr/u8-strspn.c: New file.
45278         * lib/unistr/u16-strspn.c: New file.
45279         * lib/unistr/u32-strspn.c: New file.
45280         * lib/unistr/u-strspn.h: New file.
45281
45282         * modules/unistr/u8-strstr: New file.
45283         * modules/unistr/u16-strstr: New file.
45284         * modules/unistr/u32-strstr: New file.
45285         * lib/unistr/u8-strstr.c: New file.
45286         * lib/unistr/u16-strstr.c: New file.
45287         * lib/unistr/u32-strstr.c: New file.
45288         * lib/unistr/u-strstr.h: New file.
45289
45290         * modules/unistr/u8-strtok: New file.
45291         * modules/unistr/u16-strtok: New file.
45292         * modules/unistr/u32-strtok: New file.
45293         * lib/unistr/u8-strtok.c: New file.
45294         * lib/unistr/u16-strtok.c: New file.
45295         * lib/unistr/u32-strtok.c: New file.
45296         * lib/unistr/u-strtok.h: New file.
45297
45298         * modules/unistr/u8-uctomb: New file.
45299         * modules/unistr/u16-uctomb: New file.
45300         * modules/unistr/u32-uctomb: New file.
45301         * lib/unistr/u8-uctomb.c: New file.
45302         * lib/unistr/u16-uctomb.c: New file.
45303         * lib/unistr/u32-uctomb.c: New file.
45304
45305         * MODULES.html.sh (Unicode string functions): Add the new modules.
45306
45307 2007-01-08  Bruno Haible  <bruno@clisp.org>
45308
45309         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45310         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45311         subdirectories.
45312
45313 2007-01-08  Karl Berry  <karl@gnu.org>
45314
45315         * doc/error.texi: mention that main() fns must set program_name
45316         when progname is used.
45317
45318 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45319
45320         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45321         WCTYPE_H is empty, for the benefit of builds from non-distclean
45322         directories.  Problem reported by Eric Blake in
45323         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45324
45325 2007-01-08  Bruno Haible  <bruno@clisp.org>
45326
45327         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45328         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45329         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45330         PROVIDE_CANONICALIZE_FILENAME_MODE.
45331         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45332
45333 2007-01-08  Bruno Haible  <bruno@clisp.org>
45334
45335         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45336         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45337         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45338         * lib/fts.c: Likewise.
45339         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45340
45341 2006-12-25  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/utf8-ucs4-safe: New file.
45344         * lib/utf8-ucs4-safe.h: New file.
45345         * lib/unistr/utf8-ucs4-safe.c: New file.
45346
45347         * modules/utf16-ucs4-safe: New file.
45348         * lib/utf16-ucs4-safe.h: New file.
45349         * lib/unistr/utf16-ucs4-safe.c: New file.
45350
45351         * MODULES.html.sh (Unicode string functions): Add the new modules.
45352
45353 2007-01-08  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45356         (Depends-on): Add unitypes.
45357         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45358         (u8_mbtouc_aux): Move out to separate file.
45359         (u8_mbtouc): Use ucs4_t, uint8_t types.
45360         * lib/unistr/utf8-ucs4.c: New file.
45361
45362         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45363         (Depends-on): Add unitypes.
45364         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45365         (u16_mbtouc_aux): Move out to separate file.
45366         (u16_mbtouc): Use ucs4_t, uint16_t types.
45367         * lib/unistr/utf16-ucs4.c: New file.
45368
45369         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45370         (Depends-on): Add unitypes.
45371         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45372         (u8_uctomb_aux): Move out to separate file.
45373         (u8_uctomb): Use ucs4_t, uint8_t types.
45374         * lib/unistr/ucs4-utf8.c: New file.
45375
45376         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45377         (Depends-on): Add unitypes.
45378         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45379         (u16_uctomb_aux): Move out to separate file.
45380         (u16_uctomb): Use ucs4_t, uint16_t types.
45381         * lib/unistr/ucs4-utf16.c: New file.
45382
45383 2006-12-25  Bruno Haible  <bruno@clisp.org>
45384
45385         * modules/unitypes: New file.
45386         * lib/unitypes.h: New file.
45387         * MODULES.html.sh (func_all_modules): New section "Unicode string
45388         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45389         this section. Add unitypes.
45390
45391 2007-01-08  Bruno Haible  <bruno@clisp.org>
45392
45393         Avoid variable names that conflict with those from libtool.
45394         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45395         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45396         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45397         library_names_spec to acl_library_names_spec, hardcode_* to
45398         acl_hardcode_*.
45399         Reported by Ralf Wildenhues.
45400
45401 2007-01-08  Bruno Haible  <bruno@clisp.org>
45402
45403         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45404         definition.
45405         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45406         definition.
45407         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45408         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45409         definition.
45410         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45411         definition.
45412         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45413         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45414         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45415         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45416         definition.
45417         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45418         definition.
45419         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45420         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45421         GC_USE_<algorithm>.
45422         * lib/gc-libgcrypt.c: Likewise.
45423         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45424         * modules/gc-arctwo (configure.ac): Likewise.
45425         * modules/gc-des (configure.ac): Likewise.
45426         * modules/gc-hmac-md5 (configure.ac): Likewise.
45427         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45428         * modules/gc-md2 (configure.ac): Likewise.
45429         * modules/gc-md4 (configure.ac): Likewise.
45430         * modules/gc-md5 (configure.ac): Likewise.
45431         * modules/gc-random (configure.ac): Likewise.
45432         * modules/gc-rijndael (configure.ac): Likewise.
45433         * modules/gc-sha1 (configure.ac): Likewise.
45434
45435 2007-01-08  Bruno Haible  <bruno@clisp.org>
45436
45437         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45438         macro definition.
45439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45440         definition.
45441         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45442         definition.
45443         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45444         * modules/fcntl-safer (configure.ac): Likewise.
45445         * modules/fopen-safer (configure.ac): Likewise.
45446         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45447         GNULIB_FWRITEERROR macro definition.
45448
45449 2007-01-08  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/gnulib-common.m4: New file.
45452         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45453         (func_get_filelist): Add m4/gnulib-common.m4.
45454
45455 2007-01-08  Bruno Haible  <bruno@clisp.org>
45456
45457         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45458         command.
45459
45460 2007-01-08  Jim Meyering  <jim@meyering.net>
45461
45462         Use a more robust test for a "can't happen" condition.
45463         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45464         narrowed the st_size value.  Presuming the "can't happen" condition
45465         is true, that narrowing could conceivably convert an invalid st_size
45466         value into a valid one.  Instead, use a change based on Matthew
45467         Woehlke's original patch.
45468
45469         Slight readability improvement: use an assert-like macro
45470         in place of literal "abort ()" uses.
45471         * lib/fts.c (fts_assert): Define.
45472         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45473         Use this macro instead of a bare 'abort'.
45474
45475 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45476
45477         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45478         simply work around them.
45479         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45480         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45481         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45482         declaring.
45483         Don't bother to define as macros, since the standard doesn't require it.
45484         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45485         longer worry about IRIX 5.3.
45486         (HAVE_WCTYPE_CTMP_BUG): Remove.
45487
45488 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45489
45490         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45491         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45492         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45493         Problems reported by Georg Schwarz for IRIX 5.3.
45494
45495         * gnulib-tool (autoconf_minversion): Take the maximum version number
45496         found, not the minimum.  Problem reported by James Youngman.
45497
45498 2007-01-03  Karl Berry  <karl@gnu.org>
45499
45500         * doc/error.texi: new file, explaining interaction with progname.
45501         * doc/gnulib.texi: include it.  Update copyright.
45502
45503 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45504
45505         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45506         AC_CANONICAL_HOST, to improve autobuild outputs.
45507
45508 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45509             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45510
45511         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45512         sockets, server sockets, and other file descriptors.  Count errors
45513         to compute the return value.  Reorder the code a bit to be easier
45514         to follow.  Don't set event bits that were not requested (except
45515         POLLERR and POLLHUP).
45516
45517 2007-01-01  Bruno Haible  <bruno@clisp.org>
45518
45519         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45520
45521 2007-01-03  Jim Meyering  <jim@meyering.net>
45522
45523         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45524
45525 2007-01-02  Bruno Haible  <bruno@clisp.org>
45526
45527         * modules/settime (Include): Require timespec.h.
45528         * modules/nanosleep (Include): Likewise.
45529
45530 2007-01-01  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool (func_emit_copyright_notice): Bump year.
45533         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45534
45535 2007-01-01  Bruno Haible  <bruno@clisp.org>
45536
45537         Improve support for OpenBSD.
45538         * build-aux/config.rpath (libname_spec): Export.
45539         (library_names_spec): New variable. Export.
45540         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45541         library_names_spec from the config.rpath output. Locate shared library
45542         through the name pattern in library_names_spec.
45543
45544 2007-01-01  Eric Blake  <ebb9@byu.net>
45545
45546         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45547
45548 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45551         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45552         assume the C locale, and avoid an "eval" that could cause trouble.
45553         Problem with SORT reported by Bob Proulx.
45554
45555         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45556         Define.  Trivial patch from Henning Nielsen Lund, originally
45557         sent to bug-grep@gnu.org today.
45558
45559 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45560
45561         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45562         struct stat.  Problem reported by Henning Nielsen Lund.
45563         * lib/acl.c: Include acl.h first, to check interface.  Don't
45564         bother to include sys/types.h and sys/stat.h again.
45565
45566 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45567
45568         Import the following change from libc; problem reported by
45569         Sven Verdoolaege.
45570
45571         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45572
45573         [BZ #1373]
45574         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45575
45576 2006-12-28  Jim Meyering  <jim@meyering.net>
45577
45578         * build-aux/announce-gen: Do not assume that the package
45579         builds any of tar.gz, tar.bz2, and .xdelta files.
45580         Suggestion from Simon Josefsson.
45581
45582 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45583
45584         * modules/announce-gen: New file.
45585
45586 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45587
45588         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45589         handles its gotchas now.
45590         * lib/mbswidth.c: Likewise.
45591         * lib/wcwidth.h: Likewise.
45592         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45593         and iswcntrl; the wctype module does this stuff now.
45594         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45596         * modules/mbchar (Depends-on): Add wctype.
45597         * modules/mbswidth (Depends-on): Likewise.
45598         * modules/wcwidth (Depends-on): Likewise.
45599
45600 2006-12-27  Eric Blake  <ebb9@byu.net>
45601
45602         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45603         module uses more than what <wctype.h> is required to provide.
45604
45605 2006-12-26  Eric Blake  <ebb9@byu.net>
45606
45607         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45608
45609 2006-12-26  Eric Blake  <ebb9@byu.net>
45610
45611         * modules/absolute-header: New module.
45612         * modules/fcntl (Depends-on): Depend on it.
45613         * modules/inttypes (Depends-on): Likewise.
45614         * modules/stdint (Depends-on): Likewise.
45615         * modules/sys_stat (Depends-on): Likewise.
45616         * modules/wctype (Depends-on): Likewise.
45617         * MODULES.html.sh (Support for building libraries and
45618         executables): Document it.
45619
45620 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45621
45622         * gnulib-tool (SED): Remove, undoing previous change.
45623         The problem was that it broke coreutils on Solaris, because
45624         "sed --posix" leaked into a makefile.
45625         (sed): New alias, if 'alias' and GNU sed.
45626
45627 2006-12-24  Jim Meyering  <jim@meyering.net>
45628
45629         Work around an fchownat bug in glibc-2.4:
45630         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45631         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45632         in spite of the -P option.
45633         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45634         New macros.
45635         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45636         * modules/openat (Files): Add lib/fchownat.c.
45637         * lib/openat.c (fchownat): Don't define here.  Move to...
45638         * lib/fchownat.c: ...this new file.
45639
45640 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45641
45642         Fix bug reported by Bruno Haible in
45643         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45644         where quotearg.c didn't compile on Mac OS X 10.2 because it
45645         lacks <wchar.h> and wint_t.
45646         * lib/wctype_.h (__wctype_wint_t): New type.
45647         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45648         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45649         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45650         Arg is now of type __wctype_wint_t, not wint_t.
45651         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45652         substitute HAVE_WINT_T.
45653         * modules/wctype (Files): Add m4/wint_t.m4.
45654         (wctype.h): Substitute HAVE_WINT_T.
45655
45656 2006-12-23  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45659
45660 2006-12-23  Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45663         S_ISLNK.
45664         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45665         mingw.
45666
45667 2006-12-22  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/copy-file.c: Include acl.h.
45670         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45671         Close the file descriptors only after being done with copy_acl.
45672         * modules/copy-file (Depends-on): Add acl.
45673
45674 2006-12-22  Bruno Haible  <bruno@clisp.org>
45675
45676         * gnulib-tool (SED): New variable.
45677         Use $SED instead of sed everywhere.
45678
45679 2006-12-22  Bruno Haible  <bruno@clisp.org>
45680
45681         * modules/no-c++: New file.
45682         * m4/no-c++.m4: New file.
45683         * MODULES.html.sh (Support for building libraries and executables):
45684         Add no-c++.
45685
45686 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45687
45688         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45689         Include <limits.h>, and use its INT_MAX to rewrite the
45690         j loop so that it does not overflow 'int'.  Problem reported by
45691         Ralf Wildenhues in
45692         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45693         Play it safe by shifting left by 1 rather than multiplying by 2,
45694         as GCC is less likely to optimize this away when the value
45695         is signed (when it assumes overflow leads to undefined behavior).
45696         Also, don't assume time_t uses two's complement.
45697
45698 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45699
45700         * MODULES.html.sh: New module wctype.
45701         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45702         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45703         <wctype.h>, since the new wctype module should fix this.
45704         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45705         the wctype module should arrange for it.
45706         * lib/regex_internal.h: Likewise.
45707         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45708         since the wctype module should handle this now.
45709         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45710         * modules/fnmatch (Depends-on): Add wctype.
45711         * modules/quotearg (Depends-on): Likewise.
45712         * modules/regex (Depends-on): Likewise.
45713
45714 2006-12-19  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45717         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45718
45719 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45720
45721         * modules/savewd (Depends-on): Fix dependency on fcntl.
45722
45723 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45724
45725         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45726         conforms to C99, rather than relying on the user's environment
45727         setting of STDINT_H.
45728
45729 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45730         and Eric Blake  <ebb9@byu.net>
45731
45732         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45733         This is more consistent with the other defines here.
45734         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45735         Port to z/OS.  Problem reported by Paul Gilmartin.
45736         Change local vars to use gl_ prefix rather than ac_.
45737         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45738         with other defines.
45739         * modules/double-slash-root: New module.
45740         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45741         (Depends-on): Add double-slash-root.
45742         * MODULES.html.sh (File system functions): Mention new module.
45743
45744 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45745
45746         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45747         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45748         This is for the benefit of gzip, which doesn't do i18n.
45749
45750 2006-12-12  Jim Meyering  <jim@meyering.net>
45751
45752         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45753         Reported by Andreas Schwab <schwab@suse.de>.
45754
45755 2006-12-12  Bruno Haible  <bruno@clisp.org>
45756
45757         Merge these changes.
45758         2006-09-05  Bruno Haible  <bruno@clisp.org>
45759         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45760         iconv_alloc succeeded.
45761         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45762         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45763         test for " && dest " at the end - dest is always != NULL there. Call
45764         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45765         with 2xNULL arguments, also to flush the state storage. Handle the
45766         IRIX iconv behaviour. Realloc the final result, to throw away unused
45767         memory.
45768
45769 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45770
45771         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45772         and fchmodat unconditionally, since glibc 2.4 has them.
45773         Problem reported by Arkadiusz Miskiewicz.
45774
45775 2006-12-10  Bruno Haible  <bruno@clisp.org>
45776
45777         * gnulib-tool (func_import): Show the include files only for those
45778         modules that are copied and specified.
45779         Reported by Karl Berry.
45780
45781 2006-12-08  Jim Meyering  <jim@meyering.net>
45782
45783         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45784         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45785
45786         * build-aux/announce-gen: Add two new options, both optional:
45787         --bootstrap-tools=TOOL_LIST
45788               a comma-separated list of tools, e.g.,
45789               autoconf,automake,bison,gnulib
45790         --gnulib-snapshot-date=DATE
45791               if gnulib is in the bootstrap tool list,
45792               then report this as the snapshot date.
45793               If not specified, use the current date/time.
45794               If you specify a date here, be sure it's UTC.
45795
45796 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45797
45798         * tests/test-argp-2.sh: Fix test to match actual output.
45799         (func_compare): Fix sed script to be portable.
45800
45801 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45802
45803         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45804         workaround for this case.  It is not autoconfigured now; offhand
45805         it's hard to see how to autoconfigure it.
45806
45807 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45808
45809         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45810         a directory that is about to be chowned.  Such a directory's
45811         initial file permissions should permit the owner only and this
45812         should not be changed until after the chown, since the group and
45813         other bits would be incorrect if they granted permission before
45814         the chown.
45815
45816         Fix porting problem for iswctype reported by Georg Schwarz in:
45817         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45818         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45819         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45820         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45821         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45822
45823 2006-12-03  Jim Meyering  <jim@meyering.net>
45824
45825         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45826         p->fts_statp may not yet be defined.
45827         (fts_read): Instead, set it in the caller, once p->fts_statp is
45828         sure to be defined, and corresponds to a top-level directory.
45829         This bug made du -x fail.  Here's the coreutils test case:
45830         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45831         Reported by Mike Frysinger.
45832
45833 2006-12-01  Jim Meyering  <jim@meyering.net>
45834
45835         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45836         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45837         Reported by Simon Josefsson.
45838
45839 2006-11-30  Jim Meyering  <jim@meyering.net>
45840
45841         * m4/warning.m4: Use the all-permissive copyright notice
45842         recommended by RMS (rather than LGPL).
45843         * m4/vararrays.m4: Likewise.
45844         * m4/flexmember.m4: Likewise.
45845
45846 2006-11-29  Bruno Haible  <bruno@clisp.org>
45847
45848         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45849         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
45850         using +=.
45851         Reported by Simon Josefsson <simon@josefsson.org>.
45852
45853 2006-11-28  James Youngman <jay@gnu.org>
45854
45855         * README: Advise users that they might find the bug-gnulib@gnu.org
45856         and autotools-announce@gnu.org mailing lists useful.
45857
45858 2006-11-28  Bruno Haible  <bruno@clisp.org>
45859
45860         * m4/ptrdiff_max.m4: Remove file.
45861
45862 2006-11-21  Bruno Haible  <bruno@clisp.org>
45863
45864         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
45865         _AC_COMPUTE_INT.
45866         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45867         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
45868         _AC_COMPUTE_INT.
45869         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45870         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
45871         _AC_COMPUTE_INT.
45872         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45873
45874 2006-11-28  Jim Meyering  <jim@meyering.net>
45875
45876         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
45877         warning from "gcc -Wshadow" about shadowing the builtin.
45878
45879 2006-11-27  Bruno Haible  <bruno@clisp.org>
45880
45881         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
45882         _AC_COMPUTE_INT.
45883         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
45884
45885 2006-11-27  Bruno Haible  <bruno@clisp.org>
45886             Paul Eggert  <eggert@cs.ucla.edu>
45887
45888         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
45889
45890 2006-11-26  Bruno Haible  <bruno@clisp.org>
45891
45892         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
45893         noinst_LTLIBRARIES.
45894
45895 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45896             Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
45899         if compiling with "gcc -ansi".
45900
45901 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45902
45903         Fix some incompatibilities with gcc -ansi -pedantic.
45904         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
45905         if compiling pedantically with GCC, unless it's C99 or later.
45906         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
45907         it mishandles gcc -ansi -pedantic as well.
45908         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
45909         if gcc -pedantic.
45910         * lib/regexec.c (check_node_accept_bytes): Don't use auto
45911         initializers for struct if -pedantic, unless it's C99 or later.
45912
45913 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
45914
45915         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
45916         Don't close an fd more than once. Identical atimes indicate
45917         success, not failure.
45918
45919 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
45920
45921         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
45922
45923 2006-11-23  Jim Meyering  <jim@meyering.net>
45924
45925         * build-aux/announce-gen: New file.  From coreutils.
45926
45927 2006-11-22  Jim Meyering  <jim@meyering.net>
45928
45929         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
45930         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
45931         (fts_read): Use a temporary to narrow the overused st_size member
45932         before using it in a switch statement.  Reported by Matthew Woehlke.
45933
45934         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
45935         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45936
45937 2006-11-20  Bruno Haible  <bruno@clisp.org>
45938
45939         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
45940         changequote instead of pairs of brackets.
45941         Reported by Andreas Schwab <schwab@suse.de>.
45942
45943 2006-11-21  Jim Meyering  <jim@meyering.net>
45944
45945         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
45946         so as to remain compatible with older compilers.
45947         Patch from Michael Deutschmann.
45948
45949 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45950
45951         * MODULES.html.sh (File system functions): Add openat.
45952
45953         * lib/openat.h (rpl_fstatat): New macro, if
45954         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
45955         (fstatat): Define to rpl_fstatat under the same conditions,
45956         unless COMPILING_FSTATAT.
45957         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
45958         seems to have the bug.
45959         * lib/fstatat.c: New file.
45960         * modules/openat (Files): Add it.
45961
45962 2006-11-20  Bruno Haible  <bruno@clisp.org>
45963
45964         * Makefile: New file.
45965
45966 2006-11-20  Jim Meyering  <jim@meyering.net>
45967
45968         The beginnings of syntax-related checks for gnulib.
45969         * lib/Makefile: New file.
45970         * lib/t-idcache: New script.  Ensure that the two halves of
45971         idcache.c stay in sync.
45972
45973         * lib/idcache.c: Adjust comments in user- and group- portions to
45974         be more accurate, and to be consistent with one another.
45975
45976 2006-11-20  Jim Meyering  <jim@meyering.net>
45977
45978         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
45979         continue using the flexible array member (thus, this module performs
45980         half as many malloc calls), with the addition that...
45981         (getgroup, getuser): Consistently record a non-match via an empty
45982         "name" string, and map an empty string match to a NULL return value.
45983         * modules/idcache (Depends-on): Re-add flexmember.
45984
45985         * lib/idcache.c (getuser): Remove all uses of the register keyword.
45986         (getuidbyname, getgroup, getgidbyname): Likewise.
45987
45988         Use cleaner syntax: NULL rather than 0.
45989         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
45990
45991 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45992
45993         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
45994         It mishandled the case where the group was missing.
45995         Problem reported by Greg Schafer.
45996         * modules/idcache: Likewise.
45997
45998 2006-11-18  Jim Meyering  <jim@meyering.net>
45999
46000         * check-module (%exempt_header): Add exception for some
46001         conditionally-included headers.
46002
46003         * modules/i-ring (Depends-on): Add verify.
46004         (License): Change to LGPL.
46005
46006 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46007
46008         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46009         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46010         and inttostr.h.  Use snprintf rather than uinttostr, so that
46011         LGPLed code doesn't depend on GPLed.
46012
46013 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46014
46015         * modules/inline (License): Change from GPL to LGPL.
46016
46017 2006-11-17  Jim Meyering  <jim@meyering.net>
46018
46019         * modules/d-type (License): Switch to LGPL.
46020
46021 2006-11-15  Bruno Haible  <bruno@clisp.org>
46022
46023         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46024
46025 2006-11-15  Eric Blake  <ebb9@byu.net>
46026
46027         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46028         the module dependency.
46029
46030 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46031             Bruno Haible  <bruno@clisp.org>
46032
46033         * gnulib-tool (func_create_testdir): Add license consistency check.
46034
46035 2006-11-15  Eric Blake  <ebb9@byu.net>
46036
46037         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46038         random "(cached)" in configure output.
46039
46040 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46041
46042         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46043         test for conforming inttypes.h is both announced and cached.
46044
46045         * MODULES.html.sh (seen_modules, seen_files): New variables.
46046         (func_module): Rewrite to use a few less gnulib-tool and sed
46047         invocations.  Avoid a couple of quadratic algorithms for ...
46048         (missed_modules, missed_files): ... these, with ...
46049         (func_append, func_tmpdir): ... these new functions, from
46050         gnulib-tool.  Analogously, install traps for cleanup.
46051
46052         * tests/test-gc.c (main): Remove unused variables.
46053         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46054
46055 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46056
46057         * modules/inttostr (License): Change to LGPL.
46058
46059 2006-11-14  Eric Blake  <ebb9@byu.net>
46060
46061         * modules/tempname (License): Change to LGPL.
46062
46063 2006-11-14  Eric Blake  <ebb9@byu.net>
46064
46065         * doc/functions.texi (Function Portability): *printf functions on
46066         Cygwin now understand all POSIX size specifiers.
46067
46068 2006-11-14  Bruno Haible  <bruno@clisp.org>
46069
46070         * modules/c-ctype (License): Change to LGPL.
46071
46072 2006-11-12  Bruno Haible  <bruno@clisp.org>
46073
46074         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46075         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46076         for GNOME libraries, for which the include files are installed in
46077         subdirectories of $prefix/include.
46078
46079 2006-11-12  Bruno Haible  <bruno@clisp.org>
46080
46081         * m4/lib-link.m4: Require at least autoconf-2.54.
46082         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46083         name to underscores for the --with option.
46084
46085 2006-11-13  Bruno Haible  <bruno@clisp.org>
46086
46087         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46088         the tests directory.
46089         Reported by Ralf Wildenhues.
46090
46091 2006-11-13  Bruno Haible  <bruno@clisp.org>
46092
46093         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46094         (func_emit_initmacro_end): Undo the override here.
46095         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46096         Works around the famous automake error in coreutils.
46097
46098 2006-11-13  Eric Blake  <ebb9@byu.net>
46099
46100         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46101         element, not its node.
46102
46103 2006-11-12  Bruno Haible  <bruno@clisp.org>
46104
46105         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46106         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46107
46108 2006-11-12  Bruno Haible  <bruno@clisp.org>
46109
46110         * gnulib-tool: New option --local-symlink.
46111         (func_usage): Document it.
46112         (lsymbolic): New variable.
46113         (func_import, func_create_testdir): If --symlink was not specified,
46114         test whether --local-symlink was specified and the file comes from
46115         the local_gnulib_dir.
46116
46117 2006-11-12  Bruno Haible  <bruno@clisp.org>
46118
46119         * gnulib-tool (func_ln): New function.
46120         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46121
46122 2006-11-12  Bruno Haible  <bruno@clisp.org>
46123
46124         Finish support for source files in subdirectories.
46125         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46126         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46127         AUTOMAKE_OPTIONS.
46128         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46129
46130 2006-11-12  Bruno Haible  <bruno@clisp.org>
46131
46132         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46133         EXTRA_lib_SOURCES augmentation.
46134         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46135
46136 2006-11-12  Jim Meyering  <jim@meyering.net>
46137
46138         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46139         file descriptors.  This also averts a failure on systems with
46140         native openat support when a traversed directory lacks "x" access.
46141         * lib/fts_.h: Include "i-ring.h"
46142         (struct FTS) [fts_fd_ring]: New member.
46143         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46144         (FCHDIR): Add parentheses.
46145         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46146         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46147         When descending, rather than simply closing the previous
46148         fts_cwd_fd value, push that file descriptor onto the ring.
46149         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46150         (fts_open): Initialize the new fd_ring member.
46151         (fts_close): Clear the ring.
46152         (fts_safe_changedir): When possible, use our new fd_ring to skip
46153         the diropen and fstat and dev/ino comparison that would normally
46154         accompany a virtual `chdir ("..")'.
46155
46156         * modules/fts (Depends-on): Add i-ring.
46157         * modules/i-ring: New module.
46158         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46159         * m4/i-ring.m4: New file.
46160
46161 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46162
46163         * gnulib-tool (func_create_testdir): Fix replacement of
46164         `build-aux' in configure.ac.  Run autotools in gltests
46165         subdirectory.
46166         (func_create_testdir, func_create_megatestdir, test): There is
46167         no need for '--force' in most autotool invocations in a new
46168         tree.  Actually fail the whole test if any of the tools, or the
46169         configure or make stages fail.
46170
46171         Sync from Automake.
46172         * build-aux/gnupload: Revert last change.  Add pointer to upload
46173         instructions of the GNU Maintenance Instructions.
46174         Suggestion by Karl Berry.
46175
46176 2006-11-10  Jim Meyering  <jim@meyering.net>
46177
46178         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46179
46180 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46181
46182         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46183         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46184         (bind_textdomain_codeset) [! ENABLE_NLS]:
46185         Evaluate all the arguments.  That way, callers get compatible behavior
46186         if the arguments have side effects.  Also, it avoids some GCC
46187         diagnostics in some cases; Joel E. Denny reported problems when Bison
46188         was configured with --enable-gcc-warnigs.
46189
46190 2006-11-10  Jim Meyering  <jim@meyering.net>
46191
46192         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46193         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46194         account.
46195
46196 2006-11-10  Jim Meyering  <jim@meyering.net>
46197
46198         * modules/inline: New file/module.
46199         * modules/xalloc (Files): Remove m4/inline.m4.
46200         (Depends-on): Add inline, instead.
46201         * modules/oset: Likewise.
46202         * modules/list: Likewise.
46203
46204 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46205
46206         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46207         Problem reported by Matthew Woehlke.
46208
46209 2006-11-09  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/tempname.c (gen_tempname): Remove variant that invokes
46212         __gen_tempname.
46213         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46214         __gen_tempname.
46215
46216 2006-11-08  Bruno Haible  <bruno@clisp.org>
46217
46218         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46219         to 'yes' instead of 'cross-compiling'.
46220
46221 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46222
46223         * lib/quotearg.h (quotearg_free): New decl.
46224         * lib/quotearg.c (quotearg_free): New function.
46225         (slot0, nslots, slotvec0, slotvec):
46226         Now file-scope so that quotearg_free can get at them.
46227
46228 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46229
46230         Sync from Automake.
46231         * build-aux/gnupload: Add missing 'gnu' to example URL.
46232         Report by Karl Berry.
46233
46234 2006-11-08  Bruno Haible  <bruno@clisp.org>
46235
46236         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46237         Suggested by Paul Eggert.
46238
46239 2006-11-08  Jim Meyering  <jim@meyering.net>
46240
46241         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46242         It's already included if !_LIBC.
46243         (fts_safe_changedir): Add a comment.
46244
46245 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46248         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46249         Matthew Woehlke.
46250
46251         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46252         definitions up, to avoid colliding with change below.
46253         (static_inline) [HAVE_INLINE]: New macro.
46254         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46255         Provide extern decls when !HAVE_INLINE.  Do not define unless
46256         static_inline is defined, either by us or by xmalloc.c.  Use
46257         static_inline rather than static inline.
46258         (XCALLOC): Optimize sizeof(T) = 1 case.
46259         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46260
46261 2006-11-07  Bruno Haible  <bruno@clisp.org>
46262
46263         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46264         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46265         AC_C_INLINE.
46266         * modules/xalloc (Files): Add m4/inline.m4.
46267
46268 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46269
46270         * README: Fix typo.
46271         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46272         (Miscellanous Notes): ...from this.
46273
46274 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46277         Mention that offsetof should be used instead of sizeof.
46278         From Bruno Haible.
46279
46280 2006-11-07  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46283
46284 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46285
46286         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46287         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46288         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46289         (gl_tree_add_before, gl_tree_add_after):
46290         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46291         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46292         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46293         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46294         (gl_linked_add_after, gl_linked_add_at): Likewise.
46295         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46296         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46297         (gl_tree_add_before, gl_tree_add_after): Likewise.
46298         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46299         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46300         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46301
46302 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46303
46304         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46305
46306 2006-11-06  Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/inline.m4: New file.
46309         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46310         * modules/list (Files): Add m4/inline.m4.
46311         * modules/oset (Files): Likewise.
46312
46313 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46314
46315         * lib/idcache.c: Include <stddef.h>, for offsetof.
46316         (struct userid.name): Change from char * to a flexible array member.
46317         All uses changed.
46318         * modules/idcache (Depends-on): Add flexmember.
46319
46320         * MODULES.html.sh (Core language properties): New module flexmember.
46321         * modules/flexmember, m4/flexmember.m4: New files.
46322
46323         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46324         inline functions that are identical with the old xnmalloc_inline,
46325         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46326         that we can avoid some unnecessary integer multiplications and
46327         divisions in the common case where the element size is known at
46328         compile time.
46329         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46330         needed.
46331         (xnboundedmalloc): Remove.
46332         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46333         arguments, for consistency with rest of this header.
46334         (xcharalloc): Rewrite using XNMALLOC.
46335         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46336         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46337         versions have been moved to lib/xalloc.h and renamed to be the
46338         non-*_inline versions.
46339         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46340         and xnrealloc functions, since those functions are now inline and
46341         now call us.
46342         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46343         renaming described above.
46344         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46345         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46346         captures the dependency in AC_C_INLINE.
46347
46348         New module canonicalize-lgpl, proposed by Charles Wilson in
46349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46350         with a few small changes afterwards.
46351         * MODULES.html.sh (File system functions): New module
46352         canonicalize-lgpl.
46353         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46354         and canonicalize_file_name.
46355         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46356         * modules/canonicalize-lgpl: New files.
46357
46358 2006-11-05  Bruno Haible  <bruno@clisp.org>
46359
46360         * gnulib-tool (func_import, func_create_testdir): Create directories
46361         also for files in subdirectories of lib/.
46362
46363 2006-11-05  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46366         ANSI C compliant.
46367
46368 2006-11-03  Bruno Haible  <bruno@clisp.org>
46369
46370         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46371         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46372         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46373         (xnboundedmalloc): New inline function.
46374         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46375         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46376         xmalloc.
46377         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46378         xmalloc.
46379         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46380         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46381         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46382         xmalloc.
46383         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46384         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46385         xmalloc.
46386         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46387         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46388         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46389         xmalloc.
46390         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46391         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46392         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46393         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46394         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46395         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46396         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46397
46398 2006-11-03  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/c-ctype.h [C++]: Define functions without name mangling.
46401         * lib/fwriteerror.h [C++]: Likewise.
46402         * lib/gcd.h [C++]: Likewise.
46403         * lib/linebreak.h [C++]: Likewise.
46404
46405 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46406
46407         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46408         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46409         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46410         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46411         Check for functions and headers just once.
46412         Check for declaration of canonicalize_file_name.
46413         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46414
46415 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46416
46417         * gnulib-tool (func_import): Fix typo in actioncmd.
46418
46419 2006-11-02  Bruno Haible  <bruno@clisp.org>
46420
46421         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46422         newline sequence in the Makefile.am snippet as a space, like "make"
46423         does.
46424         Reported by Roger Persson <perrog@gmail.com>.
46425
46426 2006-11-01  Bruno Haible  <bruno@clisp.org>
46427
46428         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46429         already declared in <string.h>.
46430         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46431
46432 2006-11-01  Bruno Haible  <bruno@clisp.org>
46433
46434         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46435         * lib/strcase.h: Include <string.h>.
46436         (strcasecmp): Define to rpl_strcasecmp here.
46437
46438 2006-11-01  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46441
46442 2006-11-01  Eric Blake  <ebb9@byu.net>
46443
46444         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46445
46446         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46447
46448 2006-10-29  Bruno Haible  <bruno@clisp.org>
46449
46450         Make it compile in C++ mode.
46451         * lib/full-write.c (full_rw): Add a cast.
46452
46453 2006-11-01  Bruno Haible  <bruno@clisp.org>
46454
46455         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46456         be POSIX compliant.
46457         Reported by Roger Persson <perrog@gmail.com>.
46458
46459 2006-11-01  Eric Blake  <ebb9@byu.net>
46460
46461         * lib/getopt_.h: Fix comments.
46462
46463 2006-10-31  Eric Blake  <ebb9@byu.net>
46464
46465         * modules/tmpdir (Depends-on): Add sys_stat.
46466         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46467         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46468         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46469         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46470         tempname.
46471
46472 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46473
46474         Avoid some C++ diagnostics reported by Bruno Haible.
46475         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46476         xmalloc.
46477         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46478         (struct slotvec): Move to top level.
46479         (quotearg_n_options): Rewrite to avoid xmalloc.
46480         * lib/xalloc.h (xcharalloc): New function.
46481         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46482         [defined __cplusplus]: Add function template that provides result
46483         type propagation.  This part of the change is from Bruno Haible.
46484
46485 2006-10-29  Bruno Haible  <bruno@clisp.org>
46486
46487         Make it compile in C++ mode.
46488         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46489         * lib/strnlen1.c (strnlen1): Cast memchr result.
46490         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46491         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46492         (create_temp_dir): Rename local variable 'template'.
46493         (compile_csharp_using_sscli): Add cast.
46494         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46495         * lib/findprog.c (find_in_path): Likewise.
46496         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46497         * lib/wait-process.c (register_slave_subprocess): Likewise.
46498
46499 2006-10-22  Bruno Haible  <bruno@clisp.org>
46500
46501         * modules/tsearch: New file.
46502         * lib/tsearch.h: New file.
46503         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46504         * m4/tsearch.m4: New file.
46505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46506
46507 2006-10-29  Eric Blake  <ebb9@byu.net>
46508
46509         * lib/arcfour.c: Assume config.h.
46510         * lib/arctwo.c: Likewise.
46511         * lib/base64.c: Likewise.
46512         * lib/check-version.c: Likewise.
46513         * lib/crc.c: Likewise.
46514         * lib/des.c: Likewise.
46515         * lib/gc-gnulib.c: Likewise.
46516         * lib/gc-libgcrypt.c: Likewise.
46517         * lib/gc-pbkdf2-sha1.c: Likewise.
46518         * lib/getaddrinfo.c: Likewise.
46519         * lib/getdelim.c: Likewise.
46520         * lib/getline.c: Likewise.
46521         * lib/hmac-md5.c: Likewise.
46522         * lib/hmac-sha1.c: Likewise.
46523         * lib/iconvme.c: Likewise.
46524         * lib/md2.c: Likewise.
46525         * lib/md4.c: Likewise.
46526         * lib/memxor.c: Likewise.
46527         * lib/read-file.c: Likewise.
46528         * lib/readline.c: Likewise.
46529         * lib/rijndael-alg-fst.c: Likewise.
46530         * lib/rijndael-api-fst.c: Likewise.
46531         * lib/xgetdomainname.c: Likewise.
46532
46533 2006-10-28  Eric Blake  <ebb9@byu.net>
46534
46535         * lib/xstrndup.c: Assume config.h.
46536
46537 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46538
46539         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46540         stat-macros.h is now for our own macros, whereas stat_h is for
46541         macros in the <sys/stat.h> name space.
46542         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46543         (STAT_MACROS_H): Remove.
46544         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46545         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46546         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46547         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46548         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46549         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46550         Move these macros to ...
46551         * lib/stat_.h: here.  Don't include stat-macros.h.
46552         * lib/canonicalize.c: Don't include stat-macros.h.
46553         * lib/chown.c: Likewise.
46554         * lib/euidaccess.c: Likewise.
46555         * lib/file-type.c: Likewise.
46556         * lib/filemode.c: Likewise.
46557         * lib/glob.c: Likewise.
46558         * lib/isapipe.c: Likewise.
46559         * lib/lchown.c: Likewise.
46560         * lib/lstat.c: Likewise.
46561         * lib/mkdir-p.c: Likewise.
46562         * lib/rmdir.c: Likewise.
46563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46565         unless mkdir isn't declared, to speed up 'configure'.
46566         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46567         would define all the S_* symbols.
46568         * modules/canonicalize (Depends-on):
46569         Depend on sys_stat, not stat-macros.
46570         * modules/chown: Likewise.
46571         * modules/euidaccess: Likewise.
46572         * modules/filemode: Likewise.
46573         * modules/file-type: Likewise.
46574         * modules/glob: Likewise.
46575         * modules/isapipe: Likewise.
46576         * modules/lchown: Likewise.
46577         * modules/lstat: Likewise.
46578         * modules/mkancesdirs: Likewise.
46579         * modules/rmdir: Likewise.
46580         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46581         * modules/modechange: Likewise.
46582         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46583         (configure.ac): Remove gl_STAT_MACROS.
46584         * modules/sys_stat (Depends-on): Remove stat-macros.
46585
46586 2006-10-27  Bruno Haible  <bruno@clisp.org>
46587
46588         * m4/signed.m4: Remove file.
46589         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46590         invocation.
46591         * modules/vasnprintf (Files): Remove m4/signed.m4.
46592
46593 2006-10-27  Bruno Haible  <bruno@clisp.org>
46594
46595         Update to GNU gettext 0.16.
46596         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46597         m4/inttypes-h.m4, m4/signed.m4.
46598         * m4/gettext.m4: Update to GNU gettext 0.16.
46599         * m4/intl.m4: New file, from GNU gettext.
46600         * m4/intldir.m4: New file, from GNU gettext.
46601         * config/srclist.txt: Update
46602
46603 2006-10-27  Eric Blake  <ebb9@byu.net>
46604
46605         * MODULES.html.sh: Document tempname.
46606         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46607         dependencies.
46608         (Files): Move lib/tempname.c...
46609         * modules/tempname: ...to this new module.
46610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46611         (gl_PREREQ_TEMPNAME): Move...
46612         * m4/tempname.m4: ...to this new file.
46613         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46614         * modules/sys_stat (Depends-on): Add stat-macros.
46615         * lib/stat_.h (includes): Pick up stat macros.
46616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46617         if stat macros are broken.
46618         * lib/tempname.c (includes): No need to include "stat-macros.h".
46619         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46620         (direxists, __path_search) [!_LIBC]: Don't compile these in
46621         gnulib; the tmpdir module covers that.
46622         * lib/tempname.h: New file.
46623
46624 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * COPYING: Explain how gnulib-tool converts licence headers.
46627         Almost all wording by Eric Blake.
46628
46629 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         * lib/mbchar.h (is_basic_table): Make read-only.
46632         * lib/mbchar.c (is_basic_table): Likewise.
46633         Reported by John Darrington.
46634
46635 2006-10-25  Bruno Haible  <bruno@clisp.org>
46636
46637         * lib/progname.h (set_program_name): Undefine before defining.
46638
46639 2006-10-25  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46642         false for non-gcc C++ compilers.
46643         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46644
46645 2006-10-24  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46648         iconv implementations like Irix iconv.
46649
46650 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46651
46652         * modules/vararrays: New file.
46653         * m4/vararrays.m4: New file, taken from diffutils.
46654         * MODULES.html.sh: New module vararrays.
46655
46656 2006-10-24  Karl Berry  <karl@gnu.org>
46657
46658         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46659         Don't call GNU Unix.
46660
46661 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46662
46663         * users.txt: Add Libtool.
46664
46665         Sync from Libtool:
46666
46667         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46668
46669         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46670         to gnulib's policy of including config.h unconditionally.
46671
46672 2006-10-24  Bruno Haible  <bruno@clisp.org>
46673
46674         * modules/wcwidth (Files): Add m4/wint_t.m4.
46675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46676         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46677
46678 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46679
46680         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46681         to pacify GCC with some -W flags enabled.  Problem reported by
46682         Bruno Haible.
46683
46684 2006-10-24  Jim Meyering  <jim@meyering.net>
46685
46686         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46687         Reported by Karl Berry.
46688
46689 2006-10-23  Bruno Haible  <bruno@clisp.org>
46690
46691         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46692
46693 2006-10-24  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/gl_list.h: Use C comment style, not C++ comment style.
46696
46697 2006-10-23  Eric Blake  <ebb9@byu.net>
46698
46699         * lib/getaddrinfo.c (includes): Add missing include.
46700
46701 2006-10-23  Bruno Haible  <bruno@clisp.org>
46702             Paul Eggert  <eggert@cs.ucla.edu>
46703
46704         Ability to rename obstack_free.
46705         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46706         obstack_free.
46707         (obstack_free): Invoke the __obstack_free macro.
46708         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46709
46710 2006-10-23  Bruno Haible  <bruno@clisp.org>
46711             Paul Eggert  <eggert@cs.ucla.edu>
46712
46713         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46714         __argc, __argv from the declaration. (They are defined as macros on
46715         mingw.)
46716
46717 2006-10-22  Bruno Haible  <bruno@clisp.org>
46718
46719         * doc/gnulib-intro.texi: New file.
46720         * doc/gnulib.texi: Include it.
46721
46722 2006-10-21  Bruno Haible  <bruno@clisp.org>
46723
46724         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46725         "Introduction", "Miscellanous Notes", "Particular Modules".
46726
46727 2006-10-21  Bruno Haible  <bruno@clisp.org>
46728
46729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46730         Change mostlyclean-local rule to avoid sh syntax error from bash
46731         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46732
46733 2006-10-23  Jim Meyering  <jim@meyering.net>
46734
46735         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46736         in place of snprintf.
46737
46738         * modules/inttostr (Files): Add lib/uinttostr.c.
46739         * lib/uinttostr.c (inttostr): New file/function.
46740         * lib/inttostr.h (uinttostr): Declare.
46741         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46742         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46743         Add uinttostr.
46744         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46745
46746 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46747
46748         * lib/canonicalize.c (ELOOP): Define if not already defined.
46749         Problem reported by Bruno Haible in
46750         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46751
46752 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46753
46754         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46755         Problem reported by Perry Smith and Ville Laurikari.
46756
46757         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46758         uses.
46759
46760 2006-10-19  Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46763         for mingw.
46764
46765 2006-10-19  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46768         Needed for mingw.
46769
46770 2006-10-19  Bruno Haible  <bruno@clisp.org>
46771
46772         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46773
46774 2006-10-19  Bruno Haible  <bruno@clisp.org>
46775
46776         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46777         it.
46778
46779 2006-10-19  Bruno Haible  <bruno@clisp.org>
46780
46781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46782         invocation.
46783
46784 2006-10-19  Bruno Haible  <bruno@clisp.org>
46785
46786         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46787         mountlist by default.
46788
46789 2006-10-16  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/c-strstr.c: Include c-strstr.h.
46792
46793 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46794
46795         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46796         in a slash.
46797
46798 2006-10-18  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/lock.h [C++]: Wrap definitions in extern "C".
46801
46802 2006-10-18  Bruno Haible  <bruno@clisp.org>
46803
46804         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46805         gl_LIBOBJS list.
46806
46807 2006-10-18  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46810
46811 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46812
46813         * lib/xstrtol.h: Include gettext.h.
46814         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46815         Problem reported by Eric Blake.
46816         * modules/xstrtol (Depends-on): Add gettext-h.
46817
46818 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46819
46820         * lib/strftime.c (advance): New macro.
46821         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46822         incomplete type, so you can't add 0 to it.  Problem and patch
46823         reported by Eelco Dolstra for dietlibc.
46824
46825 2006-10-18  Jim Meyering  <jim@meyering.net>
46826
46827         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46828         type for a local, and rename it: s/up/user_proc/.
46829
46830 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46831
46832         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46833         READ_UTMP_USER_PROCESS.
46834         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46835
46836 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46837
46838         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46839         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46840
46841 2006-10-17  Eric Blake  <ebb9@byu.net>
46842
46843         * lib/sigprocmask.c (sigprocmask): Fix typo.
46844
46845         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
46846
46847         * modules/clean-temp (Makefile.am): Don't add to make output...
46848         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
46849         config.h.
46850
46851 2006-10-17  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
46854         differently if DEFAULT_TEXT_DOMAIN is set.
46855
46856 2006-10-16  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/clean-temp.c: Include fwriteerror.h.
46859
46860 2006-10-16  Bruno Haible  <bruno@clisp.org>
46861
46862         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
46863
46864 2006-10-16  Bruno Haible  <bruno@clisp.org>
46865
46866         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
46867         * lib/sigprocmask.h: Include <sys/types.h>.
46868         (sigset_t): Use the system's definition if present.
46869
46870 2006-10-17  Eric Blake  <ebb9@byu.net>
46871
46872         * lib/xvasprintf.c (includes): Assume config.h.
46873         * lib/xasprintf.c (includes): Likewise.
46874
46875 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46876
46877         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
46878         at least as wide as intmax_t.
46879
46880 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
46881
46882         (Imported from Automake.)
46883         * build-aux/gnupload: Update to version 1.1 of directive file.
46884
46885 2006-10-16  Eric Blake  <ebb9@byu.net>
46886
46887         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
46888         match Automake 1.10a.
46889
46890 2006-10-14  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/sigprocmask: New file.
46893         * lib/sigprocmask.h: New file.
46894         * lib/sigprocmask.c: New file.
46895         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
46896         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
46897         request sigprocmask.o.
46898         (gl_PREREQ_SIGPROCMASK): New macro.
46899         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
46900         (Depends-on): Add sigprocmask.
46901         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
46902         gt_SIGNALBLOCKING. Test for 'raise' only once.
46903         * lib/fatal-signal.c: Include sigprocmask.h.
46904         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
46905         unblock_fatal_signals): Define always.
46906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46907         sigprocmask.
46908
46909 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46910
46911         Sync from Automake.
46912         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
46913         which incorrectly sets the mode of an existing destination
46914         directory.  In some cases the unpatched install-sh could do the
46915         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
46916         system.  We hope this is rare in practice, but it's clearly worth
46917         fixing.  Problem reported by Alex Unleashed in
46918         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
46919         Also, don't bother to check for -m bugs unless we're using -m;
46920         suggested by Stepan Kasal.
46921
46922 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46923
46924         Sync from Automake.
46925         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
46926         `-c' flag, so they appear at the same position as in %FASTDEP%
46927         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
46928         which ignores unknown options only after the first non-option.
46929         Bug report against M4 by Nelson H. F. Beebe.
46930
46931 2006-10-13  Jim Meyering  <jim@meyering.net>
46932
46933         Fix a bug in yesterday's change.
46934         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
46935         p->fts_statp->st_dev would be used uninitialized.
46936         Ensures that we always call fts_stat on the very first entry.
46937         Miklos Szeredi reported that find -xdev stopped working.
46938
46939 2006-10-12  Bruno Haible  <bruno@clisp.org>
46940
46941         * gnulib-tool (func_get_automake_snippet): Append an automatically
46942         computed EXTRA_DIST augmentation.
46943         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
46944         * modules/alloca-opt (Makefile.am): Likewise.
46945         * modules/allocsa (Makefile.am): Likewise.
46946         * modules/arcfour (Makefile.am): Likewise.
46947         * modules/arctwo (Makefile.am): Likewise.
46948         * modules/argmatch (Makefile.am): Likewise.
46949         * modules/argz (Makefile.am): Likewise.
46950         * modules/atexit (Makefile.am): Likewise.
46951         * modules/backupfile (Makefile.am): Likewise.
46952         * modules/byteswap (Makefile.am): Likewise.
46953         * modules/c-strtod (Makefile.am): Likewise.
46954         * modules/c-strtold (Makefile.am): Likewise.
46955         * modules/calloc (Makefile.am): Likewise.
46956         * modules/canon-host (Makefile.am): Likewise.
46957         * modules/canonicalize (Makefile.am): Likewise.
46958         * modules/chdir-long (Makefile.am): Likewise.
46959         * modules/chdir-safer (Makefile.am): Likewise.
46960         * modules/check-version (Makefile.am): Likewise.
46961         * modules/chown (Makefile.am): Likewise.
46962         * modules/cloexec (Makefile.am): Likewise.
46963         * modules/close-stream (Makefile.am): Likewise.
46964         * modules/closeout (Makefile.am): Likewise.
46965         * modules/crc (Makefile.am): Likewise.
46966         * modules/csharpexec (Makefile.am): Likewise.
46967         * modules/cycle-check (Makefile.am): Likewise.
46968         * modules/des (Makefile.am): Likewise.
46969         * modules/dev-ino (Makefile.am): Likewise.
46970         * modules/dirfd (Makefile.am): Likewise.
46971         * modules/dirname (Makefile.am): Likewise.
46972         * modules/dup2 (Makefile.am): Likewise.
46973         * modules/eealloc (Makefile.am): Likewise.
46974         * modules/error (Makefile.am): Likewise.
46975         * modules/euidaccess (Makefile.am): Likewise.
46976         * modules/exclude (Makefile.am): Likewise.
46977         * modules/exitfail (Makefile.am): Likewise.
46978         * modules/fcntl-safer (Makefile.am): Likewise.
46979         * modules/fcntl (Makefile.am): Likewise.
46980         * modules/file-type (Makefile.am): Likewise.
46981         * modules/fileblocks (Makefile.am): Likewise.
46982         * modules/filemode (Makefile.am): Likewise.
46983         * modules/filenamecat (Makefile.am): Likewise.
46984         * modules/fnmatch (Makefile.am): Likewise.
46985         * modules/fopen-safer (Makefile.am): Likewise.
46986         * modules/fpending (Makefile.am): Likewise.
46987         * modules/fprintftime (Makefile.am): Likewise.
46988         * modules/free (Makefile.am): Likewise.
46989         * modules/fsusage (Makefile.am): Likewise.
46990         * modules/ftruncate (Makefile.am): Likewise.
46991         * modules/fts (Makefile.am): Likewise.
46992         * modules/gc-arcfour (Makefile.am): Likewise.
46993         * modules/gc-des (Makefile.am): Likewise.
46994         * modules/gc-hmac-md5 (Makefile.am): Likewise.
46995         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
46996         * modules/gc-md4 (Makefile.am): Likewise.
46997         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
46998         * modules/gc-sha1 (Makefile.am): Likewise.
46999         * modules/gc (Makefile.am): Likewise.
47000         * modules/getaddrinfo (Makefile.am): Likewise.
47001         * modules/getcwd (Makefile.am): Likewise.
47002         * modules/getdelim (Makefile.am): Likewise.
47003         * modules/getdomainname (Makefile.am): Likewise.
47004         * modules/getgroups (Makefile.am): Likewise.
47005         * modules/gethostname (Makefile.am): Likewise.
47006         * modules/gethrxtime (Makefile.am): Likewise.
47007         * modules/getline (Makefile.am): Likewise.
47008         * modules/getloadavg (Makefile.am): Likewise.
47009         * modules/getlogin_r (Makefile.am): Likewise.
47010         * modules/getndelim2 (Makefile.am): Likewise.
47011         * modules/getopt (Makefile.am): Likewise.
47012         * modules/getpagesize (Makefile.am): Likewise.
47013         * modules/getpass-gnu (Makefile.am): Likewise.
47014         * modules/getpass (Makefile.am): Likewise.
47015         * modules/getsubopt (Makefile.am): Likewise.
47016         * modules/gettime (Makefile.am): Likewise.
47017         * modules/gettimeofday (Makefile.am): Likewise.
47018         * modules/getugroups (Makefile.am): Likewise.
47019         * modules/getusershell (Makefile.am): Likewise.
47020         * modules/glob (Makefile.am): Likewise.
47021         * modules/group-member (Makefile.am): Likewise.
47022         * modules/hard-locale (Makefile.am): Likewise.
47023         * modules/hash (Makefile.am): Likewise.
47024         * modules/hmac-md5 (Makefile.am): Likewise.
47025         * modules/hmac-sha1 (Makefile.am): Likewise.
47026         * modules/human (Makefile.am): Likewise.
47027         * modules/idcache (Makefile.am): Likewise.
47028         * modules/imaxabs (Makefile.am): Likewise.
47029         * modules/imaxdiv (Makefile.am): Likewise.
47030         * modules/inet_ntop (Makefile.am): Likewise.
47031         * modules/inet_pton (Makefile.am): Likewise.
47032         * modules/intprops (Makefile.am): Likewise.
47033         * modules/inttostr (Makefile.am): Likewise.
47034         * modules/inttypes (Makefile.am): Likewise.
47035         * modules/isapipe (Makefile.am): Likewise.
47036         * modules/javaversion (Makefile.am): Likewise.
47037         * modules/lchmod (Makefile.am): Likewise.
47038         * modules/lchown (Makefile.am): Likewise.
47039         * modules/localcharset (Makefile.am): Likewise.
47040         * modules/long-options (Makefile.am): Likewise.
47041         * modules/lstat (Makefile.am): Likewise.
47042         * modules/malloc (Makefile.am): Likewise.
47043         * modules/mathl (Makefile.am): Likewise.
47044         * modules/mbchar (Makefile.am): Likewise.
47045         * modules/md2 (Makefile.am): Likewise.
47046         * modules/md4 (Makefile.am): Likewise.
47047         * modules/md5 (Makefile.am): Likewise.
47048         * modules/memcasecmp (Makefile.am): Likewise.
47049         * modules/memchr (Makefile.am): Likewise.
47050         * modules/memcmp (Makefile.am): Likewise.
47051         * modules/memcoll (Makefile.am): Likewise.
47052         * modules/memcpy (Makefile.am): Likewise.
47053         * modules/memmem (Makefile.am): Likewise.
47054         * modules/memmove (Makefile.am): Likewise.
47055         * modules/mempcpy (Makefile.am): Likewise.
47056         * modules/memrchr (Makefile.am): Likewise.
47057         * modules/memset (Makefile.am): Likewise.
47058         * modules/memxor (Makefile.am): Likewise.
47059         * modules/mkancesdirs (Makefile.am): Likewise.
47060         * modules/mkdir-p (Makefile.am): Likewise.
47061         * modules/mkdir (Makefile.am): Likewise.
47062         * modules/mkdtemp (Makefile.am): Likewise.
47063         * modules/mkstemp (Makefile.am): Likewise.
47064         * modules/mktime (Makefile.am): Likewise.
47065         * modules/modechange (Makefile.am): Likewise.
47066         * modules/mountlist (Makefile.am): Likewise.
47067         * modules/nanosleep (Makefile.am): Likewise.
47068         * modules/obstack (Makefile.am): Likewise.
47069         * modules/openat (Makefile.am): Likewise.
47070         * modules/pagealign_alloc (Makefile.am): Likewise.
47071         * modules/pathmax (Makefile.am): Likewise.
47072         * modules/physmem (Makefile.am): Likewise.
47073         * modules/poll (Makefile.am): Likewise.
47074         * modules/posixtm (Makefile.am): Likewise.
47075         * modules/posixver (Makefile.am): Likewise.
47076         * modules/putenv (Makefile.am): Likewise.
47077         * modules/quote (Makefile.am): Likewise.
47078         * modules/quotearg (Makefile.am): Likewise.
47079         * modules/raise (Makefile.am): Likewise.
47080         * modules/read-file (Makefile.am): Likewise.
47081         * modules/readline (Makefile.am): Likewise.
47082         * modules/readlink (Makefile.am): Likewise.
47083         * modules/readtokens (Makefile.am): Likewise.
47084         * modules/readutmp (Makefile.am): Likewise.
47085         * modules/realloc (Makefile.am): Likewise.
47086         * modules/regex (Makefile.am): Likewise.
47087         * modules/rename-dest-slash (Makefile.am): Likewise.
47088         * modules/rename (Makefile.am): Likewise.
47089         * modules/rijndael (Makefile.am): Likewise.
47090         * modules/rmdir (Makefile.am): Likewise.
47091         * modules/rpmatch (Makefile.am): Likewise.
47092         * modules/safe-read (Makefile.am): Likewise.
47093         * modules/safe-write (Makefile.am): Likewise.
47094         * modules/same-inode (Makefile.am): Likewise.
47095         * modules/same (Makefile.am): Likewise.
47096         * modules/save-cwd (Makefile.am): Likewise.
47097         * modules/savedir (Makefile.am): Likewise.
47098         * modules/setenv (Makefile.am): Likewise.
47099         * modules/settime (Makefile.am): Likewise.
47100         * modules/sha1 (Makefile.am): Likewise.
47101         * modules/sig2str (Makefile.am): Likewise.
47102         * modules/snprintf (Makefile.am): Likewise.
47103         * modules/stat-macros (Makefile.am): Likewise.
47104         * modules/stat-time (Makefile.am): Likewise.
47105         * modules/stdbool (Makefile.am): Likewise.
47106         * modules/stdint (Makefile.am): Likewise.
47107         * modules/stdlib-safer (Makefile.am): Likewise.
47108         * modules/stpcpy (Makefile.am): Likewise.
47109         * modules/stpncpy (Makefile.am): Likewise.
47110         * modules/strcase (Makefile.am): Likewise.
47111         * modules/strcasestr (Makefile.am): Likewise.
47112         * modules/strchrnul (Makefile.am): Likewise.
47113         * modules/strcspn (Makefile.am): Likewise.
47114         * modules/strdup (Makefile.am): Likewise.
47115         * modules/strerror (Makefile.am): Likewise.
47116         * modules/strftime (Makefile.am): Likewise.
47117         * modules/strndup (Makefile.am): Likewise.
47118         * modules/strnlen (Makefile.am): Likewise.
47119         * modules/strpbrk (Makefile.am): Likewise.
47120         * modules/strsep (Makefile.am): Likewise.
47121         * modules/strstr (Makefile.am): Likewise.
47122         * modules/strtod (Makefile.am): Likewise.
47123         * modules/strtoimax (Makefile.am): Likewise.
47124         * modules/strtok_r (Makefile.am): Likewise.
47125         * modules/strtol (Makefile.am): Likewise.
47126         * modules/strtoll (Makefile.am): Likewise.
47127         * modules/strtoul (Makefile.am): Likewise.
47128         * modules/strtoull (Makefile.am): Likewise.
47129         * modules/strtoumax (Makefile.am): Likewise.
47130         * modules/strverscmp (Makefile.am): Likewise.
47131         * modules/sys_socket (Makefile.am): Likewise.
47132         * modules/sys_stat (Makefile.am): Likewise.
47133         * modules/sysexits (Makefile.am): Likewise.
47134         * modules/time_r (Makefile.am): Likewise.
47135         * modules/timegm (Makefile.am): Likewise.
47136         * modules/timespec (Makefile.am): Likewise.
47137         * modules/tmpfile-safer (Makefile.am): Likewise.
47138         * modules/trim (Makefile.am): Likewise.
47139         * modules/unistd-safer (Makefile.am): Likewise.
47140         * modules/unlinkdir (Makefile.am): Likewise.
47141         * modules/unlocked-io (Makefile.am): Likewise.
47142         * modules/userspec (Makefile.am): Likewise.
47143         * modules/utime (Makefile.am): Likewise.
47144         * modules/utimecmp (Makefile.am): Likewise.
47145         * modules/utimens (Makefile.am): Likewise.
47146         * modules/vasnprintf (Makefile.am): Likewise.
47147         * modules/vasprintf (Makefile.am): Likewise.
47148         * modules/vsnprintf (Makefile.am): Likewise.
47149         * modules/xalloc (Makefile.am): Likewise.
47150         * modules/xgetcwd (Makefile.am): Likewise.
47151         * modules/xnanosleep (Makefile.am): Likewise.
47152         * modules/xreadlink (Makefile.am): Likewise.
47153         * modules/xstrtod (Makefile.am): Likewise.
47154         * modules/xstrtol (Makefile.am): Likewise.
47155         * modules/xstrtold (Makefile.am): Likewise.
47156         * modules/yesno (Makefile.am): Likewise.
47157         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47158
47159 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47160
47161         * modules/error (Makefile.am): Distribute files through
47162         EXTRA_DIST, not lib_SOURCES.
47163
47164 2006-10-12  Eric Blake  <ebb9@byu.net>
47165
47166         * modules/error (Makefile.am): Distribute files in /lib.
47167         * modules/obstack (Makefile.am): Likewise.
47168
47169 2006-10-12  Bruno Haible  <bruno@clisp.org>
47170
47171         * modules/acl (Makefile.am): Distribute all files in lib/ through
47172         EXTRA_DIST.
47173         * modules/arcfour (Makefile.am): Likewise.
47174         * modules/arctwo (Makefile.am): Likewise.
47175         * modules/argmatch (Makefile.am): Likewise.
47176         * modules/argz (Makefile.am): Likewise.
47177         * modules/atexit (Makefile.am): Likewise.
47178         * modules/backupfile (Makefile.am): Likewise.
47179         * modules/c-strtod (Makefile.am): Likewise.
47180         * modules/c-strtold (Makefile.am): Likewise.
47181         * modules/calloc (Makefile.am): Likewise.
47182         * modules/canon-host (Makefile.am): Likewise.
47183         * modules/canonicalize (Makefile.am): Likewise.
47184         * modules/chdir-long (Makefile.am): Likewise.
47185         * modules/chdir-safer (Makefile.am): Likewise.
47186         * modules/check-version (Makefile.am): Likewise.
47187         * modules/chown (Makefile.am): Likewise.
47188         * modules/cloexec (Makefile.am): Likewise.
47189         * modules/close-stream (Makefile.am): Likewise.
47190         * modules/closeout (Makefile.am): Likewise.
47191         * modules/crc (Makefile.am): Likewise.
47192         * modules/cycle-check (Makefile.am): Likewise.
47193         * modules/des (Makefile.am): Likewise.
47194         * modules/dirfd (Makefile.am): Likewise.
47195         * modules/dirname (Makefile.am): Likewise.
47196         * modules/dup2 (Makefile.am): Likewise.
47197         * modules/euidaccess (Makefile.am): Likewise.
47198         * modules/exclude (Makefile.am): Likewise.
47199         * modules/exitfail (Makefile.am): Likewise.
47200         * modules/fcntl-safer (Makefile.am): Likewise.
47201         * modules/file-type (Makefile.am): Likewise.
47202         * modules/fileblocks (Makefile.am): Likewise.
47203         * modules/filemode (Makefile.am): Likewise.
47204         * modules/filenamecat (Makefile.am): Likewise.
47205         * modules/fnmatch (Makefile.am): Likewise.
47206         * modules/fopen-safer (Makefile.am): Likewise.
47207         * modules/fpending (Makefile.am): Likewise.
47208         * modules/fprintftime (Makefile.am): Likewise.
47209         * modules/free (Makefile.am): Likewise.
47210         * modules/fsusage (Makefile.am): Likewise.
47211         * modules/ftruncate (Makefile.am): Likewise.
47212         * modules/fts (Makefile.am): Likewise.
47213         * modules/gc (Makefile.am): Likewise.
47214         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47215         * modules/getaddrinfo (Makefile.am): Likewise.
47216         * modules/getcwd (Makefile.am): Likewise.
47217         * modules/getdelim (Makefile.am): Likewise.
47218         * modules/getdomainname (Makefile.am): Likewise.
47219         * modules/getgroups (Makefile.am): Likewise.
47220         * modules/gethostname (Makefile.am): Likewise.
47221         * modules/gethrxtime (Makefile.am): Likewise.
47222         * modules/getline (Makefile.am): Likewise.
47223         * modules/getloadavg (Makefile.am): Likewise.
47224         * modules/getlogin_r (Makefile.am): Likewise.
47225         * modules/getopt (Makefile.am): Likewise.
47226         * modules/getpass (Makefile.am): Likewise.
47227         * modules/getpass-gnu (Makefile.am): Likewise.
47228         * modules/getsubopt (Makefile.am): Likewise.
47229         * modules/gettime (Makefile.am): Likewise.
47230         * modules/gettimeofday (Makefile.am): Likewise.
47231         * modules/getugroups (Makefile.am): Likewise.
47232         * modules/getusershell (Makefile.am): Likewise.
47233         * modules/glob (Makefile.am): Likewise.
47234         * modules/group-member (Makefile.am): Likewise.
47235         * modules/hard-locale (Makefile.am): Likewise.
47236         * modules/hash (Makefile.am): Likewise.
47237         * modules/hmac-md5 (Makefile.am): Likewise.
47238         * modules/hmac-sha1 (Makefile.am): Likewise.
47239         * modules/human (Makefile.am): Likewise.
47240         * modules/idcache (Makefile.am): Likewise.
47241         * modules/imaxabs (Makefile.am): Likewise.
47242         * modules/imaxdiv (Makefile.am): Likewise.
47243         * modules/inet_ntop (Makefile.am): Likewise.
47244         * modules/inet_pton (Makefile.am): Likewise.
47245         * modules/inttostr (Makefile.am): Likewise.
47246         * modules/isapipe (Makefile.am): Likewise.
47247         * modules/lchown (Makefile.am): Likewise.
47248         * modules/long-options (Makefile.am): Likewise.
47249         * modules/lstat (Makefile.am): Likewise.
47250         * modules/malloc (Makefile.am): Likewise.
47251         * modules/mathl (Makefile.am): Likewise.
47252         * modules/mbchar (Makefile.am): Likewise.
47253         * modules/md2 (Makefile.am): Likewise.
47254         * modules/md4 (Makefile.am): Likewise.
47255         * modules/md5 (Makefile.am): Likewise.
47256         * modules/memcasecmp (Makefile.am): Likewise.
47257         * modules/memchr (Makefile.am): Likewise.
47258         * modules/memcmp (Makefile.am): Likewise.
47259         * modules/memcoll (Makefile.am): Likewise.
47260         * modules/memcpy (Makefile.am): Likewise.
47261         * modules/memmem (Makefile.am): Likewise.
47262         * modules/memmove (Makefile.am): Likewise.
47263         * modules/mempcpy (Makefile.am): Likewise.
47264         * modules/memrchr (Makefile.am): Likewise.
47265         * modules/memset (Makefile.am): Likewise.
47266         * modules/memxor (Makefile.am): Likewise.
47267         * modules/mkancesdirs (Makefile.am): Likewise.
47268         * modules/mkdir (Makefile.am): Likewise.
47269         * modules/mkdir-p (Makefile.am): Likewise.
47270         * modules/mkdtemp (Makefile.am): Likewise.
47271         * modules/mkstemp (Makefile.am): Likewise.
47272         * modules/mktime (Makefile.am): Likewise.
47273         * modules/modechange (Makefile.am): Likewise.
47274         * modules/mountlist (Makefile.am): Likewise.
47275         * modules/nanosleep (Makefile.am): Likewise.
47276         * modules/openat (Makefile.am): Likewise.
47277         * modules/pagealign_alloc (Makefile.am): Likewise.
47278         * modules/physmem (Makefile.am): Likewise.
47279         * modules/poll (Makefile.am): Likewise.
47280         * modules/posixtm (Makefile.am): Likewise.
47281         * modules/posixver (Makefile.am): Likewise.
47282         * modules/putenv (Makefile.am): Likewise.
47283         * modules/quote (Makefile.am): Likewise.
47284         * modules/quotearg (Makefile.am): Likewise.
47285         * modules/raise (Makefile.am): Likewise.
47286         * modules/read-file (Makefile.am): Likewise.
47287         * modules/readline (Makefile.am): Likewise.
47288         * modules/readlink (Makefile.am): Likewise.
47289         * modules/readtokens (Makefile.am): Likewise.
47290         * modules/readutmp (Makefile.am): Likewise.
47291         * modules/realloc (Makefile.am): Likewise.
47292         * modules/regex (Makefile.am): Likewise.
47293         * modules/rename (Makefile.am): Likewise.
47294         * modules/rename-dest-slash (Makefile.am): Likewise.
47295         * modules/rijndael (Makefile.am): Likewise.
47296         * modules/rmdir (Makefile.am): Likewise.
47297         * modules/rpmatch (Makefile.am): Likewise.
47298         * modules/safe-read (Makefile.am): Likewise.
47299         * modules/safe-write (Makefile.am): Likewise.
47300         * modules/same (Makefile.am): Likewise.
47301         * modules/save-cwd (Makefile.am): Likewise.
47302         * modules/savedir (Makefile.am): Likewise.
47303         * modules/setenv (Makefile.am): Likewise.
47304         * modules/settime (Makefile.am): Likewise.
47305         * modules/sha1 (Makefile.am): Likewise.
47306         * modules/sig2str (Makefile.am): Likewise.
47307         * modules/snprintf (Makefile.am): Likewise.
47308         * modules/stdlib-safer (Makefile.am): Likewise.
47309         * modules/stpcpy (Makefile.am): Likewise.
47310         * modules/stpncpy (Makefile.am): Likewise.
47311         * modules/strcase (Makefile.am): Likewise.
47312         * modules/strcasestr (Makefile.am): Likewise.
47313         * modules/strchrnul (Makefile.am): Likewise.
47314         * modules/strcspn (Makefile.am): Likewise.
47315         * modules/strdup (Makefile.am): Likewise.
47316         * modules/strerror (Makefile.am): Likewise.
47317         * modules/strftime (Makefile.am): Likewise.
47318         * modules/strndup (Makefile.am): Likewise.
47319         * modules/strnlen (Makefile.am): Likewise.
47320         * modules/strpbrk (Makefile.am): Likewise.
47321         * modules/strsep (Makefile.am): Likewise.
47322         * modules/strstr (Makefile.am): Likewise.
47323         * modules/strtod (Makefile.am): Likewise.
47324         * modules/strtoimax (Makefile.am): Likewise.
47325         * modules/strtok_r (Makefile.am): Likewise.
47326         * modules/strtol (Makefile.am): Likewise.
47327         * modules/strtoll (Makefile.am): Likewise.
47328         * modules/strtoul (Makefile.am): Likewise.
47329         * modules/strtoull (Makefile.am): Likewise.
47330         * modules/strtoumax (Makefile.am): Likewise.
47331         * modules/strverscmp (Makefile.am): Likewise.
47332         * modules/time_r (Makefile.am): Likewise.
47333         * modules/timegm (Makefile.am): Likewise.
47334         * modules/tmpfile-safer (Makefile.am): Likewise.
47335         * modules/unistd-safer (Makefile.am): Likewise.
47336         * modules/unlinkdir (Makefile.am): Likewise.
47337         * modules/userspec (Makefile.am): Likewise.
47338         * modules/utime (Makefile.am): Likewise.
47339         * modules/utimecmp (Makefile.am): Likewise.
47340         * modules/utimens (Makefile.am): Likewise.
47341         * modules/vasnprintf (Makefile.am): Likewise.
47342         * modules/vasprintf (Makefile.am): Likewise.
47343         * modules/vsnprintf (Makefile.am): Likewise.
47344         * modules/xalloc (Makefile.am): Likewise.
47345         * modules/xgetcwd (Makefile.am): Likewise.
47346         * modules/xnanosleep (Makefile.am): Likewise.
47347         * modules/xreadlink (Makefile.am): Likewise.
47348         * modules/xstrtod (Makefile.am): Likewise.
47349         * modules/xstrtol (Makefile.am): Likewise.
47350         * modules/xstrtold (Makefile.am): Likewise.
47351         * modules/yesno (Makefile.am): Likewise.
47352
47353 2006-10-12  Jim Meyering  <jim@meyering.net>
47354
47355         * m4/getloadavg.m4: Revert the change below.
47356
47357         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47358         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47359         fail with a symlink, which is what coreutils' ./bootstrap now
47360         creates by default.
47361
47362 2006-10-12  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47365         mingw.
47366         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47367         MSVC and mingw explicitly.
47368
47369 2006-10-11  Simon Josefsson  <jas@extundo.com>
47370             Bruno Haible  <bruno@clisp.org>
47371
47372         Add support for multiple gnulib-tool invocations in the scope of a
47373         single configure.ac file.
47374         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47375         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47376         with the same contents as the _LIBADD variable.
47377         (func_emit_initmacro_start, func_emit_initmacro_end,
47378         func_emit_initmacro_done): New functions.
47379         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47380         gl_LIBOBJS and gl_LTLIBOBJS.
47381
47382 2006-10-11  Bruno Haible  <bruno@clisp.org>
47383
47384         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47385         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47386         autoreconf. Instead, invoke autopoint explicitly but move back the
47387         *.m4 files from gnulib.
47388
47389 2006-10-11  Bruno Haible  <bruno@clisp.org>
47390
47391         * gnulib-tool (func_usage): Make module names after --create-testdir
47392         optional.
47393         (func_create_testdir): If no module was specified, use nearly all
47394         modules.
47395
47396 2006-10-12  Jim Meyering  <jim@meyering.net>
47397
47398         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47399         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47400         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47401         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47402         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47403         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47404         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47405         (fts_set_stat_required): New function.
47406         (fts_open): Defer the calls to fts_stat, if possible or requested.
47407         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47408         into fts_stat itself.
47409         (fts_read): Perform any required (deferred) fts_stat call.
47410         (fts_build): Likewise, for the directory we're about to open and read.
47411         In the readdir loop, carefully decide whether each entry will require
47412         an eventual call to fts_stat, using dirent.d_type info if available.
47413         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47414         a command line argument into this function.  Update all callers.
47415         Map a return value of FTS_DOT to FTS_D for a command line argument.
47416         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47417         Thanks to Miklos Szeredi for his tenacity and for the initial
47418         bug report about "find" failing on a FUSE-based file system.
47419
47420         * lib/fts.c (fts_open): Use consistent indentation.
47421
47422 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47425         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47426         reported by Jim Meyering.  All uses of cache variables renamed
47427         to match Autoconf's.
47428         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47429         the other one.
47430
47431         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47432         Fix misspelling in diagnostic.
47433
47434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47437         defined.  Problem reported by Matthew Woehlke.
47438
47439         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47440         Add support for Tandem NonStop R series.
47441         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47442         Use new macro.
47443
47444         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47445         (has_trailing_slash): Omit size arg; all callers changed.
47446         Omit 'inline', since it doesn't help performance and we'd
47447         need to configure it.
47448         Don't count //, ///, etc. as having a trailing slash.
47449         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47450         (rpl_rename_dest_slash): On failure, use rename's errno rather
47451         than (in some cases) an incorrect or junk errno.
47452         Simplify code by removing need to compute length; this does
47453         cause it to make two passes instead of one over the file name,
47454         but it's worth it.
47455
47456         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47457         change, since Autoconf's version may no longer be appropriate now
47458         that we are using CVS Autoconf's version.  Add support for Tandem.
47459
47460 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47461             Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47464         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47465         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47466         gl_AC_TYPE_LONG_LONG.
47467
47468         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47469         instead of HAVE_LONG_LONG.
47470         * lib/printf-args.c (printf_fetchargs): Likewise.
47471         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47472         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47473         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47474         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47475         gl_AC_TYPE_LONG_LONG.
47476
47477 2006-10-11  Bruno Haible  <bruno@clisp.org>
47478
47479         * m4/longlong.m4: Add comments.
47480         * m4/ulonglong.m4: Likewise.
47481
47482 2006-10-10  Bruno Haible  <bruno@clisp.org>
47483
47484         Make it possible to #define stpcpy, strdup to aliases.
47485         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47486         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47487
47488 2006-10-10  Bruno Haible  <bruno@clisp.org>
47489
47490         Make it possible to #define gcd to an alias.
47491         * lib/gcd.c: Include config.h.
47492
47493 2006-10-10  Bruno Haible  <bruno@clisp.org>
47494
47495         Make it possible to #define c_isascii to an alias.
47496         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47497         defined. Undefine the macros before defining them, to avoid gcc
47498         warnings.
47499         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47500         define NO_C_CTYPE_MACROS early.
47501
47502 2006-10-10  Bruno Haible  <bruno@clisp.org>
47503
47504         Make it possible to #define set_program_name to an alias.
47505         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47506         ENABLE_RELOCATABLE early.
47507
47508 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47511         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47512         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47513         More generally, don't assume that 64-bit signed int is available
47514         if unsigned int is, and vice versa.
47515         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47516         unsigned symbols, not on their signed counterparts.
47517         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47518         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47519         (UINT64_C, UINTMAX_C):
47520         Likewise.
47521         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47522         unsigned counterparts.
47523         (Have_long_long, Unsigned): New macros.
47524         (Int): Renamed from INT.
47525         (strtoimax): Use the new macros.
47526         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47527         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47528         * modules/inttypes (inttypes.h): Substitute
47529         HAVE_UNSIGNED_LONG_LONG_INT.
47530         * modules/stdint (stdint.h): Likewise.
47531         (Files): Add m4/ulonglong.m4.
47532
47533 2006-10-10  Bruno Haible  <bruno@clisp.org>
47534
47535         Fix a gcc -Wshadow warning.
47536         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47537         to 'bucket'.
47538         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47539         gl_linked_indexof_from_to): Likewise.
47540         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47541         Likewise.
47542         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47543         Likewise.
47544         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47545         Reported by Eric Blake.
47546
47547 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47548
47549         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47550         for NetBSD.  Problem reported by Bruno Haible.
47551
47552 2006-10-09  Jim Meyering  <jim@meyering.net>
47553
47554         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47555         Patch from Bruno Haible.
47556
47557 2006-10-09  Jim Meyering  <jim@meyering.net>
47558
47559         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47560         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47561         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47562
47563 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47564
47565         Don't include <config.h> twice; this doesn't work in some cases,
47566         e.g., when config.h has "#define intmax_t long long int" and
47567         we include <config.h>, <inttypes.h>, <config.h> in that order.
47568         Problem reported by Matthew Woehlke in:
47569         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47570         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47571         * lib/fts-cycle.c: Don't include config.h.
47572         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47573         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47574         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47575         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47576         inttypes.h.
47577         * lib/xstrtoumax.c: Likewise.
47578         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47579         __strtol and the like, so that this module is more like its siblings.
47580         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47581         Remove; no longer needed now that we assume gnulib inttypes.h.
47582
47583 2006-10-08  Bruno Haible  <bruno@clisp.org>
47584
47585         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47586         option.
47587
47588 2006-10-07  Jim Meyering  <jim@meyering.net>
47589
47590         * modules/inttypes (inttypes.h): Revert what seems to have been
47591         an inadvertent part of today's change: use "|", not "/" in the
47592         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47593
47594 2006-10-07  Bruno Haible  <bruno@clisp.org>
47595
47596         * modules/sublist: New file.
47597
47598 2006-10-07  Bruno Haible  <bruno@clisp.org>
47599
47600         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47601         * modules/argz (argz.h): Likewise.
47602         * modules/arpa_inet (arpa/inet.h): Likewise.
47603         * modules/byteswap (byteswap.h): Likewise.
47604         * modules/configmake (configmake.h): Likewise.
47605         * modules/fcntl (fcntl.h): Likewise.
47606         * modules/fnmatch (fnmatch.h): Likewise.
47607         * modules/getopt (getopt.h): Likewise.
47608         * modules/glob (glob.h): Likewise.
47609         * modules/inttypes (inttypes.h): Likewise.
47610         * modules/netinet_in (netinet/in.h): Likewise.
47611         * modules/poll (poll.h): Likewise.
47612         * modules/stdbool (stdbool.h): Likewise.
47613         * modules/stdint (stdint.h): Likewise.
47614         * modules/sys_select (sys/select.h): Likewise.
47615         * modules/sys_socket (sys/socket.h): Likewise.
47616         * modules/sys_stat (sys/stat.h): Likewise.
47617         * modules/sysexits (sysexits.h): Likewise.
47618         * modules/unistd (unistd.h): Likewise.
47619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47620         Add a "DO NOT EDIT" comment to the generated file.
47621         (func_import): Likewise for gnulib-comp.m4.
47622
47623 2006-10-07  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/gl_sublist.h: New file.
47626         * lib/gl_sublist.c: New file.
47627
47628 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47629
47630         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47631         name (relative to the original working directory) and the file
47632         name component (relative to the temporary working directory).  All
47633         callers changed.
47634         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47635         * lib/mkdir-p.c (make_dir_parents): Likewise.
47636         * lib/mkdir-p.h (make_dir_parents): Likewise.
47637
47638 2006-10-06  Eric Blake  <ebb9@byu.net>
47639
47640         Define several macros for use by the clean-temp module.
47641         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47642         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47643         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47644
47645         * lib/clean-temp.h (close_stream_temp): New declaration.
47646         * lib/clean-temp.c (includes): Pull in headers according to what
47647         other modules are in use.
47648         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47649
47650 2006-10-06  Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47653         instead of fopen, fwriteerror.
47654
47655 2006-10-06  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47658         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47659         int.
47660         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47661         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47662         Return an error indicator.
47663         Suggested by Eric Blake.
47664
47665 2006-10-06  Bruno Haible  <bruno@clisp.org>
47666
47667         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47668         Reported by Eric Blake.
47669
47670 2006-10-06  Bruno Haible  <bruno@clisp.org>
47671
47672         * modules/closeout (Description): Mention stderr too.
47673
47674 2006-10-06  Bruno Haible  <bruno@clisp.org>
47675         and Paul Eggert  <eggert@cs.ucla.edu>
47676
47677         * lib/closeout.c (close_stdout): Also close stderr.
47678         * lib/closeout.h: Update comment.
47679
47680 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47681
47682         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47683         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47684         * lib/dirchownmod.c: Include lchown.h.
47685         * lib/lchown.c: Don't include files that lchown.h now includes.
47686         Don't declare chown, since lchown.h now does that.
47687         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47688         (lchown): Define to rpl_chown if lchown is declared but
47689         does not exist.  Declare using a prototype if lchown is not
47690         declared.  Add a copyright notice.
47691         * lib/mkstemp.h: Include <unistd.h>.
47692         * lib/openat.c: Include lchown.h.
47693
47694         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47695         we now test for that separately.
47696         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47697         rather than O_NOFOLLOW, when testing whether it's possible to
47698         avoid a race condition reliably.
47699         * lib/savewd.c (savewd_chdir): Likewise.
47700
47701         Remove macros that are no longer needed now that stdint.h is
47702         reliable.
47703         * lib/fsusage.c (UINTMAX_MAX): Remove.
47704         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47705         * lib/utimecmp.c (SIZE_MAX): Remove.
47706
47707         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47708
47709         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47710         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47711         O_NOATIME works.
47712
47713 2006-10-05  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/gl_list.h (gl_sortedlist_search_from_to,
47716         gl_sortedlist_indexof_from_to): New declarations.
47717         (gl_list_implementation): New fields sortedlist_search_from_to,
47718         sortedlist_indexof_from_to.
47719         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47720         inline functions.
47721         * lib/gl_list.c (gl_sortedlist_search_from_to,
47722         gl_sortedlist_indexof_from_to): New functions.
47723         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47724         function.
47725         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47726         (gl_array_sortedlist_search_from_to): New function.
47727         (gl_array_list_implementation): Update.
47728         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47729         function.
47730         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47731         (gl_carray_sortedlist_search_from_to): New function.
47732         (gl_carray_list_implementation): Update.
47733         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47734         gl_linked_sortedlist_indexof_from_to): New functions.
47735         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47736         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47737         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47738         gl_tree_sortedlist_indexof_from_to): New functions.
47739         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47740         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47741         Update.
47742         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47743         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47744         Update.
47745
47746 2006-10-05  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47749         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47750         (struct gl_list_implementation): Add fields search_from_to,
47751         indexof_from_to. Remove fields search, indexof.
47752         (gl_list_search): Use the search_from_to method.
47753         (gl_list_search_from, gl_list_search_from_to): New functions.
47754         (gl_list_indexof): Use the indexof_from_to method.
47755         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47756         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47757         (gl_list_search_from, gl_list_search_from_to): New functions.
47758         (gl_list_indexof): Use the indexof_from_to method.
47759         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47760         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47761         gl_array_indexof. Add start_index, end_index arguments.
47762         (gl_array_search_from_to): Renamed from gl_array_search. Add
47763         start_index, end_index arguments.
47764         (gl_array_remove, gl_array_list_implementation): Update.
47765         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47766         gl_carray_indexof. Add start_index, end_index arguments.
47767         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47768         start_index, end_index arguments.
47769         (gl_carray_remove, gl_carray_list_implementation): Update.
47770         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47771         gl_linked_search. Add start_index, end_index arguments.
47772         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47773         start_index, end_index arguments.
47774         (gl_linked_remove): Update.
47775         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47776         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47777         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47778         field to 'size_t'.
47779         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47780         gl_tree_search. Add start_index, end_index arguments.
47781         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47782         start_index, end_index arguments.
47783         (gl_tree_remove): Update.
47784         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47785         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47786         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47787         function.
47788         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47789         gl_tree_search. Add start_index, end_index arguments.
47790         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47791         start_index, end_index arguments.
47792         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47793         Update.
47794         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47795
47796 2006-10-05  Bruno Haible  <bruno@clisp.org>
47797
47798         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47799
47800         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47801         fwriteerror_temp): New declarations.
47802         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47803         (descriptors): New variable.
47804         (cleanup): First, close the descriptors.
47805         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47806         fclose_temp, fwriteerror_temp): New functions.
47807
47808 2006-10-04  Jim Meyering  <jim@meyering.net>
47809
47810         * lib/fts.c (fts_open): Tiny comment change.
47811
47812 2006-10-04  Bruno Haible  <bruno@clisp.org>
47813
47814         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47816         gl_LOCK_BODY.
47817         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47818         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47819         gl_LOCK_EARLY_BODY.
47820         (gl_LOCK): Require gl_LOCK_BODY.
47821
47822 2006-10-04  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47825         (gl_oset_search_atleast): New declaration.
47826         (struct gl_oset_implementation): Add field 'search_atleast'.
47827         (gl_oset_search_atleast): New inline function.
47828         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47829         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47830         (gl_array_oset_implementation): Update.
47831         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47832         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47833         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47834
47835 2006-10-04  Bruno Haible  <bruno@clisp.org>
47836
47837         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47838
47839 2006-10-03  Bruno Haible  <bruno@clisp.org>
47840
47841         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47842         from gl_avltreehash_list_implementation.
47843
47844 2006-10-03  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/gl_oset.c (gl_oset_add): Fix return type.
47847
47848 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
47849
47850         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
47851
47852 2006-10-02  Eric Blake  <ebb9@byu.net>
47853
47854         * modules/strnlen (Depends-on): Add extensions.
47855
47856 2006-10-02  Eric Blake  <ebb9@byu.net>
47857
47858         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
47859         definition in 2.60+.
47860
47861 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
47862
47863         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
47864         checks.
47865
47866 2006-10-02  Bruno Haible  <bruno@clisp.org>
47867
47868         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
47869         to the AUTOMAKE_OPTIONS.
47870         Reported by Jim Meyering.
47871
47872 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47873
47874         Work around bug in Solaris 10 /proc file system:
47875         /proc/self/fd/NNN/.. isn't the parent directory of
47876         the directory whose file descriptor is NNN.  This needs to
47877         be worked around at run time, not compile time, since a
47878         program might be built on Solaris 8, where things work, and
47879         run on Solaris 10.
47880         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
47881         to use the following interface instead:
47882         (OPENAT_BUFFER_SIZE): New macro.
47883         (openat_proc_name): New function.
47884         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
47885         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
47886         Likewise.
47887         * lib/openat-proc.c: New file.
47888         * modules/openat (Files): Add lib/openat-proc.c.
47889         (Depends-on): Add same-inode, stdbool.
47890         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
47891
47892 2006-09-29  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
47895         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
47896         argument. Set stdout_closed before testing for ferror, not after.
47897         (fwriteerror, fwriteerror_no_ebadf): New functions.
47898
47899 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47900
47901         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
47902
47903 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
47904
47905         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
47906         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
47907
47908 2006-09-28  Jim Meyering  <jim@meyering.net>
47909
47910         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
47911         Include <unistd.h>.
47912
47913 2006-09-28  Bruno Haible  <bruno@clisp.org>
47914
47915         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
47916         * modules/linkedhash-list (Depends-on): Likewise.
47917         * modules/rbtreehash-list (Depends-on): Likewise.
47918
47919 2006-09-28  Bruno Haible  <bruno@clisp.org>
47920
47921         * lib/strndup.h: Simplify the redefinition of strndup.
47922         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
47923         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
47924
47925 2006-09-28  Bruno Haible  <bruno@clisp.org>
47926
47927         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
47928         * lib/gl_linkedhash_list.c: Likewise.
47929         * lib/gl_rbtreehash_list.c: Likewise.
47930
47931 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47932
47933         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
47934         getaddrinfo.
47935
47936         * lib/__fpending.h: Don't include <stdio_ext.h> unless
47937         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
47938         it causes <stdio_ext.h> to cause a compile-time error.
47939         Problem reported by Nelson H. F. Beebe.
47940         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
47941         of HAVE_DECL___PENDING.
47942
47943         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
47944         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
47945         declaration.
47946
47947 2006-09-27  Jim Meyering  <jim@meyering.net>
47948
47949         This file could end up with a definition for a function
47950         named __strndup, rather than rpl_strndup on a system with
47951         incomplete weak_alias support.
47952         * lib/strndup.c (strndup): Rename from __strndup.
47953         Remove #defines that used to map __strndup to strndup.
47954         Don't use K&R prototypes.
47955         Remove LIBC-related code, since this file is not sync'd with glibc.
47956         * lib/strndup.h: Revamp, accordingly.
47957         * m4/strndup.m4: Modernize.
47958
47959 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47960
47961         * modules/savewd (Depends-on): Add 'raise'.
47962         * lib/savewd.c: Include <signal.h>, for 'raise'.
47963
47964 2006-09-26  Jim Meyering  <jim@meyering.net>
47965
47966         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
47967         when we detect Darwin 8.7.0's acl_get_file bug.
47968         Rearrange to perform the new (below) run-test while $LIBS
47969         contains any acl-related library.  Set USE_ACL at the end.
47970         (gl_ACL_GET_FILE): New function.
47971
47972 2006-09-26  Eric Blake  <ebb9@byu.net>
47973
47974         * lib/verror.c: Include <config.h> unconditionally.
47975
47976 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
47977
47978         * modules/clock-time (Maintainer): Add self.
47979         * modules/getlogin_r (Depends-on): Add extensions.
47980
47981 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47982
47983         * modules/clock-time: New module.
47984         * modules/nanosleep (Depends-on): Add clock-time.
47985         * modules/gethrxtime (Depends-on): Likewise.
47986         * modules/gettime (Depends-on): Likewise.
47987         * modules/settime (Depends-on): Likewise.
47988
47989         * modules/fts-lgpl: Depend on openat.
47990         * modules/mkancesdirs: Depend on savewd.
47991         * modules/mkdir-p: Likewise.
47992
47993 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47994
47995         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
47996
47997         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
47998         `gl_have_arbitrary_file_name_length_limit' to
47999         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48000         actually works between configure runs.
48001
48002 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48003             Bruno Haible  <bruno@clisp.org>
48004
48005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48006
48007 2006-09-25  Jim Meyering  <jim@meyering.net>
48008
48009         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48010         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48011
48012 2006-09-25  Eric Blake  <ebb9@byu.net>
48013
48014         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48015         exec's in 2006-09-18 patch when shuffling fds.
48016
48017 2006-09-25  Bruno Haible  <bruno@clisp.org>
48018
48019         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48020         Reported by Jim Meyering.
48021
48022 2006-09-24  Jim Meyering  <jim@meyering.net>
48023
48024         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48025         compare a pointer against a literal "0".  That caused failures with
48026         at least HP-UX's hpcc.
48027
48028 2006-09-22  Simon Josefsson  <jas@extundo.com>
48029
48030         * modules/gc-sha1:
48031         * modules/gc-md4:
48032         * modules/gc-hmac-sha1:
48033         * modules/gc-hmac-md5:
48034         * modules/gc-des:
48035         * modules/gc-arcfour: Distribute more files.
48036
48037 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48038
48039         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48040         (gl_linked_iterator_from_to): Initialize struct completely.
48041         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48042         (gl_tree_iterator_from_to): Likewise
48043         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48044         * lib/gl_array_list.c [lint] (gl_array_iterator)
48045         (gl_array_iterator_from_to): Likewise.
48046         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48047         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48048         (gl_carray_iterator_from_to): Likewise.
48049
48050         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48051         * lib/md4.c (md4_process_block): Remove unused variable.
48052         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48053         parentheses for clarity.
48054
48055 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48056
48057         * modules/bison-i18n (Depends-on): Add gettext.
48058
48059 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48060
48061         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48062         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48063         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48064         also add missing comma that caused broken test.
48065         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48066         stdlib.h, for `abort'.
48067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48068         variables.
48069         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48070         include unistd.h if present, for `rmdir'.
48071         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48072         variables.
48073         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48074         in the process include standard headers for prototypes.
48075         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48076         gets declared on GNU/Linux.
48077         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48078         unistd.h, for `rmdir'.
48079         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48080
48081         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48082         always true.
48083         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48084
48085         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48086
48087 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48088
48089         * gnulib-tool (func_version): Create output all at once.  This
48090         may help avoid triggering unnecessary SIGPIPEs, and at any
48091         rate it doesn't hurt.
48092
48093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48094             Bruno Haible  <bruno@clisp.org>
48095
48096         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48097         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48098         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48099
48100         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48101         (gl_FUNC_VASPRINTF): Invoke it.
48102
48103 2006-09-22  Bruno Haible  <bruno@clisp.org>
48104
48105         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48106         getloadavg.c as first argument.
48107
48108 2006-09-22  Bruno Haible  <bruno@clisp.org>
48109
48110         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48111         at the beginning of the gl_INIT macro.
48112         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48113         gl_GETLOADAVG.
48114
48115 2006-09-22  Bruno Haible  <bruno@clisp.org>
48116
48117         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48118         module.
48119         Suggested by Ralf Wildenhues.
48120
48121 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48122
48123         Import this patch from libc:
48124
48125         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48126
48127         * lib/regex_internal.c (re_string_reconstruct): Handle
48128         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48129         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48130         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48131         re_string_context_at.
48132
48133         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48134         now requires it.
48135         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48136         gl_REGEX now does it for us.
48137         (gl_REGEX): Add test taken from
48138         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48139
48140         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48141         Check that large offsets work.  Modernize Autoconf usages.
48142         Prefer "yes" to mean a good thing rather than a bad.
48143         Don't put "#define mkstemp" in config.h, as this might interfere
48144         with standard system headers that "#define mkstemp mkstemp64".
48145
48146         * modules/mkstemp (Depends-on): Add extensions, so that
48147         mkstemp is visible on some platforms.
48148         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48149         (Include): Change to "mkstemp.h" from <stdlib.h>.
48150         (Files): Add mkstemp.h.
48151
48152         * lib/mkstemp.h: New file, since some standard headers
48153         #define mkstemp.
48154         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48155         Include "mkstemp.h".
48156         Make the _LIBC code resemble glibc original more,
48157         e.g., use K&R style.
48158         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48159         (mkstemp): Remove, since mkstemp.h does this for us.
48160         * lib/stdlib--.h: Include mkstemp.h.
48161
48162         Import this patch from libc:
48163
48164         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48165
48166         * lib/tempname.c (__gen_tempname): Change attempts_min
48167         into a macro.  Use preprocessor to decide how to initialize
48168         attempts [Coverity CID 67].
48169
48170 2006-09-20  Bruno Haible  <bruno@clisp.org>
48171
48172         * lib/mkdtemp.c: Import from libc.
48173         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48174                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48175                 attempts_min into a macro.  Use preprocessor to decide how to
48176                 initialize attempts [Coverity CID 67].
48177         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48178                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48179                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48180
48181 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48182
48183         * gnulib-tool (func_exit): New function, to allow to pass the
48184         exit status portably through the trap.  Use everywhere.
48185         (--help, --version): Signal a write error.
48186         (trap): catch SIGPIPE, for write errors.
48187         Exit at the end of the trap, with the correct exit status.
48188
48189 2006-09-19  Karl Berry  <karl@gnu.org>
48190
48191         * doc/gnulib.texi: note about the license texinfo files.
48192
48193 2006-09-19  Eric Blake  <ebb9@byu.net>
48194
48195         * gnulib-tool: Avoid space-tab.
48196
48197 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48198
48199         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48200         that prevented coreutils 6.1 from building.  Problem reported
48201         by Petter Reinholdtsen.
48202
48203 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48204
48205         * gnulib-tool (avoidlist): Fix typo that broke options like
48206         --avoid=lock that are used by coreutils bootstrap.
48207
48208 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48209
48210         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48211         more systematically.
48212
48213 2006-09-18  Jim Meyering  <jim@meyering.net>
48214
48215         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48216
48217 2006-09-18  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48220
48221 2006-09-18  Bruno Haible  <bruno@clisp.org>
48222
48223         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48224         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48225         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48226         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48227         * m4/gettext.m4: Require autoconf >= 2.52.
48228         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48229         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48230         of gl_cv_header_inttypes_h.
48231
48232 2006-09-18  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/javaversion.c: Include configmake.h.
48235
48236 2006-09-18  Bruno Haible  <bruno@clisp.org>
48237
48238         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48239         avoid that the while loops be executed in a subshell.
48240
48241 2006-09-18  Bruno Haible  <bruno@clisp.org>
48242
48243         * MODULES.html.sh (func_module): Break long lines.
48244         Suggested by Bruce Korb <bkorb@gnu.org>.
48245
48246 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48247
48248         Speed up by a factor of 1.12.
48249         * gnulib-tool (nl): New variable.
48250         (func_import): Rewrite include directive extraction to only read each
48251         directive once.
48252
48253 2006-09-17  Bruno Haible  <bruno@clisp.org>
48254
48255         * modules/javaversion (Makefile.am): Remove DEFS setting.
48256         (Depends-on): Add configmake, for PKGDATADIR definition.
48257
48258 2006-09-17  Bruno Haible  <bruno@clisp.org>
48259
48260         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48261
48262 2006-09-17  Bruno Haible  <bruno@clisp.org>
48263
48264         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48265         (func_modules_transitive_closure, func_modules_add_dummy,
48266         func_modules_to_filelist, func_import, func_create_testdir,
48267         func_create_megatestdir, ...): Use it wherever possible.
48268         Suggested by Ralf Wildenhues.
48269
48270 2006-09-16  Karl Berry  <karl@gnu.org>
48271
48272         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48273         to avoid sectioning errors.
48274         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48275         [ifinfo]: blank line after @center-ed titles.
48276         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48277         Spell FSF address consistently with others.
48278         (These changes approved by rms.)
48279
48280 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48281
48282         Speed up by a factor of 1.61.
48283         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48284         already checked module names again.
48285
48286 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48287
48288         Speed up by a factor of 1.13.
48289         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48290         for new_files, and the input to func_add_or_update.
48291
48292 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48293
48294         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48295         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48296
48297 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48298
48299         * modules/mkancesdirs (Depends-on): Add fcntl.
48300         * modules/savewd: New file.
48301         * MODULES.html.sh (File system functions): Add savewd.
48302
48303         * modules/configmake (Makefile.am): Add support for the
48304         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48305
48306 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         * m4/savewd.m4: New file.
48309
48310 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48313         (dirchownmod): New arg FD.  All callers changed.
48314         Use FD rather than opening the directory ourself, as opening is
48315         now the caller's responsibility.
48316         * lib/dirchownmod.h: Likewise.
48317         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48318         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48319         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48320         (test_dir): Remove.
48321         (mkancesdirs): Return length of prefix of FILE that has already
48322         been made, or -2 if there is a child doing the work.  Redo
48323         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48324         ".", and treat ".." specially since it might stray back into
48325         already-created areas.  Use a subprocess if necessary.  New arg
48326         WD; all users changed.  MAKE_DIR function should now return 1
48327         if it creates a directory that is not readable.  Return -2 if
48328         a child process is spun off.
48329         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48330         Adjust signature to match code.
48331         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48332         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48333         all users changed.
48334         * lib/savewd.c, lib/savewd.h: New files.
48335
48336 2006-09-15  Jim Meyering  <jim@meyering.net>
48337
48338         * modules/rename-dest-slash: New module.
48339         * MODULES.html.sh (posix_compat): Add it here.
48340
48341         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48342
48343 2006-09-15  Jim Meyering  <jim@meyering.net>
48344
48345         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48346         file.
48347
48348         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48349
48350 2006-09-15  Jim Meyering  <jim@meyering.net>
48351
48352         * lib/rename-dest-slash.c (has_trailing_slash): Use
48353         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48354         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48355         test before testing whether SRC is a directory.
48356         Suggestions from Bruno Haible.
48357
48358         Avoid a warning about an unused variable.
48359         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48360         into the #ifdef block where it's used.
48361
48362         * lib/rename-dest-slash.c: New file.
48363
48364 2006-09-14  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/allocsa.c: Include <config.h> unconditionally.
48367         * lib/asnprintf.c: Likewise.
48368         * lib/asprintf.c: Likewise.
48369         * lib/c-strcasecmp.c: Likewise.
48370         * lib/c-strcasestr.c: Likewise.
48371         * lib/c-strncasecmp.c: Likewise.
48372         * lib/c-strstr.c: Likewise.
48373         * lib/classpath.c: Likewise.
48374         * lib/clean-temp.c: Likewise.
48375         * lib/concatpath.c: Likewise.
48376         * lib/copy-file.c: Likewise.
48377         * lib/csharpcomp.c: Likewise.
48378         * lib/csharpexec.c: Likewise.
48379         * lib/execute.c: Likewise.
48380         * lib/fatal-signal.c: Likewise.
48381         * lib/findprog.c: Likewise.
48382         * lib/fwriteerror.c: Likewise.
48383         * lib/gl_array_list.c: Likewise.
48384         * lib/gl_array_oset.c: Likewise.
48385         * lib/gl_avltree_list.c: Likewise.
48386         * lib/gl_avltree_oset.c: Likewise.
48387         * lib/gl_avltreehash_list.c: Likewise.
48388         * lib/gl_carray_list.c: Likewise.
48389         * lib/gl_linked_list.c: Likewise.
48390         * lib/gl_linkedhash_list.c: Likewise.
48391         * lib/gl_list.c: Likewise.
48392         * lib/gl_oset.c: Likewise.
48393         * lib/gl_rbtree_list.c: Likewise.
48394         * lib/gl_rbtree_oset.c: Likewise.
48395         * lib/gl_rbtreehash_list.c: Likewise.
48396         * lib/imaxabs.c: Likewise.
48397         * lib/imaxdiv.c: Likewise.
48398         * lib/javacomp.c: Likewise.
48399         * lib/javaexec.c: Likewise.
48400         * lib/javaversion.c: Likewise.
48401         * lib/linebreak.c: Likewise.
48402         * lib/localcharset.c: Likewise.
48403         * lib/lock.c: Likewise.
48404         * lib/mbchar.c: Likewise.
48405         * lib/mbswidth.c: Likewise.
48406         * lib/mkdtemp.c: Likewise.
48407         * lib/pipe.c: Likewise.
48408         * lib/printf-args.c: Likewise.
48409         * lib/printf-parse.c: Likewise.
48410         * lib/progname.c: Likewise.
48411         * lib/progreloc.c: Likewise.
48412         * lib/readlink.c: Likewise.
48413         * lib/sh-quote.c: Likewise.
48414         * lib/stpcpy.c: Likewise.
48415         * lib/stpncpy.c: Likewise.
48416         * lib/strcasecmp.c: Likewise.
48417         * lib/strcasestr.c: Likewise.
48418         * lib/strcspn.c: Likewise.
48419         * lib/striconv.c: Likewise.
48420         * lib/strncasecmp.c: Likewise.
48421         * lib/strnlen1.c: Likewise.
48422         * lib/strstr.c: Likewise.
48423         * lib/strtok_r.c: Likewise.
48424         * lib/tls.c: Likewise.
48425         * lib/tmpdir.c: Likewise.
48426         * lib/unicodeio.c: Likewise.
48427         * lib/unsetenv.c: Likewise.
48428         * lib/vasnprintf.c: Likewise.
48429         * lib/vasprintf.c: Likewise.
48430         * lib/wait-process.c: Likewise.
48431         * lib/xallocsa.c: Likewise.
48432         * lib/xsetenv.c: Likewise.
48433         * lib/xstriconv.c: Likewise.
48434
48435 2006-09-13  Simon Josefsson  <jas@extundo.com>
48436
48437         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48438         that internally, suggested by Ralf Wildenhues
48439         <Ralf.Wildenhues@gmx.de>.
48440
48441 2006-09-13  Simon Josefsson  <jas@extundo.com>
48442
48443         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48444         @LIBOBJS@.
48445         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48446
48447 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48448
48449         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48450         longer worry about uses that don't define HAVE_CONFIG_H.
48451         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48452         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48453         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48454         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48455         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48456         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48457         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48458         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48459         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48460         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48461         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48462         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48463         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48464         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48465         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48466         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48467         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48468         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48469         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48470         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48471         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48472         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48473         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48474         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48475         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48476         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48477         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48478         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48479         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48480         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48481         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48482         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48483         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48484         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48485         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48486         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48487         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48488         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48489         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48490         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48491         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48492         Likewise.
48493
48494 2006-09-13  Eric Blake  <ebb9@byu.net>
48495
48496         * lib/getopt.c: Fix typo in last commit.
48497
48498 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48499
48500         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48501         dgettext.
48502
48503 2006-09-12  Jim Meyering  <jim@meyering.net>
48504
48505         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48506         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48507         Reported by Nelson H. F. Beebe.
48508
48509 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48510
48511         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48512         program_invocation_name and program_invocation_short_name are
48513         initialized.
48514         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48515         and program_invocation_short_name to argp.h, so they are visible
48516         to user programs.
48517         * lib/argp.h: Likewise
48518
48519 2006-09-10  Bruno Haible  <bruno@clisp.org>
48520
48521         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48522         m4/inttypes_h.m4, m4/uintmax_t.m4.
48523
48524 2006-09-10  Bruno Haible  <bruno@clisp.org>
48525
48526         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48527         gl_AC_TYPE_UINTMAX_T.
48528
48529 2006-09-10  Bruno Haible  <bruno@clisp.org>
48530
48531         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48532
48533 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48534
48535         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48536         convention.  Text proposed by Bruno Haible.
48537         (struct argp_option): Document the use of N_() wrappers.
48538
48539         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48540         '\v', and translate the two parts separately, instead of feeding
48541         the whole string to gettext.  This allows to exclude
48542         '\v' from the strings visible to the translator by writing doc
48543         strings as N_("..") "\v" N_("..").
48544
48545 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48546
48547         * config/srclist.txt: Undo latest change; the bug was fixed.
48548
48549 2006-09-09  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48552         assignments if building a library without libtool.
48553         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48554         in func_emit_lib_Makefile_am.
48555         (func_import): When building a static library libfoo.a, arrange to
48556         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48557         (func_create_testdir): Likewise.
48558         * modules/gc (configure.ac, Makefile.am): If building statically,
48559         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48560         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48561         * modules/striconv (configure.ac, Makefile.am): Likewise.
48562         Based on a suggestion by Ralf Wildenhues.
48563
48564 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48565
48566         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48567         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48568         Also:
48569
48570         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48571         Add year_2050_test to catch glibc bug 2821
48572         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48573
48574         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48575         Prefer #ifdef to #if.
48576
48577         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48578         Return from 'main' instead of calling 'exit'.
48579
48580 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48581
48582         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48583         returned the maximum time_t value rather than (time_t) -1.
48584         Problem originally reported by William Bardwell
48585         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48586
48587         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48588         Moved to here ...
48589         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48590         ... from here.
48591
48592 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48593
48594         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48595         2821 is fixed.
48596
48597 2006-09-08  Jim Meyering  <jim@meyering.net>
48598
48599         Don't make generated files read-only.  That would bother too many
48600         people.  However, do retain the ability to work when targets are
48601         read-only: remove the destination and temporary files before writing
48602         them (when generated via sed or echo), or by using the -f option for
48603         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48604         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48605         * modules/byteswap, modules/configmake, modules/fcntl:
48606         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48607         * modules/localcharset, modules/netinet_in, modules/poll:
48608         * modules/stdbool, modules/stdint, modules/sys_select:
48609         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48610
48611 2006-09-08  Jim Meyering  <jim@meyering.net>
48612
48613         Avoid new build failure on FreeBSD 6.0.
48614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48615         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48616         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48617
48618 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48619
48620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48621
48622 2006-09-07  Jim Meyering  <jim@meyering.net>
48623
48624         Fix global typo in last change: use chmod u-w, not chmod u-x.
48625         Spotted by Paul Eggert and Bruce Korb.
48626         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48627         * modules/byteswap, modules/configmake, modules/fcntl:
48628         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48629         * modules/localcharset, modules/netinet_in, modules/poll:
48630         * modules/stdbool, modules/stdint, modules/sys_select:
48631         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48632
48633 2006-09-06  Jim Meyering  <jim@meyering.net>
48634
48635         Make generated files be read-only.
48636         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48637         Ensure that each generated file is now read-only.
48638         * modules/argz: Likewise.
48639         * modules/arpa_inet: Likewise.
48640         * modules/byteswap: Likewise.
48641         * modules/configmake: Likewise.
48642         * modules/fcntl: Likewise.
48643         * modules/fnmatch: Likewise.
48644         * modules/getopt: Likewise.
48645         * modules/glob: Likewise.
48646         * modules/inttypes: Likewise.
48647         * modules/netinet_in: Likewise.
48648         * modules/poll: Likewise.
48649         * modules/stdbool: Likewise.
48650         * modules/stdint: Likewise.
48651         * modules/sys_select: Likewise.
48652         * modules/sys_socket: Likewise.
48653         * modules/sys_stat: Likewise.
48654         * modules/sysexits: Likewise.
48655         * modules/localcharset: Same as above, but continue using temporary
48656         file named "t-$@" (why different?) rather than the "$@-t" used
48657         everywhere else.
48658
48659         * modules/sysexits (Makefile.am): Replace literal occurrences
48660         of "sysexit.h" more readable, and more consistent, "$@".
48661
48662 2006-09-06  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/striconv: New file.
48665         * modules/xstriconv: New file.
48666         * MODULES.html.sh (Internationalization functions): Add striconv,
48667         xstriconv.
48668
48669 2006-09-06  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48672         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48673         not using libtool correctly.
48674
48675 2006-09-06  Bruno Haible  <bruno@clisp.org>
48676
48677         * lib/striconv.h: New file.
48678         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48679         iconvstring.c.
48680         * lib/xstriconv.h: New file.
48681         * lib/xstriconv.c: New file.
48682
48683 2006-09-06  Bruno Haible  <bruno@clisp.org>
48684
48685         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48686         lib_..._LDFLAGS.
48687
48688 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48689
48690         * lib/argz_.h: Sync from Libtool.
48691
48692         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48693                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48694
48695         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48696
48697 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48698
48699         * modules/trim: New file.
48700
48701 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48702
48703         * lib/trim.h: New file.
48704         * lib/trim.c: New file.
48705
48706 2006-09-05  Bruno Haible  <bruno@clisp.org>
48707
48708         * MODULES.html.sh (String handling): Add trim.
48709
48710 2006-09-04  Karl Berry  <karl@gnu.org>
48711
48712         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48713         until next release.
48714
48715 2006-09-03  Bruno Haible  <bruno@clisp.org>
48716
48717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48718         correctly.
48719
48720 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48721
48722         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48723         not gl_GETLOADAVG.  Omit unneeded semicolons.
48724         Problems reported by Ralf Wildenhues in
48725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48726         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48727         at the end, which is the usual gnulib style.
48728
48729         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48730         of doing all the work ourselves.
48731         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48732         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48733
48734 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48737         Problem reported by Ralf Wildenhues in
48738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48739
48740         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48741         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48742
48743 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48744
48745         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48746         yesterday's patch by changing test -n to test -z.
48747
48748 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48749
48750         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48751         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48752         the former is now obsolescent.
48753
48754         * modules/chdir-long (Depends-on): Add fcntl.
48755
48756 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48759         obsolescent, and programs should use gnulib instead.
48760         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48761         but with prefixes changed.
48762
48763 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48764
48765         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48766         or stdbool.h, because they might not exist while configuring.
48767
48768         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48769         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48770         does that for us.
48771         (O_DIRECTORY): Remove.
48772
48773 2006-08-31  Eric Blake  <ebb9@byu.net>
48774
48775         * gnulib-tool: Don't let emacs change spaces to TAB.
48776
48777 2006-08-31  Bruno Haible  <bruno@clisp.org>
48778
48779         * gnulib-tool: When calling func_import more than once, do it in a
48780         subshell.
48781         Reported by Eric Blake <ebb9@byu.net>.
48782
48783 2006-08-31  Bruno Haible  <bruno@clisp.org>
48784
48785         * gnulib-tool (nl): Remove variable.
48786         (sed_transform_lib_file): Use more robust test for config-h module.
48787         (func_import): Fix typo in 2006-08-25 patch.
48788
48789 2006-08-31  Bruno Haible  <bruno@clisp.org>
48790
48791         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48792         specified, augment Makefile.am variables instead of assigning them.
48793
48794 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         Work around a bug in both the Linux and SunOS 64-bit kernels:
48797         nanosleep mishandles sleeps for longer than 2**31 seconds.
48798         Problem reported by Frank v Waveren in
48799         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48801         Check for nanosleep bug.
48802         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48803
48804 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         Work around a bug in both the Linux and SunOS 64-bit kernels:
48807         nanosleep mishandles sleeps for longer than 2**31 seconds.
48808         Problem reported by Frank v Waveren in
48809         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48810         * lib/nanosleep.c (BILLION): New constant.
48811         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48812         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48813         implementation.
48814
48815 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * modules/nanosleep (Depends-on): Add gettime.
48818
48819 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48820         and Simon Josefsson  <jas@extundo.com>
48821         and Oskar Liljeblad  <oskar@osk.mine.nu>
48822
48823         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48824         * gnulib-tool (func_import): New license type 'unmodifiable license
48825         text'.
48826         * modules/fdl: Use it.  Longer description.
48827         * module/gpl, module/lgpl: New files.
48828
48829 2006-08-30  Jim Meyering  <jim@meyering.net>
48830
48831         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48832         shadowing the parameter.
48833
48834 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48835
48836         Sync from Libtool:
48837
48838         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48839
48840         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48841         sharing with gnulib.  Report by Eric Blake.
48842
48843 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48844
48845         * modules/isapipe: New file.
48846         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
48847
48848 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48849
48850         * modules/configmake (Makefile.am): Add a comment, and omit
48851         the CONFIGMAKE_ prefix from generated macro names.  Suggested
48852         by Bruno Haible.
48853
48854 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48855
48856         * m4/isapipe.m4: New file.
48857
48858 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48859
48860         * lib/isapipe.c, lib/isapipe.h: New files.
48861
48862 2006-08-29  Jim Meyering  <jim@meyering.net>
48863
48864         * modules/configmake (Makefile.am): Make configmake.h depend on
48865         Makefile.  Otherwise, a stale configmake.h could hang around.
48866
48867 2006-08-29  Eric Blake  <ebb9@byu.net>
48868
48869         * lib/error.c (error_at_line, print_errno_message): Match libc, after
48870         resolution of upstream bug 3044.
48871
48872 2006-08-29  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/localcharset (Depends-on): Add configmake.
48875         (Makefile.am): Remove setting of LIBDIR through DEFS.
48876
48877 2006-08-29  Bruno Haible  <bruno@clisp.org>
48878
48879         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
48880         defined.
48881
48882 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48883
48884         * modules/fcntl: New file.
48885         * modules/chdir-safer (Depends-on): Add fcntl.
48886         * modules/fts: Likewise.
48887         * modules/mkdir-p: Likewise.
48888
48889         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
48890         This undoes the most recent change, since we're now addressing the
48891         problem in a different way.
48892
48893         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
48894         into output, since the output might be called Makefile.am even
48895         if $makefile_name is something different.
48896         (func_import): Use $makefile_am rather than
48897         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
48898         empty.
48899
48900         * modules/inttypes (Files): Add m4/inttypes-h.m4.
48901
48902 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48903
48904         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
48905         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
48906         recent change to stdint.m4, since we're now addressing the problem in a
48907         different way.
48908
48909 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48910
48911         * m4/fcntl_h.m4: New file.
48912
48913 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         * lib/fcntl_.h: New file.
48916         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
48917         the fcntl module.
48918         * lib/dirchownmod.c: Likewise.
48919         * lib/fts.c: Likewise.
48920
48921         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
48922         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
48923         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
48924         just before including <inttypes.h>, to avoid circular inclusion.
48925
48926 2006-08-28  Jim Meyering  <jim@meyering.net>
48927
48928         * doc/visibility.texi: Actually read and correct the grammar of the
48929         sentence affected by yesterday's change.
48930
48931 2006-08-28  Eric Blake  <ebb9@byu.net>
48932
48933         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
48934         needs wrapper.
48935
48936 2006-08-28  Eric Blake  <ebb9@byu.net>
48937
48938         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
48939
48940 2006-08-28  Eric Blake  <ebb9@byu.net>
48941
48942         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
48943
48944 2006-08-28  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/c-strstr: New file, from GNU gettext.
48947         * MODULES.html.sh (String handling): Add c-strstr.
48948
48949 2006-08-28  Bruno Haible  <bruno@clisp.org>
48950
48951         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
48952         macros.
48953         Reported by Eric Blake.
48954
48955 2006-08-28  Bruno Haible  <bruno@clisp.org>
48956
48957         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
48958         (VASNPRINTF): Return a string of length > INT_MAX without failing.
48959         * lib/vasprintf.c: Include errno.h, limits.h.
48960         (EOVERFLOW): New fallback definition.
48961         (vasprintf): Test here whether the string length is > INT_MAX.
48962         * lib/vsnprintf.c: Include errno.h, limits.h.
48963         (EOVERFLOW): New fallback definition.
48964         (vsnprintf): Fix bug when generated string was too long for the buffer.
48965         Test here whether the string length is > INT_MAX.
48966
48967 2006-08-28  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/inttypes_.h (SCNX*): Remove definitions.
48970         Reported by Eric Blake.
48971
48972 2006-08-28  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/c-strstr.h: New file, from GNU gettext.
48975         * lib/c-strstr.c: New file, from GNU gettext.
48976
48977 2006-08-28  Bruno Haible  <bruno@clisp.org>
48978
48979         * gnulib-tool: Reorder some statements.
48980
48981 2006-08-28  Bruno Haible  <bruno@clisp.org>
48982
48983         * gnulib-tool: New option --makefile-name.
48984         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
48985         $makefile_name.
48986         (func_import): Write $makefile_name to the cache file, and read it from
48987         there unless explicitly specified. Use $makefile_name as file name
48988         instead of Makefile.am. Adjust the recommendations accordingly.
48989
48990 2006-08-28  Bruno Haible  <bruno@clisp.org>
48991
48992         * gnulib-tool (func_verify_module): Check against misapplying patch.
48993
48994 2006-08-28  Bruno Haible  <bruno@clisp.org>
48995
48996         * gnulib-tool (func_relativize, func_relconcat): New functions.
48997         Give an error if --local-dir is given with --update.
48998         Remove trailing slashes from $local_gnulib_dir.
48999         (func_import): Store the relativized $local_gnulib_dir in
49000         gnulib-cache.m4, and read it from there if not specified explicitly.
49001
49002 2006-08-28  Bruno Haible  <bruno@clisp.org>
49003
49004         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49005         is the current directory. Respect also $local_gnulib_dir.
49006
49007 2006-08-28  Bruno Haible  <bruno@clisp.org>
49008             Simon Josefsson  <jas@extundo.com>
49009
49010         BeOS portability.
49011         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49012
49013 2006-08-27  Jim Meyering  <jim@meyering.net>
49014
49015         * doc/visibility.texi: Remove duplicate word: "pointer".
49016
49017 2006-08-26  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49020         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49021         (Makefile.am): Create inttypes.h from inttypes_.h.
49022         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49023
49024         * modules/imaxabs: New file.
49025
49026         * modules/imaxdiv: New file.
49027
49028 2006-08-26  Bruno Haible  <bruno@clisp.org>
49029
49030         * m4/inttypes.m4: New file.
49031         * m4/_inttypes_h.m4: Remove file.
49032         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49033         PRI_MACROS_BROKEN.
49034         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49035
49036         * m4/imaxabs.m4: New file.
49037
49038         * m4/imaxdiv.m4: New file.
49039
49040 2006-08-26  Bruno Haible  <bruno@clisp.org>
49041
49042         * lib/inttypes_.h: New file.
49043         * lib/inttypes.h: Remove file.
49044         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49045
49046         * lib/imaxabs.c: New file.
49047
49048         * lib/imaxdiv.c: New file.
49049
49050 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         New config-h module, so that "make" output needn't be cluttered
49053         by -DHAVE_CONFIG_H.
49054         * MODULES.html.sh (Support for building libraries and executables):
49055         Add config-h.
49056         * modules/config-h: New file.
49057         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49058         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49059         the config-h module is used.
49060
49061         New configmake module, so that "make" output needn't be cluttered
49062         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49063         * MODULES.html.sh (Support for building libraries and executables):
49064         Add configmake.
49065         * modules/configmake: New file.
49066
49067 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49068
49069         * m4/config-h.m4: New file.
49070
49071 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49072
49073         * config/srclist.txt: Add elisp-comp.
49074
49075 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * MODULES.html.sh (Support for building libraries and executables):
49078         Add elisp-comp.
49079         * build-aux/elisp-comp: New file.
49080         * modules/elisp-comp: New file.
49081
49082 2006-08-24  Bruno Haible  <bruno@clisp.org>
49083
49084         * gnulib-tool (func_create_testdir): Use non-default values of
49085         sourcebase and m4base.
49086
49087 2006-08-24  Bruno Haible  <bruno@clisp.org>
49088
49089         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49090         HTML structure.
49091
49092 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49093
49094         * modules/openat (Depends-on): Add lchown.
49095
49096 2006-08-23  Bruno Haible  <bruno@clisp.org>
49097
49098         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49099         of gl_LOCK_EARLY instead of gl_LOCK.
49100
49101 2006-08-23  Bruno Haible  <bruno@clisp.org>
49102
49103         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49104         on OSF/1 to no.
49105         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49106
49107 2006-08-23  Bruno Haible  <bruno@clisp.org>
49108
49109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49110         as unusable.
49111
49112         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49113         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49114         (gl_LOCK): New macro.
49115
49116 2006-08-22  Simon Josefsson  <jas@extundo.com>
49117
49118         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49119         to md5 module.
49120
49121 2006-08-22  Simon Josefsson  <jas@extundo.com>
49122
49123         * MODULES.html.sh: Add "Support for maintaining and release
49124         projects".
49125
49126         * build-aux/gnupload: New file, from coreutils.
49127
49128 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49129
49130         Avoid the need for AC_LIBSOURCES in m4 macros.
49131         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49132         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49133         * modules/check-version (EXTRA_DIST): Add check-version.h.
49134         * modules/crc (EXTRA_DIST): Add crc.h.
49135         * modules/des (EXTRA_DIST): Add des.h.
49136         * modules/gc (EXTRA_DIST): Add gc.h.
49137         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49138         * modules/getline (EXTRA_DIST): Add getline.h.
49139         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49140         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49141         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49142         * modules/md2 (EXTRA_DIST): Add md2.h.
49143         * modules/md4 (EXTRA_DIST): Add md4.h.
49144         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49145         * modules/read-file (EXTRA_DIST): Add read-file.h.
49146         * modules/readline (EXTRA_DIST): Add readline.h.
49147         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49148         rijndael-api-fst.h.
49149
49150 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * m4/rijndael.m4 (gl_ARCFOUR):
49153         * m4/arctwo.m4 (gl_ARCTWO):
49154         * m4/check-version.m4 (gl_CHECK_VERSION):
49155         * m4/crc.m4 (gl_CRC):
49156         * m4/des.m4 (gl_DES):
49157         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49158         * m4/gc.m4 (gl_GC):
49159         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49160         * m4/getline.m4 (gl_FUNC_GETLINE):
49161         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49162         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49163         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49164         * m4/md2.m4 (gl_MD2):
49165         * m4/md4.m4 (gl_MD4):
49166         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49167         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49168         * m4/readline.m4 (gl_FUNC_READLINE):
49169         * m4/rijndael.m4 (gl_RIJNDAEL):
49170         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49171         to get the necessary .h files and whatnot.
49172
49173 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49176         gnulib rather than the other way around.
49177         * config/srclistvars.sh (COREUTILS): Remove.
49178
49179 2006-08-22  Jim Meyering  <jim@meyering.net>
49180
49181         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49182
49183         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49184
49185 2006-08-22  Eric Blake  <ebb9@byu.net>
49186
49187         * modules/regexprops-generic: New file.
49188         * MODULES.html.sh (Support for building documentation): List it.
49189
49190 2006-08-22  Eric Blake  <ebb9@byu.net>
49191
49192         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49193         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49194         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49195         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49196
49197 2006-08-22  Bruno Haible  <bruno@clisp.org>
49198
49199         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49200         and lib_LTLIBRARIES like the other lib_* variables.
49201
49202 2006-08-22  Bruno Haible  <bruno@clisp.org>
49203
49204         * build-aux/x-to-1.in: New file, from GNU gettext.
49205
49206 2006-08-22  Bruno Haible  <bruno@clisp.org>
49207
49208         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49209         <utmpx.h> exists.
49210
49211 2006-08-22  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49214         <utmpx.h> exists.
49215
49216 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         BeOS portability.
49219         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49220         exist.
49221         Problem reported by Bruno Haible.
49222
49223 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49224
49225         Avoid the need for AC_LIBSOURCES in m4 macros.
49226         * modules/acl (EXTRA_DIST): Add acl.h.
49227         * modules/argmatch (Files): Add m4/argmatch.m4.
49228         (configure.ac): Add gl_ARGMATCH.
49229         (EXTRA_DIST): Renamed from lib_SOURCES, for
49230         consistency with the other modules.  Remove argmatch.c.
49231         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49232         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49233         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49234         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49235         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49236         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49237         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49238         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49239         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49240         * modules/closeout (EXTRA_DIST): Add closeout.h.
49241         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49242         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49243         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49244         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49245         dirname.h; remove basename.c and stripslash.c.
49246         * modules/exclude (EXTRA_DIST): Add exclude.h.
49247         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49248         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49249         * modules/file-type (EXTRA_DIST): Add file-type.h.
49250         * modules/filemode (EXTRA_DIST): Add filemode.h.
49251         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49252         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49253         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49254         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49255         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49256         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49257         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49258         * modules/getdate (EXTRA_DIST): Add getdate.c.
49259         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49260         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49261         * modules/getpass (EXTRA_DIST): Add getpass.h.
49262         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49263         * modules/group-member (EXTRA_DIST): Add group-member.h.
49264         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49265         * modules/hash (EXTRA_DIST): Add hash.h.
49266         * modules/human (EXTRA_DIST): Add human.h.
49267         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49268         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49269         * modules/lchown (EXTRA_DIST): Add lchown.h.
49270         * modules/long-options (EXTRA_DIST): Add long-options.h.
49271         * modules/lstat (EXTRA_DIST): Add lstat.h.
49272         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49273         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49274         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49275         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49276         * modules/memxor (EXTRA_DIST): Add memxor.h.
49277         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49278         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49279         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49280         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49281         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49282         * modules/physmem (EXTRA_DIST): Add physmem.h.
49283         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49284         * modules/posixver (EXTRA_DIST): Add posixver.h.
49285         * modules/quote (EXTRA_DIST): Add quote.h.
49286         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49287         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49288         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49289         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49290         regex_internal.h regexec.c.
49291         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49292         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49293         * modules/same (EXTRA_DIST): Add same.h.
49294         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49295         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49296         * modules/savedir (EXTRA_DIST): Add savedir.h.
49297         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49298         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49299         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49300         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49301         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49302         * modules/strdup (EXTRA_DIST): Add strdup.h.
49303         * modules/strftime (EXTRA_DIST): Add strftime.h.
49304         * modules/strndup (EXTRA_DIST): Add strndup.h.
49305         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49306         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49307         * modules/time_r (EXTRA_DIST): Add time_r.h.
49308         * modules/timespec (EXTRA_DIST): Add timespec.h.
49309         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49310         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49311         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49312         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49313         * modules/userspec (EXTRA_DIST): Add userspec.h.
49314         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49315         * modules/utimens (EXTRA_DIST): Add utimens.h.
49316         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49317         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49318         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49319         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49320         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49321         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49322         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49323         * modules/yesno (EXTRA_DIST): Add yesno.h.
49324
49325 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49326
49327         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49328
49329         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49330         * m4/dev-ino.m4, same-inode.m4: Remove.
49331
49332         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49333         * m4/acl.m4 (AC_FUNC_ACL):
49334         * m4/backupfile.m4 (gl_BACKUPFILE):
49335         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49336         * m4/canon-host.m4 (gl_CANON_HOST):
49337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49338         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49339         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49340         * m4/cloexec.m4 (gl_CLOEXEC):
49341         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49342         * m4/closeout.m4 (gl_CLOSEOUT):
49343         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49344         * m4/dirname.m4 (gl_DIRNAME):
49345         * m4/exclude.m4 (gl_EXCLUDE):
49346         * m4/exitfail.m4 (gl_EXITFAIL):
49347         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49348         * m4/file-type.m4 (gl_FILE_TYPE):
49349         * m4/filemode.m4 (gl_FILEMODE):
49350         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49351         * m4/fpending.m4 (gl_FUNC_FPENDING):
49352         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49353         * m4/fts.m4 (gl_FUNC_FTS):
49354         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49355         * m4/getdate.m4 (gl_GETDATE):
49356         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49357         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49358         * m4/getpass.m4 (gl_FUNC_GETPASS):
49359         * m4/gettime.m4 (gl_GETTIME):
49360         * m4/getugroups.m4 (gl_GETUGROUPS):
49361         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49362         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49363         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49364         * m4/hash.m4 (gl_HASH):
49365         * m4/idcache.m4 (gl_IDCACHE):
49366         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49367         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49368         * m4/long-options.m4 (gl_LONG_OPTIONS):
49369         * m4/lstat.m4 (gl_FUNC_LSTAT):
49370         * m4/md5.m4 (gl_MD5):
49371         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49372         * m4/memcoll.m4 (gl_MEMCOLL):
49373         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49374         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49375         * m4/memxor.m4 (gl_MEMXOR):
49376         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49378         * m4/modechange.m4 (gl_MODECHANGE):
49379         * m4/mountlist.m4 (gl_MOUNTLIST):
49380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49381         * m4/openat.m4 (gl_FUNC_OPENAT):
49382         * m4/pathmax.m4 (gl_PATHMAX):
49383         * m4/physmem.m4 (gl_PHYSMEM):
49384         * m4/posixtm.m4 (gl_POSIXTM):
49385         * m4/posixver.m4 (gl_POSIXVER):
49386         * m4/quote.m4 (gl_QUOTE):
49387         * m4/quotearg.m4 (gl_QUOTEARG):
49388         * m4/readtokens.m4 (gl_READTOKENS):
49389         * m4/readutmp.m4 (gl_READUTMP):
49390         * m4/regex.m4 (gl_REGEX):
49391         * m4/safe-read.m4 (gl_SAFE_READ):
49392         * m4/safe-write.m4 (gl_SAFE_WRITE):
49393         * m4/same.m4 (gl_SAME):
49394         * m4/save-cwd.m4 (gl_SAVE_CWD):
49395         * m4/savedir.m4 (gl_SAVEDIR):
49396         * m4/settime.m4 (gl_SETTIME):
49397         * m4/sha1.m4 (gl_SHA1):
49398         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49399         * m4/stat-macros.m4 (gl_STAT_MACROS):
49400         * m4/stat-time.m4 (gl_STAT_TIME):
49401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49402         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49403         * m4/strdup.m4 (gl_FUNC_STRDUP):
49404         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49405         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49406         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49407         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49408         * m4/time_r.m4 (gl_TIME_R):
49409         * m4/timespec.m4 (gl_TIMESPEC):
49410         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49411         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49412         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49413         * m4/userspec.m4 (gl_USERSPEC):
49414         * m4/utimecmp.m4 (gl_UTIMECMP):
49415         * m4/utimens.m4 (gl_UTIMENS):
49416         * m4/xalloc.m4 (gl_XALLOC):
49417         * m4/xgetcwd.m4 (gl_XGETCWD):
49418         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49419         * m4/xreadlink.m4 (gl_XREADLINK):
49420         * m4/xstrtod.m4 (gl_XSTRTOD):
49421         * m4/yesno.m4 (gl_YESNO):
49422         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49423         to get the necessary .h files and whatnot.
49424
49425 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49426             Bruno Haible  <bruno@clisp.org>
49427
49428         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49429         /bin/sh understanding of '!' conditional negation.
49430
49431 2006-08-21  Jim Meyering  <jim@meyering.net>
49432
49433         * modules/openat (Depends-on): Really alphabetize.
49434
49435         * modules/acl (Depends-on): Add error and quote.
49436
49437         * check-module (find_included_lib_files): Add at-func.c to the
49438         ok-to-include-more-than-once white list.
49439
49440         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49441
49442 2006-08-21  Bruno Haible  <bruno@clisp.org>
49443
49444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49445         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49446         Reported by Martin Lambers <marlam@marlam.de>.
49447
49448 2006-08-21  Bruno Haible  <bruno@clisp.org>
49449
49450         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49451         specify an installation location, don't emit a noinst_LIBRARIES or
49452         noinst_LTLIBRARIES assignment.
49453
49454 2006-08-21  Bruno Haible  <bruno@clisp.org>
49455
49456         BeOS portability.
49457         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49458         BeOS has mbrtowc() but no <wctype.h>.
49459
49460 2006-08-21  Bruno Haible  <bruno@clisp.org>
49461
49462         BeOS portability.
49463         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49464         exist.
49465
49466 2006-08-21  Bruno Haible  <bruno@clisp.org>
49467
49468         BeOS portability.
49469         * lib/mbchar.h: Include <wctype.h> only if it exists.
49470
49471 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49472
49473         Remove files that are no longer needed by their respective modules.
49474         * m4/obstack.m4: Remove.
49475         * m4/strerror_r.m4: Remove.
49476         * m4/uint32_t.m4: Remove.
49477         * m4/uintptr_t.m4: Remove.
49478         * m4/ullong_max.m4: Remove.
49479         * m4/xstrtoimax.m4: Remove.
49480         * m4/xstrtoumax.m4: Remove.
49481
49482         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49483         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49484         dependencies now capture this.
49485
49486         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49487         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49488         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49489         * m4/human.m4 (gl_HUMAN): Likewise.
49490         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49491         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49492
49493         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49494
49495         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49496         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49497         stdint.
49498         * m4/human.m4 (gl_HUMAN): Likewise.
49499         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49500         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49501         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49502         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49503         * m4/xstrtol (gl_XSTRTOL): Likewise.
49504
49505         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49506         AC_TYPE_LONG_LONG_INT.
49507         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49508         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49509         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49510         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49511
49512         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49513         on stdbool.
49514
49515         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49516         (gl_PREREQ_XSTRTOUL): Remove.
49517
49518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49519
49520         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49521         mode.
49522
49523 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49524
49525         Add and change modules to make it easier for coreutils to use
49526         gnulib-tool.
49527         * modules/backupfile (Files): Remove m4/d-ino.m4.
49528         (Depends-on): Add d-ino.
49529         * modules/cycle-check (Depends-on): Add stdint.
49530         (lib_SOURCES): Add cycle-check.h.
49531         * modules/d-ino: New module.
49532         * modules/d-type: New module.
49533         * modules/error (Files): Remove m4/strerror_r.m4.
49534         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49535         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49536         m4/inttypes_h.m4, m4/uintmax_t.m4.
49537         (Depends-on): Add stdint.
49538         (lib_SOURCES): Add fsusage.h.
49539         * modules/getcwd (Files): Remove d-ino.m4.
49540         (Depends-on): Add d-ino.
49541         * modules/getndelim2 (Depends-on): Add stdint.
49542         * modules/glob (Files): Remove m4/d-type.m4.
49543         (Depends-on): Add d-type.
49544         * modules/host-os: New module.
49545         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49546         m4/inttypes_h.m4, m4/uintmax_t.m4.
49547         * Depends-on: Add stdint.
49548         (lib_SOURCES): Add human.h.
49549         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49550         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49551         m4/uintmax_t.m4, m4/ulonglong.m4.
49552         (Depends-on): Add stdint.
49553         (EXTRA_DIST): Add inttostr.h.
49554         * modules/lchmod: New module.
49555         * modules/link-follow: New module.
49556         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49557         (Depends-on): Add lchmod.
49558         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49559         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49560         (Depends-on): Add stdint.
49561         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49562         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49563         (Depends-on): Add stdint.
49564         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49565         * modules/perl: New module.
49566         * modules/regex (Depends-on): Add stdint.
49567         * modules/rmdir-errno: New module.
49568         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49569         m4/intmax_t.m4.
49570         (Depends-on): Add stdint.
49571         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49572         m4/uintmax_t.m4.
49573         (Depends-on): Add stdint.
49574         * modules/unlink-busy: New module.
49575         * modules/utimecmp (Depends-on): Add stdint.
49576         * modules/uptime: New module.
49577         * modules/winsz-ioctl: New module.
49578         * modules/winsz-termios: New module.
49579         * modules/xnanosleep (Depends-on): Add nanosleep.
49580         * modules/ullong_max: Remove.
49581         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49582         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49583         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49584         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49585         (Depends-on): Add inttypes.
49586         (lib_SOURCES): Add xstrtol.h.
49587         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49588         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49589         * MODULES.html.sh: Move 'assert' into the assert section.
49590         Move 'dummy' into the linking section.
49591         Remove ullong_max.
49592         Add section for compatibility checks for POSIX:2001 functions,
49593         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49594         winsz-ioctl, and winsz-termios into it.
49595         Add lchmod.
49596         Add top-level Misc section and put host-os, perl, and uptime
49597         into it.
49598
49599 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49602         now assume the stdint module.  Do not include inttypes.h.
49603         * lib/fsusage.h: Likewise.
49604         * lib/getndelim2.c: Likewise.
49605         * lib/human.h: Likewise.
49606         * lib/inttostr.h: Likewise.
49607         * lib/obstack.c: Likewise.
49608         * lib/regex_internal.h: Likewise.
49609         * lib/tempname.c: Likewise.
49610         * lib/utimecmp.c: Likewise.
49611         * lib/xstrtol.h: Likewise.
49612
49613         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49614
49615         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49616         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49617         * lib/xtime.h: Likewise.
49618
49619 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49620
49621         * modules/openat (Files): Add lib/fchmodat.c.
49622         Fixes problem reported by Jay Youngman.
49623
49624 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49627         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49628
49629 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49630             Bruno Haible  <bruno@clisp.org>
49631
49632         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49633         and is a script that invokes bison. Tighten the code. Add comments.
49634
49635 2006-08-18  Jim Meyering  <jim@meyering.net>
49636
49637         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49638         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49639         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49640         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49641
49642 2006-08-18  Bruno Haible  <bruno@clisp.org>
49643
49644         * modules/bison-i18n: New file.
49645         * MODULES.html.sh (Internationalization functions): Add it.
49646
49647 2006-08-18  Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49650         sys/statvfs.h. When getmntinfo was found, check its declaration and
49651         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49652
49653 2006-08-18  Bruno Haible  <bruno@clisp.org>
49654
49655         * m4/bison-i18n.m4: New file, from bison.
49656
49657 2006-08-18  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49660         (ME_DUMMY): Treat "kernfs" as a dummy.
49661         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49662
49663 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         Update from coreutils.
49666
49667         2006-08-15  Jim Meyering  <jim@meyering.net>
49668
49669         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49670
49671         2006-01-17  Jim Meyering  <jim@meyering.net>
49672
49673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49674
49675         2006-01-11  Jim Meyering  <jim@meyering.net>
49676
49677         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49678         Check for the lchmod function.
49679
49680 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         Update from coreutils.
49683
49684         * lib/__fpending.h: Add copyright notice.
49685         * lib/fprintftime.h: Likewise.
49686         * lib/savedir.c: Use (C) in copyright notice.
49687         * lib/savedir.h: Likewise.
49688
49689         2006-08-15  Jim Meyering  <jim@meyering.net>
49690
49691         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49692         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49693         in support of the EXPECTED_ERRNO macro.
49694         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49695         definitions.  Instead, define the appropriate symbols and include
49696         "at-func.c".
49697         * lib/mkdirat.c (mkdirat): Likewise.
49698         * lib/fchmodat.c (fchmodat): Likewise.
49699         (ENOSYS): Remove definition.
49700         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49701         it.  Don't include "unistd--.h" -- it wasn't ever used.
49702
49703         2006-01-17  Jim Meyering  <jim@meyering.net>
49704
49705         Rewrite fts.c not to change the current working directory,
49706         by using openat, fstatat, fdopendir, etc..
49707
49708         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49709         (HAVE_OPENAT_SUPPORT): Define.
49710         [_LIBC] (fchdir): Don't undef or define; no longer used.
49711         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49712         Now, this `function' always succeeds, and consumes its file descriptor
49713         parameter -- so callers must not close such FDs.  Update callers.
49714         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49715         (diropen): Add parameter, SP.  Adjust all callers.
49716         Implement using diropen_fd, rather than open.
49717         (fts_open): Initialize new member, fts_cwd_fd.
49718         Remove fts_rft-setting code.
49719         (fts_close): Close fts_cwd_fd, if necessary.
49720         (__opendir2): Define in terms of opendir or opendirat,
49721         depending on whether the FST_NOCHDIR flag is set.
49722         (fts_build): Since fts_safe_changedir consumes its FD, and since
49723         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49724         and close the dup'd file descriptor upon failure.
49725         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49726         (fts_safe_changedir): Tweak semantics to reflect that this function
49727         now calls cwd_advance_fd and hence consumes its FD argument.
49728         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49729         [struct FTS] (fts_rft): Remove now-unused member.
49730         [struct FTS] (fts_cycle.state): Improve comment.
49731
49732         * lib/openat.c (openat_needs_fchdir): New function.
49733         * lib/openat.h (openat_needs_fchdir): Declare it.
49734
49735 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49736
49737         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49738         Problem and fix reported by Pádraig Brady in
49739         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49740
49741 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49744
49745 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * lib/memcoll.c (memcoll): Optimize for the common case where the
49748         arguments are bytewise equal.
49749
49750 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49751
49752         * doc/regexprops-generic.texi: Add a copyright notice.
49753
49754 2006-08-15  Bruno Haible  <bruno@clisp.org>
49755
49756         * modules/tmpdir (License): Change to LGPL.
49757
49758 2006-08-15  Bruno Haible  <bruno@clisp.org>
49759
49760         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49761         module.
49762
49763 2006-08-14  Simon Josefsson  <jas@extundo.com>
49764
49765         * config/srclist.txt: Add gnupload.
49766
49767 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49768
49769         Change copyright notice from LGPL 2 to GPL 2, since that's the
49770         standard form used in the gnulib repository.
49771         * tests/test-lock.c: Likewise.
49772         * tests/test-stdint.c: Likewise.
49773         * tests/test-tls.c: Likewise.
49774
49775         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49776         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49777         Add copyright notice.
49778
49779         * check-module: Add copyright notice.  Output a copyright
49780         notice if "--version" is specified.
49781         * modules/COPYING: New file.
49782         * tests/test-getaddrinfo.c: Add copyright notice.
49783         * tests/test-verify.c: Likewise.
49784
49785 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49786
49787         Change copyright notice from LGPL 2 to GPL 2, since that's the
49788         standard form used in the gnulib repository.
49789         * lib/lock.c: LGPL -> GPL.
49790         * lib/lock.h: Likewise.
49791         * lib/strnlen1.c: Likewise.
49792         * lib/strnlen1.h: Likewise.
49793         * lib/tls.c: Likewise.
49794         * lib/tls.h: Likewise.
49795         * lib/tmpdir.c: Likewise.
49796
49797         * lib/TODO: Remove; this belongs only in coreutils.
49798
49799 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49800
49801         Add copyright notices to long-enough files that lack them, since
49802         otherwise the files aren't clearly free.  Use the same notice that
49803         getdate.texi already uses.
49804         * doc/alloca-opt.texi: Add copyright notice.
49805         * doc/alloca.texi: Likewise.
49806         * doc/ctime.texi: Likewise.
49807         * doc/functions.texi: Likewise.
49808         * doc/gcd.texi: Likewise.
49809         * doc/gnulib-tool.texi: Likewise.
49810         * doc/inet_ntoa.texi: Likewise.
49811         * doc/visibility.texi: Likewise.
49812
49813         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49814         * doc/quote.texi: Add copyright notice.
49815
49816         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49817         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49818         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49819         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49820         is now obsolete, and give a pointer to the Sun list.
49821         Add copyright notice.
49822
49823 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         * config/srclistvars.sh: Add copyright notice.
49826
49827 2006-08-14  Eric Blake  <ebb9@byu.net>
49828
49829         Import the following change from libc:
49830
49831         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49832
49833         Upstream bug 2997.
49834         * lib/misc/error.c: Add space between program name and message if file
49835         name is missing.
49836
49837 2006-08-12  Karl Berry  <karl@gnu.org>
49838
49839         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49840         remove, these originate in gnulib now.
49841
49842 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49843
49844         * doc/Makefile (standards.info standards.html standards.dvi):
49845         Also depend on make-stds.texi.
49846
49847 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49848
49849         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
49850         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
49851
49852         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
49853         in wchar_t.  Problem reported by Eric Blake.
49854
49855         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
49856         LEN is smaller than SIZE.  Suggested by Bruno Haible.
49857         Also, help the compiler to keep LEN in a register.
49858
49859 2006-08-11  Eric Blake  <ebb9@byu.net>
49860
49861         * users.txt: Sort.  Add tar.
49862
49863 2006-08-11  Bruno Haible  <bruno@clisp.org>
49864
49865         * users.txt: New file.
49866
49867 2006-08-11  Bruno Haible  <bruno@clisp.org>
49868
49869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
49870         before <wchar.h>. Needed for OSF/1 and BSD/OS.
49871
49872 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49873
49874         * modules/snprintf (Depends-on): Remove minmax.
49875         (Maintainer): Add self and Bruno.
49876
49877 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49878
49879         * lib/.cppi-disable: Add snprintf.h, socket_.h.
49880         * lib/snprintf.c: Include <errno.h> and <limits.h>.
49881         (EOVERFLOW): Define if the system does not.
49882         Do not include "minmax.h"; it wasn't used.
49883         (snprintf): Don't assume size_t promotes to an unsigned type.
49884         Fix bug when generated string was too long for the buffer: the
49885         buffer's contents are supposed to be the initial prefix of the
49886         output.  Don't assume vasnprintf returns EOVERFLOW if the size
49887         exceeds INT_MAX; do the check ourselves.
49888
49889         Import the following changes from libc:
49890
49891         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
49892
49893         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
49894         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
49895         set wc to the byte which couldn't be converted.
49896         (re_string_reconstruct): Don't clear valid_raw_len before calling
49897         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
49898         tip_context using re_string_context_at.
49899
49900         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
49901
49902         * lib/posix/regex.h: g++ still cannot handled [restrict].
49903
49904         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
49905
49906         * lib/posix/regex.h: Remove special handling for VMS.
49907
49908 2006-08-10  Jim Meyering  <jim@meyering.net>
49909
49910         * modules/same-inode: New module.
49911         * modules/dev-ino: New module.
49912         * modules/cycle-check: Depend on these modules, rather than simply
49913         including their .h files.
49914         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
49915         required via m4/cycle-check.m4.
49916         * modules/same: Depend on new same-inode module, rather than
49917         including same-inode.h.
49918         * modules/chdir-safer: New file.
49919
49920         * modules/chown (Depends-on): Add stat-macros.
49921
49922 2006-08-10  Jim Meyering  <jim@meyering.net>
49923
49924         * m4/cycle-check.m4: New file.
49925         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
49926         * m4/dev-ino.m4, m4/same-inode.m4: New files.
49927
49928 2006-08-10  Eric Blake  <ebb9@byu.net>
49929
49930         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
49931         in from original proposal.
49932
49933 2006-08-10  Eric Blake  <ebb9@byu.net>
49934         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49935
49936         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
49937         namespace.
49938
49939 2006-08-10  Bruno Haible  <bruno@clisp.org>
49940
49941         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
49942         as well.
49943
49944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         Sync from coreutils.
49947
49948         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
49949
49950         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
49951         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
49952
49953 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49954
49955         * modules/restrict: Remove; no longer needed now that we assume
49956         Autoconf 2.59 or later.
49957         * MODULES.html.sh: Remove 'restrict'.
49958         * modules/argp (Depends-on): Remove 'restrict'.
49959         * modules/base64 (Depends-on): Likewise.
49960         * modules/gc (Depends-on): Likewise.
49961         * modules/getaddrinfo (Depends-on): Likewise.
49962         * modules/glob (Depends-on): Likewise.
49963         * modules/inet_ntop (Depends-on): Likewise.
49964         * modules/inet_pton (Depends-on): Likewise.
49965         * modules/memxor (Depends-on): Likewise.
49966         * modules/regex (Depends-on): Likewise.
49967         * modules/strtok_r (Depends-on): Likewise.
49968         * modules/time_r (Depends-on): Likewise.
49969
49970 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
49973         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
49974         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49975         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
49976         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
49977         * m4/memxor.m4 (gl_MEMXOR): Likewise.
49978         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
49979         gl_C_RESTRICT replaced by AC_C_RESTRICT.
49980
49981         Merge from coreutils.
49982         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
49983         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
49984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49985         * m4/time_r.m4 (gl_TIME_R): Likewise.
49986
49987 2006-08-09  Karl Berry  <karl@gnu.org>
49988
49989         * config/srclist.txt: no more gettext-tools, per Bruno.
49990
49991 2006-08-08  Eric Blake  <ebb9@byu.net>
49992
49993         * modules/verror: New module.
49994         * MODULES.html.sh: Document it.
49995
49996 2006-08-08  Eric Blake  <ebb9@byu.net>
49997
49998         * lib/verror.h, lib/verror.c: New files.
49999
50000 2006-08-08  Eric Blake  <ebb9@byu.net>
50001
50002         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50003         verror_at_line output complies with GNU Coding Standards even when
50004         file is NULL.
50005
50006 2006-08-07  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50009         versions of AIX.
50010         Reported by Ralf Wildenhues.
50011
50012 2006-08-07  Bruno Haible  <bruno@clisp.org>
50013
50014         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50015         in an AC_DEFUN. Needed so that the autoconf snippets can use
50016         AC_REQUIRE.
50017
50018 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50019
50020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50021         Initialize pkgdata_DATA.
50022         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50023         overriding it.
50024
50025 2006-08-06  Eric Blake  <ebb9@byu.net>
50026
50027         * lib/error.h: Fold in some upstream changes from glibc.
50028         * lib/error.c: Likewise.
50029
50030 2006-08-04  Bruno Haible  <bruno@clisp.org>
50031
50032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50033         Make the mostlyclean-local rule depend on mostlyclean-generic.
50034         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50035
50036 2006-07-31  Bruno Haible  <bruno@clisp.org>
50037
50038         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50039         <stdlib.h>, <string.h>.
50040
50041 2006-07-30  Bruno Haible  <bruno@clisp.org>
50042
50043         * modules/readlink (License): Change to LGPL.
50044
50045 2006-07-30  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50048         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50049         set PKGDATADIR to point to it.
50050
50051 2006-07-30  Bruno Haible  <bruno@clisp.org>
50052
50053         * modules/csharpexec (configure.ac): Comment out macro invocation.
50054         * modules/javaexec (configure.ac): Likewise.
50055         * modules/javacomp-script (configure.ac): Likewise.
50056
50057         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50058
50059 2006-07-30  Bruno Haible  <bruno@clisp.org>
50060
50061         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50062         linked-list.
50063
50064 2006-07-30  Bruno Haible  <bruno@clisp.org>
50065
50066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50067
50068 2006-07-30  Bruno Haible  <bruno@clisp.org>
50069
50070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50071         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50072         get removed.
50073
50074 2006-07-29  Bruno Haible  <bruno@clisp.org>
50075
50076         Make it possible for gnulib-tool to work with locally modified or
50077         augmented gnulib repositories.
50078         * gnulib-tool (func_usage): Document --local-dir option.
50079         (local_gnulib_dir): New variable.
50080         Handle --local-dir option.
50081         (func_lookup_file): New function.
50082         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50083         (func_get_description, func_get_filelist, func_get_description,
50084         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50085         func_get_automake_snippet, func_get_include_directive,
50086         func_get_license, func_get_maintainer): Use func_lookup_file.
50087         (func_import, func_create_testdir): Use func_lookup_file.
50088
50089 2006-07-29  Bruno Haible  <bruno@clisp.org>
50090
50091         * modules/setenv (Depends-on): Add unistd.
50092
50093 2006-07-29  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50096
50097 2006-07-29  Bruno Haible  <bruno@clisp.org>
50098
50099         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50100
50101 2006-07-29  Bruno Haible  <bruno@clisp.org>
50102
50103         * gnulib-tool (import, update): If there is no Makefile.am, look at
50104         aclocal.m4, instead of bailing out.
50105
50106 2006-07-29  Bruno Haible  <bruno@clisp.org>
50107
50108         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50109         Categorize the options by when they are useful.
50110
50111 2006-07-29  Bruno Haible  <bruno@clisp.org>
50112
50113         * gnulib-tool (func_usage): Document option --no-libtool.
50114         Handle option --no-libtool.
50115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50116         for changed semantics of $libtool variable.
50117         (func_import): Likewise. If libtool is not used, show this through
50118         an option --no-libtool.
50119         (func_create_testdir): Update.
50120
50121 2006-07-29  Bruno Haible  <bruno@clisp.org>
50122
50123         * gnulib-tool (func_import): Extend error message about missing
50124         --doc-base.
50125
50126 2006-07-29  Bruno Haible  <bruno@clisp.org>
50127
50128         * gnulib-tool (func_import): Don't create the $docbase directory if
50129         there is no file to store there.
50130
50131 2006-07-29  Bruno Haible  <bruno@clisp.org>
50132
50133         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50134         relevant, look for configure.ac there, not in the current directory.
50135         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50136
50137 2006-07-29  Bruno Haible  <bruno@clisp.org>
50138
50139         * gnulib-tool (SORT): New variable.
50140         (func_usage): Undocument --assume-autoconf option.
50141         Remove --assume-autoconf option handling.
50142         (autoconf_minversion): Determine from the contents of configure.ac.
50143         (func_import): Remove autoconf_minversion handling.
50144         Suggested by Eric Blake.
50145
50146 2006-07-29  Bruno Haible  <bruno@clisp.org>
50147
50148         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50149
50150 2006-07-29  Bruno Haible  <bruno@clisp.org>
50151
50152         * config/srclist.txt (*setenv.[ch]): Remove rules.
50153
50154 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50155
50156         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50157
50158 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50159
50160         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50161         arpa/inet.h.
50162
50163 2006-07-28  Simon Josefsson  <jas@extundo.com>
50164
50165         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50166         * modules/inet_pton (Depends-on): Likewise.
50167
50168 2006-07-28  Simon Josefsson  <jas@extundo.com>
50169
50170         * m4/netinet_in_h.m4: New file.
50171
50172 2006-07-28  Simon Josefsson  <jas@extundo.com>
50173
50174         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50175         #include's.
50176
50177 2006-07-28  Simon Josefsson  <jas@extundo.com>
50178
50179         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50180         #include's.
50181
50182 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50185         setgid on directories only if they set these bits.
50186         * lib/modechange.h: Remove obsolete comment about masks.
50187
50188 2006-07-28  Eric Blake  <ebb9@byu.net>
50189
50190         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50191         macro expansion.
50192
50193 2006-07-28  Bruno Haible  <bruno@clisp.org>
50194
50195         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50196
50197 2006-07-28  Bruno Haible  <bruno@clisp.org>
50198
50199         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50200
50201 2006-07-28  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50204         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50205         Define fallbacks.
50206         Avoids link error on FreeBSD 4.x.
50207         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50208
50209         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50210         encoding.
50211         * lib/mbswidth.c (iswcntrl): Likewise.
50212
50213 2006-07-27  Bruno Haible  <bruno@clisp.org>
50214
50215         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50216         test.
50217
50218 2006-07-27  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50221         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50222         defined.
50223
50224 2006-07-26  Eric Blake  <ebb9@byu.net>
50225
50226         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50227
50228 2006-07-26  Eric Blake  <ebb9@byu.net>
50229
50230         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50231         like mingw that lack mkstemp.
50232         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50233         avoid compilation warning on mingw.
50234
50235 2006-07-26  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50238         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50239         INT_FAST*_MIN, INTPTR_MIN.
50240
50241 2006-07-25  Bruno Haible  <bruno@clisp.org>
50242
50243         * modules/version-etc (Depends-on): Add stdarg.
50244
50245 2006-07-25  Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50248         complex commands.
50249
50250 2006-07-25  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50253         defined in <stdarg.h> or config.h.
50254
50255 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50258         (gl_STDIO_SAFER): Remove.
50259
50260 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50261
50262         * MODULES.html.sh (File stream based Input/Output):
50263         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50264         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50265         * modules/fopen-safer, modules/tmpfile-safer: New files.
50266         * modules/stdio-safer: Remove.
50267
50268 2006-07-24  Bruno Haible  <bruno@clisp.org>
50269
50270         * modules/tmpdir: New file.
50271         * MODULES.html.sh (File system functions): Add it.
50272
50273 2006-07-24  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50276         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50277
50278 2006-07-24  Bruno Haible  <bruno@clisp.org>
50279
50280         * modules/clean-temp: New file.
50281
50282 2006-07-24  Bruno Haible  <bruno@clisp.org>
50283
50284         * m4/tmpdir.m4: New file, from GNU gettext.
50285
50286 2006-07-24  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/tmpdir.h: New file, from GNU gettext.
50289         * lib/tmpdir.c: New file, from GNU gettext.
50290
50291 2006-07-24  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/clean-temp.h: New file, from GNU gettext.
50294         * lib/clean-temp.c: New file, from GNU gettext.
50295
50296 2006-07-23  Eric Blake  <ebb9@byu.net>
50297
50298         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50299         (Depends-on): Add binary-io.
50300
50301 2006-07-23  Eric Blake  <ebb9@byu.net>
50302
50303         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50304
50305 2006-07-23  Eric Blake  <ebb9@byu.net>
50306
50307         * lib/tmpfile-safer.c: New file.
50308         * lib/stdio-safer.h (fopen_safer): Add prototype.
50309         * lib/stdio--.h (tmpfile): Make safer.
50310
50311 2006-07-23  Bruno Haible  <bruno@clisp.org>
50312
50313         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50314         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50315         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50316         gl_linked_remove_at): Use it.
50317
50318 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50319         and Simon Josefsson <jas@extundo.com>
50320
50321         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50322
50323         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50324
50325 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         * modules/close-stream: New file.
50328         * modules/closeout (Description): Make it clear that it exits
50329         with a diagnostic on error.
50330         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50331         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50332
50333 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         * m4/close-stream.m4: New file.
50336
50337 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         * lib/close-stream.c, lib/close-stream.h: New files.
50340
50341 2006-07-22  Bruno Haible  <bruno@clisp.org>
50342
50343         Merge from GNU gettext 0.15.
50344
50345         2006-05-01  Bruno Haible  <bruno@clisp.org>
50346
50347                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50348
50349         2006-07-22  Bruno Haible  <bruno@clisp.org>
50350
50351                 * modules/javaversion: New file.
50352                 * MODULES.html.sh (Java): Add javaversion.
50353
50354         2006-03-12  Bruno Haible  <bruno@clisp.org>
50355
50356                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50357
50358         2005-12-04  Bruno Haible  <bruno@clisp.org>
50359
50360                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50361                 (untested).
50362
50363         2006-06-21  Bruno Haible  <bruno@clisp.org>
50364
50365                 Avoid warnings from recent versions of mcs.
50366                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50367                 -o, -L, -r any more. Use options documented since mcs-1.0
50368                 instead. Similarly for -g.
50369
50370         2005-12-04  Bruno Haible  <bruno@clisp.org>
50371
50372                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50373                 .resources, not .resource.
50374
50375         2005-07-09  Bruno Haible  <bruno@clisp.org>
50376
50377                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50378                 add a .dll suffix.
50379                 Reported by Mark Junker <mjscod@gmx.de>.
50380
50381         2006-07-22  Bruno Haible  <bruno@clisp.org>
50382
50383                 * modules/gettext: Upgrade to gettext-0.15.
50384                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50385                 m4/visibility.m4.
50386                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50387
50388 2006-07-22  Bruno Haible  <bruno@clisp.org>
50389
50390         Merge from GNU gettext 0.15.
50391
50392         2006-03-25  Bruno Haible  <bruno@clisp.org>
50393
50394                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50395
50396         2006-07-21  Bruno Haible  <bruno@clisp.org>
50397
50398                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50399                 "1.1".
50400
50401         2006-05-09  Bruno Haible  <bruno@clisp.org>
50402
50403                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50404                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50405                 for the conftestver execution.
50406
50407         2006-05-01  Bruno Haible  <bruno@clisp.org>
50408
50409                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50410                 optional target-version argument. Verify that the compiler
50411                 groks source of the specified source-version, or add -source
50412                 option as necessary. Verify that the compiler produces
50413                 bytecode in the specified target-version, or add -target and
50414                 -source options as necessary. Make the result of the test
50415                 available as variable CONF_JAVAC. Also log error output in
50416                 config.log.
50417
50418         2006-03-11  Bruno Haible  <bruno@clisp.org>
50419
50420                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50421
50422         2006-05-09  Bruno Haible  <bruno@clisp.org>
50423
50424                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50425                 CLASSPATH_SEPARATOR to a semicolon.
50426
50427         2006-03-12  Bruno Haible  <bruno@clisp.org>
50428
50429                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50430                 available as variable CONF_JAVA, for subsequent autoconf
50431                 tests. Also log error output in config.log.
50432
50433         2006-07-19  Bruno Haible  <bruno@clisp.org>
50434
50435                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50436                 that getline works on glibc2 systems. Needed to avoid trouble
50437                 in relocatable.c.
50438                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50439
50440         2005-12-04  Bruno Haible  <bruno@clisp.org>
50441
50442                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50443                 launcher (untested).
50444
50445         2005-12-04  Bruno Haible  <bruno@clisp.org>
50446
50447                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50448
50449         2006-07-22  Bruno Haible  <bruno@clisp.org>
50450
50451                 * gettext.m4: Update from GNU gettext-0.15.
50452                 * nls.m4: Likewise.
50453                 * po.m4: Likewise.
50454                 * inttypes-pri.m4: Likewise.
50455                 * inttypes-h.m4: Renamed from inttypes.m4.
50456                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50457
50458 2006-07-22  Bruno Haible  <bruno@clisp.org>
50459
50460         Merge from GNU gettext 0.15.
50461
50462         2005-07-05  Bruno Haible  <bruno@clisp.org>
50463
50464                 * printf-args.c (printf_fetchargs): Work around broken
50465                 definition of wint_t on mingw.
50466
50467         2005-02-12  Bruno Haible  <bruno@clisp.org>
50468
50469                 * xallocsa.h: Add extern "C" for C++.
50470
50471         2006-05-17  Bruno Haible  <bruno@clisp.org>
50472
50473                 Cygwin portability.
50474                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50475
50476         2006-04-30  Bruno Haible  <bruno@clisp.org>
50477
50478                 * progreloc.c: Include <mach-o/dyld.h> if available.
50479                 (find_executable): Use _NSGetExecutablePath when possible.
50480
50481         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50482
50483                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50484                 function.
50485
50486         2005-12-29  Bruno Haible  <bruno@clisp.org>
50487
50488                 * progreloc.c (set_program_name_and_installdir): Fix
50489                 compilation error.
50490
50491         2005-12-04  Bruno Haible  <bruno@clisp.org>
50492
50493                 Cygwin portability.
50494                 * progreloc.c: Include <windows.h> also on Cygwin.
50495                 (find_executable): Add support for Cygwin.
50496                 (set_program_name_and_installdir): Handle also platforms with
50497                 nonempty EXEEXT.
50498
50499         2006-07-11  Bruno Haible  <bruno@clisp.org>
50500
50501                 * javacomp.c: Fix a comment.
50502                 Reported by Jim Meyering.
50503
50504         2006-04-30  Bruno Haible  <bruno@clisp.org>
50505
50506                 * javacomp.h (compile_java_class): Add source_version,
50507                 target_version arguments.
50508                 * javacomp.c: Rewritten to choose only a compiler that
50509                 respects the specified source_version and target_version.
50510
50511         2006-06-27  Bruno Haible  <bruno@clisp.org>
50512
50513                 Assume correct S_ISDIR macro.
50514                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50515
50516         2006-07-22  Bruno Haible  <bruno@clisp.org>
50517
50518                 * javaversion.h: New file, from GNU gettext.
50519                 * javaversion.c: New file, from GNU gettext.
50520                 * javaversion.java: New file, from GNU gettext.
50521                 * javaversion.class: New file, from GNU gettext.
50522
50523         2006-05-17  Bruno Haible  <bruno@clisp.org>
50524
50525                 Cygwin portability.
50526                 * javaexec.c (execute_java_class): Test for jview program
50527                 also on Cygwin.
50528
50529         2006-04-09  Bruno Haible  <bruno@clisp.org>
50530
50531                 * fatal-signal.c: Don't include string.h.
50532                 (at_fatal_signal): Use a copying loop instead of memcpy.
50533
50534         2005-12-04  Bruno Haible  <bruno@clisp.org>
50535
50536                 * csharpexec.c: Add support for 'clix' launcher (untested).
50537                 (execute_csharp_using_sscli): New function.
50538                 (execute_csharp_program): Call it.
50539
50540         2006-06-21  Bruno Haible  <bruno@clisp.org>
50541
50542                 Avoid warnings from recent versions of mcs.
50543                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50544                 -o, -L, -r any more. Use options documented since mcs-1.0
50545                 instead. Similarly for -g.
50546
50547         2005-07-09  Bruno Haible  <bruno@clisp.org>
50548
50549                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50550                 add a .dll suffix.
50551                 Reported by Mark Junker <mjscod@gmx.de>.
50552
50553         2006-06-17  Bruno Haible  <bruno@clisp.org>
50554
50555                 * config.charset: Update for NetBSD 3.0.
50556
50557         2006-05-17  Bruno Haible  <bruno@clisp.org>
50558
50559                 Cygwin portability.
50560                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50561
50562         2006-05-16  Bruno Haible  <bruno@clisp.org>
50563
50564                 * localcharset.c [CYGWIN]: Include <windows.h>.
50565                 (get_charset_aliases): For Cygwin, return the same CPxxx
50566                 aliases list as under WIN32.
50567                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50568                 the environment variables. Fall back to GetACP().
50569
50570         2006-04-05  Bruno Haible  <bruno@clisp.org>
50571
50572                 * config.charset: Update Juan Manuel Guerrero's address.
50573
50574         2005-02-12  Bruno Haible  <bruno@clisp.org>
50575
50576                 * allocsa.h: Add extern "C" for C++.
50577
50578         2005-02-10  Bruno Haible  <bruno@clisp.org>
50579
50580                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50581                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50582
50583         2006-07-22  Bruno Haible  <bruno@clisp.org>
50584
50585                 * gettext.h: Update to GNU gettext-0.15.
50586
50587 2006-07-22  Bruno Haible  <bruno@clisp.org>
50588
50589         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50590         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50591         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50592
50593 2006-07-21  Eric Blake  <ebb9@byu.net>
50594
50595         * modules/stdlib-safer: New file.
50596         * MODULES.html.sh (File stream based Input/Output): Add
50597         stdlib-safer.
50598
50599 2006-07-21  Eric Blake  <ebb9@byu.net>
50600
50601         * lib/stdlib-safer.h: New file from coreutils, required by
50602         stdlib--.h.
50603
50604 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50605
50606         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50607
50608 2006-07-20  Bruno Haible  <bruno@clisp.org>
50609
50610         * gnulib-tool: Recognize new option --assume-autoconf.
50611         (autoconf_minversion): New variable.
50612         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50613
50614 2006-07-20  Bruno Haible  <bruno@clisp.org>
50615
50616         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50617
50618 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50619
50620         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50621         Reindent and repaginate.
50622
50623 2006-07-19  Derek Price  <derek@ximbiot.com>
50624
50625         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50626         Correct grammar.
50627
50628 2006-07-17  Bruno Haible  <bruno@clisp.org>
50629
50630         * modules/list: New file.
50631         * modules/array-list: New file.
50632         * modules/carray-list, modules/carray-list-tests: New files.
50633         * modules/linked-list, modules/linked-list-tests: New files.
50634         * modules/avltree-list, modules/avltree-list-tests: New files.
50635         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50636         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50637         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50638         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50639         * modules/oset: New file.
50640         * modules/array-oset: New file.
50641         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50642         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50643         * tests/test-carray_list.c: New file.
50644         * tests/test-linked_list.c: New file.
50645         * tests/test-avltree_list.c: New file.
50646         * tests/test-rbtree_list.c: New file.
50647         * tests/test-linkedhash_list.c: New file.
50648         * tests/test-avltreehash_list.c: New file.
50649         * tests/test-rbtreehash_list.c: New file.
50650         * tests/test-avltree_oset.c: New file.
50651         * tests/test-rbtree_oset.c: New file.
50652         * MODULES.html.sh (Container data structures): New section.
50653
50654 2006-07-17  Bruno Haible  <bruno@clisp.org>
50655
50656         * m4/gl_list.m4: New file.
50657
50658 2006-07-17  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/gl_list.h: New file.
50661         * lib/gl_list.c: New file.
50662         * lib/gl_array_list.h: New file.
50663         * lib/gl_array_list.c: New file.
50664         * lib/gl_carray_list.h: New file.
50665         * lib/gl_carray_list.c: New file.
50666         * lib/gl_linked_list.h: New file.
50667         * lib/gl_linked_list.c: New file.
50668         * lib/gl_anylinked_list1.h: New file.
50669         * lib/gl_anylinked_list2.h: New file.
50670         * lib/gl_avltree_list.h: New file.
50671         * lib/gl_avltree_list.c: New file.
50672         * lib/gl_anyavltree_list1.h: New file.
50673         * lib/gl_anyavltree_list2.h: New file.
50674         * lib/gl_rbtree_list.h: New file.
50675         * lib/gl_rbtree_list.c: New file.
50676         * lib/gl_anyrbtree_list1.h: New file.
50677         * lib/gl_anyrbtree_list2.h: New file.
50678         * lib/gl_anytree_list1.h: New file.
50679         * lib/gl_anytree_list2.h: New file.
50680         * lib/gl_linkedhash_list.h: New file.
50681         * lib/gl_linkedhash_list.c: New file.
50682         * lib/gl_anyhash_list1.h: New file.
50683         * lib/gl_anyhash_list2.h: New file.
50684         * lib/gl_avltreehash_list.h: New file.
50685         * lib/gl_avltreehash_list.c: New file.
50686         * lib/gl_rbtreehash_list.h: New file.
50687         * lib/gl_rbtreehash_list.c: New file.
50688         * lib/gl_anytreehash_list1.h: New file.
50689         * lib/gl_anytreehash_list2.h: New file.
50690
50691         * lib/gl_oset.h: New file.
50692         * lib/gl_oset.c: New file.
50693         * lib/gl_array_oset.h: New file.
50694         * lib/gl_array_oset.c: New file.
50695         * lib/gl_avltree_oset.h: New file.
50696         * lib/gl_avltree_oset.c: New file.
50697         * lib/gl_rbtree_oset.h: New file.
50698         * lib/gl_rbtree_oset.c: New file.
50699         * lib/gl_anytree_oset.h: New file.
50700
50701 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50702
50703         * m4/mkancesdirs.m4: New file.
50704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50705         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50706         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50707         it.
50708
50709 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50710
50711         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50712         * lib/mkancesdirs.h: New files.
50713         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50714         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50715         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50716         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50717         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50718         callers changed.  Revamp internals significantly, by not
50719         attempting to create directories that are temporarily more
50720         permissive than the final results.  Do not attempt to use
50721         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50722         This removes some race conditions, fixes some bugs, and simplifies
50723         things.  Use new dirchownmod function to do owner and mode changes.
50724         * lib/mkdir-p.h: Likewise.
50725         * lib/modechange.c (octal_to_mode): New function.
50726         (struct mode_change): New member mentioned.
50727         (make_node_op_equals): New arg mentioned.  All callers changed.
50728         (mode_compile): Keep track of which mode bits the user has explicitly
50729         mentioned.
50730         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50731         New arg PMODE_BITS, to keep track of which mode bits the user
50732         mentioned; it treats S_ISUID and S_ISGID speciall.
50733         All callers changed.
50734         * lib/modechange.h: Likewise.
50735
50736 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * MODULES.html.sh: Add mkancestors.
50739         * modules/mkancesdirs: New module.
50740         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50741         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50742         The chdir-safer and afs files are now orphans; I'll remove them
50743         unless someone speaks up.
50744         Add lib/dirchownmod.c, lib/dirchownmod.h.
50745         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50746         Add lchown, mkancesdirs.
50747         (Maintainer): Add self.
50748
50749 2006-07-15  Karl Berry  <karl@gnu.org>
50750
50751         * gnulib-tool: help message wording/arrangement.
50752
50753 2006-07-14  Simon Josefsson  <jas@extundo.com>
50754
50755         * doc/gnulib.texi (Libtool and Windows): New section.
50756
50757 2006-07-12  Simon Josefsson  <jas@extundo.com>
50758
50759         * modules/gendocs (License): Fix license, approved by Karl.
50760
50761 2006-07-12  Eric Blake  <ebb9@byu.net>
50762
50763         * MODULES.html.sh: Add gendocs.
50764
50765 2006-07-11  Eric Blake  <ebb9@byu.net>
50766
50767         * modules/fdl: New module, to install doc/fdl.texi.
50768         * MODULES.html.sh: Add new section for documentation modules.
50769         * gnulib-tool: Avoid space-tab.
50770         (--doc-base): New option, to manage files from doc.
50771
50772 2006-07-11  Eric Blake  <ebb9@byu.net>
50773
50774         * m4/absolute-header.m4: Fix comments to match recent change.
50775
50776 2006-07-11  Eric Blake  <ebb9@byu.net>
50777
50778         * gnulib-tool: List --doc-base before --tests-base.
50779
50780 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50781
50782         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50783
50784 2006-07-11  Bruno Haible  <bruno@clisp.org>
50785
50786         * README: Mention where to put documentation.
50787
50788 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50789
50790         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50791
50792 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50793
50794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50795         to stdint.m4.
50796
50797 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50800         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50801         "no/such/file/stdint.h" when there is no such file, so that
50802         the resulting C code can be parsed by dodgy compilers.
50803         Problems reported by Bob Proulx.
50804
50805 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50806
50807         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50808         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50809         macros into the GNU _D_EXACT_NAMLEN.
50810         * lib/savedir.c:  Likewise.
50811         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50812
50813 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50814         and Paul Eggert  <eggert@cs.ucla.edu>
50815
50816         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50817         * m4/savedir.m4:
50818         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50819         macros into the GNU _D_EXACT_NAMLEN.
50820
50821 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50822
50823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50824         around the absolute name, to work around a problem with the HP-UX
50825         11.23 native C compiler, reported by Bob Proulx.
50826
50827 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50828
50829         * doc/maintain.texi, make-stds.texi: Sync from
50830         <http://savannah.gnu.org/projects/gnustandards>.
50831
50832 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50833
50834         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50835
50836 2006-07-09  Jim Meyering  <jim@meyering.net>
50837
50838         * m4/glob.m4: Remove a doubled word in a comment.
50839
50840 2006-07-09  Jim Meyering  <jim@meyering.net>
50841
50842         * lib/argp-pv.c: Remove a doubled word in a comment.
50843         * lib/check-version.c (check_version): Likewise.
50844         * lib/javacomp.c (compile_java_class): Likewise.
50845
50846 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50847
50848         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
50849         for the benefit of people using Autoconf 2.60.  If you want to
50850         support older Autoconf versions you can copy m4/onceonly_2_57.m4
50851         (or m4/onceonly.m4, if pre-2.57) manually.
50852
50853 2006-07-08  Jim Meyering  <jim@meyering.net>
50854
50855         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
50856         comment.
50857         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
50858         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
50859         comment.
50860
50861 2006-07-08  Jim Meyering  <jim@meyering.net>
50862
50863         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
50864
50865 2006-07-07  Simon Josefsson  <jas@extundo.com>
50866
50867         * tests/test-crc.c: Change expected crc value, the test vector
50868         were probably computed using the old broken crc.c?
50869
50870 2006-07-06  Simon Josefsson  <jas@extundo.com>
50871
50872         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
50873         now the canonical place for the M4 file).
50874
50875         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
50876         from the sys_socket dependency now.
50877
50878         * modules/inet_pton (Files): Ditto.
50879
50880         * modules/inet_ntop (Files): Ditto.
50881
50882 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50883
50884         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
50885         not gl_PREREQ_GETUSERSHELL.
50886
50887 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50888
50889         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
50890         with only one argument, for Autoconf 2.60.
50891         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
50892         expand to nothing, so add a shell command to avoid syntax error.
50893         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50894
50895 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50896
50897         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
50898
50899 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50900
50901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
50902         no longer needed.  Check for isblank decl.
50903         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
50904         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
50905         of existence.
50906
50907 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * lib/getloadavg.c: Use __VMS, not VMS.
50910         * lib/getopt.c: Likewise.
50911         * lib/getpagesize.h: Likewise.
50912         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
50913         and probably does not work.
50914
50915 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50916
50917         * lib/.cppi-disable: Add wcwidth.
50918         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
50919         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
50920         (ISGRAPH): Remove.  All uses changed to isgraph.
50921         (FOLD) [!defined _LIBC]: Remove special case.
50922         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
50923         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
50924         HAVE_ISBLANK.
50925         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
50926         case.
50927
50928 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50929
50930         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
50931         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
50932         brackets.  Other minor changes to suppress some compiler
50933         warnings.
50934
50935 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50936         and Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
50939         of invoking obsolescent AC_HEADER_DIRENT macro.
50940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
50941         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
50942         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
50943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50944         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
50945         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50946         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
50947         * m4/readdir.m4: Remove; no longer needed.
50948
50949 2006-07-06  Derek R. Price  <derek@ximbiot.com>
50950         and Paul Eggert  <eggert@cs.ucla.edu>
50951
50952         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
50953         Don't worry about this obsolete case any more.
50954         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
50955         directories.
50956         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
50957         worry about this obsolete case any more.
50958         * lib/fts.c: Likewise.
50959         * lib/getcwd.c: Likewise.
50960         * lib/glob.h: Likewise.
50961         * lib/savedir.c: Likewise.
50962
50963 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
50966         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
50967         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
50968         needed.
50969         All uses removed.
50970         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50971         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50972         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
50973         needed.
50974         * m4/getdate.m4 (gl_GETDATE): Likewise.
50975         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
50976         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
50977         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
50978         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
50979         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
50980         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50981         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
50982         needed.
50983
50984 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * lib/memcasecmp.c: Include <limits.h>.
50987         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
50988         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
50989         Don't assume isdigit succeeds only on '0' through '9'.
50990
50991 2006-07-05  Eric Blake  <ebb9@byu.net>
50992
50993         * modules/getaddrinfo (Depends-on): Add snprintf.
50994
50995 2006-07-05  Eric Blake  <ebb9@byu.net>
50996
50997         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
50998         to avoid 'header present but could not be compiled' on cygwin.
50999
51000 2006-07-05  Eric Blake  <ebb9@byu.net>
51001
51002         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51003         missing from netdb.h.
51004         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51005
51006 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51007
51008         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51009         no longer needed.
51010         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51011         * m4/getdate.m4 (gl_GETDATE): Likewise.
51012         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51013         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51014         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51015         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51016         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51017
51018 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51019
51020         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51021         All uses of is_space replaced by isspace.
51022         * lib/exit.h: Don't talk about STDC_HEADERS.
51023         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51024         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51025         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51026         replaced by isprint etc.
51027         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51028         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51029         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51030         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51031         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51032         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51033
51034 2006-07-05  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51037         the function exists, before testing against AIX.
51038         Reported by Martin Lambers <marlam@marlam.de>.
51039
51040 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51041
51042         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51043         From Mark D. Baushke.
51044
51045 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51048         to the absolute name, not just one, to bypass Sun C 5.8's
51049         "warning: #include of /usr/include/... may be non-portable".
51050
51051 2006-07-04  Eric Blake  <ebb9@byu.net>
51052
51053         * modules/dirname-tests: New test module.
51054         * tests/test-dirname.c: New file, replacing dirname.c
51055         TEST_DIRNAME section that was recently deleted.
51056
51057 2006-07-04  Bruno Haible  <bruno@clisp.org>
51058
51059         Assume ANSI C header files and <ctype.h> functions.
51060         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51061         (mbsnwidth): Use isprint, iscntrl instead.
51062
51063 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         Merge from coreutils.
51066         * MODULES.html.sh: Add xstrtold.
51067         * modules/xstrtold: New file.
51068         * modules/cycle-check (Files): Add lib/same-inode.h.
51069         * modules/dirname (Files): Add m4/double-slash-root.m4.
51070         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51071         * modules/mkdir-p (Files): Add lib/same-inode.h.
51072         * modules/same (Files): Add lib/same-inode.h.
51073
51074 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51075
51076         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51077         This is to keep the terminology clean; POSIX talks about
51078         "absolute pathnames", not "full pathnames", but the GNU
51079         Coding Standards say to use "path" for something else;
51080         so use "absolute" to keep both sides happy.
51081         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51082         Set gl_absolute_header, not gl_full_header_path.
51083         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51084         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51085         All uses changed.
51086
51087         Merge from coreutils.
51088
51089         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51092         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51093         want to require the building of c-strtod.o.
51094         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51095         needs -lm directly.
51096         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51097
51098         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51101         --as-needed option if available.  Problem reported by Albert Chin in
51102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51103         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51104         cc merely issues a bunch of annoying warnings for --as-needed
51105         (this problem was reported by Bob Proulx).  Also, try linking with
51106         -lm to detect a bug in binutils 2.16 (this problem was reported
51107         by Ralf Wildenhues).
51108
51109         2006-06-18  Jim Meyering  <jim@meyering.net>
51110
51111         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51112         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51113         macro.
51114         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51115         also check for glibc-2.4's abort-inducing bug.
51116
51117         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51118         Low-probability clean-up should be to use rmdir to get rid of
51119         the just-created directory, not unlink.
51120
51121         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51122         configure fail, and request a bug report to inform us about it.
51123         Add a comment that, barring reports to the contrary, in 2007 we'll
51124         assume ftruncate is universally available.
51125
51126         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51129
51130         2006-03-12  Jim Meyering  <jim@meyering.net>
51131
51132         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51133         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51134         * m4/same.m4 (gl_SAME): Likewise.
51135         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51136
51137         2006-03-11  Eric Blake  <ebb9@byu.net>
51138
51139         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51140         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51141         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51142         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51143
51144 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51147         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51148         reported by Mark D. Baushke, one in
51149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51150
51151         Merge from coreutils.
51152
51153         * lib/.cppi-disable: Add stdint_.h.
51154         * lib/.cvsignore: Add stdint.h.
51155
51156         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51159         both double and long double versions.
51160         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51161         * lib/xstrtold.c: New file.
51162         * lib/xstrtod.h (xstrtold): New decl.
51163
51164         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         * lib/filemode.c (setst): Remove.
51167         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51168         (arguably) clearer, and the generated code is a bit smaller on my
51169         Debian GNU/Linux stable x86 host.
51170
51171         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51172
51173         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51174         Assume that filemode.h includes sys/types.h and sys/stat.h.
51175         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51176         (ftypelet): Reorder to put common cases first, for efficiency.
51177         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51178         to do 'M'.
51179         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51180         of 10, for compatibility with FreeBSD.  All callers changed.
51181         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51182         types that can't be deduced solely from st_mode.  First arg is now a
51183         const pointer.
51184         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51185         (strmode): Renamed from mode_string.
51186         (filemodestring): New decl.
51187         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51188         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51189         needed.
51190         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51191
51192         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51193
51194         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51195         fsusage.h now does that.  Include fsusage.h first, to test interface.
51196         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51197         at most one method (the old code could have generated decls that
51198         didn't conform to C89, not that this was ever exercised).
51199         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51200
51201         2006-03-19  Jim Meyering  <jim@meyering.net>
51202
51203         Work even in a chroot where d_ino values for entries in "/"
51204         don't match the stat.st_ino values for the same names.
51205         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51206         number, iterate through all entries again, using lstat instead.
51207         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51208         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51209
51210         * lib/getcwd.c (__getcwd): Clarify a comment.
51211         Use memcpy in place of a call to strcpy.
51212
51213         2006-03-12  Jim Meyering  <jim@meyering.net>
51214
51215         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51216         matches that of the current directory (which we're about to chdir ".."
51217         out of), then save the dev-ino of the parent, instead.
51218
51219         * lib/same-inode.h (SAME_INODE): New file/macro.
51220         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51221         Include "same-inode.h", instead.
51222         * lib/same.c: Likewise.
51223         * lib/cycle-check.h: Include "same-inode.h".
51224         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51225         * lib/cycle-check.c (SAME_INODE): Remove definition.
51226         * lib/root-dev-ino.h: Include "same-inode.h".
51227
51228         2006-03-11  Eric Blake  <ebb9@byu.net>
51229
51230         * lib/same.c (same_name): s/base_name/last_component/
51231         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51232         * lib/filenamecat.c (file_name_concat): Likewise.
51233
51234         2006-03-11  Eric Blake  <ebb9@byu.net>,
51235                     Paul Eggert  <eggert@cs.ucla.edu>
51236
51237         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51238         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51239         drive prefix.
51240         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51241         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51242         (last_component): New method.
51243         * lib/dirname.c (dir_len): Determine when drive letters need a
51244         subsequent slash.  Preserve // when it is special.
51245         (dir_name): Don't append dot when drive letter is absolute.
51246         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51247         * lib/basename.c (base_name): New semantics - malloc the result.
51248         Preserve // when it is special.  Preserve relative files that look
51249         like drive letters.
51250         (base_len): Preserve // when it is special.
51251         (last_component): New method, similar to old base_name semantics.
51252         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51253         base_name.  Strip redundant slashes from ///.
51254
51255 2006-07-03  Jim Meyering  <jim@meyering.net>
51256
51257         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51258         macro is used before the first cycle_check call.
51259
51260 2006-07-03  Eric Blake  <ebb9@byu.net>
51261
51262         * modules/dirname (Depends-on): Add xstrndup.
51263
51264 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51267         test cases, so that config.log is a bit easier to follow.
51268
51269 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51270
51271         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51272         both are 64 bits, since this seems to be the tradition, and this
51273         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51274         we ever run into a host that prefers long long to long in this
51275         case, we'll need another configure-time test.  Problem reported by
51276         Jim Meyering.
51277
51278 2006-07-02  Eric Blake  <ebb9@byu.net>
51279
51280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51281
51282 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51283
51284         * modules/inttypes (Depends-on): No longer depends on stdint.
51285         * modules/stdint (Description): Say more about assumptions.
51286         Say that the fast types might differ.  Say macros are used.
51287         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51288         (Makefile.am): Revise list of substituted symbols to match
51289         new stdint.m4.
51290         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51291         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51292         * tests/test-stdint.c (verify_same_types)
51293         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51294         the code conforms to C99/C89.
51295         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51296         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51297
51298 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51299
51300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51301         but fix a bug, by requiring at least 64 bits.
51302         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51303         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51304         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51305         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51306
51307         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51308         changes.  Make 2.59 a prerequisite.  Check and substitute for
51309         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51310         inttypes.h.  Do not use special include files; just use the
51311         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51312         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51313         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51314         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51315         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51316         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51317         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51318         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51319         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51320         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51321         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51322         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51323         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51324         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51325         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51326         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51327         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51328         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51329         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51330         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51331         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51332         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51333         not check for things that C99 does not require, e.g., int8_t.  If
51334         a test isn't needed unless <stdint.h> isn't working, and is
51335         unlikely to be needed for any other reason, then don't do it
51336         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51337         size_t, since we assume C89 freestanding at least.  Do not check
51338         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51339         the right thing even if the types are not defined.  Instead use:
51340         (gl_STDINT_TYPE_PROPERTIES): New macro.
51341         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51342         testing whether <sys/types.h> clashes, as Autoconf does this for
51343         us now.  All uses removed.
51344         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51345         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51346         (gl_CHECK_TYPE_SAME):
51347         Remove; no longer needed.
51348         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51349         exists, since we'll return 0 anyway in that case.
51350         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51351
51352 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51355         possible collision with system files.
51356         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51357         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51358         WCHAR_MIN and WCHAR_MAX in this case.
51359         (<stddef.h>): Do not include; no longer needed.
51360         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51361         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51362         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51363         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51364         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51365         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51366         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51367         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51368         !defined(__c99))]: Include in this case too, since it's harmless
51369         now.
51370         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51371         dangerous to do so.
51372         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51373         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51374         (_STDINT_MIN, _STDINT_MAX): New macros.
51375         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51376         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51377         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51378         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51379         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51380         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51381         macros, not typedefs; this simplifies things quite a bit.
51382         Use long int for all types narrower than int64_t.
51383         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51384         Define in terms of long long int or int64_t or long int,
51385         not int64_t or int32_t.  This saves some compile-time testing.
51386         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51387         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51388         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51389         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51390         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51391         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51392         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51393         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51394         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51395         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51396         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51397         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51398         undef any previous version and define our own version, for
51399         simplicity and consistency with the new macros for types.
51400         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51401         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51402         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51403         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51404         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51405         @WINT_T_SUFFIX@ to keep things simple here.
51406         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51407         Simplify by assuming typical 8/16/32/64 host, since we're
51408         already doing that elsewhere anyway.
51409         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51410         and assume long long int is 64 bits if available.  This
51411         speeds up 'configure'.
51412
51413 2006-07-01  Eric Blake  <ebb9@byu.net>
51414
51415         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51416         Reported by Andreas Buening.
51417
51418 2006-07-01  Eric Blake  <ebb9@byu.net>
51419
51420         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51421
51422 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51423
51424         * lib/getaddrinfo.c: fixed typo
51425
51426 2006-06-29  Jim Meyering  <jim@meyering.net>
51427
51428         * modules/strftime (Maintainer): Add my name, since with the
51429         FPRINTFTIME changes strftime.c has forked from glibc.
51430
51431 2006-06-29  Eric Blake  <ebb9@byu.net>
51432
51433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51434
51435 2006-06-29  Eric Blake  <ebb9@byu.net>
51436
51437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51438
51439 2006-06-29  Eric Blake  <ebb9@byu.net>
51440
51441         * lib/stat_.h: New file.
51442
51443 2006-06-29  Eric Blake  <ebb9@byu.net>
51444
51445         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51446         unused static function.
51447
51448 2006-06-29  Eric Blake  <ebb9@byu.net>
51449
51450         * doc/functions.texi (Function Portability): Document missing lstat
51451         on mingw.
51452
51453 2006-06-29  Eric Blake  <ebb9@byu.net>
51454
51455         * MODULES.html.sh: Add sys_stat.
51456         * modules/sys_stat: New module.
51457         * modules/mkstemp (Depends-on): Add sys_stat.
51458
51459 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51460
51461         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51462
51463 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51464
51465         * m4/c-bs-a.m4: Removed.
51466
51467 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51468
51469         * lib/strftime.c: Assume strftime() exists.
51470
51471 2006-06-29  Derek Price  <derek@ximbiot.com>
51472
51473         * modules/c-bs-a: Removed - \a is C89.
51474         * MODULES.html.sh: Remove c-bs-a.
51475
51476 2006-06-29  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/wcwidth (License): Change to LGPL.
51479
51480 2006-06-28  Simon Josefsson  <jas@extundo.com>
51481
51482         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51483         on _WIN32.
51484
51485         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51486         getnameinfo.
51487
51488 2006-06-28  Simon Josefsson  <jas@extundo.com>
51489
51490         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51491
51492 2006-06-28  Simon Josefsson  <jas@extundo.com>
51493
51494         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51495         functions there.  It will succeed on Windows XP, but on Windows
51496         2000 and (presumably) earlier, it will fail, and use the internal
51497         re-implementation.
51498         (use_win32_p): New function.
51499         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51500         Support AI_NUMERICSERV to disable getservbyname.
51501         (getnameinfo): New function, only supports
51502         NI_NUMERICHOST|NI_NUMERICSERV for now.
51503
51504         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51505         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51506         getnameinfo.
51507
51508 2006-06-28  Eric Blake  <ebb9@byu.net>
51509
51510         * modules/wcwidth: New file.
51511         * modules/mbchar (Depends-on): Add wcwidth.
51512         * modules/mbswidth (Depends-on): Add wcwidth.
51513         * MODULES.html.sh: Add wcwidth.
51514
51515 2006-06-28  Eric Blake  <ebb9@byu.net>
51516
51517         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51519
51520 2006-06-28  Eric Blake  <ebb9@byu.net>
51521
51522         * lib/xvasprintf.h: Fix comments.
51523
51524 2006-06-28  Eric Blake  <ebb9@byu.net>
51525
51526         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51527         * lib/mbswidth.c (wcwidth): Move from here...
51528         * lib/wcwidth.h: ...to this new file.
51529
51530 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51531
51532         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51533
51534         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51535         it's obsolete.
51536         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51537
51538 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51539
51540         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51541         Autoconf 2.60 says this stuff was obsolete.
51542
51543 2006-06-28  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51546
51547 2006-06-28  Bruno Haible  <bruno@clisp.org>
51548
51549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51550         gt_TYPE_WCHAR_T.
51551
51552 2006-06-28  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51555         declaration for wcwidth.
51556         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51557
51558 2006-06-28  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51561         (mkdir): Define using _mkdir.
51562
51563 2006-06-28  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/getaddrinfo.h: Fix POSIX URL.
51566         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51567         _WIN32.
51568         (use_win32_p): Make static.
51569         (getaddrinfo): Reject service name if it is empty or does not consist
51570         solely of decimal digits, or if its value is > 65535.
51571         (getnameinfo): Remove useless casts.
51572
51573 2006-06-27  Simon Josefsson  <jas@extundo.com>
51574
51575         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51576         Eggert and Martin Lambers.
51577
51578 2006-06-27  Simon Josefsson  <jas@extundo.com>
51579
51580         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51581         Eggert and Martin Lambers.
51582
51583 2006-06-27  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51586         result to 0, not to empty.
51587         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51588
51589 2006-06-27  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51592
51593 2006-06-26  Simon Josefsson  <jas@extundo.com>
51594
51595         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51596         present.
51597
51598 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51601         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51603
51604 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51605
51606         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51607
51608 2006-06-26  Bruno Haible  <bruno@clisp.org>
51609
51610         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51611
51612 2006-06-26  Bruno Haible  <bruno@clisp.org>
51613
51614         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51615
51616 2006-06-26  Bruno Haible  <bruno@clisp.org>
51617
51618         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51619         SGI C compiler in pre-C99 mode.
51620         Suggested by Mark D. Baushke and Larry Jones.
51621
51622 2006-06-26  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51625         WCHAR_MAX.
51626         Reported by Mark D. Baushke and Larry Jones.
51627
51628 2006-06-26  Bruno Haible  <bruno@clisp.org>
51629
51630         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51631         in pre-C99 mode.
51632         Suggested by Mark D. Baushke and Larry Jones.
51633
51634 2006-06-23  Simon Josefsson  <jas@extundo.com>
51635             Bruno Haible  <bruno@clisp.org>
51636
51637         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51638         Emit mostlyclean-local rule.
51639         (func_emit_tests_Makefile_am): Likewise.
51640         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51641
51642 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51643
51644         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51645
51646 2006-06-23  Bruno Haible  <bruno@clisp.org>
51647
51648         * tests/test-stdint.c: Update to match ISO C 99 Technical
51649         Corrigendum 1.
51650
51651 2006-06-23  Bruno Haible  <bruno@clisp.org>
51652
51653         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51654
51655 2006-06-23  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/stdint_.h: Treat IRIX like OpenBSD.
51658
51659 2006-06-23  Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51662         ISO C 99 Technical Corrigendum 1.
51663
51664 2006-06-22  Simon Josefsson  <jas@extundo.com>
51665
51666         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51667         MinGW.
51668
51669 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51672         needed.  Some compiler complained about some of them.  Problem reported
51673         by Larry Jones in
51674         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51675
51676 2006-06-21  Simon Josefsson  <jas@extundo.com>
51677
51678         * tests/test-getaddrinfo.c: New file.
51679
51680         * modules/getaddrinfo-tests: New file.
51681
51682         * MODULES.html.sh: Add inet_pton.
51683
51684         * modules/inet_pton: New file.
51685
51686 2006-06-21  Simon Josefsson  <jas@extundo.com>
51687
51688         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51689         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51690         of using the (limited) gnulib implementation on Windows XP.
51691
51692         * m4/inet_pton.m4: New file.
51693
51694 2006-06-21  Simon Josefsson  <jas@extundo.com>
51695
51696         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51697         variable.
51698
51699         * lib/socket_.h: Don't define WINVER.
51700
51701         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51702         slightly modified to work in gnulib.
51703
51704 2006-06-21  Simon Josefsson  <jas@extundo.com>
51705
51706         * doc/gnulib.texi (Windows sockets): Add.
51707
51708 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * lib/read-file.c (fread_file): Start with buffer allocation of
51711         0 bytes rather than 1 byte; this simplifies the code.
51712         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51713         code to free buffer and save/restore errno.
51714         (internal_read_file): Remove unused local.
51715
51716 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51719         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51720         Problem reported by Denis Excoffier in
51721         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51722
51723 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51724
51725         * modules/sys_socket, modules/socklen: Include sys/types since
51726         FreeBSD 4.x's sys/socket.h needs it.
51727
51728 2006-06-19  Simon Josefsson  <jas@extundo.com>
51729
51730         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51731
51732 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51733
51734         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51735
51736 2006-06-19  Bruno Haible  <bruno@clisp.org>
51737
51738         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51739         and FULL_PATH_INTTYPES_H in angle brackets.
51740         Reported by Mark D. Baushke <mdb@gnu.org>.
51741
51742 2006-06-17  Eric Blake  <ebb9@byu.net>
51743
51744         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51745         errno.
51746
51747 2006-06-17  Bruno Haible  <bruno@clisp.org>
51748
51749         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51750         <sys/inttypes.h>.
51751
51752 2006-06-17  Bruno Haible  <bruno@clisp.org>
51753
51754         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51755         whether errno is declared. Assume <errno.h> declares errno.
51756
51757 2006-06-17  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51760
51761 2006-06-17  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51764         problem on Solaris 2.5.1.
51765
51766 2006-06-16  Eric Blake  <ebb9@byu.net>
51767
51768         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51769         * lib/unicodeio.c [!defined errno]: Likewise.
51770         * lib/strtol.c [!defined errno]: Likewise.
51771         * lib/strtod.c [!defined errno]: Likewise.
51772
51773 2006-06-15  Eric Blake  <ebb9@byu.net>
51774
51775         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51776
51777 2006-06-15  Eric Blake  <ebb9@byu.net>
51778
51779         * config/srclist.txt (ssize_t.m4): Lose sync.
51780
51781 2006-06-15  Bruno Haible  <bruno@clisp.org>
51782
51783         * modules/stdint (Files): Include m4/full-header-path.m4,
51784         m4/size_max.m4, m4/wchar_t.m4.
51785         (Makefile.am): Many more substitutions.
51786         * modules/stdint-tests: New file.
51787         * tests/test-stdint.c: New file.
51788
51789 2006-06-15  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51792         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51793         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51794         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51795         gl_CHECK_TYPE_SAME): New macros.
51796
51797 2006-06-15  Bruno Haible  <bruno@clisp.org>
51798
51799         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51800
51801 2006-06-15  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/stdint_.h: Rewritten to be fully auto-configured.
51804         Fixes bug on HP-UX/IA64.
51805
51806 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         * lib/getdate.y (__attribute__): Don't define if already defined.
51809         Problem reported by Larry Jones.
51810         * lib/utimens.c (__attribute__): Likewise.
51811
51812 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51813
51814         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51815         reported by Andreas Schwab.
51816
51817 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51818             Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51821         check for the declaration of strnlen and a run test that exposes the
51822         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51823         rpl_strndup.
51824
51825 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51826             Bruno Haible  <bruno@clisp.org>
51827
51828         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51829
51830 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51831
51832         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51833         compile test, for Tru64 4.0D.
51834
51835 2006-05-28  Karl Berry  <karl@gnu.org>
51836
51837         * config/srclist.txt (printf-args.c): lose sync.
51838
51839 2006-05-26  Martin Lambers  <marlam@marlam.de>
51840
51841         * lib/getpass.c: Updates the test for the native W32 API, and adds
51842         missing includes, thus fixing compilation warnings.
51843
51844 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51845
51846         * lib/exclude.c (exclude_fnmatch): New function.
51847         (excluded_file_name): Call exclude_fnmatch.
51848         * lib/exclude.h (excluded_file_name): New prototype
51849
51850 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
51851
51852         * lib/tempname.c (small_open, large_open): New macros.
51853         (__open, __open64) [!_LIBC]: Remove.
51854         (__gen_tempname): Use small_open and large_open instead of __open
51855         and __open64.  This fixes a portability bug on HP-UX 11.11i
51856         reported by Simon Wing-Tang in
51857         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
51858
51859 2006-05-24  Bruno Haible  <bruno@clisp.org>
51860
51861         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
51862         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
51863         Reported by Thorsten Maerz <torte@netztorte.de> via
51864         Aaron Stone <aaron@serendipity.cx>.
51865
51866 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
51869         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
51870         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
51871         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
51872         not really conditional on the cache.
51873         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
51874
51875 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51876
51877         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
51878         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
51879         (my_usleep): Don't mishandle maximum value.
51880
51881 2006-05-19  Jim Meyering  <jim@meyering.net>
51882
51883         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
51884
51885 2006-05-17  Bruno Haible  <bruno@clisp.org>
51886
51887         Cygwin portability.
51888         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
51889
51890 2006-05-17  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/stdint_.h: Fix recognition of Cygwin.
51893
51894 2006-05-15  Bruno Haible  <bruno@clisp.org>
51895
51896         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
51897         on libtool patch by Ralf Wildenhues.
51898
51899 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51900
51901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
51902         test for C99 conformance; (bool) 0.5 is an integer constant
51903         expression, but (bool) -0.5 is not.  Problem reported by Fedor
51904         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
51905
51906 2006-05-11  Simon Josefsson  <jas@extundo.com>
51907
51908         * m4/xvasprintf.m4: Fix obvious typo.
51909
51910 2006-05-11  Jim Meyering  <jim@meyering.net>
51911
51912         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
51913         James Lemley.
51914
51915 2006-05-10  Simon Josefsson  <jas@extundo.com>
51916
51917         * lib/md4.c: Typo fix, update copyright years.
51918         (K1, K2): Don't use L because it turn computations into 64-bit on
51919         64-bit platforms.
51920
51921 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
51924         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
51925         unwanted sign propagation, e.g., on hosts with 64-bit int.
51926         There still are some problems with reeelly weird theoretical hosts
51927         (e.g., 33-bit int) but it's not worth worrying about now.
51928         * lib/sha1.c (rol): Likewise.
51929         (K1, K2, K3, K4): Remove unnecessary L suffix.
51930
51931 2006-05-10  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/des.c: Cast to avoid warnings.
51934
51935 2006-05-09  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
51938         (Depends-on): Depend also on xsize, stdarg.
51939         (configure.ac): Add gl_XVASPRINTF.
51940
51941 2006-05-09  Bruno Haible  <bruno@clisp.org>
51942
51943         * m4/xvasprintf.m4: New file.
51944
51945 2006-05-09  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
51948         (EOVERFLOW): Define fallback value.
51949         (xstrcat): New function.
51950         (xvasprintf): Recognize the special case of a string concatenation.
51951
51952 2006-05-08  Eric Blake  <ebb9@byu.net>
51953
51954         * gnulib-tool (func_version): Base copyright year on CVS date.
51955         (func_emit_copyright_notice): New function.
51956         (func_emit_lib_Makefile_am): Use it.
51957         (func_emit_tests_Makefile_am): Likewise.
51958         (func_import): Likewise.
51959
51960 2006-05-08  Bruno Haible  <bruno@clisp.org>
51961
51962         * modules/stdarg: New file.
51963         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
51964
51965 2006-05-08  Bruno Haible  <bruno@clisp.org>
51966
51967         * m4/stdarg.m4: New file, from GNU gettext.
51968
51969 2006-05-08  Bruno Haible  <bruno@clisp.org>
51970
51971         * config/srclist.txt (build-aux/config.rpath): different from latest
51972         release.
51973
51974 2006-05-08  Bruno Haible  <bruno@clisp.org>
51975
51976         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
51977
51978 2006-05-05  Jim Meyering  <jim@meyering.net>
51979
51980         * m4/warning.m4: New file, derived from bison's file by the same name.
51981
51982 2006-05-03  Bruno Haible  <bruno@clisp.org>
51983
51984         * lib/stdint_.h: Shorter URL.
51985         * lib/inttypes.h: Likewise.
51986
51987 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
51990
51991 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51992
51993         * lib/verify.h: Document the internals better.  Most of this change
51994         was written by Bruno Haible.
51995
51996 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51997
51998         * doc/verify.texi: New file, partly based on a proposal by
51999         Bruno Haible.
52000
52001 2006-05-02  Bruno Haible  <bruno@clisp.org>
52002
52003         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52004         test from here...
52005         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52006
52007 2006-04-29  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52010         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52011
52012 2006-04-29  Bruno Haible  <bruno@clisp.org>
52013
52014         * gnulib-tool: Make --update option actually work.
52015
52016 2006-04-29  Bruno Haible  <bruno@clisp.org>
52017
52018         * doc/gcd.texi: New file.
52019         * doc/gnulib.texi: Include it.
52020
52021 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52022
52023         * lib/getdate.y (get_date): When adding relative date, start with the
52024         initial time, not with the result of the first mktime call.
52025
52026 2006-04-25  Bruno Haible  <bruno@clisp.org>
52027
52028         * gnulib-tool (func_import): Output the include directives in three
52029         blocks, sorted separately.
52030         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52031
52032 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52033
52034         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52035         to define main with arguments, for C++.  Reported by Eric Blake.
52036         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52037         Prefer 'int main ()' to 'int main (void)', for C++.
52038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52040         for 'main', for C99 and C++.
52041
52042 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52043
52044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52045         Don't assume that exit status -1 is valid.
52046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52047         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52048         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52049         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52050         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52051         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52052         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52053         functions can be used without declaring them, or that you can
52054         exit with status -1.
52055         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52056
52057 2006-04-24  Karl Berry  <karl@gnu.org>
52058
52059         * config/srclist.txt (longdouble.m4): sync lost.
52060
52061 2006-04-24  Eric Blake  <ebb9@byu.net>
52062
52063         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52064
52065 2006-04-24  Bruno Haible  <bruno@clisp.org>
52066
52067         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52068         poll() implementation in AIX.
52069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52070
52071 2006-04-24  Bruno Haible  <bruno@clisp.org>
52072
52073         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52074         assigned exactly once.
52075
52076 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52077             Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52080         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52081         for AM_CPPFLAGS.
52082
52083 2006-04-23  Bruno Haible  <bruno@clisp.org>
52084
52085         * modules/copy-file: Depend on unistd.
52086         * modules/execute: Likewise.
52087         * modules/fatal-signal: Likewise.
52088         * modules/findprog: Likewise.
52089         * modules/mkdtemp : Likewise.
52090         * modules/pipe: Likewise.
52091         * modules/wait-process: Likewise.
52092
52093 2006-04-23  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52096         condition was already detected.
52097         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52098
52099 2006-04-23  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/copy-file.c: Include <unistd.h> unconditionally.
52102         * lib/execute.c: Likewise.
52103         * lib/fatal-signal.c: Likewise.
52104         * lib/findprog.c: Likewise.
52105         * lib/mkdtemp.c: Likewise.
52106         * lib/pipe.h: Likewise.
52107         * lib/pipe.c: Likewise.
52108         * lib/wait-process.h: Likewise.
52109
52110 2006-04-23  Bruno Haible  <bruno@clisp.org>
52111
52112         * gnulib-tool (func_usage): Fix --import description. Document
52113         --update.
52114         (func_import): Create temporary file in a temporary directory, if
52115         --dry-run is specified. Silence errors from 'grep' when there are no
52116         m4 files in $m4dir.
52117         (func_create_testdir): Silence errors from 'grep' when there are no
52118         m4 files in $m4dir.
52119         Reported by Karl Berry <karl@freefriends.org>.
52120
52121 2006-04-20  Bruno Haible  <bruno@clisp.org>
52122
52123         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52124         one argument, so that the code will be portable to Autoconf 2.60.
52125         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52126         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52127         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52128
52129 2006-04-19  Derek Price  <derek@ximbiot.com>
52130             Eric Blake  <ebb9@byu.net>
52131
52132         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52133         rather than "/full/path.h".  Update comment to match.  Shorten &
52134         generalize m4_translit call via AS_TR_CPP.
52135
52136 2006-04-19  Derek Price  <derek@ximbiot.com>
52137             Eric Blake  <ebb9@byu.net>
52138
52139         * lib/inttypes.h: Correct grammar in comment.
52140
52141 2006-04-18  Derek Price  <derek@ximbiot.com>
52142             Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         * modules/inttypes: New file.
52145         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52146
52147 2006-04-18  Derek Price  <derek@ximbiot.com>
52148             Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52151         New files.
52152
52153 2006-04-18  Derek Price  <derek@ximbiot.com>
52154             Paul Eggert  <eggert@cs.ucla.edu>
52155
52156         * lib/inttypes.h: New file.
52157         * lib/strtoimax.c: Assume <inttypes.h>.
52158
52159 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52160
52161         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52162         isn't mounted.  Problem reported by Kir Kolyshkin.
52163
52164 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52165
52166         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52167         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52168         Derek R. Price.
52169         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52170         implementation.
52171
52172 2006-04-12  Eric Blake  <ebb9@byu.net>
52173
52174         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52175         is now done automatically by the corresponding Autoconf macro.
52176
52177 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52178
52179         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52180         time_r.h.
52181
52182 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52183
52184         Merge regex changes from libc, removing some of our
52185         POSIX-conformance changes that were rejected and redoing them in a
52186         less-intrusive way.
52187
52188         * lib/regcomp.c (re_compile_internal, init_dfa):
52189         Length arg is now size_t, not Idx.  All uses changed.
52190         (peek_token): Forward decl now says internal_function.
52191         (__re_error_msgid, __re_error_msgid_idx):
52192         Now static rather than extern with attribute_hidden.
52193         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52194         For some reason libc prefers K&R style defns for external functions.
52195         (regerror) [!defined _LIBC]: Likewise.
52196         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52197         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52198         (build_range_exp, build_collating_symbol):
52199         Use K&R-style defn.
52200         (re_compile_fastmap): Use '\0' to memset, not 0.
52201         (utf8_sb_map): Make the calculations more obvious.
52202         (init_dfa, parse_bracket_exp, build_charclass_op):
52203         Call calloc and cast result, as glibc does.
52204         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52205         (build_range_exp, build_collating_symbol):
52206         Now internal functions.
52207
52208         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52209
52210         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52211         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52212         Don't depend on VMS; depend on __VMS instead, for POSIX
52213         namespace cleanness.
52214         (regoff_t): Define to ssize_t, not long int.
52215
52216         Remove the REG_ macros named below.  Instead, make the old names
52217         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52218         __USE_GNU_REGEX.
52219         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52220         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52221         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52222         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52223         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52224         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52225         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52226         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52227         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52228         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52229         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52230         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52231         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52232         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52233         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52234         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52235         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52236         (REG_NREGS):
52237         Remove.  All uses replaced by the old RE_* names.
52238         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52239         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52240         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52241         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52242         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52243         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52244         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52245         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52246         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52247         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52248         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52249         Don't bother having these macros be independent of each others'
52250         values, since they no longer exist in the POSIX name space.
52251
52252         Rename the following member names back to their old names,
52253         unless !__USE_GNU_REGEX.  All uses changed back.
52254         (buffer): Renamed from re_buffer.
52255         (allocated): Renamed from re_allocated.
52256         (used): Renamed from re_used.
52257         (syntax): Renamed from re_syntax.
52258         (fastmap): Renamed from re_fastmap.
52259         (translate): Renamed from re_translate.
52260         (can_be_null): Renamed from re_can_be_null.
52261         (regs_allocated): Renamed from re_regs_allocated.
52262         (fastmap_accurate): Renamed from re_fastmap_accurate.
52263         (no_sub): Renamed from re_no_sub.
52264         (not_bol): Renamed from re_not_bol.
52265         (not_eol): Renamed from re_not_eol.
52266         (newline_anchor): Renamed from re_newline_anchor.
52267         (num_regs): Renamed from rm_num_regs.
52268         (start): Renamed from rm_start.
52269         (end): Renamed from rm_end.
52270
52271         (free_state): Move up a bit.
52272
52273         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52274         #define to be empty.
52275         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52276         when that is what is intended.
52277         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52278         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52279         (MAX): New macro.
52280         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52281         All uses changed back to re_malloc, etc.  It's now the caller's
52282         responsibility to check for overflow; all callers changed.
52283         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52284         (re_x2nrealloc): Remove.
52285         (free_state): Remove decl.
52286
52287         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52288         (re_set_registers, re_exec):
52289         Use K&R-style defn.
52290
52291         2006-01-31  Roland McGrath  <roland@redhat.com>
52292
52293         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52294         Reported by Mike Frysinger <vapier@gentoo.org>.
52295
52296         2006-01-15  Andreas Jaeger  <aj@suse.de>
52297
52298         [BZ #1950]
52299         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52300         build_wcs_upper_buffer change.
52301         (build_wcs_upper_buffer): Change return type.
52302
52303         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52304
52305         * lib/regex_internal.h: Include <stdint.h> if available.
52306
52307         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52308
52309         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52310
52311         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52312
52313         * lib/regcomp.c: Adjust for changed secondary hash function.
52314
52315         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52316
52317         * lib/regex.h: Pretty printing.
52318         Clean up namespace a bit.
52319
52320         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52321
52322         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52323         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52324
52325         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52326                     Ulrich Drepper  <drepper@redhat.com>
52327
52328         [BZ #1302]
52329         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52330         changed.
52331         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52332
52333         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52334
52335         [BZ #281]
52336         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52337         * lib/regcomp.c: Remove unnecessary uses of
52338         unsigned RE_TRANSLATE_TYPE.
52339         * lib/regex_internal.h: Likewise.
52340         * lib/regex_internal.c: Likewise.
52341         * lib/regexec.c: Likewise.
52342         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52343
52344         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52345
52346         * lib/regexec.c (find_recover_state): Remove unnecessary
52347         initialization.
52348         (transit_state_bkref): Make DFA a const pointer.
52349         (get_subexp): Likewise.
52350         (check_arrival): Likewise.
52351         (update_cur_sifted_state): Likewise.
52352         (re_search_internal): Likewise.
52353         (prune_impossible_nodes): Likewise.
52354         (acquire_init_state_context): Likewise.
52355         (proceed_next_node): Likewise.
52356         (set_regs): Likewise.
52357         (free_fail_stack_return): Likewise.
52358         (check_arrival_expand_ecl): Mark DFA parameter as const.
52359         (check_arrival_expand_ecl_sub): Likewise.
52360         (check_subexp_limits): Likewise.
52361         (sub_epsilon_src_nodes):  Likewise.
52362         (add_epsilon_src_nodes):  Likewise.
52363         (merge_state_array): Likewise.
52364         (update_regs): Likewise.
52365         (build_trtable): Likewise.
52366         (sift_states_backward): Mark MCTX parameter as const.
52367         (build_sifted_states): Likewise.
52368         (update_cur_sifted_state): Likewise.
52369         (sift_states_mkref): Likewise.
52370         (check_arrival_expand_ecl): Mark eclosure as const.
52371         (check_dst_limits_calc_pos_1): Likewise.
52372         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52373         pointer.
52374
52375         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52376
52377         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52378         (transit_state_sb): Likewise.
52379         (transit_state_mb): Likewise.
52380         (sift_states_iter_mb): Likewise.
52381         (check_arrival_add_next_nodes): Likewise.
52382         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52383         [_LIBC] (re_search_2_stub): Use mempcpy.
52384
52385         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52386         mbrtowc for very simple UTF-8 case.
52387
52388         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52389         a pointer-to-const.
52390         (re_acquire_state_context): Likewise.
52391         * lib/regex_internal.h: Adjust prototypes.
52392
52393         * lib/regex.c: Prevent using C++ compilers.
52394
52395         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52396         (re_acquire_state_context): Likewise.
52397
52398 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52399
52400         * modules/regex (Depends-on): Add ssize_t.
52401
52402 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52405         translation table.
52406
52407 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52410
52411 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52412             Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52415         <sys/types.h> and <inttypes.h>.
52416
52417 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52418
52419         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52420         `__error_t_defined', so argp.h will not typedef the former.
52421
52422 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52423
52424         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52425         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52426         glibc names.  Even if glibc is changed to conform to POSIX, the
52427         traditional names will be available anyway, since regex depends on
52428         the extensions module.  Also, fix a longstanding typo in the
52429         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52430         reported by Emanuele Giaquinta.  Also, change sense of cached
52431         variable, so that the message makes sense.
52432
52433 2006-03-24  Simon Josefsson  <jas@extundo.com>
52434
52435         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52436         including some doc fixes.
52437         (base64_encode_alloc): Fix +1 bug on allocation failures.
52438
52439 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52440
52441         * lib/base64.c (base64_encode): Do not read past end of array with
52442         unsanitized input on systems with CHAR_BIT > 8.
52443
52444 2006-03-24  Eric Blake  <ebb9@byu.net>
52445
52446         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52447
52448 2006-03-22  Karl Berry  <karl@gnu.org>
52449
52450         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52451         * config/srclistvars.sh (COREUTILS): new var.
52452
52453 2006-03-17  Jim Meyering  <jim@meyering.net>
52454
52455         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52456         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52457
52458 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52461         no longer needs it.  Instead, check that regoff_t is as least
52462         as wide as ptrdiff_t.
52463
52464         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52465         so that our regex.h stays compatible with the installed regex.
52466         This is helpful for installers who configure --without-included-regex.
52467         Problem reported by Emanuele Giaquinta.
52468
52469 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52470
52471         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52472         Typedef to long int, not to off_, as POSIX will likely change
52473         in that direction.
52474
52475 2006-03-15  Eric Blake  <ebb9@byu.net>
52476
52477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52478
52479 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52480
52481         * lib/argp-help.c (validate_uparams): Fix typo
52482         * lib/argp-parse.c (argp_default_options): Consistently begin help
52483         messages with a lowercase letter.
52484
52485 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52486
52487         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52488         overrun buffers and shouldn't be used (much as gets shouldn't be
52489         used).
52490         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52491
52492 2006-03-08  Simon Josefsson  <jas@extundo.com>
52493
52494         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52495         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52496
52497 2006-03-08  Simon Josefsson  <jas@extundo.com>
52498
52499         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52500         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52501
52502 2006-03-08  Simon Josefsson  <jas@extundo.com>
52503
52504         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52505         signal that configure disabled the device.
52506
52507 2006-03-08  Simon Josefsson  <jas@extundo.com>
52508
52509         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52510         languages.
52511
52512 2006-03-07  Simon Josefsson  <jas@extundo.com>
52513
52514         * modules/getopt (Depends-on): Add unistd.
52515
52516         * modules/unistd: New file.
52517
52518 2006-03-07  Simon Josefsson  <jas@extundo.com>
52519
52520         * modules/gc-random: New file.
52521
52522 2006-03-07  Simon Josefsson  <jas@extundo.com>
52523
52524         * m4/unistd_h.m4: New file.
52525
52526 2006-03-07  Simon Josefsson  <jas@extundo.com>
52527
52528         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52529         test to be side-effect free by storing the result in the cache
52530         variable gl_cv_lib_readline, and moving the assignment of
52531         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52532         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52533
52534 2006-03-07  Simon Josefsson  <jas@extundo.com>
52535
52536         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52537         error on missing devices (the functions will return an error).
52538
52539         * m4/gc.m4: Move random stuff to gc-random.m4
52540
52541 2006-03-07  Simon Josefsson  <jas@extundo.com>
52542
52543         * lib/unistd_.h: New file.
52544
52545 2006-03-07  Simon Josefsson  <jas@extundo.com>
52546
52547         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52548
52549 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52552         Problem reported by Juan Manuel Guerrero.
52553
52554 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52557         the unistd module.
52558         * lib/getlogin_r.c: Likewise.
52559         * lib/getlogin_r.h: Likewise.
52560         * lib/glob.c: Likewise.
52561         * lib/pagealign_alloc.c: Likewise.
52562         * lib/unistd_.h: Remove; no longer needed.
52563
52564 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52567         Add unistd.
52568         * modules/c-stack (Depends-on): Add unistd.
52569         * modules/getlogin_r: Likewise.
52570         * modules/glob: Likewise.
52571         * modules/pagealign_alloc: Likewise.
52572         * modules/unistd (Files): Remove lib/unistd_.h.
52573         (EXTRA_DIST): Remove.
52574         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52575         need unistd_.h.
52576         (MOSTLYCLEANFILES): Remove unistd.h-t.
52577
52578 2006-03-03  Simon Josefsson  <jas@extundo.com>
52579
52580         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52581
52582 2006-03-03  Simon Josefsson  <jas@extundo.com>
52583
52584         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52585         libidn and bison.
52586
52587 2006-03-03  Simon Josefsson  <jas@extundo.com>
52588
52589         * build-aux/maint.mk: Add indent target.
52590
52591 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52592
52593         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52594         our replacement poll.h in any case, to avoid a differing
52595         declaration from a system header.  Seen on AIX.
52596
52597 2006-03-01  Simon Josefsson  <jas@extundo.com>
52598
52599         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52600         <kasal@ucw.cz>.
52601
52602 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52603
52604         * modules/gettime (Depends-on): Add extensions module.
52605         * modules/nanosleep (Depends-on): Likewise.
52606         * modules/settime (Depends-on): Likewise.
52607
52608 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52609
52610         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52611         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52612         pedantically.
52613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52614         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52615
52616         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52617         not "==".  Reported by Ralf Wildenhues.
52618
52619 2006-03-01  Karl Berry  <karl@gnu.org>
52620
52621         * doc/Copyright/request-*: new files, synced from gnuorg.
52622
52623 2006-03-01  Karl Berry  <karl@gnu.org>
52624
52625         * config/srclist.txt (Copyright/*): new entries.
52626
52627 2006-02-28  Simon Josefsson  <jas@extundo.com>
52628
52629         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52630
52631 2006-02-27  Simon Josefsson  <jas@extundo.com>
52632
52633         * lib/base64.h: Indent #define's.  From Jim Meyering
52634         <jim@meyering.net>.
52635
52636 2006-02-27  Jim Meyering  <jim@meyering.net>
52637
52638         Revert the change of 2006-02-24, so these files can continue
52639         to be sync'd from gettext.
52640         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52641         of `config.h'.
52642
52643 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52644
52645         * modules/intprops: New file.
52646         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52647         Add intprops.
52648         * modules/getloadavg (Files): Remove lib/intprops.h.
52649         (Depends-on): Add intprops.
52650         * modules/human: Likewise.
52651         * modules/inttostr: Likewise.
52652         * modules/openat: Likewise.
52653         * modules/sig2str: Likewise.
52654         * modules/userspec: Likewise.
52655         * modules/utimecmp: Likewise.
52656         * modules/xnanosleep: Likewise.
52657         * modules/xstrtol: Likewise.
52658
52659 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52660
52661         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52662         * modules/lock-tests (TESTS): Use $(EXEEXT).
52663         * modules/tls-tests: Likewise.
52664         * modules/argp-tests: Likewise.
52665         (check_PROGRAMS): New var, replacing...
52666         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52667
52668 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52669
52670         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52671         `config.h'.
52672
52673 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52676
52677 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52678
52679         Sync from coreutils.
52680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52681         gl_CHDIR_SAFER.
52682
52683 2006-02-22  Jim Meyering  <jim@meyering.net>
52684
52685         Sync from coreutils.
52686         * m4/chdir-safer.m4: New file.
52687
52688 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52689
52690         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52691         AT_FDCWD exceeds INT_MAX.
52692         * lib/openat.h (AT_FDCWD): Likewise.
52693
52694 2006-02-17  Eric Blake  <address@hidden>
52695
52696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52697
52698 2006-02-16  Simon Josefsson  <jas@extundo.com>
52699
52700         * modules/getaddrinfo (Depends-on): Add sys_socket.
52701
52702 2006-02-15  Simon Josefsson  <jas@extundo.com>
52703
52704         * build-aux/maint.mk: Add dsyntax-check rule.
52705
52706 2006-02-15  Eric Blake  <ebb9@byu.net>
52707
52708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52709         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52710         'present but cannot compile' warnings on cygwin.
52711         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52712         use ws2tcpip.h if sys/socket.h works.
52713         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52714         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52715
52716 2006-02-14  Simon Josefsson  <jas@extundo.com>
52717
52718         * modules/maintainer-makefile (Files): Rename.
52719
52720         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52721         and (the local) Makefile.cfg to maint-cfg.mk.
52722
52723         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52724         to the latter.
52725
52726         * modules/maintainer-makefile: New module.
52727
52728         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52729         severaly stripped to make it possible to build it up from scratch
52730         with reliable tests.
52731
52732         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52733         fixes to permit overriding the default actions when configure and
52734         makefile are not available.
52735
52736 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         Sync from coreutils.
52739         * modules/lstat (Depends-on): Don't depend on xalloc.
52740         (License): Change from GPL to LGPL, since this is now simply a
52741         replacement for a libc function.
52742
52743 2006-02-14  Jim Meyering  <jim@meyering.net>
52744
52745         Sync from coreutils.
52746
52747         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52748         failure on deficient systems, and simplify gnulib lgpl dependencies.
52749         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52750         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52751
52752         * lib/xalloc-die.c: Remove unused definition of N_.
52753
52754 2006-02-14  Jim Meyering  <jim@meyering.net>
52755
52756         Sync from coreutils.
52757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52758         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52759         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52760         double-quote uses of that variable, to accommodate the rare case in
52761         which getmntent is available in none of the libraries checked.  This
52762         happens at least on FreeBSD 5.0.
52763
52764 2006-02-13  Simon Josefsson  <jas@extundo.com>
52765
52766         * gnulib-tool (Usage): Fix --import, from
52767         karl@freefriends.org (Karl Berry).
52768
52769 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52770
52771         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52772
52773 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52774
52775         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52776         "autoupdate" on 2005-12-12.
52777
52778 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52779
52780         * modules/closeout (Depends-on): Remove atexit.
52781
52782 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52785         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52786
52787 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52788
52789         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52790         __EXTENSIONS__ if this causes compilation to fail.  Problem
52791         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52792         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52793
52794 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52797         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52799         All uses changed.
52800
52801 2006-01-26  Simon Josefsson  <jas@extundo.com>
52802
52803         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52804         prototype is visible on mingw32.
52805
52806         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52807         for mingw32.
52808
52809         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52810         mingw32).
52811
52812 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52815         attempt to open for write; this always fails, at least on POSIX
52816         hosts.  This reinstates the 2006-01-09 change, which was
52817         inadvertently removed.
52818
52819 2006-01-26  Bruno Haible  <bruno@clisp.org>
52820
52821         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52822         Reported by Paul Eggert.
52823
52824 2006-01-26  Bruno Haible  <bruno@clisp.org>
52825             Paul Eggert  <eggert@cs.ucla.edu>
52826
52827         * lib/stdbool_.h (_Bool)
52828         [(! (defined __cplusplus || defined __BEOS__)
52829           && !defined __GNUC__
52830           && !(defined __HP_cc || defined __xlc__
52831                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52832                || defined __sgi))]:
52833         #define to signed char in these cases too; this simplifies
52834         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52835         etc., separately) and makes it more conservative.
52836
52837 2006-01-25  Simon Josefsson  <jas@extundo.com>
52838
52839         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52840         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52841         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52842
52843 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52844
52845         * lib/argp-namefrob.h: Bugfix. Remove stray #
52846
52847 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52848
52849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
52850         so that we test the test.
52851         Check for yet another HP-UX cc bug involving *bool |= bool.
52852
52853 2006-01-25  Karl Berry  <karl@gnu.org>
52854
52855         * config/srclist.txt (vasnprintf.c): sync lost.
52856
52857 2006-01-25  Jim Meyering  <jim@meyering.net>
52858
52859         Sync from the stable (b5) branch of coreutils:
52860
52861         * lib/fts.c (fts_children): Don't let close() clobber errno from
52862         failed fchdir().
52863
52864         * lib/fts.c (fts_stat): When following a symlink-to-directory,
52865         don't necessarily interpret stat-fails+lstat-succeeds as indicating
52866         a dangling symlink.  That can also happen at least for ELOOP.
52867         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
52868         FYI, this bug predates the inclusion of fts.c in coreutils.
52869
52870         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
52871         in their own block, so pre-c99 compilers don't object.
52872
52873         Avoid the double-free (first in fts_read, second in fts_close) that
52874         would occur when an `active' directory is made inaccessible (e.g.,
52875         via chmod a-x) during a traversal.
52876         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
52877         before returning.  Reproduce this failure by
52878         mkdir -p a/b; cd a; chmod a-x . b
52879         Reported by Stavros Passas.
52880
52881 2006-01-25  Jim Meyering  <jim@meyering.net>
52882
52883         * lib/fileblocks.c: Remove more useless parentheses.
52884         * lib/readutmp.h: Likewise.
52885
52886 2006-01-25  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
52889         warnings.
52890         Reported by Paul Eggert.
52891
52892 2006-01-25  Bruno Haible  <bruno@clisp.org>
52893
52894         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
52895         rid of a trap command. For Solaris sh.
52896         Reported by Mark D. Baushke <mdb@gnu.org>.
52897
52898 2006-01-24  Simon Josefsson  <jas@extundo.com>
52899
52900         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
52901         Bruno.
52902
52903 2006-01-24  Karl Berry  <karl@gnu.org>
52904
52905         * config/srclist.txt (argp-namefrob.h): sync lost.
52906
52907 2006-01-24  Jim Meyering  <jim@meyering.net>
52908
52909         * modules/openat (Files): Add lib/intprops.h.
52910         From Mark D. Baushke.
52911
52912 2006-01-24  Jim Meyering  <jim@meyering.net>
52913
52914         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
52915         Reported by Mark D. Baushke.
52916
52917 2006-01-24  Jim Meyering  <jim@meyering.net>
52918
52919         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
52920
52921 2006-01-24  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/strnlen (Maintainer): Change from glibc to all.
52924
52925 2006-01-24  Bruno Haible  <bruno@clisp.org>
52926
52927         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
52928         Patch by Paul Eggert.
52929
52930 2006-01-24  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
52933         already has it.
52934         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
52935         2005-11-26.
52936
52937         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
52938         'signed char' to avoid problems with the built-in _Bool type.
52939         Reported by Paul Eggert on 2005-11-26.
52940
52941 2006-01-24  Bruno Haible  <bruno@clisp.org>
52942
52943         * gnulib-tool (func_import): Avoid constructing complicated sed
52944         expressions inside backquote.
52945         Report and solution by Mark D. Baushke <mdb@gnu.org>.
52946
52947 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
52948
52949         These changes imported from libc.
52950         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
52951         test and two separate function calls.
52952         * lib/strndup.c (__strndup): Add libc_hidden_def.
52953
52954 2006-01-23  Simon Josefsson  <jas@extundo.com>
52955
52956         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
52957         Remove the test_*_SOURCES variable: automake infers it by default.
52958         * modules/tls-tests: Likewise.
52959
52960 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52961
52962         Work around porting bugs reported by Dieter in
52963         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
52964         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
52965         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
52966         Include "getopt.h" first, to check interface.
52967         (getenv): Declare only if defined HAVE_DECL_GETENV &&
52968         !HAVE_DECL_GETENV.
52969         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
52970         (__strndup): Revert to K&R-style function dfns, the glibc style.
52971         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
52972         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
52973         Include strnlen.h first, to get prototype properly.
52974         (strnlen): Renamed from __strnlen.
52975         Remove weak alias.
52976
52977 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
52980
52981 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         * config/srclist.txt: Adjust to reflect glibc reorganization.
52984         This affects only comments.
52985
52986 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52987
52988          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
52989          Reported by Bruce Korb <bkorb@gnu.org>.
52990
52991 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52992
52993         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
52994         to pacify gcc -Wswitch-default.
52995
52996 2006-01-22  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
52999         temporary buffer for sprintf, take into account the precision also
53000         for 'd', 'i', 'u', 'o', 'x', 'X'.
53001
53002 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53003
53004         * modules/argp-tests: New module
53005         * tests/test-argp.c: New file
53006         * tests/test-argp-2.sh: New file
53007
53008 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53009
53010         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53011         (__argp_base_name): Removed
53012         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53013         typo.
53014         (__argp_base_name): Provide macro definition or extern declaration
53015         depending on the configuration
53016
53017 2006-01-20  Simon Josefsson  <jas@extundo.com>
53018
53019         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53020
53021 2006-01-20  Simon Josefsson  <jas@extundo.com>
53022
53023         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53024
53025 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53026
53027         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53028         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53029         Suggested by Bruno Haible.
53030
53031 2006-01-20  Karl Berry  <karl@gnu.org>
53032
53033         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53034         until changes propagate, I guess.
53035
53036 2006-01-19  Simon Josefsson  <jas@extundo.com>
53037
53038         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53039
53040 2006-01-19  Simon Josefsson  <jas@extundo.com>
53041
53042         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53043
53044 2006-01-19  Simon Josefsson  <jas@extundo.com>
53045
53046         * gnulib-tool: Set check_PROGRAMS.
53047
53048         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53049         modules/des-tests, modules/gc-arcfour-tests,
53050         modules/gc-arctwo-tests, modules/gc-des-tests,
53051         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53052         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53053         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53054         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53055         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53056         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53057         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53058         test_*_SOURCES.
53059
53060 2006-01-18  Simon Josefsson  <jas@extundo.com>
53061
53062         * modules/socklen (Depends-on): Depend on sys_socket.
53063
53064 2006-01-18  Simon Josefsson  <jas@extundo.com>
53065
53066         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53067         modules/des-tests, modules/gc-arcfour-tests,
53068         modules/gc-arctwo-tests, modules/gc-des-tests,
53069         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53070         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53071         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53072         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53073         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53074         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53075         $(EXEEXT) to automake TESTS variable, for mingw32.
53076
53077 2006-01-17  Simon Josefsson  <jas@extundo.com>
53078
53079         * modules/socklen (Include): Need sys/socket.h.
53080
53081 2006-01-17  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/ssize_t (Include): Add <sys/types.h>.
53084
53085 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53086
53087         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53088         it's not portable and it doesn't work with cross-compiles.
53089         Problem reported by Bruno Haible.  Fix missing-$ typo in
53090         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53091         -zignore from being used with Sun's C compiler.
53092
53093 2006-01-12  Simon Josefsson  <jas@extundo.com>
53094
53095         * lib/base64.c: Fix warning, reported by Bruno Haible
53096         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53097
53098 2006-01-12  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/ldd: New file.
53101         * build-aux/ldd.sh.in: New file.
53102         * MODULES.html.sh (Support for building libraries and executables): Add
53103         ldd.
53104
53105 2006-01-12  Bruno Haible  <bruno@clisp.org>
53106
53107         * m4/ldd.m4: New file.
53108
53109 2006-01-12  Bruno Haible  <bruno@clisp.org>
53110
53111         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53112         endless loop while replacing $auxdir with build-aux.
53113
53114 2006-01-11  Simon Josefsson  <jas@extundo.com>
53115
53116         * lib/stdint_.h (SIZE_MAX): Add missing (.
53117
53118 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         Sync from coreutils.
53121         * lib/md5.c: Fix commentary typos.
53122         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53123         * lib/md5.h (__attribute__): Remove; unused.
53124         * lib/sha1.c: Fix commentary to match md5 better.
53125         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53126         so that we don't need to worry about alignment.  All uses changed.
53127         This merges the 2005-10-28 md5 change into sha1.
53128
53129 2006-01-11  Jim Meyering  <jim@meyering.net>
53130
53131         Sync from coreutils.
53132         * lib/md5.c (OP): Fix spacing.
53133
53134 2006-01-11  Bruno Haible  <bruno@clisp.org>
53135
53136         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53137         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53138         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53139
53140 2006-01-11  Bruno Haible  <bruno@clisp.org>
53141
53142         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53143         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53144         the "early" section as well.
53145
53146 2006-01-11  Bruno Haible  <bruno@clisp.org>
53147
53148         Avoid "ar: no archive members specified" error on MacOS X.
53149         * gnulib-tool (func_modules_add_dummy): New function.
53150         (func_import, func_create_testdir): Invoke it.
53151
53152 2006-01-11  Bruno Haible  <bruno@clisp.org>
53153
53154         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53155         with $auxdir in AC_CONFIG_FILES statements.
53156
53157 2006-01-11  Bruno Haible  <bruno@clisp.org>
53158
53159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53160         Initialize also noinst_HEADERS to empty.
53161
53162 2006-01-11  Bruno Haible  <bruno@clisp.org>
53163
53164         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53165         variables.
53166         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53167         autoreconf.
53168
53169 2006-01-11  Bruno Haible  <bruno@clisp.org>
53170
53171         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53172         overridable by the user.
53173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53174
53175 2006-01-10  Simon Josefsson  <jas@extundo.com>
53176
53177         * modules/sys_socket: New file.
53178
53179 2006-01-10  Simon Josefsson  <jas@extundo.com>
53180
53181         * m4/sys_socket_h.m4: New file.
53182
53183 2006-01-10  Simon Josefsson  <jas@extundo.com>
53184
53185         * lib/socket_.h: New file.
53186
53187 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         * modules/readutmp (Maintainer): Add myself.
53190
53191 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53194         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53195         People who are still concerned with buggy memcmp implementations
53196         can invoke gl_FUNC_MEMCMP themselves.
53197
53198 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         * lib/regex_internal.h (BITSET_WORD_BITS):
53201         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53202         preprocessor mishandles large unsigned values as if they were signed.
53203         Problem reported by Claudio Fontana in
53204         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53205
53206 2006-01-10  Jim Meyering  <jim@meyering.net>
53207
53208         Avoid the double-free (first in fts_read, second in fts_close) that
53209         would occur when an `active' directory is made inaccessible (e.g.,
53210         via chmod a-x) during a traversal.
53211         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53212         before returning.  Reproduce this failure by
53213         mkdir -p a/b; cd a; chmod a-x . b
53214         Reported by Stavros Passas.
53215
53216         Sync from coreutils.
53217         * lib/sha1.c: Tweak grammar in a comment.
53218
53219 2006-01-10  Jim Meyering  <jim@meyering.net>
53220
53221         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53222         Patch by Joerg Sonnenberger.
53223
53224 2006-01-10  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/readutmp: Depend on module free.
53227         * modules/strtok_r: Depend on module restrict.
53228
53229 2006-01-10  Bruno Haible  <bruno@clisp.org>
53230
53231         * modules/gettext (configure.ac): Add an invocation of
53232         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53233
53234 2006-01-10  Bruno Haible  <bruno@clisp.org>
53235
53236         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53237         Reported by Werner Lemberg <wl@gnu.org>.
53238
53239 2006-01-10  Bruno Haible  <bruno@clisp.org>
53240
53241         * lib/localcharset.c: Update from GNU gettext.
53242
53243 2006-01-10  Bruno Haible  <bruno@clisp.org>
53244
53245         * lib/argp.h (__const): Remove macro. Use const instead.
53246         * lib/argp-fmtstream.h (__const): Likewise.
53247         * lib/glob_.h (__const): Remove macro.
53248         * lib/glob-libc.h: Use const instead of __const.
53249
53250 2006-01-10  Bruno Haible  <bruno@clisp.org>
53251
53252         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53253         variable.
53254         Needed to avoid an automake error regarding the 'gettext' module.
53255
53256 2006-01-09  Simon Josefsson  <jas@extundo.com>
53257
53258         * modules/inet_ntop (Depends-on): Add restrict.
53259
53260 2006-01-09  Simon Josefsson  <jas@extundo.com>
53261
53262         * modules/gc-rijndael-tests (License): Put under LGPL.
53263
53264         * modules/gc-des-tests (License): Likewise.
53265
53266         * modules/gc-arcfour-tests (License): Likewise.
53267
53268         * modules/gc-arctwo-tests (License): Likewise.
53269
53270         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53271
53272         * modules/gc-hmac-sha1-tests (Files): Likewise.
53273
53274         * modules/gc-hmac-md5-tests (License): Likewise.
53275
53276         * modules/gc-sha1-tests (License): Likewise.
53277
53278         * modules/gc-md5-tests (License): Likewise.
53279
53280         * modules/gc-md4-tests (License): Likewise.
53281
53282         * modules/gc-md2-tests (License): Likewise.
53283
53284         * modules/gc-tests (License): Likewise.
53285
53286         * modules/des-tests (License): Likewise.
53287
53288         * modules/md4-tests (License): Likewise.
53289
53290         * modules/md2-tests (License): Likewise.
53291
53292 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53293
53294         Sync from coreutils:
53295
53296         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53297         * modules/lib-ignore: New file.
53298         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53299         chdir-safer.m4, lchmod.m4.
53300         * modules/openat: Add mkdirat.c, openat-priv.h.
53301
53302 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         Sync from coreutils.
53305         * m4/lib-ignore.m4: New file.
53306         * m4/lchmod.m4: New file.
53307
53308 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53309
53310         Sync from coreutils.
53311         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53312         for write access: POSIX says that must fail.
53313         * lib/fts.c (diropen): Likewise.
53314         * lib/save-cwd.c (save_cwd): Likewise.
53315         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53316         well, for minor improvements on hosts that lack O_DIRECTORY.
53317         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53318         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53319         Fall back on chown if open failed with EACCES.
53320
53321         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53322         Report an error at compile-time if only a 1-second nominal clock
53323         resolution is found.
53324
53325         * lib/lchmod.h: New file.
53326         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53327         (make_dir_parents): Use lchown rather than chown, and
53328         lchmod rather than chmod.
53329
53330         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53331         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53332         "proc" reported by n0dalus.
53333
53334         * lib/mountlist.c: Include <limits.h>.
53335         (dev_from_mount_options)
53336         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53337         New function.  It no longer assumes "dev=" has the System V meaning
53338         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53339         (read_file_system_list)
53340         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53341         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53342         dev= in that case.
53343
53344         * lib/posixtm.h (PDS_PRE_2000): New macro.
53345         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53346         allow_century.  All usages changed.  Reject dates outside the range
53347         1969-1999 if PDS_PRE_2000 is used.
53348
53349 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         Sync from coreutils.
53352         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53353         (Time of day items): Mention the possibility of leap seconds.
53354         Problem reported by Dr. David Alan Gilbert.
53355
53356 2006-01-09  Jim Meyering  <jim@meyering.net>
53357
53358         Sync from coreutils.
53359
53360         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53361
53362         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53363
53364         * lib/modechange.c (mode_compile): Reject an invalid mode string
53365         that starts with an octal digit.  From Andreas Gruenbacher.
53366
53367         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53368         and dup to open_safer and dup_safer, respectively.
53369         (openat_permissive): Fix typo in comment.
53370
53371         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53372         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53373         (_): Remove; no longer needed.
53374         (openat): Renamed from rpl_openat; no need for rpl_openat
53375         since openat.h renames openat for us.
53376         Replace most of the body with a call to openat_permissive,
53377         to avoid duplicate code.
53378         Port to (probably hypothetical) environments were mode_t is
53379         wider than int.
53380         (openat_permissive): Require mode arg, so that we can check
53381         types better.  Put it just after flags.  Change cwd failure
53382         indicator from pointer-to-bool to pointer-to-errno-value.
53383         All callers changed.
53384         Invoke openat_save_fail and/or openat_restore_fail if
53385         cwd_errno is null, so that openat can call us.
53386         (openat_permissive, fdopendir, fstatat, unlinkat):
53387         Simplify errno handling to avoid some duplicate code,
53388         as it's OK to set errno on success.
53389         * lib/openat.h: Revamp code so that function macros depend on
53390         __OPENAT_PREFIX only, not also on AT_FDCWD.
53391         (openat_ro): Remove.  Caller changed to use openat_permissive.
53392         (openat_permissive): Now a macro, if not a function.
53393         (openat_restore_fail, openat_save_fail): Now always functions,
53394         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53395
53396         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53397         and openat.c.
53398         * lib/mkdirat.c: Include openat-priv.h.
53399         Remove definitions of macros defined therein.
53400         * lib/openat.c: Likewise.
53401
53402         * lib/mkdirat.c (mkdirat): New file and function.
53403         * lib/openat.h (mkdirat): Declare.
53404
53405         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53406
53407         * lib/openat.h (openat_permissive): Declare.
53408         (openat_ro): Define.
53409
53410         * lib/openat.c (EXPECTED_ERRNO): New macro.
53411         (openat_permissive): New function -- used in remove.c rewrite.
53412         (all functions): Set errno just before returning, only if there
53413         was an actual failure.
53414         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53415
53416         Emulate openat-family functions using Linux's procfs, if possible.
53417         Idea and some code based on Ulrich Drepper's glibc changes.
53418
53419         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53420         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53421         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53422         before falling back on save_cwd and restore_cwd.
53423         (fdopendir, fstatat, unlinkat): Likewise.
53424
53425         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53426         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53427
53428         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53429         as second argument to va_arg.  Otherwise, some versions of gcc
53430         warn that `if this code is reached, the program will abort'.
53431
53432 2006-01-09  Jim Meyering  <jim@meyering.net>
53433
53434         Sync from coreutils.
53435         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53436         Require openat-priv.h.
53437
53438 2006-01-09  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/strnlen (Include): Use strnlen.h.
53441
53442 2006-01-09  Bruno Haible  <bruno@clisp.org>
53443
53444         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53445
53446 2006-01-09  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/sysexit_.h (EX_OK): New macro.
53449         Suggested by Martin Lambers <marlam@marlam.de>.
53450
53451 2006-01-09  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53454         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53455
53456 2006-01-09  Bruno Haible  <bruno@clisp.org>
53457
53458         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53459         numbers.
53460
53461 2006-01-09  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53464         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53465         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53466         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53467
53468 2006-01-09  Bruno Haible  <bruno@clisp.org>
53469
53470         * build-aux/javacomp.sh.in: New file, moved from lib/.
53471         * modules/javacomp-script (Files): Update.
53472         (configure.ac): Add AC_CONFIG_FILES invocation.
53473         (EXTRA_DIST): Remove variable.
53474
53475         * build-aux/javaexec.sh.in: New file, moved from lib/.
53476         * modules/javaexec (Files): Update.
53477         (configure.ac): Add AC_CONFIG_FILES invocation.
53478         (EXTRA_DIST): Remove javaexec.sh.in.
53479
53480         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53481         * modules/csharpcomp-script (Files): Update.
53482         (configure.ac): Add AC_CONFIG_FILES invocation.
53483         (EXTRA_DIST): Remove variable.
53484
53485         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53486         * modules/csharpexec (Files): Update.
53487         (configure.ac): Add AC_CONFIG_FILES invocation.
53488         (EXTRA_DIST): Remove csharpexec.sh.in.
53489
53490 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53491
53492         Sync from coreutils.
53493
53494         Add POSIX ACL support
53495         * lib/acl.h (copy_acl, set_acl): Add declarations.
53496         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53497         systems other than Linux.
53498         (chmod_or_fchmod): New function: use fchmod when possible,
53499         and chmod otherwise.
53500         (file_has_acl): Add a POSIX ACL implementation, with a
53501         Linux-specific subcase.
53502         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53503         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53504         acls are unsupported.
53505         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53506         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53507         are unsupported.
53508
53509 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53510
53511         Sync from coreutils.
53512         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53513
53514 2006-01-07  Bruno Haible  <bruno@clisp.org>
53515
53516         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53517         gl_EARLY.
53518
53519 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53522         Problem reported for Mingw by Mark Junker.
53523
53524 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         * README: Gnulib normally doesn't generate a tarball.
53527
53528 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53531         long int, not int, for nanosecond counts, so that people who are
53532         used to POSIX struct timespec won't be surprised.  Reported by Jim
53533         Meyering.
53534
53535 2005-12-28  Bruno Haible  <bruno@clisp.org>
53536
53537         * build-aux/config.rpath: Update from GNU gettext.
53538
53539 2005-12-16  Jim Meyering  <jim@meyering.net>
53540
53541         * modules/fprintftime: New module.
53542         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53543
53544 2005-12-16  Jim Meyering  <jim@meyering.net>
53545
53546         * m4/fprintftime.m4: New file.
53547
53548 2005-12-16  Jim Meyering  <jim@meyering.net>
53549
53550         * lib/fprintftime.c, lib/fprintftime.h: New files.
53551
53552 2005-12-15  Simon Josefsson  <jas@extundo.com>
53553
53554         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53555         new m4/socklen.m4.
53556
53557 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53558
53559         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53560         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53561
53562 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53563
53564         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53565         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53566         struct uparams is valid. Fall back to the default values if it is
53567         not.
53568
53569 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53570
53571         * modules/argp (Files): Add argp-pin.c
53572         (Depends-on): dirname
53573         (lib_SOURCES): Add argp-pin.c
53574
53575 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53576
53577         * m4/argp.m4:  Check if program_invocation_name and
53578         program_invocation_short_name are declared and define appropriate
53579         macros if they are not.
53580
53581 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53582
53583         * lib/argp-help.c (__argp_base_name): New function
53584         (__argp_short_program_name): Rewrite using __argp_base_name
53585         * lib/argp-namefrob.h: Define program_invocation_name and
53586         program_invocation_short_name if requested
53587         (__argp_base_name): Add prototype
53588         * lib/argp-parse.c (argp_def): Use gettext wrappers
53589         (argp_default_parser): Use __argp_base_name
53590         * lib/argp-pin.c: New file. Defines program_invocation_name and
53591         program_invocation_short_name on systems that lack them.
53592
53593 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53596         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53597         porting problem reported by Georg Schwarz in
53598         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53599
53600 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53603         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53604         porting problem reported by Georg Schwarz in
53605         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53606
53607 2005-12-05  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53610         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53611         Reported by Mark Junker <mjscod@gmx.de>.
53612
53613 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53614
53615         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53616         Use implementation from Albert Chin, with some
53617         comments/corrections by Stepan Kasal and myself.
53618
53619 2005-12-02  Bruno Haible  <bruno@clisp.org>
53620
53621         * gnulib-tool (func_import): Accept GPLed build tool modules when
53622         --lgpl is given.
53623         * modules/csharpcomp-script: New file.
53624         * modules/csharpcomp: Depend on it.
53625         * modules/javacomp-script: New file.
53626         * modules/javacomp: Depend on it.
53627         Suggested by Simon Josefsson.
53628
53629 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53632         statement, to work around an HP-UX 10.20 compiler bug reported by
53633         Peter O'Gorman.
53634
53635 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * modules/savedir (Depends-on): Add openat.
53638
53639 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53640
53641         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53642         (uintmax_t) [defined uintmax_t]: Do not declare.
53643         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53644         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53645         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53646         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53647         sake of portability to weird hosts that C allows (though we don't
53648         know of any practical examples).
53649
53650         * lib/savedir.h (fdsavedir): New decl.
53651         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53652         contains most of the former guts of savedir.
53653         (savedir): Use savedirstream.
53654         Include "openat.h".
53655
53656 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53657
53658         * modules/obstack (Files): Add m4/ulonglong.m4.
53659         Problem reported by Davide Angelocola.
53660
53661 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53664         coreutils no longer futzes with rounding modes.
53665
53666 2005-11-14  Jim Meyering  <jim@meyering.net>
53667
53668         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53669         replacement of mkstemp.
53670
53671 2005-11-10  Simon Josefsson  <jas@extundo.com>
53672
53673         * lib/readline.c: Remove EOL.
53674
53675 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * modules/gethrxtime (Depends-on): Add gettime.
53678
53679 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53682         or gettimeofday; no longer needed.
53683
53684 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53687         time business.
53688         (gethrxtime) [! (HAVE_NANOUPTIME
53689         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53690         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53691         our own approximation.
53692
53693 2005-11-08  Eric Blake  <ebb9@byu.net>
53694
53695         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53696
53697 2005-11-08  Eric Blake  <ebb9@byu.net>
53698
53699         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53700
53701 2005-11-04  Bruno Haible  <bruno@clisp.org>
53702
53703         * gnulib-tool: Implement --update mode.
53704
53705 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53706
53707         Fix porting problem reported by Theodoros V. Kalamatianos.
53708         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53709         Don't assume that futimes failing means we must fail.
53710
53711 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53714         variables to suggest the intended function of the PATH_MAX check.
53715
53716 2005-10-30  Kean Johnston  <jkj@sco.com>
53717
53718         Trivial changes to support SCO systems.
53719         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53720         as PATH_MAX.
53721         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53722         where __ptr is null when no I/O is pending.
53723
53724 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53727         leave errno alone.  Problem reported by Dmitry V. Levin.
53728
53729 2005-10-28  Simon Josefsson  <jas@extundo.com>
53730
53731         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53732         Test more.
53733
53734         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53735
53736         * modules/md2, modules/md2-tests: New files.
53737
53738 2005-10-28  Simon Josefsson  <jas@extundo.com>
53739
53740         * m4/inet_ntop.m4: More tests.
53741
53742         * m4/gc-md2.m4, md2.m4: New file.
53743
53744 2005-10-28  Simon Josefsson  <jas@extundo.com>
53745
53746         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53747         "restrict" keywords, as per POSIX.  Protect the function
53748         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53749         Don't use K&R prototypes.  Check the sprintf return values.
53750         Re-define EAFNOSUPPORT if not present.  Indent.
53751
53752         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53753         suggested by Bruno Haible <bruno@clisp.org>.
53754
53755         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53756
53757         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53758
53759         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53760         libgcrypt).
53761
53762         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53763
53764         * lib/md2.h, lib/md2.c: New files.
53765
53766 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53769         errno alone.  Problem reported by Frederic Jolliton.
53770
53771 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * modules/verify (License): Change from GPL to LGPL.  This is a
53774         tiny module and there are apparently near-equivalents that are
53775         under the BSD license.
53776
53777 2005-10-24  Simon Josefsson  <jas@extundo.com>
53778
53779         * modules/sha1: Relicense to LGPL.
53780
53781 2005-10-24  Simon Josefsson  <jas@extundo.com>
53782
53783         * lib/md4.h: Shrink buffer size, now that we changed the type.
53784
53785 2005-10-23  Simon Josefsson  <jas@extundo.com>
53786
53787         * gnulib-tool (func_import): Fix --tests-base.
53788
53789 2005-10-22  Simon Josefsson  <jas@extundo.com>
53790
53791         * modules/arcfour (Depends-on): Need stdint.
53792
53793 2005-10-22  Simon Josefsson  <jas@extundo.com>
53794
53795         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53796         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53797
53798 2005-10-22  Simon Josefsson  <jas@extundo.com>
53799
53800         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53801         suggested by Bruno Haible <bruno@clisp.org>.
53802
53803 2005-10-22  Simon Josefsson  <jas@extundo.com>
53804
53805         * lib/crc.h: Include stddef.h, for size_t.
53806
53807 2005-10-22  Simon Josefsson  <jas@extundo.com>
53808
53809         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53810         arcfour_context struct (simplify test vector testing in GNU
53811         Shishi).
53812
53813 2005-10-21  Simon Josefsson  <jas@extundo.com>
53814
53815         * modules/des, modules/des-tests: New files.
53816
53817         * modules/gc-des, modules/gc-des-tests: New files.
53818
53819         * tests/test-des.c, tests/test-gc-des.c: New file.
53820
53821 2005-10-21  Simon Josefsson  <jas@extundo.com>
53822
53823         * modules/arctwo, modules/arctwo-tests: New files.
53824
53825         * tests/test-arctwo.c: New file.
53826
53827         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53828
53829         * tests/test-gc-arctwo.c: New file.
53830
53831 2005-10-21  Simon Josefsson  <jas@extundo.com>
53832
53833         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53834         Bruno Haible <bruno@clisp.org>.
53835
53836         * m4/gc-des.m4: New file.
53837
53838 2005-10-21  Simon Josefsson  <jas@extundo.com>
53839
53840         * m4/arctwo.m4: New file.
53841
53842         * m4/gc-arctwo.m4: New file.
53843
53844 2005-10-21  Simon Josefsson  <jas@extundo.com>
53845
53846         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
53847         block.
53848
53849 2005-10-21  Simon Josefsson  <jas@extundo.com>
53850
53851         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
53852         <bruno@clisp.org>.
53853
53854         * lib/hmac-sha1.c (hmac_sha1): Likewise.
53855
53856         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
53857         Bruno Haible <bruno@clisp.org>.
53858
53859         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
53860         <bruno@clisp.org>.
53861
53862 2005-10-21  Simon Josefsson  <jas@extundo.com>
53863
53864         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
53865
53866 2005-10-21  Simon Josefsson  <jas@extundo.com>
53867
53868         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
53869
53870 2005-10-21  Simon Josefsson  <jas@extundo.com>
53871
53872         * lib/des.h, lib/des.c: New files.
53873
53874         * lib/gc-gnulib.c: Support DES.c
53875
53876 2005-10-21  Simon Josefsson  <jas@extundo.com>
53877
53878         * lib/arctwo.h, lib/arctwo.c: New files.
53879
53880         * lib/gc-gnulib.c: Support ARCTWO.
53881
53882 2005-10-21  Simon Josefsson  <jas@extundo.com>
53883
53884         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
53885         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53886
53887 2005-10-21  Simon Josefsson  <jas@extundo.com>
53888
53889         * gnulib-tool (func_import, func_create_testdir): Define automake
53890         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
53891         Makefile.am snippet),
53892         suggested by Bruno Haible <bruno@clisp.org>.
53893
53894         * modules/gc (Makefile.am): Use it.
53895
53896 2005-10-21  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
53899         patch.
53900
53901 2005-10-19  Simon Josefsson  <jas@extundo.com>
53902
53903         * tests/test-gc-rijndael.c: New file.
53904
53905         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
53906
53907 2005-10-19  Simon Josefsson  <jas@extundo.com>
53908
53909         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
53910         interface too.
53911
53912 2005-10-19  Simon Josefsson  <jas@extundo.com>
53913
53914         * tests/test-gc-arcfour.c: New file.
53915
53916         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
53917
53918 2005-10-19  Simon Josefsson  <jas@extundo.com>
53919
53920         * modules/gc-md4, modules/gc-md4-tests: New file.
53921
53922         * tests/test-gc-md4.c: New file.
53923
53924 2005-10-19  Simon Josefsson  <jas@extundo.com>
53925
53926         * m4/gc-md4.m4: New file.
53927
53928 2005-10-19  Simon Josefsson  <jas@extundo.com>
53929
53930         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
53931         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
53932         <kasal@ucw.cz>.
53933
53934 2005-10-19  Simon Josefsson  <jas@extundo.com>
53935
53936         * m4/gc-arcfour.m4: New file.
53937
53938         * m4/gc-rijndael.m4: New file.
53939
53940 2005-10-19  Simon Josefsson  <jas@extundo.com>
53941
53942         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
53943
53944 2005-10-19  Simon Josefsson  <jas@extundo.com>
53945
53946         * lib/gc-gnulib.c: Support ARCFOUR.
53947
53948 2005-10-19  Simon Josefsson  <jas@extundo.com>
53949
53950         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
53951         support.
53952
53953         * lib/gc.h: Add ECB enum type.
53954
53955         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
53956
53957 2005-10-18  Simon Josefsson  <jas@extundo.com>
53958
53959         * tests/test-md5.c: New file.
53960
53961         * modules/md5-tests: New file.
53962
53963 2005-10-18  Simon Josefsson  <jas@extundo.com>
53964
53965         * tests/test-md4.c: New file.
53966
53967         * modules/md4, modules/md4-tests: New files.
53968
53969 2005-10-18  Simon Josefsson  <jas@extundo.com>
53970
53971         * m4/md4.m4: New file.
53972
53973 2005-10-18  Simon Josefsson  <jas@extundo.com>
53974
53975         * lib/md4.h, lib/md4.c: New files, based on md5.?.
53976
53977 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
53978
53979         * gnulib-tool (func_create_testdir): Omit the second check whether
53980         BUILT_SOURCES in nonempty.
53981
53982 2005-10-17  Simon Josefsson  <jas@extundo.com>
53983
53984         * tests/test-rijndael.c: New file.
53985
53986 2005-10-17  Simon Josefsson  <jas@extundo.com>
53987
53988         * modules/sha1: Depend on stdint instead of md5.
53989
53990         * modules/md5: Depend on stdint, remove uint32_t.
53991
53992 2005-10-17  Simon Josefsson  <jas@extundo.com>
53993
53994         * modules/gc-sha1-tests: New file.
53995
53996         * tests/test-gc-sha1.c: New file.
53997
53998 2005-10-17  Simon Josefsson  <jas@extundo.com>
53999
54000         * m4/md5.m4: Remove call to uint32_t.m4.
54001
54002 2005-10-17  Simon Josefsson  <jas@extundo.com>
54003
54004         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54005
54006         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54007         md5.h.
54008
54009         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54010
54011         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54012
54013 2005-10-17  Simon Josefsson  <jas@extundo.com>
54014
54015         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54016
54017 2005-10-17  Simon Josefsson  <jas@extundo.com>
54018
54019         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54020
54021 2005-10-17  Simon Josefsson  <jas@extundo.com>
54022
54023         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54024
54025         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54026
54027 2005-10-17  Bruno Haible  <bruno@clisp.org>
54028
54029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54030         that it can also be used in a test.
54031
54032 2005-10-16  Bruno Haible  <bruno@clisp.org>
54033
54034         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54035         TESTS_ENVIRONMENT, so that individual tests can augment it.
54036
54037         * gnulib-tool (func_create_testdir): Use an intermediate target for
54038         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54039         macros, like $(ALLOCA_H), which cannot be passed through the command
54040         line.
54041
54042 2005-10-15  Simon Josefsson  <jas@extundo.com>
54043
54044         * modules/rijndael-tests: New file.
54045
54046         * modules/rijndael: New file.
54047
54048 2005-10-15  Simon Josefsson  <jas@extundo.com>
54049
54050         * m4/rijndael.m4: New file.
54051
54052 2005-10-15  Simon Josefsson  <jas@extundo.com>
54053
54054         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54055
54056         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54057
54058 2005-10-14  Simon Josefsson  <jas@extundo.com>
54059
54060         * tests/test-arcfour.c: New file.
54061
54062         * modules/arcfour, modules/arcfour-tests: New files.
54063
54064 2005-10-14  Simon Josefsson  <jas@extundo.com>
54065
54066         * m4/arcfour.m4: New file.
54067
54068 2005-10-14  Simon Josefsson  <jas@extundo.com>
54069
54070         * lib/arcfour.h, lib/arcfour.c: New files.
54071
54072 2005-10-14  Roland McGrath  <roland@redhat.com>
54073
54074         Import from libc.  [BZ #1331]
54075         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54076         macro argument.
54077         Reported by Matej Vela <vela@debian.org>.
54078
54079 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54082         include <wchar.h>; no longer needed.
54083
54084 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54087
54088 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54089         and  Ulrich Drepper  <drepper@redhat.com>
54090
54091         Import from libc.
54092         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54093         instead of inline stream orientation test and two separate
54094         function calls.  Pay no attention to USE_IN_LIBIO.
54095
54096 2005-10-13  Simon Josefsson  <jas@extundo.com>
54097
54098         * modules/gc-hmac-md5-tests: New file.
54099
54100         * tests/test-gc-hmac-sha1.c: New file.
54101
54102         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54103
54104         * modules/gc-hmac-md5-tests: New file.
54105
54106         * tests/test-gc-md5.c: New file.
54107
54108         * modules/gc-md5-tests: New file.
54109
54110 2005-10-13  Simon Josefsson  <jas@extundo.com>
54111
54112         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54113         Move memory allocation outside of loop.
54114
54115 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54118         intermediate directory is in a read-only file system.  Problem
54119         reported by Eric Blake.
54120
54121 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54122
54123         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54124
54125 2005-10-12  Simon Josefsson  <jas@extundo.com>
54126
54127         * tests/test-hmac-sha1.c: New file.
54128
54129         * modules/hmac-sha1-tests: New file.
54130
54131         * modules/hmac-sha1: New file.
54132
54133 2005-10-12  Simon Josefsson  <jas@extundo.com>
54134
54135         * modules/gc-sha1: New file.
54136
54137 2005-10-12  Simon Josefsson  <jas@extundo.com>
54138
54139         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54140
54141         * tests/test-gc-pbkdf2-sha1.c: New file.
54142
54143 2005-10-12  Simon Josefsson  <jas@extundo.com>
54144
54145         * modules/gc-md5, modules/gc-hmac-md5: New files.
54146
54147         * modules/gc (Files): Remove md5, memxor and hmac files.
54148
54149 2005-10-12  Simon Josefsson  <jas@extundo.com>
54150
54151         * m4/gc-pbkdf2-sha1.m4: New file.
54152
54153         * m4/gc-hmac-sha1.m4: New file.
54154
54155         * m4/gc-sha1: New file.
54156
54157         * m4/hmac-sha1.m4: New file.
54158
54159 2005-10-12  Simon Josefsson  <jas@extundo.com>
54160
54161         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54162
54163         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54164
54165 2005-10-12  Simon Josefsson  <jas@extundo.com>
54166
54167         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54168         suggested by Bruno Haible <bruno@clisp.org>.
54169
54170 2005-10-12  Simon Josefsson  <jas@extundo.com>
54171
54172         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54173
54174 2005-10-12  Simon Josefsson  <jas@extundo.com>
54175
54176         * lib/gc-pbkdf2-sha1.c: New file.
54177
54178         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54179
54180 2005-10-12  Simon Josefsson  <jas@extundo.com>
54181
54182         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54183
54184         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54185
54186 2005-10-12  Simon Josefsson  <jas@extundo.com>
54187
54188         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54189         GC_USE_HMAC_MD5, respectively.
54190
54191         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54192         (gc_md5): Fix typo.
54193
54194         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54195
54196         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54197
54198         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54199
54200 2005-10-12  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54203         Reported by Stepan Kasal <kasal@ucw.cz>.
54204
54205 2005-10-11  Simon Josefsson  <jas@extundo.com>
54206
54207         * tests/test-crc.c: New file.
54208
54209         * modules/crc, modules/crc-tests: New files.
54210
54211 2005-10-11  Simon Josefsson  <jas@extundo.com>
54212
54213         * m4/crc.m4: New file.
54214
54215 2005-10-11  Simon Josefsson  <jas@extundo.com>
54216
54217         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54218
54219         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54220
54221         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54222
54223 2005-10-11  Simon Josefsson  <jas@extundo.com>
54224
54225         * lib/crc.h, lib/crc.c: New files.
54226
54227         * lib/gc.h (gc_hash_buffer): Add doc.
54228
54229 2005-10-11  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/c-strcasestr: New file.
54232         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54233
54234 2005-10-11  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/c-strcase: New file.
54237         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54238
54239 2005-10-11  Bruno Haible  <bruno@clisp.org>
54240
54241         * lib/strcasecmp.c: Include limits.h.
54242         (strcasecmp): Avoid integer overflow on exotic platforms.
54243         * lib/strncasecmp.c: Include limits.h.
54244         (strncasecmp): Avoid integer overflow on exotic platforms.
54245         Reported by Paul Eggert.
54246
54247 2005-10-11  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/c-strcasestr.h: New file, from GNU gettext.
54250         * lib/c-strcasestr.c: New file, from GNU gettext.
54251
54252 2005-10-11  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/c-strcase.h: New file, from GNU gettext.
54255         * lib/c-strcasecmp.c: New file, from GNU gettext.
54256         * lib/c-strncasecmp.c: New file, from GNU gettext.
54257
54258 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54259
54260         * modules/mempcpy (License): GPL -> LGPL.
54261         * modules/strchrnul (License): Likewise.
54262         * modules/sysexits (License): Likewise.
54263
54264 2005-10-08  Simon Josefsson  <jas@extundo.com>
54265
54266         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54267
54268 2005-10-07  Simon Josefsson  <jas@extundo.com>
54269
54270         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54271
54272 2005-10-06  Simon Josefsson  <jas@extundo.com>
54273
54274         * tests/test-hmac-md5.c: New file.
54275
54276         * modules/hmac-md5-tests: New file.
54277
54278         * modules/hmac-md5: New file.
54279
54280 2005-10-06  Simon Josefsson  <jas@extundo.com>
54281
54282         * m4/hmac-md5.m4: New file.
54283
54284         * m4/memxor.m4: Require gl_C_RESTRICT.
54285
54286 2005-10-06  Simon Josefsson  <jas@extundo.com>
54287
54288         * lib/memxor.c (memxor): Avoid casts and warnings.
54289
54290 2005-10-06  Simon Josefsson  <jas@extundo.com>
54291
54292         * lib/hmac-md5.c: New file.
54293
54294         * lib/hmac.h: New file.
54295
54296 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54297
54298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54299         promotes to int, not unsigned int, to catch the AIX 5.3
54300         compiler bug.
54301
54302 2005-10-05  Simon Josefsson  <jas@extundo.com>
54303
54304         * modules/memxor: New file.
54305
54306         * modules/iconv (Files): Move config.rpath to havelib, it is used
54307         there.
54308
54309         * modules/havelib (Files): Add config.rpath.
54310
54311 2005-10-05  Simon Josefsson  <jas@extundo.com>
54312
54313         * m4/memxor.m4: New file.
54314
54315 2005-10-05  Simon Josefsson  <jas@extundo.com>
54316
54317         * lib/memxor.c (memxor): Fix compiler error.
54318
54319         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54320         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54321
54322         * lib/memxor.h, lib/memxor.c: New files.
54323
54324         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54325         we assume all systems have it, suggested by Jim Meyering
54326         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54327         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54328         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54329         same reasons.
54330
54331 2005-10-05  Simon Josefsson  <jas@extundo.com>
54332
54333         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54334
54335 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54336
54337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54338         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54339         needed, since the source code now assumes these .h files.
54340
54341 2005-10-05  Derek Price  <derek@ximbiot.com>
54342
54343         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54344
54345 2005-10-05  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/stdint (License): Change to LGPL.
54348
54349 2005-10-04  Simon Josefsson  <jas@extundo.com>
54350
54351         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54352         D. Baushke" <mdb@gnu.org>.
54353
54354 2005-10-04  Bruno Haible  <bruno@clisp.org>
54355
54356         * lib/verify.h (verify_true): Provide alternative definition for C++.
54357
54358 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54359
54360         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54361         (SSIZE_MAX): New macro, if not already defined.
54362         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54363         than 2 GiB.
54364
54365 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54366
54367         Sync from coreutils.
54368         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54369         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54370         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54371         ULLONG_MAX doesn't work with 2.7.2.1.
54372
54373 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54376         From Ben Pfaff.
54377
54378         * modules/exclude (Depends-on): Depend on verify.
54379         * modules/strtoimax (Depends-on): Likewise.
54380         * modules/utimecmp (Depends-on): Likewise.
54381
54382 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         * lib/exclude.c: Include verify.h.
54385         (verify): Remove.  All callers changed to use verify.h's version.
54386         * lib/strtoimax.c: Likewise.
54387         * lib/utimecmp.c: Likewis.e
54388
54389         Sync from coreutils.
54390         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54391         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54392         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54393         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54394         bother returning ENOSYS if settimeofday or stime fails; just let
54395         them return whatever errno they want to return.
54396         * lib/utimens.c: Include unistd.h, for dup2.
54397         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54398         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54399
54400 2005-10-02  Jim Meyering  <jim@meyering.net>
54401
54402         Sync from coreutils.
54403         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54404         from glibc-2.2.5 that fails for read-only files.
54405
54406 2005-10-02  Jim Meyering  <jim@meyering.net>
54407
54408         Sync from coreutils.
54409         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54410         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54411         `#if HAVE_CONFIG_H'.
54412         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54413         Remove AT_FDCWD test.
54414         Do not consume the fd unless successful.
54415         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54416         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54417         block, so that we don't even try to compile it if settimeofday is
54418         available.  This works around a compilation failure on OSF1 V5.1,
54419         due to stime requiring a `long int*' while tv_sec is `int'.
54420
54421 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54422
54423         Sync from coreutils.
54424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54425         against `yes', rather than just testing for nonempty.
54426
54427 2005-10-01  Simon Josefsson  <jas@extundo.com>
54428
54429         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54430         and Darwin.
54431
54432         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54433         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54434         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54435         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54436         Check if struct addrinfo is declared.
54437
54438 2005-10-01  Simon Josefsson  <jas@extundo.com>
54439
54440         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54441         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54442         AI_* and EAI_* definitions.  Protect function declarations.
54443
54444 2005-10-01  Jim Meyering  <jim@meyering.net>
54445
54446         Sync from coreutils.
54447
54448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54449         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54450         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54452         in the inet and nsl libraries.  Required on Solaris 5.7.
54453
54454 2005-10-01  Jim Meyering  <jim@meyering.net>
54455
54456         Sync from coreutils.
54457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54458         in the inet and nsl libraries.  Required on Solaris 5.7.
54459
54460 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54461
54462         * lib/getdelim.c (getdelim): Remove unused variables.
54463
54464 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54467         so that the code works even with ancient cpp.  Portability problem
54468         with GCC 2.7.2.1 reported by Thomas M.Ott.
54469
54470 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * modules/regex (Depends-on): Add strcase.
54473
54474         * modules/gethostname (Licence): Change from GPL to LGPL, since
54475         gethostname.c is a trivial implementation of a standard library
54476         function.
54477         * modules/poll (License): Change from GPL to LGPL, since it's
54478         derived from LGPL code.
54479
54480 2005-09-27  Jim Meyering  <jim@meyering.net>
54481
54482         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54483         HAVE_CONFIG_H.
54484
54485         * lib/intprops.h (signed_type_or_expr__): Define.
54486         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54487         for unsigned types.
54488
54489 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * lib/verify.h (verify_expr): Remove, replacing with:
54492         (verify_true): New macro that returns true instead of void.
54493         (verify_type__): Remove.
54494         (verify): Use verify_true rather than verify_type__.
54495
54496 2005-09-26  Bruno Haible  <bruno@clisp.org>
54497
54498         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54499         is necessary.
54500         (lib_SOURCES): Remove mbchar.c.
54501         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54502         (Files): Add m4/mbrtowc.m4.
54503         * modules/mbiter: Likewise.
54504         * modules/mbuiter: Likewise.
54505
54506 2005-09-26  Bruno Haible  <bruno@clisp.org>
54507
54508         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54509         compile mbchar.c if they are not both present.
54510         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54511         * m4/mbiter.m4 (gl_MBITER): Likewise.
54512         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54513         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54514         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54515
54516 2005-09-25  Jim Meyering  <jim@meyering.net>
54517
54518         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54519         also uses socklen_t.
54520
54521 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54522
54523         * lib/utimens.c (ENOSYS): Define if not already defined.
54524         (futimens): Support having a null PATH if the file descriptor
54525         is nonnegative.
54526
54527         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54528         Remove.
54529         (__attribute): Define to empty unless GCC 3.1 or later.
54530         This works around a core dump on OpenBSD 3.4, which has GCC
54531         2.95.3, which dumps core when given __attribute__(()).  It also
54532         simplifies other tests, since we really don't want to bother with
54533         worrying about which ancient version of GCC supported what.
54534         Original problem reported by Yoann Vandoorselaere, with part of
54535         the fix suggested by Derek Price.
54536
54537 2005-09-24  Jim Meyering  <jim@meyering.net>
54538
54539         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54540         so we can once again use a positive bitfield width of 1 -- now we
54541         don't have to explain why we were using a bitfield width of 2.
54542
54543 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54544
54545         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54546         and similarly for the other external symbols.  Problem reported
54547         by James Gallager.
54548
54549         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54550         bug reported by Jim Meyering.
54551
54552         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54554         not needed, since socklen is a prerequisite module.
54555
54556 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54557
54558         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54559         Problem reported by Eric Blake.
54560         (getaddrinfo): Initialize se so that it's not garbage.
54561         Redo internal storage allocation so that it doesn't make unportable
54562         assumptions about alignment.
54563         Fix a memory leak.
54564
54565         * lib/utimens.c (futimens): Use futimesat if available.
54566         Prefer it to futimes since it doesn't have the futimes bug.
54567
54568         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54569         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54570         Instead, declare a function that returns a pointer to an array,
54571         and use verify_type__ to declare the size of the array.
54572         Problem and germ of a solution reported by Bruno Haible.
54573         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54574         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54575
54576 2005-09-23  Jim Meyering  <jim@meyering.net>
54577
54578         Sync from coreutils.
54579         Correct build failure (socklen_t not defined) on at least
54580         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54582
54583 2005-09-23  Jim Meyering  <jim@meyering.net>
54584
54585         * modules/getaddrinfo (Depends-on): Add socklen.
54586
54587 2005-09-23  Bruno Haible  <bruno@clisp.org>
54588
54589         * tests/test-verify.c: New file.
54590
54591 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         Sync from coreutils.
54594
54595         * modules/argmatch (Depends-on): Add verify.
54596         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54597         unistd-safer.
54598         * modules/save-cwd (Depends-on): Likewise.
54599
54600         * modules/openat (Files): Add lib/openat-die.c.
54601         (Depends-on): Remove error, exitfail.
54602         Add dirname.
54603
54604         * modules/verify: New file.
54605         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54606         with "verify" module.
54607
54608 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54609
54610         Sync from coreutils.
54611
54612         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54613         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54614         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54615         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54616         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54617         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54618         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54619         Don't bother checking for string.h, stdlib.h, unistd.h.
54620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54621         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54622         module's job.
54623         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54624         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54625
54626         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54627         (gl_GETDATE): Use it.
54628
54629         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54630
54631 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         Sync from coreutils.
54634
54635         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54636         stat-time.h.
54637         * lib/argmatch.h: Include verify.h
54638         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54639         (ARGMATCH_ASSERT): Remove; unused.
54640         * lib/canonicalize.c: Assume STDC_HEADERS.
54641         * lib/exclude.c: Include "strcase.h".
54642         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54643         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54644         and stdio-safer.h.
54645         (getusershell): Call fopen, not fopen_safer.
54646         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54647         Do not include unistd-safer.h.
54648         (save_cwd): Don't call fd_safer; no longer needed
54649         now that we include fcntl--.h.
54650
54651         * lib/getdate.y (relative_time): New type.
54652         (RELATIVE_TIME_0): New constant.
54653         (parser_control): Use relative_time instead of doing it ourselves.
54654         (%union): Add new relative_time rel member.
54655         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54656         Now typeless.
54657         (relunit, relunit_snumber): Now of type rel.
54658         (zone, rel, relunit, get_date): Adjust to above changes.
54659
54660         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54661         Do not include unistd-safer.h.
54662         (getloadavg): Don't call fd_safer; no longer needed
54663         now that we include fcntl--.h.
54664
54665         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54666         (make_dir_parents): Treat ENOSYS like EEXIST.
54667
54668         Improve quality of diagnostics on restore_cwd failure.
54669         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54670         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54671         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54672         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54673         each time through the loop.  Do not diagnose restore_cwd failure;
54674         that is the caller's job (and perhaps the caller does not care).
54675
54676         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54677         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54678         If the file already exists but is not a directory, don't bother
54679         to try to make its parents.
54680         Close potential file descriptor leak if we can't chdir("/") (!).
54681         Don't always return true if chdir($PWD) fails; return true only
54682         if the requested action was done successfully (except for the
54683         chdir($PWD)).
54684         Don't log final directory unless we actually made it.
54685         Refactor to avoid duplicate code to fix up permissions.
54686         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54687
54688         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54689         to make it a bit faster and (I hope) clearer.
54690         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54691         Fix bug in formats like %2N.
54692
54693         * lib/verify.h: New file.
54694
54695 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         Sync from coreutils.
54698         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54699
54700 2005-09-22  Jim Meyering  <jim@meyering.net>
54701
54702         Sync from coreutils.
54703
54704         * m4/lstat.m4 (gl_FUNC_LSTAT):
54705         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54706         Remove obsolete comment.
54707         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54708         * m4/xstrtod.m4: Likewise.
54709
54710         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54711
54712 2005-09-22  Jim Meyering  <jim@meyering.net>
54713
54714         Sync from coreutils.
54715
54716         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54717
54718         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54719         the .tm_year member, since otherwise gcc-4.0 would now warn about
54720         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54721
54722         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54723         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54724
54725         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54726         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54727         when run in a time zone for which daylight savings time is in effect
54728         for the starting date.
54729
54730         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54731         stop us from restricting permissions of just-created absolute-named
54732         directories.
54733         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54734         to restore initial working directory.
54735         * lib/mkdir-p.c (make_dir_parents): New parameter:
54736         different_working_dir, to tell caller if/when we change the working
54737         directory and are unable to return to the initial one.
54738         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54739         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54740         `return false'.  This fixes a bug introduced on 2004-07-30.
54741
54742         * lib/openat.c (fdopendir): Be sure to close the supplied
54743         file descriptor before returning.  This makes our replacement
54744         implementation a little closer to Solaris's, where fdopendir
54745         ties the file descriptor to the returned DIR* pointer.
54746         * lib/openat.c (unlinkat): New function.
54747         * lib/openat.h (unlinkat): Add prototype.
54748         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54749         (openat_restore_fail): Rename from openat_restore_die.
54750         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54751
54752         Provide an alternative to exiting immediately upon save_cwd or
54753         restore_cwd failure.  Now, an application can arrange e.g.,
54754         to perform a longjump in that case.
54755         * lib/openat.c: Include dirname.h.
54756         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54757         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54758         and openat_restore_die rather than calling error directly.
54759         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54760
54761         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54762         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54763         define.
54764
54765         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54766         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54767                             int utc, int nanoseconds);
54768         Background:
54769         date should not have to allocate a megabyte of virtual memory to
54770         handle a format argument like +%1048575T.  When implemented with
54771         strftime, it must allocate such a buffer, use strftime to fill it
54772         in, print it, then free it.
54773         With fprintftime, it simply prints everything and exits.
54774         With no need for memory allocation, that's one fewer way to fail.
54775         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54776         optional field width, not before, so we accept %9:z, not %:9z.
54777         (my_strftime): Be sure to use L_('x') for literals.
54778
54779         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54780         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54781         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54782         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54783         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54784         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54785         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54786         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54787         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54788         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54789         * lib/xgethostname.c, lib/xreadlink.c:
54790         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54791
54792         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54793         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54794         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54795         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54796         and don't include <sys/file.h>).
54797
54798 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54799
54800         Sync from coreutils.
54801
54802         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54803         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54804         [!LDAV_DONE]: Avoid unused variable warning.
54805
54806 2005-09-21  Bruno Haible  <bruno@clisp.org>
54807
54808         * lib/unicodeio.h (unicode_to_mb): New declaration.
54809
54810 2005-09-20  Derek Price  <derek@ximbiot.com>
54811
54812         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54813         getaddrinfo.h.
54814
54815 2005-09-20  Bruno Haible  <bruno@clisp.org>
54816
54817         * gnulib-tool: Remove trailing slashes from the values specified for
54818         --source-base, --m4-base, --tests-base, --aux-dir.
54819         Suggested by Simon Josefsson <jas@extundo.com>.
54820
54821 2005-09-20  Bruno Haible  <bruno@clisp.org>
54822
54823         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54824         func_modules_to_filelist, func_import, func_create_testdir): Make all
54825         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54826         change when gnulib-tool is invoked in a different locale.
54827
54828 2005-09-19  Simon Josefsson  <jas@extundo.com>
54829
54830         * m4/socklen.m4: Fix typo.
54831
54832 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54833
54834         Use a consistent style for including <config.h>.
54835         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54836         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54837         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54838         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54839         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54840         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54841         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54842         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54843         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54844         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
54845         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
54846         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
54847         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
54848         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
54849         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
54850         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
54851         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
54852         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
54853         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
54854         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
54855         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
54856         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
54857         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
54858         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
54859         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
54860         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
54861         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
54862         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
54863         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
54864         lib/xstrtoumax.c, lib/yesno.c:
54865         Standardize inclusion of config.h.
54866         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
54867         lib/inttostr.h:  Removed inclusion of config.h from header files.
54868         * lib/inttostr.c:  Adjusted in-tree users.
54869         * lib/timespec.h: Remove superfluous warning to include config.h.
54870         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
54871         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
54872         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
54873         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
54874         config.h with HAVE_CONFIG_H.
54875
54876 2005-09-19  Jim Meyering  <jim@meyering.net>
54877
54878         * modules/pathmax (License): Change to LGPL.
54879
54880 2005-09-19  Derek Price  <derek@ximbiot.com>
54881
54882         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
54883
54884 2005-09-19  Bruno Haible  <bruno@clisp.org>
54885
54886         * gnulib-tool (import): Provide default for --tests-base.
54887
54888 2005-09-19  Bruno Haible  <bruno@clisp.org>
54889
54890         * doc/quote.texi: New file, extracted from gnulib.texi.
54891         * doc/ctime.texi: New file, extracted from gnulib.texi.
54892         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
54893         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
54894         * doc/gnulib.texi: Include them.
54895
54896 2005-09-18  Bruno Haible  <bruno@clisp.org>
54897
54898         Portability fix.
54899         * gnulib-tool (func_readlink): New function.
54900         (func_ln_if_changed): Use it.
54901
54902 2005-09-18  Bruno Haible  <bruno@clisp.org>
54903
54904         * gnulib-tool: Support --with-tests also with --import.
54905         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
54906         (func_import): Use variables $testsbase and $inctests. Emit a
54907         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
54908         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
54909         SUBDIRS += $testsdir.
54910         (func_create_testdir): Update.
54911
54912 2005-09-18  Bruno Haible  <bruno@clisp.org>
54913
54914         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
54915         instead of $dry_run.
54916         (func_cp_if_changed, func_mv_if_changed): Remove functions.
54917         (func_ln_if_changed): Don't handle dry-run here.
54918         (func_import): In dry-run mode, detect more precisely which actions
54919         would be performed, and don't use "...ing" verbs.
54920
54921 2005-09-18  Bruno Haible  <bruno@clisp.org>
54922
54923         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
54924         (func_import): Use join on two temporary files instead of three nested
54925         loops, in order to determine which files are new or old.
54926
54927 2005-09-18  Bruno Haible  <bruno@clisp.org>
54928
54929         * gnulib-tool (func_import): Comment out code that spits out the
54930         new files with --dry-run.
54931
54932 2005-09-18  Bruno Haible  <bruno@clisp.org>
54933
54934         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
54935
54936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54937
54938         * lib/stat-time.h: New file.
54939         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
54940         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
54941         in a different way.
54942         (timespec_cmp): New function.
54943         * lib/utimecmp.c: Include stat-time.h.
54944         (SYSCALL_RESOLUTION): Depend on whether various struct stat
54945         members exist, not on the obsolescent ST_MTIM_NSEC.
54946         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
54947
54948 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54949
54950         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
54951
54952 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         * MODULES.html.sh (File system functions): Add stat-time.
54955         * modules/stat-time: New file.
54956         * modules/timespec (Files): Remove m4/st_mtim.m4; this
54957         is now done in a different way, by the stat-time module.
54958         * modules/utimecmp (Depends-on): Add stat-time.
54959
54960 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54961
54962         * m4/st_mtim.m4: Remove.  Superseded by...
54963         * m4/stat-time.m4: New file.
54964         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
54965         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
54966
54967 2005-09-15  Derek Price  <derek@ximbiot.com>
54968
54969         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
54970
54971 2005-09-15  Derek Price  <derek@ximbiot.com>
54972
54973         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
54974         * lib/regex_internal.c: Ditto, using this...
54975         (__GNUC_PREREQ): ...new macro.
54976         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
54977         using...
54978         (__GNUC_PREREQ): ...this new macro.
54979
54980         * lib/strstr.h: Include string.h. Define strstr as a macro here.
54981
54982 2005-09-15  Derek Price  <derek@ximbiot.com>
54983             Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
54986         changes, consolidating in...
54987         * lib/regex_internal.h: ...this file.
54988
54989 2005-09-13  Jim Meyering  <jim@meyering.net>
54990
54991         * lib/canon-host.c: Filter through gnu indent and reword comments
54992         slightly.
54993         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
54994
54995 2005-09-13  Derek Price  <derek@ximbiot.com>
54996
54997         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
54998         failure.
54999         Reported by Jim Meyering  <jim@meyering.net>.
55000
55001 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55002
55003         * lib/base64.c: Typo.
55004         (base64_encode): Put b64str in initialized data section.
55005
55006 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         Merge glibc and coreutils changes into gnulib, plus a few
55009         extra fixes.
55010         * lib/md5.c: Use #error rather than a string.
55011         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55012         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55013         (__attribute__): Define to empty for non recent-GCC.
55014         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55015         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55016         Renamed from their non-__ counterparts, with new macros replacing
55017         them if not _LIBC.  Add __THROW attribute.
55018         (rol): Remove.
55019         (struct md5_ctx): Align buffer if using GCC.
55020         * lib/sha1.h (struct sha1_ctx): Likewise.
55021         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55022         The old name was backwards.
55023         (NOTSWAP): Remove; not used.
55024         (rol): New macro, moved here from md5.h.
55025         (sha1_process_block): Remove a FIXME that doesn't make sense.
55026
55027 2005-09-12  Derek Price  <derek@ximbiot.com>
55028
55029         Return usable errors from canon-host.
55030         * lib/canon-host.h: New file.
55031         * lib/canon-host.c (canon_host): Wrap...
55032         (canon_host_r): ...this new function, which now relies exclusively on
55033         getaddrinfo.
55034         (ch_strerror): New function.
55035         (last_cherror): New global.
55036         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55037         interface.
55038         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55039         void *.
55040         (freeaddrinfo): Free ai->ai_canonname when set.
55041
55042 2005-09-12  Derek Price  <derek@ximbiot.com>
55043
55044         Make canon-host require getaddrinfo.
55045         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55046         AC_LIBSOURCE canon-host.h.  Call...
55047         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55048         gl_GETADDRINFO.
55049         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55050
55051 2005-09-12  Derek Price  <derek@ximbiot.com>
55052
55053         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55054         LGPL.
55055         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55056
55057 2005-09-12  Derek Price  <derek@ximbiot.com>
55058
55059         * lib/gai_strerror.c: Include config.h when available.  Include
55060         getaddrinfo.h before other headers to test interface.
55061         Reported by Larry Jones <lawrence.jones@ugs.com>.
55062
55063 2005-09-12  Derek Price  <derek@ximbiot.com>
55064             Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * modules/glob (Files): Add glob-libc.h.
55067
55068 2005-09-12  Derek Price  <derek@ximbiot.com>
55069             Paul Eggert  <eggert@cs.ucla.edu>
55070
55071         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55072         glob_.h, glob-libc.h.
55073         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55074
55075 2005-09-12  Derek Price  <derek@ximbiot.com>
55076             Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55079         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55080         protecting things that should be done only in gnulib contexts.
55081         * lib/glob_.h: New file, containing only the glob things needed for
55082         gnulib.
55083         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55084         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55085         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55086         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55087         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55088         and to respect the namespace rules better.
55089
55090 2005-09-08  Simon Josefsson  <jas@extundo.com>
55091
55092         * modules/socklen: New file.
55093
55094 2005-09-08  Simon Josefsson  <jas@extundo.com>
55095
55096         * m4/socklen.m4: New file.
55097
55098 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55099
55100         * modules/utimens (Files): Add m4/utimbuf.m4, since
55101         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55102         Reported by Sergey Poznyakoff.
55103
55104 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55107         definitions, since that's the preferred style in glibc.
55108         Fix a minor spacing issue, and update copyright notice to match
55109         glibc's.
55110
55111 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55112
55113         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55114
55115 2005-09-06  Simon Josefsson  <jas@extundo.com>
55116
55117         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55118         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55119
55120 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55121
55122         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55123         warning.
55124
55125 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * config/srclist.txt: Add glibc bug 1302.
55128
55129 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         Change bitset word type from unsigned int to unsigned long int,
55132         as this has better performance on typical 64-bit hosts.
55133         Port bitset code to hosts with unusual word sizes.
55134         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55135         (build_collating_symbol):
55136         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55137         argument is a bitset.  This is merely a style issue, but it makes
55138         it clearer that an entire array is expected.
55139         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55140         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55141         Port to the case where bitset_word is not the same as unsigned int.
55142         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55143         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55144         Likewise.
55145         * lib/regexec.c (check_dst_limits_calc_pos_1,
55146         check_subexp_matching_top):
55147         (build_trtable, group_nodes_into_DFAstates):
55148         Likewise.
55149         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55150         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55151         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55152         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55153         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55154         * lib/regcomp.c (optimize_subexps, lower_subexp):
55155         Work even if bitset_word has holes in its bitwise representation.
55156         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55157         * lib/regexec.c (check_dst_limits_calc_pos_1,
55158         check_subexp_matching_top):
55159         Likewise.
55160         * lib/regex_internal.c (re_string_reconstruct):
55161         Don't assume UCHAR_MAX == 255.
55162         * lib/regex_internal.h (bitset_set_all): Likewise.
55163         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55164         All uses changed.
55165         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55166         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55167         All uses changed.
55168         (BITSET_WORD_MAX): New macro.
55169         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55170         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55171         (bitset_empty, bitset_copy):
55172         Prefer sizeof (bitset) to multiplying it out ourselves.
55173         (bitset_not_merge): Remove; unused.
55174         (bitset_contain): Return bool, not unsigned int with one bit on.
55175         All callers changed.
55176         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55177         alignment than re_node_set; do this by defining a new internal
55178         type struct dests_alloc and using it to allocate memory.
55179
55180 2005-09-05  Bruno Haible  <bruno@clisp.org>
55181
55182         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55183         links.
55184
55185 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55186
55187         * modules/size_max (Makefile.am): Add size_max.h
55188
55189 2005-09-04  Derek Price  <derek@ximbiot.com>
55190
55191         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55192
55193 2005-09-03  Simon Josefsson  <jas@extundo.com>
55194
55195         * gnulib-tool: Fix typo.
55196
55197 2005-09-03  Simon Josefsson  <jas@extundo.com>
55198
55199         * config/srclist.txt: Add glibc bug 1293.
55200
55201 2005-09-03  Derek Price  <derek@ximbiot.com>
55202
55203         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55204         From Larry Jones <lawrence.jones@ugs.com>.
55205
55206 2005-09-02  Simon Josefsson  <jas@extundo.com>
55207
55208         * modules/socklen: New file.
55209
55210 2005-09-02  Simon Josefsson  <jas@extundo.com>
55211
55212         * modules/havelib: New module.
55213
55214         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55215         Use havelib.
55216
55217 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55218
55219         Check for arithmetic overflow when calculating sizes, to prevent
55220         some buffer-overflow issues.  These patches are conservative, in the
55221         sense that when I couldn't determine whether an overflow was possible,
55222         I inserted a run-time check.
55223         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55224         macros.
55225         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55226         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55227         (re_xnrealloc, re_x2nrealloc): New inline functions.
55228         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55229         parse_bracket_exp):
55230         (build_equiv_class, build_charclass): Check for arithmetic overflow
55231         in size expression calculations.
55232         * lib/regex_internal.c (re_string_realloc_buffers):
55233         (build_wcs_upper_buffer, re_node_set_add_intersect):
55234         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55235         (re_dfa_add_node, register_state): Likewise.
55236         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55237         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55238         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55239         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55240
55241 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55242
55243         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55244         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55245
55246 2005-09-02  Bruno Haible  <bruno@clisp.org>
55247
55248         Support for lib vs. lib64 distinction on biarch platforms.
55249         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55250         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55252
55253 2005-09-02  Bruno Haible  <bruno@clisp.org>
55254
55255         * gnulib-tool (import): In the other first-use case, provide defaults
55256         as well.
55257
55258 2005-09-02  Bruno Haible  <bruno@clisp.org>
55259
55260         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55261         patches not yet found in the latest gettext release.
55262
55263 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55266         to avoid a collision with bits/local_lim.h in glibc.
55267         All uses changed.  Problem reported by Dmitry V. Levin in
55268         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55269
55270         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55271         bugs in int versus size_t comparisons.
55272         (re_string_context_at): Fix bug where the code assumed that
55273         Idx is signed.
55274
55275         Use bool where appropriate.
55276         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55277         All callers changed.
55278         (calc_eclosure_iter): Likewise, for ROOT arg.
55279         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55280         (build_charclass_op): Likewise, for NON_MATCH arg.
55281         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55282         (re_string_construct_common): Likewise, for ICASE arg.
55283         * lib/regexec.c (re_search_2_stub, re_search_stub):
55284         Likewise, for RET_LEN arg.
55285         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55286         (set_regs): Likewise, for FL_BACKTRACK arg.
55287         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55288         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55289         (calc_eclosure_iter, parse_bracket_exp):
55290         Use bool for internal variables that are booleans.
55291         * lib/regexec.c (re_search_internal, check_matching,
55292         proceed_next_node):
55293         (set_regs, build_sifted_states, sift_states_bkref):
55294         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55295         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55296         (find_collation_sequence_value):
55297         Likewise.
55298         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55299         (re_node_set_compare):
55300         Return bool, not int. All callers changed.
55301         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55302         (build_trtable, check_node_accept): Likewise.
55303         * lib/regex_internal.h: Include stdbool.h.
55304
55305         Fix bugs uncovered when converting to bool.
55306         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55307         failure instead of charging ahead blindly.
55308         * lib/regex_internal.c (register_state): Likewise.
55309         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55310         for freeing internal storage.
55311         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55312         bitset pieces used as boolean, to avoid undefined behavior
55313         on hosts that do int overflow checking.
55314
55315 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55316
55317         * config/srclist.txt: Add glibc bugs 1285-1287.
55318
55319 2005-09-01  Jim Meyering  <jim@meyering.net>
55320
55321         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55322         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55323         Require gl_STAT_MACROS, too.
55324
55325 2005-09-01  Bruno Haible  <bruno@clisp.org>
55326
55327         * gnulib-tool (import): In the first-use case, provide defaults.
55328
55329 2005-09-01  Bruno Haible  <bruno@clisp.org>
55330
55331         * gnulib-tool (func_import): Remove the .tmp files.
55332
55333 2005-09-01  Bruno Haible  <bruno@clisp.org>
55334
55335         * gnulib-tool (func_import): Fix handling of symbolic links.
55336
55337 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55338
55339         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55340         old glibc regex code mishandles strings longer than 2**31 bytes.
55341         This patch fixes this when the regex code is used in gnulib
55342         (i.e., outside glibc).
55343
55344         This patch should not affect the use of the regex code inside
55345         glibc.  No doubt this problem also needs to be handled for glibc
55346         as well, but the result will be an incompatible change to the
55347         glibc ABI, and the old ABI will have to be supported too.  That
55348         can be the the subject for another patch.
55349
55350         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55351         governing whether the rest of this patch is active.  By default,
55352         the macro is disabled and the patch has no effect.
55353         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55354         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55355         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55356         (re_match_2, re_set_registers): Use the new types.
55357         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55358         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55359         New macros.
55360         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55361         (re_string_context_at, bin_tree_t, re_dfastate_t):
55362         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55363         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55364         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55365         (re_string_char_size_at, re_string_wchar_at):
55366         (re_string_elem_size_at):
55367         Use the new types and macros to port to 64-bit hosts.
55368         Use unsigned types for internal values, so that the code
55369         mostly works even for arrays larger than SSIZE_MAX.
55370         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55371         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55372         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55373         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55374         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55375         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55376         (calc_inveclosure, parse_dup_op, build_range_exp):
55377         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55378         (fetch_number, create_token_tree, mark_opt_subexp):
55379         Likewise.
55380         * lib/regex_internal.c (re_string_construct_common,
55381         create_ci_newstate):
55382         (create_cd_newstate, re_string_allocate, re_string_construct):
55383         (re_string_realloc_buffers, build_wcs_upper_buffer):
55384         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55385         (re_string_reconstruct, re_string_peek_byte_case):
55386         (re_string_fetch_byte_case, re_string_context_at):
55387         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55388         (re_node_set_init_copy, re_node_set_add_intersect):
55389         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55390         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55391         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55392         (re_acquire_state, re_acquire_state_context, register_state):
55393         Likewise.
55394         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55395         search_cur_bkref_entry):
55396         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55397         (re_search_internal, re_search_2_stub, re_search_stub)
55398         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55399         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55400         (update_cur_sifted_state, check_dst_limits):
55401         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55402         (check_subexp_limits, sift_states_bkref, merge_state_array):
55403         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55404         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55405         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55406         (expand_bkref_cache, check_node_accept_bytes):
55407         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55408         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55409         (acquire_init_state_context, check_halt_node_context):
55410         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55411         (sift_states_backward, clean_state_log_if_needed):
55412         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55413         (find_recover_state, transit_state_sb, transit_state_mb):
55414         (transit_state_bkref, build_trtable, match_ctx_clean):
55415         Likewise.
55416         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55417         to work around an assumption that REG_MISSING is negative.
55418
55419         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55420         (seek_collating_symbol_entry) [defined _LIBC]:
55421         (lookup_collation_sequence_value) [defined _LIBC]:
55422         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55423         Use prototypes rather than old-style function definitions.
55424         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55425         (transit_state_sb) [0]:
55426         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55427
55428         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55429         rm_eo.
55430
55431         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55432         (optimize_subexps, lower_subexp):
55433         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55434         since the signed shift might overflow.  Use 1u<<31 instead.
55435         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55436         Likewise.
55437         * lib/regexec.c (check_dst_limits_calc_pos_1,
55438         check_subexp_matching_top): Likewise.
55439
55440         * lib/regcomp.c (optimize_subexps, lower_subexp):
55441         Use CHAR_BIT rather than 8, for clarity.
55442         * lib/regexec.c (check_dst_limits_calc_pos_1):
55443         (check_subexp_matching_top): Likewise.
55444         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55445         have to worry about portability issues when shifting it left.
55446         Remove no-longer-needed test for table_size > 0.
55447         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55448         in a word, as the resulting behavior is undefined.
55449         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55450         in one case, a <= should have been an <, and in another case the
55451         whole test was missing.
55452         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55453         the standard name CHAR_BIT.
55454         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55455         this is not true on one's complement and signed-magnitude hosts.
55456
55457         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55458         next_last_offset.
55459         (struct re_dfa_t): Remove unused member states_alloc.
55460         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55461
55462 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55465         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55466         and large-file glibc and in 32-bit large-file Solaris.
55467
55468 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55469
55470         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55471         lengths fit in regoff_t; this isn't true if regoff_t is the same
55472         width as size_t.
55473         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55474         (= START + RANGE) instead of RANGE.  This avoids overflow
55475         problems when regoff_t is the same width as size_t.
55476         All callers changed.
55477         (re_search_2_stub): Check for overflow when adding the
55478         sizes of the two strings.
55479         (re_search_stub): Check for overflow when adding START
55480         to RANGE; if it occurs, substitute the extreme value.
55481
55482 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55483
55484         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55485
55486 2005-08-31  Jim Meyering  <jim@meyering.net>
55487
55488         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55489         a pointer-to-const.
55490         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55491         (register_state): Likewise.
55492         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55493         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55494         (group_nodes_into_DFAstates): Likewise.
55495
55496 2005-08-31  Jim Meyering  <jim@meyering.net>
55497
55498         * check-module: Add a FIXME comment.
55499
55500 2005-08-31  Eric Blake  <ebb9@byu.net>
55501
55502         * modules/unistd-safer (Files): Add unistd--.h.
55503         * modules/stdio-safer (Files): Add stdio--.h.
55504
55505 2005-08-31  Derek Price  <derek@ximbiot.com>
55506
55507         * lib/getdelim.c (getdelim): Return EOF on EOF.
55508         Reported by Larry Jones <lawrence.jones@ugs.com>.
55509
55510 2005-08-31  Bruno Haible  <bruno@clisp.org>
55511
55512         Avoid unnecessary diffs in the generated lib/Makefile.am.
55513         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55514         the generated files.
55515         (func_import): Don't set cmd.
55516
55517 2005-08-31  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/strstr.c: Include <stddef.h>, for NULL.
55520         * lib/strcasestr.c: Likewise.
55521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55522
55523 2005-08-31  Bruno Haible  <bruno@clisp.org>
55524
55525         * gnulib-tool: New option --macro-prefix.
55526         (func_import): Use macro_prefix.
55527         (import): Handle option --macro-prefix.
55528
55529 2005-08-31  Bruno Haible  <bruno@clisp.org>
55530
55531         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55532         Also use new variables cached_lgpl, cached_libtool.
55533
55534 2005-08-31  Bruno Haible  <bruno@clisp.org>
55535
55536         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55537         always instantiating them.
55538
55539 2005-08-31  Bruno Haible  <bruno@clisp.org>
55540
55541         * gnulib-tool (func_import): Read the previous cached settings
55542         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55543         earlier added by gnulib but are now dropped. Warn when a gnulib file
55544         overwrites a non-gnulib file.
55545
55546 2005-08-31  Bruno Haible  <bruno@clisp.org>
55547
55548         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55549         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55550         projects that don't keep autogenerated files in CVS. Put into
55551         actioncmd only the specified modules, not the transitive closure.
55552
55553 2005-08-31  Bruno Haible  <bruno@clisp.org>
55554
55555         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55556         Create directories that shall be filled.
55557         (import): Don't look for gl_* macros in configure.ac. Recurse across
55558         all directories containing a gnulib-cache.m4 files, if meaningful.
55559
55560 2005-08-31  Bruno Haible  <bruno@clisp.org>
55561
55562         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55563         (import): Set seen_libtool when we see gl_LIBTOOL.
55564
55565 2005-08-31  Bruno Haible  <bruno@clisp.org>
55566
55567         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55568         declaration macro definitions from generated gnulib.m4.
55569
55570 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55571
55572         * lib/iconvme.h: Add prototype for iconv_alloc.
55573
55574 2005-08-29  Simon Josefsson  <jas@extundo.com>
55575
55576         * lib/iconvme.c: Fix errno.
55577
55578 2005-08-29  Bruno Haible  <bruno@clisp.org>
55579
55580         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55581         that it works when the directory contains spaces.
55582
55583 2005-08-29  Bruno Haible  <bruno@clisp.org>
55584
55585         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55586
55587 2005-08-29  Bruno Haible  <bruno@clisp.org>
55588
55589         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55590         Emit more advice.
55591
55592 2005-08-29  Bruno Haible  <bruno@clisp.org>
55593         and Stepan Kasal  <kasal@ucw.cz>
55594
55595         * check-module: If more parameters are given, check each of them
55596         separately; add more exceptions, as noted by Jim Meyering.
55597         (check_module): New procedure.
55598         (%exempt_header): Now contains all exceptions.
55599
55600 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55601
55602         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55603
55604 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55605
55606         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55607
55608 2005-08-28  Bruno Haible  <bruno@clisp.org>
55609
55610         * m4/gnulib-tool.m4: New file.
55611
55612 2005-08-27  Jim Meyering  <jim@meyering.net>
55613
55614         * modules/unistd-safer (Files): Add pipe-safer.c.
55615         * modules/fcntl-safer (Files): Add creat-safer.c.
55616
55617 2005-08-27  Jim Meyering  <jim@meyering.net>
55618
55619         * m4/stdlib-safer.m4: New file.  From coreutils.
55620         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55621         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55622         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55623         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55624         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55625
55626 2005-08-27  Jim Meyering  <jim@meyering.net>
55627
55628         * lib/fopen-safer.c: Merge minor changes from coreutils.
55629         * lib/dup-safer.c: Likewise.
55630         * lib/fd-safer.c: Likewise.
55631
55632         Merge from coreutils.
55633         * lib/stdio--.h: New file.
55634         * lib/stdlib--.h: New file.
55635         * lib/mkstemp-safer.c: New file.
55636
55637         GNU tar needs these.
55638         * lib/pipe-safer.c: New file.
55639         * lib/creat-safer.c: New file.
55640         * lib/fcntl--.h (creat): Define to creat_safer.
55641         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55642         * lib/unistd--.h (pipe): Define to pipe_safer.
55643         * lib/unistd-safer.h: Declare pipe_safer.
55644
55645 2005-08-26  Simon Josefsson  <jas@extundo.com>
55646
55647         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55648         Haible <bruno@clisp.org>.
55649
55650 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55651
55652         * lib/regex_internal.h: Remove all references to
55653         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55654         or better.
55655         (bitset_not, bitset_merge, bitset_not_merge):
55656         (bitset_mask, re_string_allocate, re_string_construct):
55657         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55658         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55659         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55660         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55661         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55662         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55663         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55664         (re_acquire_state_context):
55665         Remove unnecessary forward decls.
55666         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55667         Put __attribute at function definition,
55668         now that the function decl has been removed.
55669         * lib/regex_internal.c (re_string_peek_byte_case):
55670         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55671         Likewise.
55672
55673 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55674
55675         * m4/regex.m4: Add AC_PREREQ(2.50).
55676         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55677
55678 2005-08-25  Simon Josefsson  <jas@extundo.com>
55679
55680         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55681         __fsetlocking.
55682
55683 2005-08-25  Simon Josefsson  <jas@extundo.com>
55684
55685         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55686         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55687         GLIBC specific code.
55688
55689 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55690
55691         Make regex safe for g++.  This fixes one real bug (an "err"
55692         that should have been "*err").  g++ problem reported by
55693         Sam Steingold.
55694         * lib/regex_internal.h (re_calloc): New macro, consistent with
55695         re_malloc etc.  All callers of calloc changed to use re_calloc.
55696         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55697         not int.  All callers changed.
55698         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55699         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55700         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55701         (find_recover_state): Change "err" to "*err"; this fixes what
55702         appears to be a real bug.
55703         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55704         versus int.
55705
55706 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * modules/regex (Depends-on): Add malloc, since the code
55709         assumes that !malloc(0) means failure.
55710
55711 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55712
55713         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55714
55715         alloca modernization/simplification for regex.
55716         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55717         needs to be at the start of the file, and can be moved into
55718         regex_internal.h and simplified.
55719         * lib/regex_internal.h: Include <alloca.h>.
55720         (__libc_use_alloca) [!defined _LIBC]: New macro.
55721         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55722         now works outside glibc.
55723
55724 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * config/srclist.txt: Add glibc bugs 1241, 1245.
55727
55728 2005-08-25  Jim Meyering  <jim@meyering.net>
55729
55730         * lib/open-safer.c: Include <config.h>.
55731         Otherwise, we'd lose LARGEFILE support in any file using
55732         e.g. "fcntl--.h"
55733
55734 2005-08-25  Bruno Haible  <bruno@clisp.org>
55735
55736         * m4/minmax.m4: Require autoconf 2.52.
55737         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55738         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55739         alternatives of translit over the alphabet.
55740         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55741
55742 2005-08-24  Simon Josefsson  <jas@extundo.com>
55743
55744         * tests/test-getpass.c: New file.
55745
55746 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55749         for GNU regex features.
55750
55751 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55754         * lib/regex.h (regerror): Likewise.
55755
55756         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55757         requires this.  (The code never needed it.)
55758
55759         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55760         All uses of recently-renamed identifiers changed to use the new,
55761         POSIX-compliant names.  The code will build and run just fine
55762         without these changes, but it's better to eat our own dog food
55763         and use the standard-conforming names.
55764
55765         * lib/regex.h: Fix a multitude of POSIX name space violations.
55766         These changes have an effect only for programs that define
55767         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55768         do not change anything for programs compiled in the normal way.
55769         Also, there is no effect on the ABI.
55770
55771         (_REGEX_SOURCE): New macro.
55772         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55773         defined and _GNU_SOURCE is not; this fixes a name space violation.
55774
55775         Rename the following macros to obey POSIX requirements.
55776         The old names are still visible as macros if _REGEX_SOURCE is defined.
55777         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55778         RE_BACKSLASH_ESCAPE_IN_LISTS.
55779         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55780         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55781         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55782         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55783         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55784         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55785         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55786         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55787         (REG_INTERVALS): renamed from RE_INTERVALS.
55788         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55789         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55790         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55791         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55792         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55793         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55794         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55795         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55796         RE_UNMATCHED_RIGHT_PAREN_ORD.
55797         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55798         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55799         (REG_DEBUG): renamed from RE_DEBUG.
55800         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55801         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55802         unusual, since we can't clash with the POSIX REG_ICASE.
55803         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55804         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55805         (REG_NO_SUB): renamed from RE_NO_SUB.
55806         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55807         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55808         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55809         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55810         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55811         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55812         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55813         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55814         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55815         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55816         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55817         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55818         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55819         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55820         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55821         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55822         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55823         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55824         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55825         (REG_FIXED): Renamed from REGS_FIXED.
55826         (REG_NREGS): Renamed from RE_NREGS.
55827
55828         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55829         of other REG_* macros, since POSIX says the user is allowed to
55830         #undef these macros selectively.
55831
55832         (reg_errcode_t): Update comment stating what other tables need
55833         to be consistent.
55834
55835         Rename the following enum values to obey POSIX requirements.
55836         The old names are still visible as macros.
55837         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55838         is not defined, since GNU is supposed to be a superset of POSIX as
55839         much as possible, and since we want reg_errcode_t to be a signed
55840         type for implementation consistency.
55841         (_REG_NOERROR): Renamed from REG_NOERROR.
55842         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55843         (_REG_BADPAT): Renamed from REG_BADPAT.
55844         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
55845         (_REG_ECTYPE): Renamed from REG_ECTYPE.
55846         (_REG_EESCAPE): Renamed from REG_EESCAPE.
55847         (_REG_ESUBREG): Renamed from REG_ESUBREG.
55848         (_REG_EBRACK): Renamed from REG_EBRACK.
55849         (_REG_EPAREN): Renamed from REG_EPAREN.
55850         (_REG_EBRACE): Renamed from REG_EBRACE.
55851         (_REG_BADBR): Renamed from REG_BADBR.
55852         (_REG_ERANGE): Renamed from REG_ERANGE.
55853         (_REG_ESPACE): Renamed from REG_ESPACE.
55854         (_REG_BADRPT): Renamed from REG_BADRPT.
55855         (_REG_EEND): Renamed from REG_EEND.
55856         (_REG_ESIZE): Renamed from REG_ESIZE.
55857         (_REG_ERPAREN): Renamed from REG_ERPAREN.
55858         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
55859         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
55860         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
55861         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
55862
55863         (_REG_RE_NAME, _REG_RM_NAME): New macros.
55864         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
55865         changed.  But support the old name if the new one is not defined
55866         and if _REGEX_SOURCE.
55867
55868         Change the following member names in struct re_pattern_buffer.
55869         The old names are still supported if !_REGEX_SOURCE.
55870         The new names are always supported, regardless of _REGEX_SOURCE.
55871         (re_buffer): Renamed from buffer.
55872         (re_allocated): Renamed from allocated.
55873         (re_used): Renamed from used.
55874         (re_syntax): Renamed from syntax.
55875         (re_fastmap): Renamed from fastmap.
55876         (re_translate): Renamed from translate.
55877         (re_can_be_null): Renamed from can_be_null.
55878         (re_regs_allocated): Renamed from regs_allocated.
55879         (re_fastmap_accurate): Renamed from fastmap_accurate.
55880         (re_no_sub): Renamed from no_sub.
55881         (re_not_bol): Renamed from not_bol.
55882         (re_not_eol): Renamed from not_eol.
55883         (re_newline_anchor): Renamed from newline_anchor.
55884
55885         Change the following member names in struct re_registers.
55886         The old names are still supported if !_REGEX_SOURCE.
55887         The new names are always supported, regardless of _REGEX_SOURCE.
55888         (rm_num_regs): Renamed from num_regs.
55889         (rm_start): Renamed from start.
55890         (rm_end): Renamed from end.
55891
55892         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
55893         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
55894         Prepend __ to parameter names.
55895
55896         Undo yesterday's changes.
55897
55898 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
55901         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
55902         lib/regex.c.
55903
55904 2005-08-24  Jim Meyering  <jim@meyering.net>
55905
55906         Sync from coreutils.
55907         * m4/fcntl-safer.m4: New file.
55908
55909         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
55910         and object files for this module.
55911
55912 2005-08-24  Jim Meyering  <jim@meyering.net>
55913
55914         Sync from coreutils.
55915         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
55916
55917 2005-08-24  Jim Meyering  <jim@meyering.net>
55918
55919         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
55920         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
55921
55922 2005-08-24  Jim Meyering  <jim@meyering.net>
55923
55924         * modules/fcntl-safer: New module.
55925         * modules/fts (Depends-on): Add fcntl-safer.
55926         * MODULES.html.sh (File descriptor based Input/Output):
55927         Add fcntl-safer.
55928
55929 2005-08-24  Bruno Haible  <bruno@clisp.org>
55930
55931         Support for unit test modules.
55932         * modules/README: Mention tests modules.
55933         * modules/TEMPLATE-TESTS: New file.
55934         * gnulib-tool: New options --extract-tests-module, --with-tests and
55935         --tests-base (unused for the moment).
55936         (testsbase, inctests): New variables.
55937         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
55938         (func_verify_module): Exclude TEMPLATE-TESTS.
55939         (func_verify_nontests_module, func_verify_tests_module): New functions.
55940         (func_get_dependencies): Add implicit dependency for tests modules.
55941         (func_get_tests_module): New function.
55942         (func_modules_transitive_closure): When --with-tests was specified,
55943         include the unit tests as well, unless explicitly avoided.
55944         (func_emit_lib_Makefile_am): Ignore the tests modules here.
55945         (func_emit_tests_Makefile_am): New function.
55946         (func_create_testdir): When --with-tests was specified, emit a
55947         tests/ directory.
55948         * MODULES.html.sh (Future developments): Update.
55949
55950 2005-08-24  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/tls-tests: New file.
55953         * tests/test-tls.c: New file, from GNU gettext.
55954
55955 2005-08-24  Bruno Haible  <bruno@clisp.org>
55956
55957         * modules/lock-tests: New file.
55958         * tests/test-lock.c: New file, from GNU gettext.
55959
55960 2005-08-24  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/lock.h: Add multiple inclusion guard.
55963         * lib/tls.h: Add multiple inclusion guard.
55964
55965 2005-08-24  Bruno Haible  <bruno@clisp.org>
55966
55967         * gnulib-tool: Add support for the --aux-dir option to
55968         --create-testdir, --create-megatestdir, --test, --megatest.
55969         (func_create_testdir, func_create_megatestdir): Optionally emit a
55970         AC_CONFIG_AUX_DIR directive.
55971         (create-testdir, create-megatestdir, test, megatest): Provide a
55972         default value for $auxdir.
55973
55974 2005-08-24  Bruno Haible  <bruno@clisp.org>
55975
55976         * gnulib-tool (import): Use compound statement instead of subshell
55977         where possible.
55978
55979 2005-08-24  Bruno Haible  <bruno@clisp.org>
55980
55981         * gnulib-tool (import): Change --aux-dir default to "build-aux".
55982
55983 2005-08-24  Bruno Haible  <bruno@clisp.org>
55984
55985         * gnulib-tool (func_version): Update.
55986
55987 2005-08-24  Bruno Haible  <bruno@clisp.org>
55988
55989         * gnulib-tool (func_import, func_create_testdir,
55990         func_create_megatestdir): Quote all autoconf macro arguments.
55991
55992 2005-08-24  Bruno Haible  <bruno@clisp.org>
55993
55994         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
55995         option --force, because --force causes the aclocal.m4 of each
55996         subdirectory to be newer than the corresponding config.h.in.
55997
55998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56001         All contents moved to gl_REGEX.
56002         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56003         assume that it does.
56004
56005 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         * lib/regex.h (REG_NOSYS)
56008         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56009         Define, since POSIX requires it as of 2001.
56010         (_REG_ENOSYS)
56011         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56012         New private symbol, used to keep the enum signed in all cases.
56013         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56014         Youngman in
56015         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56016
56017         * lib/regex_internal.c (re_string_skip_chars, register_state):
56018         (calc_state_hash):
56019         Remove forward decls; no longer needed now that we use prototypes.
56020         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56021         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56022         (clean_state_log_if_needed): Likewise.
56023
56024 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56025
56026         * config/srclist.txt: Add glibc bugs 1231-1233.
56027
56028 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56029
56030         Fix problems reported by Sam Steingold in
56031         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56032         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56033         assumed that reg_errcode_t is a signed type, which is not
56034         necessarily true if _XOPEN_SOURCE is not defined.
56035         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56036         since some compilers warn about it otherwise.
56037
56038 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56039
56040         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56041         (init_word_char, create_initial_state, duplicate_node_closure):
56042         (fetch_token, peek_token_bracket, build_range_exp):
56043         (build_collating_symbol): Remove forward decls; no longer needed
56044         now that we use prototypes.
56045
56046         * lib/regcomp.c:
56047         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56048         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56049         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56050         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56051         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56052         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56053         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56054         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56055         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56056         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56057         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56058         (build_charclass, build_charclass_op, fetch_number, create_tree):
56059         (create_token_tree, mark_opt_subexp, duplicate_tree):
56060         Use prototypes rather than old-style definitions.
56061
56062         * lib/regex_internal.c:
56063         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56064         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56065         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56066         (re_string_reconstruct, re_string_peek_byte_case):
56067         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56068         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56069         (re_node_set_init_copy, re_node_set_add_intersect):
56070         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56071         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56072         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56073         (re_acquire_state, re_acquire_state_context, register_state):
56074         (create_ci_newstate, create_cd_newstate, free_state):
56075         Likewise.
56076         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56077         re_search_2):
56078         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56079         (re_search_internal, prune_impossible_nodes):
56080         (acquire_init_state_context, check_matching, static):
56081         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56082         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56083         (update_regs, sift_states_backward, build_sifted_states):
56084         (clean_state_log_if_needed, merge_state_array):
56085         (update_cur_sifted_state, add_epsilon_src_nodes):
56086         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56087         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56088         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56089         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56090         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56091         (check_arrival, check_arrival_add_next_nodes):
56092         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56093         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56094         (check_node_accept_bytes, check_node_accept, extend_buffers):
56095         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56096         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56097         (sift_ctx_init):
56098         Likewise.
56099
56100         * lib/regex_internal.h:
56101         (re_string_allocate, re_string_construct, re_string_reconstruct):
56102         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56103         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56104         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56105         (re_string_context_at, re_string_peek_byte_case):
56106         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56107         is defined, since we now use prototypes always.
56108
56109         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56110         C89 or better.  All uses removed.
56111
56112 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56113
56114         * config/srclist.txt: Add glibc bugs 1220-1227.
56115
56116 2005-08-20  Jim Meyering  <jim@meyering.net>
56117
56118         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56119         of unused local, dfa.
56120
56121 2005-08-20  Bruno Haible  <bruno@clisp.org>
56122
56123         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56124
56125 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56126
56127         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56128         (re_node_set_insert_last, re_dfa_add_node):
56129         Rename local variables to avoid GCC shadowing warnings.
56130
56131 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56134         [defined lint]: Suppress bogus uninitialized-variable warnings.
56135
56136         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56137         and let the caller return REG_ESPACE if out of space.  This
56138         removes an uninitialied-variable warning with GCC 4.0.1, and also
56139         avoids taking the address of a local variable.  All callers
56140         changed.
56141
56142 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56143
56144         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56145         $LIBCSRC/posix/regexec.c.
56146         Add glibc bug 1217 for regcomp.c.
56147
56148 2005-08-19  Jim Meyering  <jim@meyering.net>
56149
56150         * lib/regexec.c (proceed_next_node): Redo local variables to
56151         avoid GCC shadowing warnings.
56152
56153 2005-08-18  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/strstr.c (strstr): Fix return value in multibyte case.
56156         * lib/strcasestr.c (strcasestr): Likewise.
56157
56158 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56159
56160         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56161
56162 2005-08-17  Jim Meyering  <jim@meyering.net>
56163
56164         Make the %s format (seconds since the epoch) work for a negative
56165         number and when used with a zero-padded field width, e.g. %015s.
56166
56167         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56168         label so that it precedes the code to set `digits'.  Otherwise,
56169         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56170         print `00-22'.  Now, it prints `-0022', as it should.
56171
56172 2005-08-17  Bruno Haible  <bruno@clisp.org>
56173
56174         * modules/strstr (Files): Add m4/mbrtowc.m4.
56175         (Depends-on): Add mbuiter.
56176
56177 2005-08-17  Bruno Haible  <bruno@clisp.org>
56178
56179         * modules/strcasestr: New file.
56180         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56181         strcasestr.
56182
56183 2005-08-17  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56186
56187 2005-08-17  Bruno Haible  <bruno@clisp.org>
56188
56189         * modules/mbuiter: New file.
56190         * MODULES.html.sh (Extended multibyte and wide character utilities):
56191         Add mbuiter.
56192
56193 2005-08-17  Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56196         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56197
56198 2005-08-17  Bruno Haible  <bruno@clisp.org>
56199
56200         * m4/strcasestr.m4: New file.
56201
56202 2005-08-17  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56205         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56206
56207 2005-08-17  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/strcasestr.h: New file.
56210         * lib/strcasestr.c: New file.
56211
56212 2005-08-17  Bruno Haible  <bruno@clisp.org>
56213
56214         * lib/strcasecmp.c: Use mbuiter.h.
56215
56216 2005-08-17  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/mbuiter.h: New file.
56219
56220 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56221
56222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56223         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56224         and gl_GETOPT are both invoked via different paths (as happens
56225         with GNU tar CVS because it uses both argp and getopt), the former
56226         wins.
56227
56228 2005-08-16  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/tls: New file.
56231         * MODULES.html.sh (Multithreading): Add tls.
56232
56233 2005-08-16  Bruno Haible  <bruno@clisp.org>
56234
56235         * modules/strnlen1: New file.
56236         * MODULES.html.sh (String handling): Add strnlen1.
56237
56238 2005-08-16  Bruno Haible  <bruno@clisp.org>
56239
56240         * modules/strcase (Files): Add m4/mbrtowc.m4.
56241         (Depends-on): Add strnlen1, mbchar.
56242
56243 2005-08-16  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/mbiter: New file.
56246         * MODULES.html.sh (Extended multibyte and wide character utilities):
56247         Add mbiter.
56248
56249 2005-08-16  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/mbfile: New file.
56252         * MODULES.html.sh (Extended multibyte and wide character utilities):
56253         Add mbfile.
56254
56255 2005-08-16  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/mbchar: New file.
56258         * MODULES.html.sh (Extended multibyte and wide character utilities):
56259         New section.
56260
56261 2005-08-16  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/tls.m4: New file, from GNU gettext.
56264
56265 2005-08-16  Bruno Haible  <bruno@clisp.org>
56266
56267         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56268         always.
56269         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56270
56271 2005-08-16  Bruno Haible  <bruno@clisp.org>
56272
56273         * m4/mbiter.m4: New file.
56274
56275 2005-08-16  Bruno Haible  <bruno@clisp.org>
56276
56277         * m4/mbfile.m4: New file.
56278
56279 2005-08-16  Bruno Haible  <bruno@clisp.org>
56280
56281         * m4/mbchar.m4: New file.
56282
56283 2005-08-16  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/tls.h: New file, from GNU gettext.
56286         * lib/tls.c: New file, from GNU gettext.
56287
56288 2005-08-16  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/strnlen1.h: New file.
56291         * lib/strnlen1.c: New file.
56292
56293 2005-08-16  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56296         (mbi_init): Update.
56297         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56298         NUL byte, not after it.
56299
56300 2005-08-16  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/strcase.h (strcasecmp): Add note in comments.
56303         * lib/strncasecmp.c: Use code from strcasecmp.c.
56304         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56305         (strcasecmp): Work correctly in multibyte locales.
56306
56307 2005-08-16  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/mbiter.h: New file.
56310
56311 2005-08-16  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/mbfile.h: New file.
56314
56315 2005-08-16  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/mbchar.h: New file.
56318         * lib/mbchar.c: New file.
56319
56320 2005-08-16  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56323         the valid ones. Makes the comparison operations transitive:
56324         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56325         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56326
56327 2005-08-15  Simon Josefsson  <jas@extundo.com>
56328
56329         * modules/ssize_t (License): Change to 'unlimited'.
56330
56331         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56332
56333 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56334
56335         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56336         Add comments for each pending glibc patch.
56337
56338 2005-08-15  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56341         __cplusplus is defined.
56342
56343 2005-08-14  Jim Meyering  <jim@meyering.net>
56344
56345         Sync from coreutils.
56346
56347         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56348         Use the hash-table-based cycle-detection code not just when
56349         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56350         Reported by James Youngman in
56351         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56352         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56353         FTS_TIGHT_CYCLE_CHECK.
56354         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56355         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56356         once again.
56357         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56358         * lib/fts.c (fd_safer): Remove decl.
56359         Include fcntl--.h rather than unistd-safer.h
56360         (fts_safe_changedir): Don't call fd_safer; no longer needed
56361         now that we include fcntl--.h.
56362
56363 2005-08-12  Simon Josefsson  <jas@extundo.com>
56364
56365         * modules/getndelim2: Use ssize_t module.
56366         * modules/getnline: Likewise.
56367         * modules/safe-read: Likewise.
56368         * modules/xreadlink: Likewise.
56369
56370         * modules/ssize_t: New file.
56371
56372 2005-08-12  Simon Josefsson  <jas@extundo.com>
56373
56374         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56375
56376 2005-08-12  Simon Josefsson  <jas@extundo.com>
56377
56378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56379         ssize_t.
56380
56381 2005-08-12  Simon Josefsson  <jas@extundo.com>
56382
56383         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56384         readline, getdelim and check_version.
56385         (Support for systems lacking ISO C 99: Sizes of integer types):
56386         Add size_max.
56387
56388 2005-08-12  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56391
56392 2005-08-11  Simon Josefsson  <jas@extundo.com>
56393
56394         * modules/readline: New file.
56395
56396         * modules/strnlen (Files): Add strnlen.h.
56397
56398 2005-08-11  Simon Josefsson  <jas@extundo.com>
56399
56400         * m4/readline.m4: New file.
56401
56402 2005-08-11  Simon Josefsson  <jas@extundo.com>
56403
56404         * lib/readline.h, readline.c: New file.
56405
56406 2005-08-11  Simon Josefsson  <jas@extundo.com>
56407
56408         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56409         gl_AVOID.
56410
56411 2005-08-11  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56414
56415 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56416
56417         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56418
56419 2005-08-10  Simon Josefsson  <jas@extundo.com>
56420
56421         * tests/test-iconvme.c: New file.
56422
56423 2005-08-10  Simon Josefsson  <jas@extundo.com>
56424
56425         * m4/strnlen.m4: New file.
56426
56427         * m4/strndup.m4: Don't check for strnlen declaration, done in
56428         strnlen.m4.
56429
56430 2005-08-10  Simon Josefsson  <jas@extundo.com>
56431
56432         * lib/strndup.c: Use strnlen.h.
56433
56434         * lib/strnlen.h: New file.
56435
56436 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56437
56438         * README: Typos.
56439
56440 2005-08-02  Simon Josefsson  <jas@extundo.com>
56441
56442         * modules/readline: New file.
56443
56444 2005-08-02  Simon Josefsson  <jas@extundo.com>
56445
56446         * modules/getdelim: New file.
56447
56448         * modules/getline: Rewrite, don't use getndelim2.
56449
56450 2005-08-02  Simon Josefsson  <jas@extundo.com>
56451
56452         * m4/getline.m4: Separate out getdelim stuff into separate module.
56453
56454         * m4/getdelim.m4: New file.
56455
56456 2005-08-02  Simon Josefsson  <jas@extundo.com>
56457
56458         * lib/getline.h, getline.c: Rewrite.
56459
56460         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56461
56462 2005-07-31  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/lock.h (gl_lock_initializer): New macro.
56465         (gl_lock_define_initialized): Use it.
56466         (gl_rwlock_initializer): New macro.
56467         (gl_rwlock_define_initialized): Use it.
56468         (gl_recursive_lock_initializer): New macro.
56469         (gl_recursive_lock_define_initialized): Use it.
56470
56471 2005-07-30  Karl Berry  <karl@gnu.org>
56472
56473         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56474         Report from Ben Pfaff, regarding getopt.
56475
56476 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56479         normal way.
56480         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56481         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56482         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56483         (gl_GETOPT): Use the new macros.  Most of the implementation
56484         is moved to the new macros.  This is for programs like Emacs
56485         that don't want all the functionality of gl_GETOPT.
56486
56487 2005-07-26  Bruno Haible  <bruno@clisp.org>
56488
56489         * m4/lock.m4: Update from GNU gettext.
56490
56491 2005-07-26  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/lock.h: Update from GNU gettext.
56494         * lib/lock.c: Update from GNU gettext.
56495
56496 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56499         obsolescent AC_TRY_RUN.  Include the default includes files, for
56500         'exit'.
56501
56502 2005-07-24  Bruno Haible  <bruno@clisp.org>
56503
56504         * modules/visibility: New file.
56505         * MODULES.html.sh (Misc): Add visibility.
56506
56507 2005-07-24  Bruno Haible  <bruno@clisp.org>
56508
56509         * m4/visibility.m4: New file.
56510
56511 2005-07-24  Bruno Haible  <bruno@clisp.org>
56512
56513         * doc/visibility.texi: New file.
56514
56515 2005-07-22  Bruno Haible  <bruno@clisp.org>
56516
56517         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56518         $(ALLOCA_H), redundant through BUILT_SOURCES.
56519         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56520         redundant through BUILT_SOURCES.
56521         * modules/byteswap (Makefile.am): Remove explicit dependency on
56522         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56523         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56524         $(FNMATCH_H), redundant through BUILT_SOURCES.
56525         * modules/getopt (Makefile.am): Remove explicit dependency on
56526         $(GETOPT_H), redundant through BUILT_SOURCES.
56527         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56528         redundant through BUILT_SOURCES.
56529         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56530         redundant through BUILT_SOURCES.
56531         * modules/stdbool (Makefile.am): Remove explicit dependency on
56532         $(STDBOOL_H), redundant through BUILT_SOURCES.
56533         * modules/stdint (Makefile.am): Remove explicit dependency on
56534         $(STDINT_H), redundant through BUILT_SOURCES.
56535         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56536         Remove explicit dependency on $(SYSEXITS_H).
56537         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56538
56539 2005-07-18  Simon Josefsson  <jas@extundo.com>
56540
56541         * lib/check-version.c (check_version): Accept identical versions too.
56542
56543 2005-07-18  Bruno Haible  <bruno@clisp.org>
56544
56545         * modules/lock: New file.
56546         * MODULES.html.sh (Multithreading): New section.
56547
56548 2005-07-18  Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/lock.m4: New file, from GNU gettext.
56551
56552 2005-07-18  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/lock.h: New file, from GNU gettext.
56555         * lib/lock.c: New file, from GNU gettext.
56556
56557 2005-07-18  Bruno Haible  <bruno@clisp.org>
56558
56559         * lib/lock.h (gl_once_t): New type.
56560         (gl_once_define, gl_once): New macros.
56561         * lib/lock.c (fresh_once): New variable.
56562         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56563         functions.
56564
56565 2005-07-16  Simon Josefsson  <jas@extundo.com>
56566
56567         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56568         workaround, suggested by Bruno.
56569
56570 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56571
56572         * modules/xalloc (Depends-on): Add xalloc-die.
56573         * modules/xvasprintf (Depends-on): Add xalloc-die.
56574
56575 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56578         with a minor change.
56579
56580 2005-07-15  Bruno Haible  <bruno@clisp.org>
56581
56582         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56583         When using lib/poll.c, define poll as rpl_poll.
56584
56585 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56586
56587         * modules/argp (Depends-on): Remove unlocked-io.
56588
56589 2005-07-14  Derek Price  <derek@ximbiot.com>
56590
56591         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56592         for glob symlink bug.
56593
56594 2005-07-14  Bruno Haible  <bruno@clisp.org>
56595
56596         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56597         Instead, test for *_unlocked function declarations directly.
56598
56599 2005-07-11  Simon Josefsson  <jas@extundo.com>
56600
56601         * modules/size_max: New file.
56602
56603         * modules/xsize: Depend on size_max module for size_max.m4.
56604
56605 2005-07-11  Simon Josefsson  <jas@extundo.com>
56606
56607         * lib/size_max.h: New file.
56608
56609 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56610
56611         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56612         copyright symbol and the year.
56613         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56614         (version_etc_va): Use parameterized copyright notice.
56615         Reword to conform to the current GNU coding standards.
56616
56617 2005-07-11  Karl Berry  <karl@gnu.org>
56618
56619         * doc/gnulib.texi (Quoting): new node.
56620         (Initial import): more info, from Patrice.
56621
56622 2005-07-11  Bruno Haible  <bruno@clisp.org>
56623
56624         * gnulib-tool (func_usage): Document option --avoid.
56625         (Command line options): Handle --avoid.
56626         (func_acceptable): New function.
56627         (func_modules_transitive_closure): Use it.
56628
56629 2005-07-11  Bruno Haible  <bruno@clisp.org>
56630
56631         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56632         Reported by Jim Meyering.
56633
56634 2005-07-10  Bruno Haible  <bruno@clisp.org>
56635
56636         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56637         Needed when size_t is smaller than 'unsigned int'.
56638         Reported by Paul Eggert.
56639
56640 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56641
56642         * modules/argp (Depends-on): Add unlocked-io
56643
56644 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56645
56646         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56647         block of defines.
56648
56649 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56650
56651         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56652         fix now.
56653
56654 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56655         and Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56658         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56659
56660 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * modules/regex (Files): Add lib/regex_internal.c,
56663         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56664         (Depends-on): Add extensions.
56665         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56666
56667 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56670         pathconf.
56671         * m4/same.m4 (gl_SAME): Likewise.
56672         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56673
56674         * m4/regex.m4: Adjust to new libc regex implementation.
56675         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56676         all the .c and .h parts of (the new) regex.
56677         Quote the m4 stuff better.
56678         Check for RE_ICASE bug of old gnulib.
56679         Check for REG_STARTEND of recent libc.
56680         Rename local variables from jm_* to gl_*.
56681         Quote operand of "test -f".
56682         Say "recent enough" version of libc, not "version 2".
56683         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56684         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56685         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56686         Remove check for btowc, isascii.
56687         Require AM_LANGINFO_CODESET.
56688
56689 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56690
56691         * lib/regex.c, regex.h: Sync from libc.
56692         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56693         * lib/regexec.c:
56694         New files, synced from libc, except that regex_internal.h
56695         currently has a small porting fix.
56696
56697 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56700         regex_internal.c, regexec.c.
56701         Add regex_internal.h too, but as a comment, since the libc version
56702         is currently broken in gnulib mode.
56703
56704 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         Support programs like Emacs that use gnulib but not gettext.
56707         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56708         * modules/gettext-h: New file.
56709         * modules/gettext (Files): Remove lib/gettext.h.
56710         (Depends-on): Add gettext-h.
56711         (Makefile.am): Remove lib_SOURCES.
56712         * modules/argmatch, modules/c-stack, modules/closeout:
56713         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56714         * modules/execute, modules/file-type, modules/getaddrinfo:
56715         * modules/getopt, modules/human, modules/javacomp:
56716         * modules/javaexec, modules/mkdir-p, modules/obstack:
56717         * modules/openat, modules/pagealign_alloc, modules/pipe:
56718         * modules/quotearg, modules/regex, modules/rpmatch:
56719         * modules/unicodeio, modules/userspec, modules/version-etc:
56720         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56721         * modules/xsetenv:
56722         Depend on gettext-h, not gettext.
56723
56724 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * gnulib-tool (func_import): Add support for 'public domain' license.
56727         * modules/alloca, modules/atexit, modules/memmove:
56728         Now public domain, not GPL.
56729         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56730         * modules/realloc, modules/strerror, modules/strtod:
56731         Now LGPL, not GPL.
56732
56733 2005-07-05  Bruno Haible  <bruno@clisp.org>
56734
56735         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56736         autoconf CVS. Needed for mingw.
56737
56738 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56739
56740         Remove the dependency of the strftime module on the tzset module.
56741         * modules/strftime (Depends-on): Remove dependency on tzset.
56742
56743 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56744
56745         Remove the dependency of the strftime module on the tzset module.
56746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56747         gl_FUNC_TZSET_CLOBBER.
56748
56749 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56750
56751         Remove the dependency of the strftime module on the tzset module.
56752         * lib/strftime.c (my_strftime)
56753         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56754         Copy the input structure, to work around some of the bug with
56755         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56756         Solaris releases, you should also use the tzset module, but we won't
56757         require it as a dependency any more since we don't want LGPLed code
56758         to depend on GPLed code.
56759
56760 2005-07-02  Jim Meyering  <jim@meyering.net>
56761
56762         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56763         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56764         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56765         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56766
56767 2005-07-02  Jim Meyering  <jim@meyering.net>
56768
56769         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56770
56771 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56774         declares only 'struct timespec;' (!).
56775
56776 2005-07-01  Jim Meyering  <jim@meyering.net>
56777
56778         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56779         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56780         * lib/save-cwd.c, tempname.c:
56781         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56782         and don't include <sys/file.h>).
56783
56784 2005-06-29  Jim Meyering  <jim@meyering.net>
56785
56786         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56787         type name.  Use the variable name instead.
56788         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56789         Likewise.
56790
56791 2005-06-28  Simon Josefsson  <jas@extundo.com>
56792
56793         * modules/check-version (Files): Add check-version.m4.
56794
56795 2005-06-28  Simon Josefsson  <jas@extundo.com>
56796
56797         * m4/check-version.m4: New file, suggested by Jim Meyering
56798         <jim@meyering.net>.
56799
56800 2005-06-28  Simon Josefsson  <jas@extundo.com>
56801
56802         * lib/check-version.h, lib/check-version.c: New files.
56803
56804 2005-06-28  Simon Josefsson  <jas@extundo.com>
56805
56806         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56807         collision with global variable.  Better indentation.  Don't
56808         increment buffer pointer beyond buffer end.  Based on comments
56809         from Paul Eggert <eggert@cs.ucla.edu>.
56810
56811         * lib/base64.h: Indent.
56812
56813 2005-06-28  Simon Josefsson  <jas@extundo.com>
56814
56815         * doc/gnulib.texi (Library version handling): New section.
56816
56817 2005-06-28  Jim Meyering  <jim@meyering.net>
56818
56819         * check-module (find_included_lib_files): Hard-code another
56820         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56821         but modules/fts-lgpl (correctly) does not list those files.
56822
56823         * modules/canonicalize (Files): Add lib/pathmax.h.
56824
56825 2005-06-25  Simon Josefsson  <jas@extundo.com>
56826
56827         * modules/check-version: New file.
56828
56829 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56830
56831         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56832         initializer of struct addrinfo, as an indication that we don't
56833         care how many members the structure has.
56834
56835 2005-06-24  Derek Price  <derek@ximbiot.com>
56836         and Bruno Haible  <bruno@clisp.org>
56837
56838         Remove stat module & update lstat.
56839         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56840         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56841         * m4/stat.m4: Remove this file.
56842
56843 2005-06-24  Derek Price  <derek@ximbiot.com>
56844         and Bruno Haible  <bruno@clisp.org>
56845
56846         Remove stat module & update lstat.
56847         * lib/stat.c: Remove this file...
56848         (slash_aware_lstat): ...moving this content and its support...
56849         * lib/lstat.c (rpl_lstat): ...into here.
56850         * lib/lstat.h: New file.
56851
56852 2005-06-24  Derek Price  <derek@ximbiot.com>
56853         and Bruno Haible  <bruno@clisp.org>
56854
56855         Remove stat module & update lstat.
56856         * config/srclist.txt (libc sources): Remove stat.
56857
56858 2005-06-24  Derek Price  <derek@ximbiot.com>
56859         and Bruno Haible  <bruno@clisp.org>
56860
56861         Remove stat module & update lstat.
56862         * MODULES.html.sh (stat): Remove.
56863         * MODULES.html: Regenerated.
56864         * modules/lstat (Description): Correct function name.
56865         (Files): Add "lstat.h".
56866         (Depends-on): Remove stat, add xalloc, stat-macros.
56867         * modules/stat: Remove this file.
56868         (Include): Add "lstat.h", remove <sys/stat.h>.
56869
56870 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56871
56872         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
56873         (ranged_convert): Don't save conversion in a temporary struct.
56874         This causes a warning with GCC 4.0.0, and anyway in the typical
56875         case it's not worth the extra 100 bytes or so of code.
56876         (ranged_convert, __mktime_internal): When calling a function via a
56877         pointer P, use P () rather than (*P) (), as we now assume C89 or
56878         better.
56879
56880 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56881
56882         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
56883         "who -r" failed to give output.  Problem reported by Tim Waugh.
56884
56885         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
56886         (xcalloc): Use it to avoid needless tests.
56887         Problem reported by Jim Meyering.
56888
56889 2005-06-20  Derek Price  <derek@ximbiot.com>
56890
56891         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
56892         unnecessary for Autoconfs > 2.59c.
56893
56894 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56895
56896         * lib/argp.h (__option_is_short): Check upper limit of
56897         __key. Isprint() requires its argument to have the value
56898         of an unsigned char or EOF.
56899
56900 2005-06-16  Jim Meyering  <jim@meyering.net>
56901
56902         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
56903         when either N or S is zero.
56904
56905 2005-06-16  Derek Price  <derek@ximbiot.com>
56906
56907         * m4/bison.m4: Declare YACC & YFLAGS precious.
56908
56909 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
56910
56911         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
56912         multibyte string or pattern, fall back on unibyte matching.
56913         Problem reported by James Youngman.
56914
56915 2005-06-08  Bruno Haible  <bruno@clisp.org>
56916
56917         * modules/csharpcomp: New file.
56918         * MODULES.html.sh (C#): Add csharpcomp.
56919
56920 2005-06-08  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/csharpcomp.m4: New file, from GNU gettext.
56923
56924 2005-06-08  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/csharpcomp.h: New file, from GNU gettext.
56927         * lib/csharpcomp.c: New file, from GNU gettext.
56928         * lib/csharpcomp.sh.in: New file, from GNU gettext.
56929
56930 2005-06-08  Bruno Haible  <bruno@clisp.org>
56931
56932         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
56933         warning on mingw.
56934
56935 2005-06-07  Derek Price  <derek@ximbiot.com>
56936
56937         Sync from CVS.
56938         * lib/glob_.h: Indent nested #ifdef.
56939
56940 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56941
56942         Sync from coreutils.
56943         Use "file name" when talking about file names, instead of "filename"
56944         or "path", as per the GNU coding standards.
56945         * lib/mkdir-p.c: Renamed from makepath.c.
56946         (make_dir_parents): Renamed from make_path.  All callers changed.
56947         * lib/mkdir-p.h: Likewise.  All includers changed.
56948         * lib/filenamecat.c: Renamed from path-concat.c.
56949         (file_name_concat): Renamed from path_concat.  All callers changed.
56950         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
56951         * lib/filenamecat.h: Likewise.  All includers changed.
56952         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
56953         in comments or local variable names.
56954         * lib/basename.c: Likewise.
56955         * lib/canonicalize.c, canonicalize.h: Likewise.
56956         * lib/dirname.c, dirname.h: Likewise.
56957         * lib/euidaccess.c: Likewise.
56958         * lib/exclude.c: Likewise
56959         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
56960         * lib/fsusage.c, fsuage.h: Likewise.
56961         * lib/fts.c, fts_.h: Likewise.
56962         * lib/getcwd.c: Likewise.
56963         * lib/getloadavg.c: Likewise.
56964         * lib/mkstemp.c: Likewise.
56965         * lib/mountlist.c, mountlist.h: Likewise.
56966         * lib/openat.c, openat.h: Likewise.
56967         * lib/readlink-stub.c: Likewise.
56968         * lib/readutmp.c, readutmp.h: Likewise.
56969         * lib/rename.c: Likewise.
56970         * lib/rmdir.c: Likewise.
56971         * lib/same.c: Likewise.
56972         * lib/savedir.c: Likewise.
56973         * lib/stripslash.c: Likewise.
56974         * lib/tempname.c: Likewise.
56975         * lib/xreadlink.c: Likewise.
56976         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
56977         All uses changed.
56978         * lib/exclude.h: Likewise.
56979
56980         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
56981         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56982         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
56983         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56984         * lib/pathmax.h: Include <limits.h> unconditionally, since other
56985         files have been getting away with it for years (MORE/BSD 4.3
56986         is extinct now).
56987         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
56988         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
56989
56990         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
56991         Define to 256, not 255, as per modern POSIX.
56992
56993 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
56994
56995         Sync from coreutils.
56996         Use "file name" when talking about file names, instead of "filename"
56997         or "path", as per the GNU coding standards.
56998         * MODULES.html.sh: mkdir-p renamed from makepath.
56999         filenamecat renamed from path-concat.
57000         * modules/filenamecat: Renamed from modules/path-concat.
57001         (Files): filenamecat.h and filenamecat.c renamed from
57002         path-concat.h and path-concat.c.
57003         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57004         (Include): filenamecat.h, not path-concat.h.
57005         * modules/mkdir-p: Renamed from modules/makepath.
57006         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57007         makepath.c.
57008         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57009         (Include): mkdir-p.h, not makepath.h.
57010
57011 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         Sync from coreutils.
57014         * m4/mkdir-p.m4: Renamed from makepath.m4.
57015         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57016         Rename files from makepath.c to mkdir-p.c, and from
57017         makepath.h to mkdir-p.h.
57018         * m4/filenamecat.m4: Renamed from path-concat.m4.
57019         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57020         Rename files from path-concat.c to filenamecat.c,
57021         and from path-concat.h to filenamecat.h.
57022         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57023         "file name" in local variables or comments.
57024         * m4/rename.m4: Likewise.
57025
57026 2005-06-01  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/csharpexec: New file.
57029         * MODULES.html.sh (C#): New section.
57030
57031 2005-06-01  Bruno Haible  <bruno@clisp.org>
57032
57033         * m4/csharp.m4: New file, from GNU gettext.
57034         * m4/csharpexec.m4: New file, from GNU gettext.
57035
57036 2005-06-01  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/csharpexec.h: New file, from GNU gettext.
57039         * lib/csharpexec.c: New file, from GNU gettext.
57040         * lib/csharpexec.sh.in: New file, from GNU gettext.
57041
57042 2005-05-31  Derek Price  <derek@ximbiot.com>
57043             Paul Eggert  <eggert@cs.ucla.edu>
57044
57045         Sync from cvs.
57046         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57047
57048 2005-05-31  Derek Price  <derek@ximbiot.com>
57049             Paul Eggert  <eggert@cs.ucla.edu>
57050
57051         Sync from cvs.
57052         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57053
57054 2005-05-29  Derek Price  <derek@ximbiot.com>
57055
57056         * config/srclist.txt (glob_.h, glob.c): Add these files.
57057
57058 2005-05-29  Derek Price  <derek@ximbiot.com>
57059
57060         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57061         * modules/glob: New file.
57062         * modules/getlogin_r: Add link to POSIX spec in description.
57063
57064 2005-05-29  Derek Price  <derek@ximbiot.com>
57065             Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * m4/glob.m4: New file.
57068
57069 2005-05-29  Derek Price  <derek@ximbiot.com>
57070             Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * lib/glob_.h, lib/glob.c: New files.
57073
57074 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57075
57076         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57077         * modules/fts-lgpl (Depends-on): Remove gettext.
57078
57079 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57082         and don't require gt_INTTYPES_PRI.
57083
57084 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57085
57086         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57087
57088         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57089         the configuration hassle isn't worth it.
57090         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57091         (LONGEST_MODIFIER, PRIuMAX): Remove.
57092
57093 2005-05-27  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57096
57097 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57100         _POSIX_PTHREAD_SEMANTICS for Solaris.
57101
57102 2005-05-25  Derek Price  <derek@ximbiot.com>
57103
57104         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57105
57106 2005-05-25  Derek Price  <derek@ximbiot.com>
57107             Paul Eggert  <eggert@cs.ucla.edu>
57108
57109         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57110         * lib/getlogin_r.c, getlogin_r.h: New files.
57111
57112 2005-05-25  Bruno Haible  <bruno@clisp.org>
57113             Derek Price  <derek@ximbiot.com>
57114
57115         * lib/getlogin_r.h: Simplify API documentation.
57116
57117 2005-05-23  Derek Price  <derek@ximbiot.com>
57118
57119         * modules/minmax (Files): Add m4/minmax.m4.
57120         (configure.ac): Add gl_MINMAX.
57121
57122 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57125         so that unistd-safer.h (GPL'ed code) need not be included.
57126
57127 2005-05-22  Bruno Haible  <bruno@clisp.org>
57128
57129         * m4/minmax.m4: New file.
57130         Based on a patch by Derek Price <derek@ximbiot.com>.
57131
57132 2005-05-22  Bruno Haible  <bruno@clisp.org>
57133
57134         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57135         (INT64_MIN): Fix definition.
57136         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57137
57138         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57139         NEED_SIGNED_INT_TYPES.
57140
57141         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57142         HAVE_SYSTEM_INTTYPES.
57143
57144 2005-05-22  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57147         Also include <sys/param.h> if it defines MIN, MAX.
57148         Based on a patch by Derek Price <derek@ximbiot.com>.
57149
57150 2005-05-21  Jim Meyering  <jim@meyering.net>
57151
57152         * modules/fts (Files): Add m4/inttypes-pri.m4.
57153         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57154
57155 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         New fts module.
57158         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57159         (setup_dir, free_dir): New functions.
57160         (enter_dir, leave_dir): Define trivial
57161         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57162         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57163         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57164         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57165         Move to fts-cycle.c.
57166         (fts_open): Use setup_dir.
57167         (fts_close): Use free_dir.
57168         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57169         This adds a label and some gotos, but the alternatives were messier.
57170         Check for memory allocation failure when entering a dir.
57171         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57172         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57173         (FTS): New member fts_cycle, that is a union that contains the
57174         old active_dir_ht and cycle_state.  All uses changed to mention
57175         fts_cycle.ht and fts_cycle.state.
57176         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57177         fts.c, with the following changes:
57178         (setup_dir, free_dir): New functions.
57179         (enter_dir): Now returns bool.  Return true if successful, false
57180         if memory exhausted.  All callers changed.
57181         Do not bother partly cleaning up on
57182         memory allocation failure; that is free_dir's job.
57183         However, free ad if hash_insert fails, to avoid memory leak.
57184         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57185         fts->fts_options to see which union member to use.
57186
57187 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57188
57189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57190         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57191
57192 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57193
57194         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57195
57196 2005-05-20  Jim Meyering  <jim@meyering.net>
57197
57198         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57199         Now a macro, to pacify GCC.
57200
57201 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57202
57203         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57204         of -1.
57205
57206 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57207
57208         * lib/chown.c (rpl_chown): Return -1 on failure.
57209
57210 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57213         Don't check for stddef.h.
57214         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57215         don't use its results.
57216         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57217         since we include them unconditionally.  Don't require
57218         AM_STDBOOL_H, since stdbool is a prerequisite.
57219         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57220         since we assume C89 or better.
57221         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57222         as we don't use their results.
57223         Don't check for fchdir, memmove, memset, strrchr, as we use
57224         them unconditionally.
57225         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57226         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57227
57228 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57229
57230         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57231         Include <stddef.h> unconditionally, since we assume C89 now.
57232         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57233         * lib/fts.c: Include fts_.h first, to check interface.
57234         Do not include intprops.h; no longer needed.
57235         Include cycle-check.h and hash.h, since fts_.h no longer does.
57236         Remove unnecessary casts of closedir to void.
57237         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57238         decide whether to decrement nlinks.
57239         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57240         (FTS): Use struct hash_table * instead of Hash_table, so that
57241         we no longer need to include hash.h here.
57242
57243 2005-05-18  Jim Meyering  <jim@meyering.net>
57244
57245         * modules/dirfd (License): Change to LGPL.  Most of the code
57246         is already in the public domain.
57247
57248 2005-05-18  Jim Meyering  <jim@meyering.net>
57249
57250         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57251         Reported by Yoann Vandoorselaere.
57252
57253 2005-05-17  Jim Meyering  <jim@meyering.net>
57254
57255         * m4/fts.m4: New file, from coreutils.
57256
57257 2005-05-17  Jim Meyering  <jim@meyering.net>
57258
57259         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57260
57261 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57262
57263         Sync from coreutils.
57264         * m4/unlinkdir.m4: New file.
57265
57266 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57267
57268         Sync from coreutils.
57269         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57270         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57271         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57272         White space changes only.
57273         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57274         special.
57275         * lib/yesno.c: Include getline.h, not ctype.h.
57276         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57277         Use getline to remove arbitrary restriction on response length.
57278
57279 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * config/srclist-update: Spell out "Street" in FSF postal
57282         mail address; this is the style the FSF seems to prefer.
57283
57284         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57285         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57286         this updates FSF postal mail address.
57287
57288         Sync from coreutils.
57289         * modules/unlinkdir: New file.
57290         * modules/yesno (Depends-on): Add getline.
57291         * MODULES.html.sh (File system functions): Add unlinkdir.
57292
57293 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57296         lib/strsep.h:
57297         Change the initial comment to refer to GPL, not LGPL.
57298         gnulib-tool will change it to LGPL as needed.
57299
57300         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57301         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57302         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57303         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57304         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57305         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57306         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57307         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57308         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57309         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57310         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57311         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57312         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57313         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57314         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57315         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57316         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57317         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57318         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57319         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57320         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57321         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57322         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57323         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57324         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57325         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57326         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57327         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57328         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57329         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57330         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57331         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57332         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57333         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57334         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57335         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57336         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57337         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57338         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57339         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57340         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57341         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57342         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57343         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57344         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57345         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57346         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57347         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57348         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57349         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57350         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57351         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57352         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57353         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57354         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57355         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57356         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57357         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57358         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57359         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57360         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57361         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57362         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57363         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57364         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57365         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57366         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57367         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57368         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57369         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57370         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57371         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57372         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57373         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57374         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57375         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57376         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57377         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57378         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57379         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57380         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57381         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57382         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57383         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57384         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57385         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57386         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57387         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57388         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57389         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57390         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57391         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57392         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57393         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57394         lib/yesno.c, lib/yesno.h:
57395         Update FSF postal mail address.
57396
57397 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57400         tests/test-memmem.c, tests/test-stpncpy.c:
57401         Update FSF postal mail address.
57402
57403 2005-05-13  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57406         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57407         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57408         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57409         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57410         Add support for 64-bit integers in the MSVC compiler.
57411
57412 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57413
57414         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57415
57416 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57417
57418         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57419
57420 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         * doc/getdate.texi (General date syntax): Don't say that date
57423         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57424         Problem reported by Nic Ferrier.
57425
57426 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57427
57428         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57429         specified in ai_socktype. Fix invalid ai_protocol
57430         check. ai_protocol is usually set to 0 or depending on
57431         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57432         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57433         ai_socktype / ai_protocol in the returned addrinfo structure.
57434
57435 2005-05-10  Simon Josefsson  <jas@extundo.com>
57436
57437         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57438         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57439
57440 2005-05-10  Karl Berry  <karl@gnu.org>
57441
57442         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57443         (from http://www.gnu.org/licenses).
57444         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57445         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57446         fdl.texi suffices.
57447
57448 2005-05-10  Karl Berry  <karl@gnu.org>
57449
57450         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57451         (COPYING.DOC): remove.
57452
57453         * config/srclist-update: new FSF address.
57454
57455 2005-05-10  Derek Price  <derek@ximbiot.com>
57456
57457         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57458         possible.
57459
57460 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57461             Bruno Haible  <bruno@clisp.org>
57462
57463         * modules/inet_ntop: New file.
57464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57465         inet_ntop.
57466
57467 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57468             Bruno Haible  <bruno@clisp.org>
57469
57470         * m4/inet_ntop.m4: New file.
57471
57472 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57473             Bruno Haible  <bruno@clisp.org>
57474
57475         * lib/inet_ntop.h: New file.
57476         * lib/inet_ntop.c: New file, from glibc with modifications.
57477
57478 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * modules/time_r (License): Change to LGPL.
57481         * modules/extensions (License): Change to LGPL.  Actually,
57482         the license is more permissive than that, but currently gnulib-tool
57483         doesn't know how to handle more-permissive licenses.
57484
57485         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57486         Problem reported by Dave Love.
57487
57488 2005-05-08  Jim Meyering  <jim@meyering.net>
57489
57490         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57491         blank.
57492
57493 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         * modules/argmatch (Depends-on): Add stdbool.
57496         * modules/backupfile (Depends-on): Likewise.
57497         * modules/chdir-long (Depends-on): Likewise.
57498         * modules/closeout (Depends-on): Likewise.
57499         * modules/cycle-check (Depends-on): Likewise.
57500         * modules/dirname (Depends-on): Likewise.
57501         * modules/fnmatch (Depends-on): Likewise.
57502         * modules/fsusage (Depends-on): Likewise.
57503         * modules/fwriteerror (Depends-on): Likewise.
57504         * modules/getcwd (Depends-on): Likewise.
57505         * modules/getloadavg (Depends-on): Likewise.
57506         * modules/hard-locale (Depends-on): Likewise.
57507         * modules/makepath (Depends-on): Likewise.
57508         * modules/mountlist (Depends-on): Likewise.
57509         * modules/nanosleep (Depends-on): Likewise.
57510         * modules/posixtm (Depends-on): Likewise.
57511         * modules/quotearg (Depends-on): Likewise.
57512         * modules/readtokens (Depends-on): Likewise.
57513         * modules/readtokens0 (Depends-on): Likewise.
57514         * modules/readutmp (Depends-on): Likewise.
57515         * modules/save-cwd (Depends-on): Likewise.
57516         * modules/strftime (Depends-on): Likewise.
57517         * modules/userspec (Depends-on): Likewise.
57518         * modules/utimecmp (Depends-on): Likewise.
57519         * modules/xgetcwd (Depends-on): Likewise.
57520         * modules/xnanosleep (Depends-on): Likewise.
57521         * modules/xstrtod (Depends-on): Likewise.
57522         * modules/yesno (Depends-on): Likewise.
57523
57524 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57525
57526         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57527         needless checks.
57528
57529 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         Merge from coreutils.  Among other things,
57532         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57533         * lib/fd-safer.c: New file.
57534         * lib/fcntl-safer.h, open-safer.c: Remove.
57535         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57536         * lib/dup-safer.c: Include unistd-safer.h first.
57537         Don't include errno.h.
57538         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57539         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57540         * lib/file-type.c: Rely on file-type.h change.
57541         * lib/getloadavg.c: Include unistd-safer.h.
57542         (getloadavg): Use safer open.
57543         * lib/getusershell.c: Include "stdio-safer.h".
57544         (getusershell): Use safer fopen.
57545         * lib/long-options.c (long_options): Use NULL rather than 0.
57546         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57547         'free'.
57548         * lib/modechange.c: Likewise.
57549         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57550         (MODE_DONE): New constant.
57551         (struct mode_change): Remove 'next' member.
57552         (make_node_op_equals): New function; like the old one of the
57553         same name, except it allocates an array.
57554         (mode_compile, mode_create_from_ref): Use it.
57555         (mode_compile): Allocate result as an array, not a linked list.
57556         Parse octal string ourself, so that we catch mistakes like "+0".
57557         (mode_adjust): Arg is an array, not a linked list.
57558         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57559         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57560         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57561         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57562         Remove.  This is now stat-macros.h's job.
57563         (talloc): Remove.  All callers replaced by xalloc, so that
57564         our invokers don't have to worry about reporting memory failures.
57565         (make_node_op_equals): Remove.
57566         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57567         New constants.
57568         (struct mode_change): Moved here from modechange.h.
57569         (mode_append_entry): Remove.
57570         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57571         apps to have incorrect behavior.  Use simpler algorithm for head
57572         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57573         Detect more invalid usages rather than having somewhat-random behavior.
57574         Don't insert an "a=" action, as that leads to incorrect behavior.
57575         (mode_compile, mode_create_from_ref): Return NULL on error instead
57576         of an enum, since now there's only one way to have an error.  All
57577         callers changed.
57578         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57579         at the correct time.  Simplify calculation of "+u" and its ilk.
57580         Don't mishandle "+X".
57581         (mode_free): Remove "register" and localize decls.
57582         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57583         (struct mode_change): Move to modechange.c; callers don't
57584         need to see this stuff.
57585         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57586         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57587         (mode_change, mode_adjust): Reflect the new signatures noted above.
57588         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57589         that might redefine system include files.
57590         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57591         (my_usleep): Use NULL rather than (void *) 0.
57592         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57593         Use siginterrupt to specify that system calls should be interrupted.
57594         (rpl_nanosleep): Move initialization of suspended closer to call of
57595         my_usleep.
57596         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57597         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57598         (desirable_utmp_entry): New function.
57599         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57600         using x2nrealloc, to simplify logic.
57601         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57602         size calculation.  Do not assume utmp file is a regular file.
57603         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57604         (READ_UTMP_CHECK_PIDS): New constant.
57605         * lib/save-cwd.c: Include unistd-safer.h.
57606         (save_cwd): Use fd_safer.
57607         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57608         [!_LIBC] Include "stat-macros.h" instead.
57609         * lib/unistd-safer.h (fd_safer): New decl.
57610
57611 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * modules/getloadavg (Depends-on): Add unistd-safer.
57614         * modules/getusershell (Depends-on): Add stdio-safer.
57615         * modules/lstat (Depends-on): Remove xalloc.
57616         * modules/mkstemp (Depends-on): Add stat-macros.
57617         * modules/modechange (Depends-on): Remove xstrtol.
57618         Add stat-macros, xalloc.
57619         * modules/save-cwd (Depends-on): Add unistd-safer.
57620         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57621         * modules/unistd-safer (Files): Add lib/fd-safer.c
57622         (Makefile.am): Remove lib_SOURCES.
57623
57624         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57625         Remove fcntl-safer; unistd-safer supersedes it.
57626
57627 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57628
57629         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57630         AC_HEADER_STAT.
57631         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57632         (gl_PREREQ_CHOWN): Remove.
57633         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57634         it.  Don't require AC_HEADER_STAT.
57635         (gl_PREREQ_LSTAT): Remove.
57636         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57637         Don't require AC_HEADER_STAT.
57638         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57639         (gl_PREREQ_RMDIR): Remove.
57640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57641         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57642         the stat-macros module a prerequisite.
57643         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57644         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57645         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57646         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57647         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57648         variable names.
57649         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57650         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57651         variable prefixes.
57652         * m4/fcntl-safer.m4: Remove.
57653         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57654         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57655         Invoke gl_PREREQ_FD_SAFER.
57656         (gl_PREREQ_FD_SAFER): New macro.
57657         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57658         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57659         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57660         Remove duplicate call to AC_LIBOBJ(readutmp).
57661         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57662
57663         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57664         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57665
57666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         * MODULES.html.sh (Misc): Add byteswap.
57669
57670 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57671
57672         * modules/getcwd (Depends-on): Add extensions.
57673         * modules/openat (Depends-on): Likewise.
57674
57675 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57676
57677         * modules/byteswap: New file.
57678
57679 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57680
57681         * m4/byteswap.m4: New file.
57682
57683 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57684
57685         * lib/byteswap_.h: New file.
57686
57687 2005-04-25  Karl Berry  <karl@gnu.org>
57688
57689         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57690
57691 2005-04-25  Albert Chin  <china@thewrittenword.com>
57692
57693         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57694         Toolkit C bug.
57695
57696 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57697
57698         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57699         (func_ln_if_changed) Remove forcibly for no error message
57700         in case file does not exist.
57701
57702 2005-04-19  Simon Josefsson  <jas@extundo.com>
57703
57704         * gnulib-tool (Options): Make --symlink mean --symbolic.
57705
57706 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57707
57708         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57709
57710 2005-04-16  Simon Josefsson  <jas@extundo.com>
57711
57712         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57713
57714 2005-04-15  Simon Josefsson  <jas@extundo.com>
57715
57716         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57717
57718 2005-04-15  Simon Josefsson  <jas@extundo.com>
57719
57720         * gnulib-tool: Rename --symlink to --symbolic.
57721
57722 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57723
57724         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57725         symbolic links to files instead of copying/moving.  Add --aux-dir,
57726         specifying directory relative --dir where auxiliary build tools
57727         are placed.
57728
57729 2005-04-14  Bruno Haible  <bruno@clisp.org>
57730
57731         * modules/allocsa (License): Change to LGPL.
57732         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57733
57734 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57735
57736         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57737         that "UTC +1 second" continues to work.  Problem reported
57738         by Dmitry V. Levin.
57739         (relunit_snumber): New rule.
57740         (relunit): Use it.
57741
57742 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57743
57744         * lib/getdate.y (universal_time_zone_table): New constant.
57745         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57746         universal_time_zone_table.
57747         (lookup_zone): Prefer universal_time_zone_table to
57748         local_time_zone_table, so that "GMT" time stamps are allowed in
57749         London during the summer.  Problem reported by Ian Abbott.
57750
57751 2005-04-12  Jim Meyering  <jim@meyering.net>
57752
57753         * lib/human.c (humblock): Set *options even when returning due to
57754         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57755         warning from gcc-4.
57756
57757 2005-04-09  Jim Meyering  <jim@meyering.net>
57758
57759         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57760         -Wuninitialized: initialize tm0.tm_year.
57761
57762 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57765         count, since there's no maximum.  All uses changed.
57766         Add member dsts_seen.
57767         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57768         not being INT_MAX.
57769         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57770         Use pc_rels_seen to decide whther a date is absolute.
57771
57772         * lib/getdate.y (number): Don't overwrite year.
57773         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57774         check.
57775
57776 2005-04-02  Simon Josefsson  <jas@extundo.com>
57777
57778         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57779         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57780
57781 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57782
57783         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57784         where no absolute path name can be longer than PATH_MAX.
57785
57786 2005-03-27  Jim Meyering  <jim@meyering.net>
57787
57788         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57789
57790 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57793         "one's complement" -> "ones' complement" in comment, as per Knuth.
57794         "value of type" -> "type or expression" in comment.
57795         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57796
57797 2005-03-26  Jim Meyering  <jim@meyering.net>
57798
57799         Comment nits.
57800         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57801         Correct typos: s/or/of/.
57802
57803 2005-03-26  Jim Meyering  <jim@meyering.net>
57804
57805         * modules/check-include-files: Move to ../ and rename to...
57806         * check-module: ...this.
57807
57808 2005-03-25  Jim Meyering  <jim@meyering.net>
57809
57810         * modules/xvasprintf (Files): Add xalloc.h.
57811
57812 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         * modules/gettext (Files): config/config.rpath ->
57815         build-aux/config.rpath
57816         * modules/iconv (Files): Likewise.
57817         Problem reported by Oskar Liljeblad.
57818
57819 2005-03-23  Jim Meyering  <jim@meyering.net>
57820
57821         * modules/check-include-files: New script to check for
57822         missing dependencies, multiple includes, etc.
57823
57824         * modules/c-strtold (Depends-on): Add xalloc.
57825         * modules/c-strtod (Depends-on): Add xalloc.
57826         * modules/hash (Depends-on): Add xalloc.
57827         (Files): Remove lib/xalloc.h.
57828
57829         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57830         * modules/userspec (Files): Add lib/inttostr.h.
57831
57832 2005-03-23  Jim Meyering  <jim@meyering.net>
57833
57834         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57835
57836 2005-03-22  Jim Meyering  <jim@meyering.net>
57837
57838         * modules/stat-macros: New module.
57839         * modules/canonicalize, modules/euidaccess, modules/file-type,
57840         * modules/filemode, modules/lchown, modules/makepath,
57841         * modules/rmdir, modules/stat: Depend on new stat-macros module
57842         rather than listing lib/stat-macros.h manually.
57843         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57844
57845 2005-03-22  Jim Meyering  <jim@meyering.net>
57846
57847         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
57848
57849 2005-03-22  Bruno Haible  <bruno@clisp.org>
57850
57851         * config/srclist.txt: Replace target directory 'config' with
57852         'build-aux'.
57853         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
57854         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
57855         ../build-aux/.
57856
57857 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         * modules/chdir-long (Depends-on): Add mempcpy.
57860
57861         * modules/acl, modules/backupfile, modules/c-strtod,
57862         modules/c-strtold, modules/canon-host, modules/canonicalize,
57863         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
57864         modules/exclude, modules/exitfail, modules/file-type,
57865         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
57866         modules/getdate, modules/getline, modules/getpagesize,
57867         modules/getpass, modules/getugroups, modules/group-member,
57868         modules/hard-locale, modules/hash, modules/human, modules/idcache,
57869         modules/inttostr, modules/long-options, modules/makepath,
57870         modules/md5, modules/memcasecmp, modules/memcoll,
57871         modules/modechange, modules/mountlist, modules/path-concat,
57872         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
57873         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
57874         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
57875         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
57876         modules/strftime, modules/strndup, modules/strverscmp,
57877         modules/timespec, modules/unlocked-io, modules/userspec,
57878         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
57879         modules/yesno:
57880         Remove lib_SOURCES line from Makefile.am section, as this is now
57881         done automatically by the corresponding Autoconf macro.
57882
57883 2005-03-21  Jim Meyering  <jim@meyering.net>
57884
57885         Changes imported from coreutils.
57886
57887         * lib/cycle-check.c: Don't include xalloc.h.
57888
57889         * lib/path-concat.c: Don't include assert.h.
57890         (path_concat): Remove assertion that would have triggered
57891         for ABASE starting with more than one slash.
57892         Reported by Andreas Schwab.
57893
57894         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
57895         properly when ABASE is an absolute file name.
57896         Correct the description of this function.
57897         Include <assert.h>.
57898         Add an assertion and a test driver.
57899         This fixes a bug introduced on 2004-07-02.
57900         Andreas Schwab reported the resulting failure of cp --parents:
57901         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
57902
57903 2005-03-21  Jim Meyering  <jim@meyering.net>
57904
57905         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
57906         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
57907
57908 2005-03-21  Jim Meyering  <jim@meyering.net>
57909         and  Paul Eggert  <eggert@cs.ucla.edu>
57910
57911         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
57912         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
57913         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
57914         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
57915         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
57916         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
57917         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
57918         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
57919         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
57920         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
57921         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
57922         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
57923         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
57924         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
57925         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
57926         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
57927         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
57928         for these modules.
57929
57930 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
57933         (which shouldn't happen), generate nothing instead of returning 0
57934         immediately, so that nstrftime (NULL, ...) doesn't return 0.
57935
57936 2005-03-16  Bruno Haible  <bruno@clisp.org>
57937
57938         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
57939         HAVE_LONGLONG_64BIT.
57940
57941 2005-03-16  Bruno Haible  <bruno@clisp.org>
57942
57943         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
57944         HAVE_LONGLONG_64BIT.
57945
57946 2005-03-16  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
57949         HAVE_LONGLONG_64BIT.
57950
57951 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57952
57953         * lib/strftime.c (my_strftime): Prepend space to format so that we can
57954         reliably distinguish strftime failure from empty output on POSIX
57955         hosts.
57956
57957 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
57960         (iconv_string): Don't guess a size-zero buffer, as that might cause
57961         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
57962         result would be 'too large', where 'too large' is (heuristically)
57963         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
57964         overflow concerns.  This will prevent some unwanted malloc failures
57965         when the inputs are very large.
57966
57967 2005-03-15  Karl Berry  <karl@gnu.org>
57968
57969         * config/srclist.txt (config.rpath): from gettext.
57970         * config/config.rpath: update.
57971
57972 2005-03-15  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
57975         to 'negate'.
57976
57977         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
57978         variable.
57979
57980         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
57981         results.
57982
57983 2005-03-14  Simon Josefsson  <jas@extundo.com>
57984
57985         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
57986         <fx@gnu.org>.
57987
57988 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
57991         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
57992         intprops.h.
57993         * lib/strtol.c: Likewise.
57994
57995 2005-03-14  Jim Meyering  <jim@meyering.net>
57996
57997         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
57998         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
57999         to be nonzero so that we (and caller) can detect the difference
58000         between a valid zero-length expansion and an error return, even
58001         when the underlying strftime fails before writing anything into
58002         that location.
58003
58004 2005-03-14  Bruno Haible  <bruno@clisp.org>
58005
58006         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58007         Update from GNU gettext 0.14.3.
58008
58009 2005-03-10  Jim Meyering  <jim@meyering.net>
58010
58011         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58012
58013 2005-03-10  Jim Meyering  <jim@meyering.net>
58014
58015         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58016         so that this module works on systems without fchdir.
58017
58018 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         Factor int-properties macros into a single file, except for
58021         glibc-related files.
58022         * lib/intprops.h: New file.
58023         * lib/getloadavg.c: Include it instead of limits.h.
58024         (INT_STRLEN_BOUND): Remove.
58025         * lib/human.c: Include intprops.h.
58026         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58027         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58028         302/1000.
58029         * lib/inttostr.h: Include intprops.h instead of limits.h.
58030         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58031         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58032         for consistency with intprops.h.
58033         (time_t_is_integer, twos_complement_arithmetic): Use them.
58034         * lib/sig2str.h: Include <signal.h>, intprops.h.
58035         (INT_STRLEN_BOUND): Remove.
58036         * lib/strftime.c (TYPE_SIGNED): Remove.
58037         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58038         * lib/strtol.c: Adjust comments to match intprops.h.
58039         * lib/userspec.c: Include intprops.h.
58040         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58041         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58042         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58043         instead of rolling our own expressions.
58044         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58045
58046         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58047         instead of int.
58048         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58049         the right thing even if adding 1900 would overflow.  Similarly
58050         for tm_mon + 1 and tm_yday + 1.
58051         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58052         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58053         (DO_SIGNED_NUMBER): New macro.
58054         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58055
58056 2005-03-07  Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58059
58060 2005-03-07  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58063
58064 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58065
58066         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58067         (func_import): Only replace files via --import when they have actually
58068         changed.
58069
58070 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58071
58072         * m4/mmap-anon.m4: New file.
58073         * m4/pagealign_alloc.m4: New file.
58074
58075 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58076             Bruno Haible  <bruno@clisp.org>
58077
58078         * modules/pagealign_alloc: New file.
58079         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58080
58081 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58082             Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/pagealign_alloc.h: New file.
58085         * lib/pagealign_alloc.c: New file.
58086
58087 2005-03-03  Bruno Haible  <bruno@clisp.org>
58088
58089         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58090         Use an all-permissive copyright notice, recommended by RMS.
58091
58092 2005-03-02  Bruno Haible  <bruno@clisp.org>
58093
58094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58095         of AIX, the replacement has to be done only after <string.h> is
58096         included, therefore not in config.h. stpncpy.h does the replacement,
58097         and stpncpy.c uses it.
58098
58099 2005-03-02  Bruno Haible  <bruno@clisp.org>
58100
58101         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58102         stpncpy.c uses it.
58103
58104 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58105
58106         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58107         The workaround isn't strictly needed for POSIX conformance, and
58108         it's too much of a pain to configure and maintain.  We'll ask
58109         people to fix their kernels instead.
58110         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58111         (NANOSLEEP_BUG_WORKAROUND): Remove.
58112         (xnanosleep): Remove the workaround.
58113
58114 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58115
58116         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58117         Reported by Derek Price.
58118         (Include): Add "timespec.h".
58119
58120         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58121
58122 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58125         to detect nanosleep bug.
58126
58127 2005-03-01  Bruno Haible  <bruno@clisp.org>
58128
58129         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58130
58131 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58132
58133         * modules/gethrxtime: New file.
58134         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58135         (Depends-on): Add gethrxtime.
58136         (configure.ac): Add gl_XNANOSLEEP.
58137         (Makefile.am): Remove lib_SOURCES line.
58138
58139 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58142         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58143
58144 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58147         * lib/timespec.h (gettime): Return void, since it always
58148         succeeds now.  All uses changed.
58149         * lib/gettime.c (gettime) Likewise.
58150         [HAVE_NANOTIME]: Prefer nanotime.
58151         Assume gettimeofday succeeds, as POSIX requires.
58152         Assime time () succeeds, since other code already does.
58153         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58154         (timespec_subtract): Remove.
58155         (NANOSLEEP_BUG_WORKAROUND): New constant.
58156         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58157         things considerably.  Use it only on GNU/Linux hosts, since the
58158         workaround shouldn't be needed elsewhere.
58159
58160 2005-02-24  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/gettext (Files): Add m4/glibc2.m4.
58163
58164 2005-02-24  Bruno Haible  <bruno@clisp.org>
58165
58166         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58167         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58168         * m4/progtest.m4:
58169         Update from GNU gettext 0.14.2.
58170         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58171
58172 2005-02-24  Bruno Haible  <bruno@clisp.org>
58173
58174         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58175         * lib/config.charset: Update from GNU gettext 0.14.2.
58176
58177 2005-02-24  Bruno Haible  <bruno@clisp.org>
58178
58179         * lib/gettext.h: Update from GNU gettext 0.14.2.
58180
58181 2005-02-23  Simon Josefsson  <jas@extundo.com>
58182
58183         * m4/iconvme.m4: New file.
58184
58185 2005-02-23  Jim Meyering  <jim@meyering.net>
58186
58187         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58188         change.
58189         Thanks to Bruno Haible for catching it.
58190
58191 2005-02-22  Simon Josefsson  <jas@extundo.com>
58192
58193         * modules/iconvme: New file.
58194
58195         * MODULES.html.sh: Add iconvme.
58196
58197 2005-02-22  Simon Josefsson  <jas@extundo.com>
58198
58199         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58200
58201 2005-02-22  Simon Josefsson  <jas@extundo.com>
58202
58203         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58204
58205 2005-02-22  Jim Meyering  <jim@meyering.net>
58206
58207         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58208         s/ifndef/ifdef/.
58209
58210 2005-02-20  Neil Conway  <neilc@samurai.com>
58211
58212         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58213         returned by OSX/Darwin if the specified buffer is not large
58214         enough for the hostname.
58215
58216 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58217
58218         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58219         pass it to _help, otherwise the latter coredumps trying to
58220         dereference state.root_argp.
58221
58222 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         * modules/chdir-long (Depends-on): Add memrchr.
58225         * modules/memrchr (Files): Add lib/memrchr.h.
58226         (Include): "memrchr.h".
58227
58228 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58229
58230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58231
58232 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58233
58234         * lib/memrchr.h: New file.
58235         * lib/chdir-long.c: Include it.
58236         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58237         Don't bother including stddef.h.
58238
58239 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58242         inclusion.
58243         Include <sys/types.h>, for dev_t.
58244         (ME_DUMMY, ME_REMOTE): Move from here....
58245         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58246         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58247         Dmitry V. Levin.
58248         Include mountlist.h first, to test the interface.
58249
58250 2005-01-29  Bruno Haible  <bruno@clisp.org>
58251
58252         * lib/progname.c (program_name): Initialize.
58253         Needed when linking statically on MacOS X.
58254
58255 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         Sync from coreutils.
58258         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58259         (Depends-on): Add c-strtod.
58260         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58261
58262 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58263
58264         Sync from coreutils.
58265         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58266
58267         Remove files that are specific to coreutils.
58268         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58269
58270 2005-01-28  Bruno Haible  <bruno@clisp.org>
58271
58272         * modules/javacomp: New file.
58273         * MODULES.html.sh (Java): Add javacomp.
58274
58275 2005-01-28  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/javacomp.m4: New file, from GNU gettext.
58278
58279 2005-01-28  Bruno Haible  <bruno@clisp.org>
58280
58281         * lib/javacomp.sh.in: New file, from GNU gettext.
58282         * lib/javacomp.h: New file, from GNU gettext.
58283         * lib/javacomp.c: New file, from GNU gettext.
58284
58285 2005-01-26  Simon Josefsson  <jas@extundo.com>
58286
58287         * lib/gai_strerror.c: Use GPL in header.
58288
58289 2005-01-26  Bruno Haible  <bruno@clisp.org>
58290
58291         * modules/javaexec: New file.
58292         * MODULES.html.sh (Java): Add javaexec.
58293
58294 2005-01-26  Bruno Haible  <bruno@clisp.org>
58295
58296         * m4/javaexec.m4: New file, from GNU gettext.
58297
58298 2005-01-26  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/javaexec.sh.in: New file, from GNU gettext.
58301         * lib/javaexec.h: New file, from GNU gettext.
58302         * lib/javaexec.c: New file, from GNU gettext.
58303
58304 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58305
58306         * modules/lchown (Depends-on): Remove lchown.h
58307
58308 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58309
58310         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58311         must be defined if the header file was not found, in order
58312         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58313
58314 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58315
58316         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58317         initializers for struct pentry_state.
58318         (__argp_error): Check return value of __asprintf
58319         (__argp_failure): Translate error message
58320
58321         * lib/argp-parse.c: Removed braces around the expansion of N_()
58322
58323 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58326         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58327         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58328         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58329         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58330         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58331         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58332         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58333         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58334         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58335         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58336         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58337         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58338         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58339         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58340         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58341         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58342         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58343         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58344         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58345         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58346         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58347         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58348         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58349         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58350         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58351         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58352         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58353         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58354         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58355         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58356         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58357         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58358         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58359         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58360         Use an all-permissive copyright notice, recommended by RMS.
58361
58362 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58363
58364         * modules/chdir-long (Depends-on): Remove mempcpy.
58365
58366 2005-01-21  Jim Meyering  <jim@meyering.net>
58367
58368         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58369         same value as for Solaris 9.
58370
58371         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58372         component length.  This included changing the parameter to be
58373         of type `char *' rather than `char const *'.
58374         * lib/chdir-long.h (chdir_long): Update prototype.
58375
58376         * lib/openat.c (fdopendir, fstatat): New functions.
58377         * lib/openat.h: Include headers required for use of DIR and struct
58378         stat.
58379         [AT_SYMLINK_NOFOLLOW]: Define.
58380         (fdopendir, fstatat): Add prototypes.
58381
58382 2005-01-21  Bruno Haible  <bruno@clisp.org>
58383
58384         * modules/classpath: New file.
58385         * MODULES.html.sh (Java): Add classpath.
58386
58387 2005-01-21  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/classpath.h: New file, from GNU gettext.
58390         * lib/classpath.c: New file, from GNU gettext.
58391
58392 2005-01-20  Simon Josefsson  <jas@extundo.com>
58393
58394         * modules/version-etc-fsf: New file.
58395
58396 2005-01-20  Simon Josefsson  <jas@extundo.com>
58397
58398         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58399         * lib/version-etc.c: Remove version_etc_copyright.
58400         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58401         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58402
58403 2005-01-20  Simon Josefsson  <jas@extundo.com>
58404
58405         * lib/base64.h (isbase64): Add.
58406
58407         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58408         using a unsigned prototype, don't inline.
58409         (base64_decode): Use it.
58410
58411 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58414         it.
58415
58416 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58417
58418         * lib/save-cwd.c (save_cwd): Remove code to support the case
58419         where fchdir is missing or flaky.
58420
58421 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58424
58425 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58428         AC_LIBSOURCES now does this.
58429         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58430         with new ullong_max module.
58431
58432 2005-01-19  Bruno Haible  <bruno@clisp.org>
58433
58434         * modules/sh-quote: New file.
58435         * MODULES.html.sh (Executing programs): Add sh-quote.
58436
58437 2005-01-19  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/sh-quote.h: New file, from GNU gettext.
58440         * lib/sh-quote.c: New file, from GNU gettext.
58441
58442 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         Merge from coreutils.
58445         * m4/ullong_max.m4: New file.
58446         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58447         (gl_MACROS): Assume localeconv exists.
58448
58449 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         Merge changes from coreutils, as described below in several
58452         changelogs dated today.
58453
58454         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58455         (O_DIRECTORY): Remove; not needed here, since "." must be
58456         a directory.  All uses removed.
58457         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58458         universal on Suns, and we also need to test for IRIX.
58459         Revamp code to use 'if' rather than '#if'.
58460         Avoid unnecessary comparison of cwd->desc to 0.
58461
58462         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58463         for known valid error numbers rather than observed invalid ones.
58464
58465 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * modules/ullong_max: New file.
58468
58469         * modules/chdir-long, modules/openat: New files.
58470         * modules/save-cwd (Depends-on): Depend on chdir-long.
58471         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58472
58473 2005-01-18  Jim Meyering  <jim@meyering.net>
58474
58475         Merge from coreutils.
58476         * m4/chdir-long.m4, m4/openat.m4: New files.
58477         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58478         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58479         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58480         is sane and DOES follow symlinks.  Besides, testing 20 different
58481         systems found no broken chown implementations.
58482         Prompted by a change in rsync's copy of this macro.
58483         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58484
58485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58486
58487         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58488         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58489         NULL-means-set-to-current-time semantics.
58490         Remove temporary file immediately, rather than waiting
58491         for configure's at-exit trap code to do it.
58492
58493 2005-01-18  Jim Meyering  <jim@meyering.net>
58494
58495         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58496
58497         * lib/utimens.c (futimens): Account for the fact that futimes
58498         can also fail with errno == ENOSYS or errno == ENOENT.
58499         Patch from Dmitry V. Levin.
58500
58501         Change the name of the robust chdir function from chdir to chdir_long.
58502         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58503         (restore_cwd): Use chdir_long, not chdir.
58504         * lib/chdir-long.c: Renamed from chdir.c.
58505         * lib/chdir-long.h: Renamed from chdir.h.
58506         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58507         Hurd.
58508
58509 2005-01-18  Bruno Haible  <bruno@clisp.org>
58510
58511         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58512         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58513         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58514         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58515         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58516         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58517         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58518         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58519         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58520         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58521         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58522         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58523         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58524         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58525         Use an all-permissive copyright notice, recommended by RMS.
58526
58527 2005-01-18  Bob Proulx  <bob@proulx.com>
58528
58529         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58530         simplify offsetof() macro construct to avoid compile failure with
58531         native HP-UX 11.0 ANSI C compiler.
58532
58533 2005-01-17  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58536         redundant because stpncpy.m4 takes care of it.
58537
58538 2005-01-17  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58541
58542 2005-01-17  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58545         used.
58546
58547 2005-01-17  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/fwriteerror.h (fwriteerror): Change specification to include
58550         fclose.
58551         * lib/fwriteerror.c: Include <stdbool.h>.
58552         (fwriteerror): At the end, close the file stream. Record whether
58553         stdout was already closed.
58554
58555 2005-01-17  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/execute.c (environ): Declare if needed.
58558         * lib/pipe.c (environ): Likewise.
58559         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58560
58561 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58562
58563         * modules/argp: Depend on vsnprintf
58564
58565 2005-01-10  Jim Meyering  <jim@meyering.net>
58566
58567         * modules/closeout (Depends-on): Add atexit.
58568
58569 2005-01-06  Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58572
58573 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58576         definitions to be after all include files, to avoid collisions.
58577         Problem reported by Bob Proulx.
58578
58579 2005-01-04  Jim Meyering  <jim@meyering.net>
58580
58581         Changes imported from coreutils.
58582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58583         as the mkstemp template, use a temporary directory and an
58584         8.3-friendly template to avoid trouble on systems like DJGPP.
58585         Reported by Juan M. Guerrero via Stepan Kasal.
58586         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58587         close. Remove the temporary directory right away, rather than waiting
58588         for configure's at-exit trap code to do it.
58589         Suggestion from Stepan Kasal.
58590
58591 2005-01-01  Simon Josefsson  <jas@extundo.com>
58592
58593         * gnulib-tool: Print #include directives when --import'ing.
58594
58595 2004-12-28  Simon Josefsson  <jas@extundo.com>
58596
58597         * tests/test-base64.c: Include required header files.  Remove
58598         unused variables.
58599
58600 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * modules/error (Depends-on): Remove gettext.
58603
58604 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58607         not needed.  This removes a dependency on the gettext module.
58608         [defined _LIBC]: Do not include <libintl.h>; not needed.
58609
58610 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58613         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58614
58615 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58618         HAVE_DECL_STRTOLD.
58619
58620 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * modules/getdate (Depends-on): Remove alloca-opt.
58623
58624 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58627
58628 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * lib/argp-parse.c: Include <stddef.h>.
58631         (alignof, alignto): New macros.
58632         (parser_init): Don't assume that void * is aligned sufficiently
58633         for struct option.
58634
58635         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58636         need to extend the stack.
58637         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58638         large.
58639
58640 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58641
58642         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58643
58644 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58647         (2004-10-24) change.  Apparently this was a false alarm.
58648
58649         * modules/getdate: Depend on alloca-opt, not alloca.
58650
58651 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58654         Remove now-obsolete comment about AIX.
58655         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58656         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58657         (YYMAXDEPTH): New macro.
58658
58659 2004-12-18  Simon Josefsson  <jas@extundo.com>
58660
58661         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58662
58663 2004-12-18  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58666
58667 2004-12-18  Bruno Haible  <bruno@clisp.org>
58668
58669         * lib/fatal-signal.c (fatal_signals): Make non-const.
58670         (init_fatal_signals): New function.
58671         (uninstall_handlers, install_handlers): Ignore signals that were set to
58672         SIG_IGN.
58673         (at_fatal_signal): Call init_fatal_signals.
58674         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58675         SIG_IGN.
58676         Reported by Paul Eggert.
58677
58678 2004-12-18  Bruno Haible  <bruno@clisp.org>
58679
58680         * doc/alloca.texi: New file.
58681         * doc/alloca-opt.texi: New file.
58682
58683 2004-12-17  Jim Meyering  <jim@meyering.net>
58684
58685         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58686         Otherwise, install-sh could exit with improper exit status when
58687         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58688
58689 2004-12-16  Simon Josefsson  <jas@extundo.com>
58690
58691         * tests/test-base64.c: Add license.
58692
58693 2004-12-15  Stepan Kasal  <address@hidden>
58694
58695         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58696
58697 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58698
58699         * modules/getcwd (Files): Add m4/d-ino.m4.
58700         Suggested by Mark D. Baushke.
58701
58702 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * lib/getdate.y (textint): New member "negative".
58705         (time_zone_hhmm): New function.
58706         Expect 14 shift-reduce conflicts, not 13.
58707         (o_colon_minutes): New rule.
58708         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58709         (yylex): Set the "negative" member of signed numbers.
58710
58711 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * doc/getdate.texi (Time of day items, Time zone items):
58714         Describe new formats +00:00, UTC+00:00.
58715
58716 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58719         spurious "-l"s.  Problem reported by Stepan Kasal.
58720
58721 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58722
58723         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58724         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58725
58726 2004-12-04  Simon Josefsson  <jas@extundo.com>
58727
58728         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58729         Vandoorselaere <yoann@prelude-ids.org>.
58730
58731 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         Changes imported from coreutils.
58734         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58735         exist.
58736         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58737
58738 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         Changes imported from coreutils.
58741         * lib/hard-locale.c: Assume <locale.h> exists.
58742         Include "strdup.h".
58743         (GLIBC_VERSION): New macro.
58744         (hard_locale): Assume setlocale exists.
58745         Rewrite to avoid #ifdef.
58746         Use strdup rather than malloc + strcpy.
58747         * lib/human.c: Assume <locale.h> exists.
58748         (human_readable): Assume localeconv exists.
58749
58750 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * modules/hard-locale (Depends-on): Add strdup.
58753
58754 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58755
58756         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58757         convert T2, not T.  (Imported from libc.)
58758
58759 2004-11-30  Simon Josefsson  <jas@extundo.com>
58760
58761         * modules/restrict (License): Change to LGPL.
58762
58763 2004-11-30  Simon Josefsson  <jas@extundo.com>
58764
58765         * m4/restrict.m4: Add copyright and copying conditions.
58766
58767 2004-11-30  Simon Josefsson  <jas@extundo.com>
58768
58769         * m4/base64.m4: New file.
58770
58771 2004-11-30  Simon Josefsson  <jas@extundo.com>
58772
58773         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58774         base64.
58775
58776         * tests/test-base64.c: New file.
58777
58778         * modules/base64: New file.
58779
58780 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58783         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58784
58785         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58786
58787 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58790         (__getcwd.c): Don't restore errno; glibc doesn't.
58791         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58792         first, falling back to our code only if its results look suspicious.
58793         Ensure that the resulting buffer is only as large as necessary.
58794
58795         * lib/readutmp.c: Include readutmp.h first.
58796         Include <errno.h>, since readutmp.h no longer does that.
58797         * lib/readutmp.h: Don't include <errno.h>,
58798         <sys/param.h>, <time.h>; not needed to establish interface.
58799         (errno): Remove decl.
58800         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58801         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58802         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58803
58804 2004-11-28  Simon Josefsson  <jas@extundo.com>
58805
58806         * lib/base64.h, base64.c: New file.
58807
58808 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58809
58810         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58811
58812 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58815         (Depends-on): Remove pathmax, same.  Add mempcpy.
58816         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58817         (Makefile.am): Append getcwd.h to lib_SOURCES.
58818         (Include): Add getcwd.h.
58819         (Maintainer): Change from Jim Meyering to "all, glibc",
58820         since getdate now uses intended-for-glibc code.
58821         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58822         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58823
58824 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58827         HP's ANSI C compiler.
58828         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58829         Declaring int functions causes warnings on some modern systems and
58830         shouldn't be needed to compile on ancient ones.
58831         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58832         defined.
58833
58834         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58835         with the following changes.
58836         (__set_errno): Parenthesize properly.
58837         Include <stdbool.h>.
58838         (MIN, MAX, MATCHING_INO): New macros.
58839         (__getcwd): Define with prototype, not K&R form.
58840         Use heuristics to allocate default buffer on stack if possible.
58841         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58842         behavior, and to avoid the PATH_MAX limit when computing
58843         ../../../../...
58844         Use MATCHING_INO to compare inode number to file.
58845         Check for arithmetic overflow in size calculations.
58846         Fix bug in reallocation of dot array that caused getcwd to fail
58847         on directories nested deeper than 75.
58848         Be more careful about saving errno on error.
58849         Do not use realloc; use only free+malloc, as this is a bit
58850         more flexible and avoids a needless copy operation.
58851         Do not inspect st_dev and st_ino for symbolic links; POSIX
58852         doesn't specify the latter.
58853         Check for closedir errors.
58854         Avoid needless casts.
58855         Use "#ifdef weak_alias" around weak_alias, to be like other
58856         glibc code.
58857         The following changes to getcwd.c have effect only when used in
58858         gnulib; they have no effect inside glibc proper.
58859         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
58860         as alloca isn't used.
58861         (alloca, __alloca): Likewise.
58862         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
58863         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58864         unconditionally, as gnulib assumes C89 or better.
58865         Do not include <sys/param.h>.
58866         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
58867         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
58868         better.
58869         (NULL) [!defined NULL]: Remove; we assume C89 or better.
58870         Include <dirent.h> in a way that is compatible with modern Autoconf.
58871         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
58872         New macros, if not already defined.
58873         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
58874         Use "_LIBC", not "defined _LIBC", for consistency.
58875         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
58876         a mempcpy module.
58877         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
58878         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
58879         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
58880         credit only to Jim Meyering and adjust the copyright dates.
58881         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
58882         <stdlib.h>, <unistd.h>, "pathmax.h".
58883         Instead, include "xgetcwd.h" (first) and "getcwd.h".
58884         (INITIAL_BUFFER_SIZE): Remove.
58885         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
58886
58887 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
58890         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
58891         Use the _ONCE methods, for efficiency.
58892         Check for fcntl.h.  In test program, include <errno.h>
58893         and <fcntl.h> if available.  Remove old K&R cruft from
58894         test program.  Check for common errors in GNU/Linux,
58895         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
58896         don't do AC_LIBOBJ, as that's getcwd.m4's job.
58897         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
58898         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
58899         name accordingly.
58900         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
58901         accommodate new getcwd.c.
58902         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
58903         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
58904         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
58905         that's all we need now.
58906
58907 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58908
58909         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
58910         argp-parse.c depends on getopt internals, that means we should
58911         always use our getopt, to be on the safe side.
58912         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
58913         order not to spoil the result of an eventual previous invocation
58914         of gl_GETOPT_SUBSTITUTE.
58915
58916 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58917
58918         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
58919         redefinition warnings. To avoid them, include the defines
58920         in `#if !defined __need_getopt ... #endif'. The only place
58921         where __getopt_argv_const is used is in definitions
58922         of getopt_long and getopt_long_only below, which are as well
58923         protected by `#ifndef __need_getopt'.
58924         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
58925         __need_getopt after including <stdio.h> and <unistd.h> These
58926         headers might have defined it.
58927
58928 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58929
58930         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
58931
58932 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
58935         (futimens): New function, which uses futimes if available.
58936         (futimens, utimens): Support timespec==NULL, with same semantics
58937         as utime and utimens.
58938         * lib/utimens.h (futimens): New decl.
58939
58940 2004-11-23  Jim Meyering  <jim@meyering.net>
58941
58942         * lib/getopt_.h: Remove trailing blanks.
58943
58944 2004-11-23  Jim Meyering  <jim@meyering.net>
58945
58946         * lib/__fpending.c: Add comment.
58947
58948 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         * modules/canonicalize (Depends-on): Add xreadlink.
58951         Problem reported by James Youngman.
58952
58953 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
58956         New macros.
58957         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
58958         optopt): Use them instead of invoking ## directly; otherwise, the
58959         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
58960
58961 2004-11-19  Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/strtok_r.c: Move comments from here...
58964         * lib/strtok_r.h: ... to here.
58965
58966 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58967
58968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
58969         implementations that mishandle size_t overflow.
58970
58971 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58972
58973         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
58974         might fail.  Problem reported by Yoann Vandoorselaere.
58975         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
58976         implementations that mishandle size_t overflow.
58977
58978 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * modules/canon-host (Depends-on): Add strdup.
58981
58982 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58983
58984         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
58985
58986 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * lib/canon-host.c: Include "strdup.h".
58989         (canon_host): Use getaddrinfo if available, so that IPv6 works.
58990         Use strdup instead of malloc/strcpy to duplicate strings.
58991
58992         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
58993         (human_space_before_unit): New constant.
58994         * lib/human.c (human_readable): Support it.
58995
58996         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
58997         (xgetcwd): Set errno correctly when failing.
58998         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
58999         the failure is actually due to a PATH_MAX problem.
59000
59001         Further getopt changes to make it more likely that glibc will
59002         buy the changes back.
59003         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59004         (getopt): Use it, so to preserve glibc semantic
59005         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59006         when compiling for libc.
59007         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59008         (getopt_long, getopt_long_only): Use it.
59009
59010         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59011         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59012         (getopt): Argv is now char * const *, as per standard.
59013         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59014         not char *__getopt_argv_const *.
59015         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59016         _getopt_long_only_r): Likewise.
59017         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59018         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59019         _getopt_long_r, _getopt_long_only_r): Likewise.
59020         * lib/getopt_.h (__getopt_argv_const): Remove.
59021         (getopt): Argv is now char * const *, as per standard.
59022
59023         * lib/getdate.y (tORDINAL): New token.
59024         (day, relunit): Allow it for relative times.
59025         (relative_time_table): Use tORDINAL for ordinals.
59026
59027 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59030         Document that "second" isn't allowed as an ordinal number.
59031
59032 2004-11-16  Jim Meyering  <jim@meyering.net>
59033
59034         * modules/closeout (Depends-on): Add fpending.
59035
59036 2004-11-15  Jim Meyering  <jim@meyering.net>
59037
59038         * lib/closeout.c: Include "__fpending.h" once again.
59039         Include <stdbool.h>.
59040         (close_stdout): Don't fail just because stdout was closed initially,
59041         since some programs don't write to stdout in the normal course of
59042         operation (other than --version and --help), and we don't want this
59043         function to make e.g. `touch file >&-' fail.
59044         But do fail if it was closed and someone has tried to write to it.
59045         E.g., `printf foo >&-' must fail.
59046
59047 2004-11-13  Jim Meyering  <jim@meyering.net>
59048
59049         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59050
59051 2004-11-12  Simon Josefsson  <jas@extundo.com>
59052
59053         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59054         small doc fix is still pending.
59055
59056 2004-11-11  Simon Josefsson  <jas@extundo.com>
59057
59058         * modules/strtok_r: New file.
59059
59060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59061         strtok_r.
59062
59063 2004-11-11  Simon Josefsson  <jas@extundo.com>
59064
59065         * m4/strtok_r.m4: New file.
59066
59067         * m4/getopt.m4: Replace opterr.
59068
59069 2004-11-11  Simon Josefsson  <jas@extundo.com>
59070
59071         * lib/strtok_r.h, strtok_r.c: New file.
59072
59073 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59076         of replacing opterr, getopt, etc.  This should handle the
59077         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59078
59079 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59082         we can stop lying to compilers about the constness of argv when we
59083         are compiled outside glibc.
59084         (getopt, getopt_long, getopt_long_only): Use it.
59085         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59086         _getopt_internal, getopt): Likewise.
59087         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59088         _getopt_long_only_r): Likewise.
59089         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59090         _getopt_long_r, _getopt_long_only_r): Likewise.
59091
59092         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59093         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59094         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59095         the other external symbols.
59096         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59097         declaration, since the above renaming now works around collisions.
59098
59099 2004-11-11  Jim Meyering  <jim@meyering.net>
59100
59101         * lib/linebreak.c: Remove trailing blanks.
59102         * lib/alloca_.h: Likewise.
59103         * lib/acosl.c: Likewise.
59104         * lib/euidaccess.c: Likewise.
59105         * lib/allocsa.h: Likewise.
59106
59107 2004-11-10  Simon Josefsson  <jas@extundo.com>
59108
59109         * m4/getaddrinfo.m4: New file.
59110
59111 2004-11-10  Simon Josefsson  <jas@extundo.com>
59112
59113         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59114
59115 2004-11-10  Simon Josefsson  <jas@extundo.com>
59116
59117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59118         getaddrinfo.
59119
59120         * modules/getaddrinfo: New file.
59121
59122 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59123
59124         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59125
59126 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59127
59128         * lib/mktime.c (SHR): New macro, which is a portable
59129         substitute for >> that should work even on Crays.
59130         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59131         Problem reported by Mark D. Baushke in
59132         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59133         * lib/getdate.y (SHR): Likewise.
59134         (tm_diff): Use it.
59135         * lib/strftime.c (SHR): Likewise.
59136         (tm_diff): Use it.
59137         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59138         quote_these_too, so that right shifts are well defined.  All uses
59139         changed.
59140
59141 2004-11-10  Jim Meyering  <jim@meyering.net>
59142
59143         Ensure that no close failure goes unreported.
59144         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59145         return early when it seems there's nothing to flush.
59146         Don't include __fpending.h.
59147
59148 2004-11-10  Jim Meyering  <jim@meyering.net>
59149
59150         * modules/closeout (Depends-on): Remove fpending.
59151
59152 2004-11-10  Jim Meyering  <jim@meyering.net>
59153
59154         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59155
59156 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59159         gl_FUNC_STRFTIME.
59160         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59161         and AC_REQUIRE when possible, to avoid duplicate checks.
59162         Check for <wchar.h>.
59163
59164 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59165
59166         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59167
59168 2004-11-09  Bruno Haible  <bruno@clisp.org>
59169
59170         * m4/sockpfaf.m4: New file.
59171
59172 2004-11-05  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59175         Reported by Mark D. Baushke <mdb@cvshome.org>.
59176
59177 2004-11-04  Bruno Haible  <bruno@clisp.org>
59178
59179         2004-09-11  Bruno Haible  <bruno@clisp.org>
59180                 * allocsa.valgrind: New file.
59181         2004-02-06  Bruno Haible  <bruno@clisp.org>
59182                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59183                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59184                 Reported by Christopher Seip <chris.seip@hp.com>.
59185
59186 2004-11-04  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59189         (Makefile.am): Distribute it.
59190
59191 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59194         with errno == ERANGE if the buffer is too small.
59195         Problem reported by Mark D. Baushke.
59196
59197 2004-11-03  Albert Chin  <china@thewrittenword.com>
59198             Paul Eggert  <eggert@cs.ucla.edu>
59199
59200         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59201         equivalent, substitute $ac_type for equivalent type rather than
59202         blindly using uint32_t *always* which won't work if uint32_t is not
59203         available.  Define _UINT32_T to work around typedef of uint32_t if
59204         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59205         2.5.1.
59206
59207 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59208
59209         * m4/jm-macros.m4: Sync from coreutils.
59210         (gl_MACROS): Check for mbrlen, for pathchk.
59211         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59212
59213 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * lib/xreadlink.c (MAXSIZE): New macro.
59216         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59217         size does not exceed MAXSIZE.  Avoid cast.
59218         As suggested by Mark D. Baushke in
59219         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59220         if readlink fails with buffer size just under MAXSIZE, try again
59221         with MAXSIZE.
59222
59223 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59226
59227 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59228         and  Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59231         (get_date): Overparenthesize to avoid GCC warning.
59232
59233 2004-11-02  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59236         returns void.
59237
59238 2004-11-02  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59241         function returns void.
59242
59243 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59244
59245         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59246         fflush_unlocked, flockfile, funlockfile, funlockfile,
59247         fputs_unlocked, putc_unlocked.
59248
59249 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59250
59251         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59252         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59253         already declared.
59254
59255 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59256
59257         * modules/getdate (Files): Add doc/getdate.texi.
59258         (Depends-on): Add setenv, xalloc.
59259
59260 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59261
59262         * lib/getdate.y: Add support for TZ="foo" within a date string.
59263         Fix some bugs near time_t boundaries.  Reject dates with
59264         out-of-range components, e.g., "Sept 31".
59265         Include <stdlib.h>, "setenv.h", "xalloc.h".
59266         (ISDIGIT_LOCALE): Remove; unused.
59267         Note that the TZ and time functions used here are not reentrant.
59268         (mktime_ok, get_tz): New functions.
59269         (TZBUFSIZE): New constant.
59270         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59271         This requires that we sometimes generate our own TZ="XXX..." setting.
59272
59273 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * doc/getdate.texi: New file, from coreutils with modifications for
59276         the new TZ parsing.
59277
59278 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59279
59280         * lib/mktime.c (not_equal_tm): Remove redundant check.
59281
59282 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59283
59284         * modules/regex (lib_SOURCES): Add regex.c.
59285         Reported by James Youngman in
59286         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59287
59288 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59289
59290         * lib/getdate.y: Use Bison 1.875 features, and some minor
59291         code cleanups.  This change does not affect semantics.
59292         Don't include <stdlib.h>; no longer needed.
59293         Don't include unlocked-io.h; only the "#if TEST" code uses
59294         stdio, and performance isn't crucial there.
59295         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59296         Bison 1.875 features as described below.
59297         All uses of "PC." replaced by "pc->".
59298         (YYSTYPE): Add a forward declaration.
59299         (yylex, yyerror): Use full prototypes in forward decls.
59300         Use "%pure-parser" rather than obsolescent "%pure_parser".
59301         Use %parse-param and %lex-param instead of obsolescent
59302         YYPARSE_PARAM and YYLEX_PARAM.
59303         (meridian_table, month_and_day_table, time_units_table,
59304         relative_time_table, time_zone_table, military_table,
59305         lookup_zone, lookup_word, get_date):
59306         Use NULL instead of 0 where appropriate.
59307         (to_hour): Avoid abort (), to avoid a dependency on
59308         stdlib.h.
59309         (yyerror, yylex): Now accepts parser_control * arg.
59310         (main) [TEST]: Use '\0' rather than 0 for char.
59311
59312 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59315
59316 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59319         It's now the caller's responsibility to handle the case where
59320         !HAVE_GETPAGESIZE && !defined getpagesize.
59321
59322         * lib/mktime.c (leapyear): Arg is long int, not int.
59323
59324 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59327
59328 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59331         missing.  Problem reported by James Youngman.
59332
59333 2004-10-16  Simon Josefsson  <jas@extundo.com>
59334
59335         * gnulib-tool: Fix comments.  Fix parse problem.
59336         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59337
59338 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59341         implementation of getopt_long.  Problem reported by Alexander Taler in:
59342         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59343
59344 2004-10-15  Bruno Haible  <bruno@clisp.org>
59345
59346         * gnulib-tool: Untabify. Initialize supplied_libname.
59347         (func_usage): More homogenous output.
59348         (func_modules_transitive_closure, func_modules_to_filelist,
59349         func_emit_lib_Makefile_am): New functions.
59350         (func_import): New function, extracted from big case statement. Use
59351         func_get_license, func_modules_transitive_closure,
59352         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59353         opt_lgpl. Don't use test -a, as it's not portable.
59354         (func_create_testdir): Use func_modules_transitive_closure,
59355         func_modules_to_filelist, func_emit_lib_Makefile_am.
59356
59357 2004-10-15  Bruno Haible  <bruno@clisp.org>
59358
59359         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59360
59361 2004-10-15  Bruno Haible  <bruno@clisp.org>
59362
59363         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59364         the portions belonging to each module.
59365         Suggested by Derek Robert Price <derek@ximbiot.com>.
59366
59367 2004-10-12  Simon Josefsson  <jas@extundo.com>
59368
59369         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59370         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59371         to real functions.
59372
59373 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59374
59375         * modules/vsnprintf: New file.
59376
59377 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59378
59379         * m4/vsnprintf.m4: New file.
59380
59381 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59382
59383         * lib/vsnprintf.h: New file.
59384         * lib/vsnprintf.c: New file.
59385
59386 2004-10-11  Bruno Haible  <bruno@clisp.org>
59387
59388         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59389         vsnprintf.
59390
59391 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59392
59393         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59394
59395 2004-10-07  Bruno Haible  <bruno@clisp.org>
59396
59397         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59398         fits into the provided buffer.
59399
59400 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59401
59402         * lib/diacrit.c, diacrit.h: Add GPL notice.
59403
59404         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59405         notice.
59406         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59407         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59408         This avoids a potential constant-folding bug.
59409
59410 2004-10-05  Bruno Haible  <bruno@clisp.org>
59411
59412         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59413         for the declaration of strsep.
59414
59415 2004-10-05  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59418
59419 2004-10-04  Simon Josefsson  <jas@extundo.com>
59420
59421         * modules/memmem: New file.
59422         * tests/test-memmem.c: New file.
59423         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59424
59425 2004-10-04  Simon Josefsson  <jas@extundo.com>
59426
59427         * m4/memmem.m4: New file.
59428
59429 2004-10-04  Simon Josefsson  <jas@extundo.com>
59430
59431         * lib/memmem.h: New file.
59432         * lib/memmem.c: New file, taken from glibc.
59433
59434 2004-10-04  Simon Josefsson  <jas@extundo.com>
59435
59436         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59437         '#ifdef USE_UNLOCKED_IO'.
59438
59439 2004-10-04  Simon Josefsson  <jas@extundo.com>
59440
59441         * config/srclist.txt: Add memmem from glibc.
59442
59443 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59446
59447         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59448         modules/exclude, modules/getdate, modules/getline,
59449         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59450         modules/getusershell, modules/linebuffer, modules/md5,
59451         modules/mountlist, modules/posixtm, modules/readtokens,
59452         modules/readutmp, modules/regex, modules/sha1,
59453         modules/version-etc, modules/yesno:
59454         Remove dependency on unlocked-io.
59455
59456 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59459
59460         * m4/unlocked-io.m4: Add copyright notice.
59461         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59462
59463 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59464
59465         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59466         * lib/xmalloc.c (xmemdup): Likewise.
59467         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59468         XFREE): Remove these long-obsolescent macros.
59469         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59470         * lib/xstrdup.c: Remove.
59471
59472         * lib/regex.c (re_comp): Cast gettext return value to char *,
59473         Problem reported by Martin Neitzel via Mark D. Baushke.
59474
59475 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59476
59477         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59478         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59479         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59480         regex.c, sha1.c, version-etc.c, yesno.c:
59481         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59482         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59483         the includer's responsibility.
59484
59485         Sync from coreutils.
59486
59487         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59488         points to the start of a string, as the C Standard says the
59489         resulting behavior is undefined.
59490
59491         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59492         simple -> simple_backups, numbered_existing ->
59493         numbered_existing_backups, numbered -> numbered_backups
59494         to avoid shadowing problems.  All uses changed.
59495         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59496         * lib/backupfile.c (check_extension, numbered_backup):
59497         Rename locals to avoid shadowing 'basename'.
59498         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59499         once.
59500
59501         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59502         * lib/.cvsignore: Add getopt.h.
59503
59504 2004-10-04  Bruno Haible  <bruno@clisp.org>
59505
59506         * modules/README: New file.
59507         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59508         not a module.
59509
59510 2004-10-02  Jim Meyering  <jim@meyering.net>
59511
59512         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59513
59514 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59515
59516         * modules/strsep: New file.
59517
59518 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59519
59520         * m4/strsep.m4: New file.
59521
59522 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59523
59524         * lib/strsep.h: New file.
59525         * lib/strsep.c: New file.
59526
59527 2004-10-01  Simon Josefsson  <jas@extundo.com>
59528
59529         * lib/snprintf.c (snprintf): Handle size==0.
59530
59531 2004-10-01  Simon Josefsson  <jas@extundo.com>
59532             Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59535         (snprintf): Declare 'args'.
59536
59537 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * lib/snprintf.c: Remove comments as to why each header is needed.
59540
59541 2004-10-01  Bruno Haible  <bruno@clisp.org>
59542
59543         * MODULES.html.sh: Add strsep.
59544
59545 2004-09-30  Simon Josefsson  <jas@extundo.com>
59546
59547         * modules/snprintf: New file.
59548
59549 2004-09-30  Simon Josefsson  <jas@extundo.com>
59550
59551         * m4/snprintf.m4: New file.
59552
59553 2004-09-30  Simon Josefsson  <jas@extundo.com>
59554
59555         * lib/snprintf.h, lib/snprintf.c: New files.
59556
59557 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59558
59559         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59560         (hol_entry_help): Never translate an empty string.
59561         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59562         * lib/argp.h (OPTION_NO_TRANS): New option.
59563
59564 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * modules/argp (Maintainer): Replace Simon Josefsson
59567         by Sergey Poznyakoff.
59568
59569 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59572         changes merged back into glibc.
59573
59574 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59575
59576         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59577
59578 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59579
59580         * lib/xvasprintf.c: Include xalloc.h.
59581         (xvasprintf): Use xalloc_die, not xmalloc_die.
59582
59583 2004-09-29  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/alloca-opt: New file, derived from modules/alloca.
59586         * modules/allocsa: Depend on alloca-opt instead of alloca.
59587         * modules/setenv: Likewise.
59588         * modules/vasnprintf: Likewise.
59589         * MODULES.html.sh: Add alloca-opt.
59590
59591 2004-09-28  Simon Josefsson  <jas@extundo.com>
59592
59593         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59594         LGPL, and to replace license template from GPL to LGPL.
59595
59596 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * modules/dummy: Change license to LGPL.
59599
59600 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59603
59604 2004-09-24  Simon Josefsson  <jas@extundo.com>
59605
59606         * modules/minmax (License): Change from GPL to LGPL.
59607
59608 2004-09-23  Simon Josefsson  <jas@extundo.com>
59609
59610         * gnulib-tool (--import): Typo.
59611
59612 2004-09-23  Simon Josefsson  <jas@extundo.com>
59613
59614         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59615
59616 2004-09-22  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/*: Add 'License' field.
59619         * gnulib-tool: Accept --extract-license option.
59620         (func_get_license): New function.
59621
59622 2004-09-21  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59625         Reported by Simon Josefsson.
59626
59627 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59630         gl_AC_TYPE_LONG_LONG.
59631
59632 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59635
59636 2004-09-18  Simon Josefsson  <jas@extundo.com>
59637         and  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59640         calls with autoreconf.  Define GL_LIB.
59641
59642 2004-09-14  Karl Berry  <karl@gnu.org>
59643
59644         * config/srclist.txt: unsync setenv.c, sigh.
59645
59646 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59649         Problem reported by Bruno Haible in:
59650         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59651
59652 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * config/srclist.txt: Comment out argp-pvh.c.
59655
59656 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59657
59658         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59659         in case some system header has #define'd it.  Problem reported by
59660         Soeren D. Schulze in
59661         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59662
59663 2004-09-09  Karl Berry  <karl@gnu.org>
59664
59665         * regex.[ch]: delete from the root.  These were supposed to be
59666                 synced with emacs cvs, but this has not happened for about
59667                 a year, and anyway nothing else uses emacs regex.[ch].
59668                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59669                 lib/regex[.ch] is untouched.
59670
59671 2004-09-09  Bruno Haible  <bruno@clisp.org>
59672
59673         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59674
59675 2004-09-09  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59678         modifications.
59679         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59680
59681 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59682
59683         * modules/xvasprintf: New file.
59684         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59685
59686 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59687
59688         * lib/xvasprintf.h: New file.
59689         * lib/xvasprintf.c: New file.
59690         * lib/xasprintf.c: New file.
59691
59692 2004-09-08  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59695
59696 2004-09-08  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59699         length is > INT_MAX.
59700         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59701         more.
59702
59703 2004-09-08  Bruno Haible  <bruno@clisp.org>
59704
59705         * lib/stdint_.h: New file, taken from GNU clisp.
59706
59707 2004-09-08  Bruno Haible  <bruno@clisp.org>
59708             Oskar Liljeblad  <oskar@osk.mine.nu>
59709
59710         * modules/stdint: New file.
59711         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59712
59713 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         Import from coreutils.
59716         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59717         strings on unbounded length.  alloca's performance benefits aren't
59718         that important here.
59719         (V_STRDUP): Remove.
59720         (parse_with_separator): New function, with most of the internals
59721         of the old parse_user_spec.  Allow user to omit both user and group,
59722         for compatibility with FreeBSD.
59723         Clone only the user name, not the entire spec.
59724         Do not set *uid, *gid unless entirely successful.
59725         Avoid memory leak in some failing cases.
59726         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59727         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59728         (parse_user_spec): Rewrite to use parse_with_separator.
59729
59730 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * modules/userspec: Don't depend on alloca.
59733
59734 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59735
59736         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59737
59738 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59741         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59742         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59743
59744 2004-08-16  Simon Josefsson  <jas@extundo.com>
59745
59746         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59747         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59748         Add --dry-run for --import.
59749         Let user provided command line parameters override configure.ac
59750         settings.
59751
59752 2004-08-12  Simon Josefsson  <jas@extundo.com>
59753
59754         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59755         as discussed with Paul Eggert in threads rooted at
59756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59757         and
59758         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59759         Before, the test was empty, and relied on ELIDE_CODE in source
59760         code.)
59761         (gl_PREREQ_GETOPT): New macro.
59762         (gl_GETOPT): Use them.
59763
59764 2004-08-12  Simon Josefsson  <jas@extundo.com>
59765
59766         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59767         * lib/getopt_.h: Renamed from getopt.h.
59768
59769 2004-08-12  Simon Josefsson  <jas@extundo.com>
59770
59771         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59772         Change default library name from libfoo to libgnu.
59773         Now, if you have a configure.ac that says:
59774                 gl_SOURCE_BASE(gl)
59775                 gl_M4_BASE(gl/m4)
59776                 gl_MODULES(error getopt etcetera)
59777                 gl_INIT
59778         you can import all you need by running:
59779                 ../gnulib/gnulib-tool --import
59780
59781         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59782         (Makefile.am): Rewrite, use logic from argz.
59783         (Include): Use <getopt.h> instead of "getopt.h".
59784
59785 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * modules/argp (Files): Add m4/unlocked-io.m4.
59788         (Depends-on): Add extensions.
59789
59790 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59793         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59794         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59795         Check for program_invocation_name, program_invocation_short_name,
59796         flockfile, funlockfile, features.h, _getopt_long_only_r.
59797
59798 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59801         its complicated substitute.
59802         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59803         and program_invocation_name.
59804         (__argp_basename) [!_LIBC]: Remove; the only use was
59805         replaced by its body.
59806         (__argp_short_program_name): Change condition from
59807         !defined __argp_short_program_name to
59808         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59809         to match argp-namefrob.h.
59810         (__argp_failure): Don't assume strerror_r returns char *.
59811         * lib/argp-parse.c (N_): Define unconditionally.
59812         (argp_default_options): Fill out initializers with 0 to avoid
59813         gcc warnings.
59814
59815 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59818         getopt1.c.
59819
59820 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         Merge from coreutils.
59823
59824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59825
59826         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59827         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59828
59829 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59830
59831         Merge from coreutils.
59832
59833         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59834         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59835         for Reliant Unix 5.43.
59836
59837         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59838         (union fooround): Use uintmax_t, not long int.
59839         The rest is a merge from libc:
59840         [defined _LIBC]: Include <shlib-compat.h>.
59841         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59842
59843         * lib/settime.c (settime): Recode to avoid warning with
59844         Sun Forte C 6U2.
59845
59846         * lib/strverscmp.c: Convert to UTF-8.
59847
59848 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59851         m4/uintmax_t.m4.
59852
59853 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59854
59855         * modules/xalloc-die: New file.
59856         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
59857
59858         * modules/md5 (Files): Add m4/uint32_t.m4.
59859         * modules/sha1: Renamed from modules/sha.
59860         (Files):
59861         Rename lib/sha.h to lib/sha1.h.
59862         Rename lib/sha.c to lib/sha1.c.
59863         Rename m4/sha.m4 to m4/sha1.m4.
59864         (lib_SOURCES): Likewise.
59865         (configure.ac): Rename gl_SHA to gl_SHA1.
59866         (Include): sha.h -> sha1.h.
59867
59868 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
59871         * m4/sha1.m4: Renamed from sha.m4.
59872         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
59873
59874 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * lib/obstack.h (obstack_empty_p):
59877         Don't assume that chunk->contents is suitably aligned.
59878         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
59879         Likewise. Problem reported by Benno in
59880         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
59881
59882         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
59883         readable.  This could be improved further but it'd take some work.
59884
59885 2004-08-08  Simon Josefsson  <jas@extundo.com>
59886
59887         * modules/xgethostname (Depends-on): Remove exit and error (not
59888         used).
59889
59890         * modules/getpass-gnu: Add getpass.h.
59891         (Depends-on): Add stdbool.
59892         * modules/getpass: Add getpass.h.
59893
59894 2004-08-08  Simon Josefsson  <jas@extundo.com>
59895
59896         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
59897         Check getpass declaration.
59898
59899 2004-08-08  Simon Josefsson  <jas@extundo.com>
59900
59901         * lib/xgethostname.c: Don't include error.h (not used).
59902
59903         * lib/getpass.h: Add.
59904         * lib/getpass.c: Include getpass.h first.
59905
59906 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * lib/xalloc-die.c: New file.
59909         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
59910         All uses removed.
59911         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
59912         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
59913         xalloc-die.c.
59914         (_, N_, xalloc_die): Move to xalloc-die.c.
59915         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
59916         so that we needn't mess with xalloc_msg_memory_exhausted.
59917
59918         * lib/sha1.h: Renamed from sha.h.
59919         (SHA1_H): Renamed from _SHA_H.
59920         (sha1_ctx): Renamed from sha_ctx.
59921         (sha1_init_ctx): Renamed from sha_init_ctx.
59922         (sha1_process_block): Renamed from sha_process_block.
59923         (sha1_process_bytes): Renamed from sha_process_bytes.
59924         (sha1_finish_ctx): Renamed from sha_finish_ctx.
59925         (sha1_read_ctx): Renamed from sha_read_ctx.
59926         (sha1_stream): Renamed from sha_stream.
59927         (sha1_buffer): Renamed from sha_buffer.
59928         * lib/sha1.c: Likewise; renamed from sha.c.
59929         Do not include <sys/types.h>.
59930         Include <stddef.h> rather than <stdlib.h>.
59931
59932 2004-08-08  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
59935         FILESYSTEM_PREFIX_LEN.
59936         * lib/progreloc.c: Likewise.
59937         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
59938
59939 2004-08-06  Simon Josefsson  <jas@extundo.com>
59940
59941         * modules/progname (Depends-on): Don't depend on stdbool.
59942
59943 2004-08-06  Simon Josefsson  <jas@extundo.com>
59944
59945         * modules/getsubopt: New file.
59946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59947         getsubopt.
59948
59949 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         More merge from coreutils.
59952
59953         * m4/utimens.m4, m4/utimecmp.m4: New files.
59954         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
59955         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
59956         prereq.m4, sha.m4: Import changes from coreutils.
59957
59958 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         More merge from coreutils.
59961         * modules/raise, modules/readtokens0, modules/utimens:
59962         * modules/utimecmp, module/xnanosleep: New files.
59963         * modules/strftime: Add lib/strftime.h.
59964         Change include from <time.h> to "strftime.h".
59965         * modules/yesno: Add lib/yesno.h.
59966         * modules/backupfile: Remove lib/addext.c.
59967         * modules/euidaccess: Add stat-macros.h.
59968         * modules/canonicalize, modules/euidaccess,
59969         modules/filemode, modules/lchown, modules/makepath,
59970         modules/rmdir, modules/stat: Likewise.
59971
59972 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         Merge from tar.
59975         * lib/argp-help.c (make_hol, hol_append): Don't assume that
59976         SIZE_MAX is a valid preprocessor constant.
59977         (__argp_basename): Change from "#ifndef _LIBC"
59978         to "#ifndef __argp_short_program_name", so that
59979         we don't compile these functions for tar.
59980
59981         More merges from coreutils.
59982         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
59983         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
59984         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
59985         * lib/addext.c: Remove; no longer needed.
59986         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
59987         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
59988         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
59989         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
59990         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
59991         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
59992         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
59993         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
59994         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
59995         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59996         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
59997         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
59998         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
59999         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60000         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60001         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60002         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60003         Import changes from coreutils.
60004
60005 2004-08-05  Simon Josefsson  <jas@extundo.com>
60006
60007         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60008
60009 2004-08-05  Simon Josefsson  <jas@extundo.com>
60010
60011         * m4/getsubopt.m4: New file.
60012
60013 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         Merge from coreutils.
60016
60017         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60018         * m4/getcwd-path-max.m4: New files.
60019
60020         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60021         FILESYSTEM_PREFIX_LEN ->
60022         FILE_SYSTEM_PREFIX_LEN.
60023         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60024         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60025         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60026         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60027
60028         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60029         prerequisite modules now handle the DOS stuff.
60030         Don't check for unistd.h.
60031
60032 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60033
60034         Merge from coreutils.
60035
60036         * lib/.gdb-history: Remove; this doesn't belong here.
60037
60038         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60039         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60040         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60041         * lib/getcwd.c: New files.
60042
60043         * lib/dirname.h: Include <stdbool.h>.
60044         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60045         for consistency with POSIX terminology.  All uses changed.
60046         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60047         (strip_trailing_slashes): Use bool for booleans.
60048         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60049
60050         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60051         sometimes returns a positive errno value even when it succeeds.
60052         (print_errno_message) [!LIBC]: Fall back on strerror if
60053         __strerror_r fails.
60054
60055         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60056         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60057         (longest_relative_suffix): New function.
60058         (path_concat): Use it.  Assume first argument is not NULL.
60059         Port to DOS.  Omit redundant separators.
60060         Report an error instead of returning NULL.
60061         Use mempcpy instead of memcpy.
60062         (xpath_concat): Remove: not declared or used.
60063
60064         * lib/same.h: Include <stdbool.h>
60065         (same_name): Return bool, not int.
60066         * lib/same.c (same_name): Likewise.
60067         (errno): Don't declare; we assume C89 or better now.
60068
60069         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60070         if not already defined.
60071
60072         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60073         * lib/dup-safer.c (errno): Likewise.
60074
60075 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         Merge from coreutils.
60078         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60079         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60080         * modules/path-concat: Don't depend on strdup.
60081
60082 2004-08-03  Simon Josefsson  <jas@extundo.com>
60083
60084         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60085         * lib/progname.h: Don't include stdbool.h.
60086
60087 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60090         * MODULES.html.sh (func_all_modules): Remove fatal.
60091
60092 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60095
60096 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60097
60098         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60099         working.
60100
60101 2004-08-02  Simon Josefsson  <jas@extundo.com>
60102
60103         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60104         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60105         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60106
60107 2004-08-01  Simon Josefsson  <jas@extundo.com>
60108
60109         * lib/xgetdomainname.c: Include stdlib.h, for free().
60110
60111 2004-07-19  Bruno Haible  <bruno@clisp.org>
60112
60113         * MODULES.html.sh (func_all_modules): Add dummy.
60114
60115 2004-07-16  Simon Josefsson  <jas@extundo.com>
60116
60117         * modules/dummy: New file.
60118
60119 2004-07-16  Simon Josefsson  <jas@extundo.com>
60120
60121         * lib/dummy.c: New file.
60122
60123 2004-07-16  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/backupfile.h: Add extern "C" for C++.
60126         * lib/closeout.h: Likewise.
60127         * lib/copy-file.h: Likewise.
60128         * lib/findprog.h: Likewise.
60129         * lib/full-write.h: Likewise.
60130         * lib/pathname.h: Likewise.
60131         * lib/progname.h: Likewise.
60132         * lib/stpcpy.h: Likewise.
60133         * lib/stpncpy.h: Likewise.
60134         * lib/strcase.h: Likewise.
60135         * lib/strstr.h: Likewise.
60136         * lib/xalloc.h: Likewise.
60137
60138         * lib/mbswidth.h: Add extern "C" for C++.
60139         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60140
60141 2004-07-13  Robert Millan  <robertmh@gnu.org>
60142
60143         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60144
60145 2004-07-09  Simon Josefsson  <jas@extundo.com>
60146
60147         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60148         failed without this.)
60149
60150 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         * modules/chown (Files): Add lib/fchown-stub.c, since
60153         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60154
60155 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/fchown-stub.c: New file.
60158
60159 2004-06-24  Jim Meyering  <jim@meyering.net>
60160
60161         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60162
60163 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         * modules/argz: Omit "#include".
60166
60167         * MODULES.html.sh (func_all_modules): Add calloc, to match
60168         2004-06-01 addition of calloc module.
60169
60170 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * m4/argz.m4: New file, which is autoupdated from libtool.
60173
60174 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60177         libtool.
60178
60179 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * config/srclist-update: Don't insist on "USA." before the
60182         close-comment, as libtool omits the period and puts the */ on a
60183         separate line.
60184         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60185         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60186
60187 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60188
60189         * modules/argz: New file.
60190         * MODULES.html.sh (func_all_modules): Add argz.
60191
60192 2004-06-12  Jim Meyering  <jim@meyering.net>
60193         and  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * modules/hash (Files): Add lib/xalloc.h.
60196         * modules/pipe (Depends-on): Add wait-process.
60197         * modules/stat (Depends-on): Add xalloc.
60198         * modules/userspec (Files): Add lib/userspec.h.
60199         * modules/xstrto
60200
60201         Upgrade from gettext-0.13.
60202         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60203         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60204         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60205
60206 2004-06-10  Jim Meyering  <jim@meyering.net>
60207
60208         * lib/calloc.c: New file.
60209
60210 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * lib/getdate.y (yylex): Allow space between sign and number.
60213         Problem reported by Dan Jacobson.
60214
60215 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         Merge from coreutils CVS.
60218
60219         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60220         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60221         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60222         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60223         xstrtol.m4: Fix copyright date and/or serial number.
60224
60225         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60226         See if we need an fchown replacement.
60227         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60228         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60229         and use the replacement function if we detect either defect.
60230
60231         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60232         gl_UTIMECMP.
60233
60234 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60235         and  Jim Meyering  <jim@meyering.net>
60236
60237         Merge from coreutils CVS.
60238
60239         * lib/stat-macros.h: New file, with contents from file-type.h
60240         and coreutils' system.h.
60241         * lib/file-type.c: Include "stat-macros.h".
60242         * lib/file-type.h (file_type): Move all macro definitions to new file,
60243         stat-macros.h.
60244
60245         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60246         Wrap old code with this conditional.
60247         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60248         function that does not dereference symlinks.
60249         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60250
60251         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60252         dependency problems.
60253         (xreadlink): Accept new arg SIZE, for efficiency.
60254         All decls and uses changed.
60255         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60256
60257         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60258         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60259
60260         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60261         sysexits.h.
60262
60263 2004-06-01  Jim Meyering  <jim@meyering.net>
60264
60265         * m4/calloc.m4: New file.
60266
60267 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60270         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60271         Also, fix a typo in a diagnostic.
60272
60273 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60276         or AC_FUNC_REALLOC.
60277
60278 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60281         macros to be defined.
60282         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60283         the allocator returns NULL because the requested size is zero.
60284
60285 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60286
60287         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60288         var.  Add comment explaining why libc still defines it.  This
60289         merges the following patch from glibc:
60290         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60291
60292 2004-05-20  Andreas Schwab  <schwab@suse.de>
60293
60294         * m4/free.m4: Replace free if it not known to work, not the other
60295         way round.
60296
60297 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60298
60299         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60300         present in glibc since revision 1.1 of this file.
60301         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60302         obstack_alignment_mask, obstack_alloc, obstack_base,
60303         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60304         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60305         obstack_grow0, obstack_init, obstack_int_grow,
60306         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60307         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60308         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60309         nonexistent functions.
60310
60311 2004-05-18  Karl Berry  <karl@gnu.org>
60312
60313         * config/srclist.txt: break link for vasnprintf.c.
60314
60315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60316
60317         Port obstack to the AS/400, where pointers are 16 bytes wide and
60318         you cannot cast an integer to a valid pointer.  This patch is
60319         currently waiting to be integrated into glibc; see
60320         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60321
60322         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60323         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60324         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60325         (struct obstack): temp member is now a union of a pointer and
60326         an integer, instead of an integer.  All integer uses changed.
60327         This does not affect the physical layout of struct obstack,
60328         except on hosts (like the AS/400) where the size or alignment of
60329         void * is greater than that of ptrdiff_t.
60330         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60331         __STDC__)]: Store temporary in pointer member of union, not
60332         integer member.
60333         * lib/obstack.c: Include <stddef.h>, for offsetof.
60334         (struct fooalign): Remove; it doesn't need a name.
60335         (union fooround): Change double to long double, and add void *.
60336         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60337         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60338         not a macro.  Hence the values are always int; so remove all
60339         casts-to-int in uses.
60340
60341 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60342
60343         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60344         we can get this patch merged into glibc.
60345
60346 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60347             Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         * m4/argp: Depend on alloca.
60350
60351 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60352             Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60355         freecoding.
60356
60357 2004-05-17  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60360         precision that consists of a '.' followed by an empty digit string.
60361         Patch by Tor Lillqvist <tml@iki.fi>.
60362
60363 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60366         for backward compatibility with older code.  We need our own
60367         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60368         it under some other name, and our alloca.h will define it.
60369
60370 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60371             Derek Price  <derek@ximbiot.com>
60372
60373         * lib/alloca.c: Include <alloca.h>, to get our interface.
60374         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60375         include <alloca.h> first.  Use C89 prototype for alloca; this
60376         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60377         Use #elif for simplicity, since we can assume C89 now.
60378         Don't try to source the system alloca.h since it will not be found
60379         and to prevent recursively including its replacement.
60380         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60381         * lib/regex.c: Likewise.
60382
60383 2004-05-16  Derek Price  <derek@ximbiot.com>
60384             Paul Eggert  <eggert@cs.ucla.edu>
60385
60386         getline cleanup.  This changes the getndelim2 API: both order of
60387         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60388         no delimiter).
60389
60390         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60391         interface does that.
60392         (getline): Always use getdelim, so that we don't have two
60393         copies of this code.
60394         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60395         if available.
60396         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60397         (GETNDELIM2_MAXIMUM): New macro.
60398         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60399         instead of the old practice of delim2==0.  All callers changed.
60400         Return -1 on overflow, instead of returning junk.
60401         Do not set *linesize unless allocation succeeds.
60402         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60403         that we include sys/types.h.
60404         * lib/getnline.h: Likewise.
60405         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60406         (getndelim2): Reorder arguments.
60407         * lib/getnline.c (getnline, getndelim):
60408         Don't discard the NMAX argument.
60409         (getnline): Invoke getndelim, to avoid code duplication.
60410         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60411         of (size_t) -1 by callers of the getnline family.
60412
60413 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60414
60415         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60416         Check for gettimeofday.
60417         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60418         Check for settimeofday, stime.
60419
60420 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * lib/nanosleep.c (suspended): Change its type from int to
60423         sig_atomic_t volatile.
60424         (first_call): Make it private to rpl_nanosleep, and have it
60425         be zero initially as that's a bit faster.
60426         (my_usleep): Round up fractional times instead of truncating them,
60427         as this is the usual meaning for 'sleep'.
60428
60429         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60430         doesn't work.
60431         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60432         (ENOSYS): Define if not defined.
60433         (settime): Fall back on stime if it exists and settimeofday fails.
60434         But don't bother with fallbacks if a method fails with errno == EPERM.
60435
60436 2004-05-11  Jim Meyering  <jim@meyering.net>
60437
60438         Prior to this change, the save_cwd caller required read access to the
60439         current directory on most systems (ones with the fchdir function).
60440
60441         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60442         fails, try write-only, and finally, resort to using xgetcwd.
60443
60444 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * lib/obstack.c, obstack.h: Import changes from libc.
60447
60448 2004-04-28  Bruno Haible  <bruno@clisp.org>
60449
60450         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60451         also implicitly appends .exe to executables.
60452         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60453         accepts Windows pathnames.
60454         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60455         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60456         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60457         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60458         Reported by Derek Robert Price <derek@ximbiot.com>.
60459
60460 2004-04-21  Karl Berry  <karl@gnu.org>
60461
60462         * config/srclist.txt (localcharset.c): break sync.
60463
60464 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60465
60466         * m4/host-os.m4: Add a copyright notice.
60467
60468 2004-04-20  Jim Meyering  <jim@meyering.net>
60469
60470         Change UTILS_ to gl_ in AC_DEFINE'd names.
60471         Change utils_- and jm_-prefixed variables, too.
60472         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60473         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60475
60476         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60477         Don't emit trailing blanks.
60478         Also rename jm_-prefixed variables to have gl_ prefix.
60479
60480         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60481         Also rename jm_-prefixed variables to have gl_ prefix.
60482
60483         * m4/jm-macros.m4: Reflect the renamings.
60484         * m4/prereq.m4: Likewise.
60485
60486 2004-04-20  Jim Meyering  <jim@meyering.net>
60487
60488         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60489         memory.
60490
60491 2004-04-20  Jim Meyering  <jim@meyering.net>
60492             Bruno Haible  <bruno@clisp.org>
60493
60494         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60495         memory when realloc fails.
60496
60497 2004-04-19  Jim Meyering  <jim@meyering.net>
60498
60499         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60500         now that readutmp.c may call `free (0)'.
60501
60502 2004-04-19  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60505         * m4/inttypes_h.m4: Likewise.
60506         * m4/stdint_h.m4: Likewise.
60507         * m4/intmax_t.m4: Likewise.
60508         * m4/uintmax_t.m4: Likewise.
60509
60510 2004-04-18  Jim Meyering  <jim@meyering.net>
60511
60512         * m4/prereq.m4: Don't forbid jm_ prefix.
60513
60514         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60515         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60516         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60517         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60518         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60519         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60520         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60521         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60522         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60523         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60524         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60525         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60526         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60527         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60528         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60529         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60530         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60531         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60532         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60533
60534 2004-04-18  Jim Meyering  <jim@meyering.net>
60535
60536         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60537         failure, don't leak memory and do call END_UTMP_ENT.
60538
60539 2004-04-16  Jim Meyering  <jim@meyering.net>
60540
60541         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60542         coreutils' stat program.
60543         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60544
60545 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60546
60547         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60548         C89.
60549         (CHAR_BIT): Remove, since we assume C89.
60550         Include <stdint.h> if available, as per current Autoconf CVS advice.
60551
60552 2004-03-31  Jim Meyering  <jim@meyering.net>
60553
60554         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60555         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60556         * m4/xalloc.m4: Likewise.
60557
60558 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60559
60560         Merge from coreutils.
60561
60562         * m4/inttostr.m4: New file.
60563         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60564         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60565         Require gl_CLOCK_TIME.
60566         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60567
60568 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60569
60570         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60571         not bool, to be more consistent with Unix conventions.
60572         Suggested by Bruno Haible.
60573
60574         Merge from coreutils.
60575
60576         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60577         * lib/umaxtostr.c: New files.
60578
60579         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60580         the usual <time.h> dance.
60581         (get_date): Change signature to support fractional time stamps.
60582         All callers changed.
60583         * lib/getdate.y: Include "getdate.h" first, as we can now
60584         assume C89 and don't need to worry about 'const'.
60585         Similarly, include "unlocked-io.h" near start, not in middle.
60586         Include <limits.h>.
60587         (textint.value): Use long int rather than int.
60588         (textint.digits): Use size_t rather than int.
60589         (BILLION, LOG10_BILLION): New constants.
60590         (parser_control): New member rel_ns.  Members day_ordinal,
60591         time_zone, month, day, hour, minutes, rel_year, rel_month,
60592         rel_day, rel_hour, rel_minutes, rel_seconds
60593         are now long int, not int.  Member seconds is now struct timespec,
60594         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60595         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60596         not int.
60597         (%union.intval): Now long int, not int.
60598         New member timespec.
60599         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60600         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60601         (spec): Now is a timespec or an item list.
60602         (timespec, items): New nonterminals.
60603         (time, rel, relunit, number, get_date):
60604         Add support for fractional seconds.
60605         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60606         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60607         (to_hour): First arg is now long int, not int.
60608         (to_year): Returns long int, not int.
60609         Don't treat year -70 like 70.
60610         (tm_diff): Returns long int, not int.
60611         (lookup_word): Use bool instead of int when appropriate.
60612         (yylex): Use size_t for count, not int.
60613         Detect overflow when parsing large integer constants.
60614         Add support for fractions.
60615         (get_date): Make pointers 'const' if possible.
60616         Use more-portable code to detect integer overflow.
60617         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60618         Don't use ctime; it's not reliable if the year has >4 digits.
60619
60620         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60621         This is for compatibility with BSD.
60622
60623         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60624         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60625         From coreutils' system.h.
60626
60627         * lib/userspec.c: Don't include "posixver.h".
60628         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60629         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60630         compatible extension.  Simplify code by removing a boolean int
60631         that was always nonzero if a string was nonnull.
60632
60633 2004-03-30  Jim Meyering  <jim@meyering.net>
60634
60635         Merge from coreutils.
60636
60637         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60638         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60639         on some systems one must include <grp.h> before it.
60640         Reported by Christian Krackowizer.
60641
60642 2004-03-30  Jim Meyering  <jim@meyering.net>
60643
60644         Merge from coreutils.
60645
60646         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60647
60648         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60649         an empty input stream.
60650
60651         * lib/readtokens.c: Include <stdbool.h>.
60652         (readtoken): Use `size_t' rather than int/long.
60653         All callers adjusted.
60654         Use `bool' rather than `int' where appropriate.
60655         Use memset rather than an explicit loop.
60656         Use x2nrealloc rather than xrealloc.
60657         Allow the use of `\0' as a delimiter.
60658         (readtokens): Likewise.
60659         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60660
60661 2004-03-30  Jim Meyering  <jim@meyering.net>
60662
60663         * m4/realloc.m4: Remove file, since now it does no more than
60664         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60665         the `configure.ac' section of module/realloc.
60666         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60667
60668 2004-03-30  Bruno Haible  <bruno@clisp.org>
60669
60670         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60671         nonnull.
60672
60673 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60674
60675         Merge changes to getloadavg.c from coreutils and Emacs.
60676
60677         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60678         Define to an expression, not to the empty string.
60679         Include cloexec.h and xalloc.h.
60680         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60681         Use set_cloexec_flag rather than rolling our own.
60682         * lib/cloexec.c, lib/cloexec.h: New files.
60683
60684 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60685
60686         * m4/cloexec.m4: New file.
60687
60688 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60689
60690         * lib/getopt.h: Sync with libc CVS.
60691
60692 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60693             Bruno Haible  <bruno@clisp.org>
60694
60695         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60696         mbswidth.
60697
60698 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60699             Bruno Haible  <bruno@clisp.org>
60700
60701         * lib/mbswidth.h: Include <wchar.h> only if
60702         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60703         <wchar.h>.
60704         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60705
60706 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60707
60708         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60709         Sync with libc CVS.
60710         * lib/getopt_int.h: New file, also synced from libc.
60711
60712 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60713
60714         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60715         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60716         Bring back getopt.c, getopt.h, getopt1.c.
60717
60718 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60719
60720         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60721         All uses changed.  Check for sa_sigaction member; this fixes
60722         a bug first reported by Jason Andrade in
60723         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60724
60725 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60726
60727         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60728         '#if' expressions.  Unlike the code it replaces, it does not
60729         depend on (defined _SC_PAGESIZE).  However, it does depend on
60730         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60731         first reported by Jason Andrade in
60732         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60733
60734 2004-02-25  Simon Josefsson  <jas@extundo.com>
60735
60736         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60737
60738 2004-02-25  Simon Josefsson  <jas@extundo.com>
60739
60740         * lib/strdup.h: New file.
60741         * lib/strdup.c: Include it.
60742         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60743         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60744
60745 2004-02-23  Karl Berry  <karl@gnu.org>
60746
60747         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60748         (from fencepost.gnu.org:/gd/gnuorg).
60749
60750 2004-02-23  Karl Berry  <karl@gnu.org>
60751
60752         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60753         * config/srclist.txt: add maintain/standards documents.
60754
60755 2004-02-18  Bruno Haible  <bruno@clisp.org>
60756
60757         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60758         Reported by Derek Robert Price <derek@ximbiot.com>.
60759
60760 2004-02-16  Karl Berry  <karl@gnu.org>
60761
60762         * config/mkinstalldirs, install-sh: update from automake.
60763
60764 2004-02-06  Karl Berry  <karl@gnu.org>
60765
60766         * m4/po.m4: update from gettext 0.14.1.
60767
60768 2004-02-06  Karl Berry  <karl@gnu.org>
60769
60770         * lib/config.charset: update from gettext 0.14.1.
60771
60772 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60773
60774         Add comments and code, prompted by suggestions from Bruno Haible
60775         for sh-quote.
60776         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60777         describing the enum quoting_style values.
60778         * lib/quotearg.c (quotearg_alloc): New function.
60779         (quotearg_buffer_restyled): Treat lone { and } as special.
60780         Treat = as special.  Work around bug with older shells
60781         that "see" a '\' that is really the 2nd byte of a multibyte char.
60782         Quote empty string with shell_quoting_style.
60783
60784 2004-02-03  Bruno Haible  <bruno@clisp.org>
60785
60786         * m4/pipe.m4: New file, from GNU gettext.
60787
60788 2004-02-03  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/pipe.h: New file, from GNU gettext.
60791         * lib/pipe.c: New file, from GNU gettext.
60792
60793 2004-01-27  Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/execute.m4: New file, from GNU gettext.
60796
60797 2004-01-27  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/execute.h: New file, from GNU gettext.
60800         * lib/execute.c: New file, from GNU gettext.
60801         * lib/w32spawn.h: New file, from GNU gettext.
60802
60803 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60804
60805         Merge from diffutils.
60806
60807         * lib/file-type.c (file_type): Add typed memory objects.
60808         * lib/file-type.h (S_TYPEISTMO): New macro.
60809
60810         * lib/c-stack.h (c_stack_action): Remove argv argument.
60811         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60812         (die): Don't calculate message unless segv_action returns.
60813         (get_stack_location, min_address_from_argv, max_address_from_argv,
60814         volatile stack_base, volatile_stack_size): Remove.
60815         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60816         that every segmentation violation is a stack overflow.  (Ouch!)
60817         See Debian bug 136249 (still outstanding) for more info about why
60818         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60819
60820 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60821
60822         Exit-status fix from coreutils.
60823
60824         Use exit_failure consistently in place of EXIT_FAILURE,
60825         so that program exit statuses are consistent on failure.
60826
60827         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60828         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60829         * lib/argmatch.h: Comment fix to match the above.
60830         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60831         Now a macro referring to exit_failure, instead of a separate
60832         variable.  Include "exitfail.h" to get it.
60833         * lib/xstrtol.h: Include "exitfail.h".
60834         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60835
60836         * lib/long-options.c (parse_long_options): Use prototype
60837         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60838         for clarity.
60839
60840 2004-01-21  Jim Meyering  <jim@meyering.net>
60841
60842         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60843         so as not to conflict with a different-sized __mktime_internal
60844         function in GNU libc.
60845         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
60846         Problem building statically-linked `ls' reported by Michael Brunnbauer.
60847
60848 2004-01-20  Karl Berry  <karl@gnu.org>
60849
60850         * config/config.guess: update from config.
60851
60852         * config/srclistvars.sh: GNUWWWLICENSES for karl.
60853
60854 2004-01-20  Bruno Haible  <bruno@clisp.org>
60855
60856         Safer stack allocation.
60857         * lib/setenv.c: Include allocsa.h.
60858         (alloca): Remove fallback definition.
60859         (freea): Remove macro.
60860         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
60861         instead of freea.
60862
60863 2004-01-20  Bruno Haible  <bruno@clisp.org>
60864
60865         * m4/eealloc.m4: New file, from GNU gettext.
60866
60867 2004-01-20  Bruno Haible  <bruno@clisp.org>
60868
60869         * m4/allocsa.m4: New file, from GNU gettext.
60870
60871 2004-01-20  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/xallocsa.h: New file, from GNU gettext.
60874         * lib/xallocsa.c: New file, from GNU gettext.
60875
60876 2004-01-20  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
60879
60880 2004-01-20  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
60883         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
60884         specially.
60885
60886 2004-01-20  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
60889         patch.
60890
60891 2004-01-20  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
60894
60895 2004-01-20  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/eealloc.h: New file.
60898
60899 2004-01-20  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/binary-io.h: Avoid warnings on Cygwin.
60902
60903 2004-01-20  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/allocsa.h: New file, from GNU gettext.
60906         * lib/allocsa.c: New file, from GNU gettext.
60907
60908 2004-01-18  Karl Berry  <karl@gnu.org>
60909
60910         * doc/gpl.texi, doc/lgpl.texi: new files.
60911
60912 2004-01-18  Karl Berry  <karl@gnu.org>
60913
60914         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
60915         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
60916
60917 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60918
60919         Merge from coreutils.
60920
60921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
60922         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
60923         (gl_DEFAULT_POSIX2_VERSION): Move
60924         the documentation from 'configure' into 'config.hin',
60925         so that 'configure --help' isn't burdened by it and
60926         we don't have to worry about its formatting there.
60927         Reword the documentation so that it's more succinct
60928         and can be run together into a single paragraph.
60929         * m4/same.m4 (gl_SAME): Check for pathconf.
60930
60931 2004-01-15  Paul Eggert  <eggert@twinsun.com>
60932
60933         Merge from coreutils.
60934
60935         * lib/posixver.c: Include posixver.h.
60936
60937         * lib/same.c: Include <stdbool.h>, <limits.h>.
60938         (_POSIX_NAME_MAX): Define if not defined.
60939         (MIN): New macro.
60940         (same_name): If file names are silently truncated, report
60941         that the file names are the same if they are the same after
60942         the silent truncation.
60943
60944         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
60945         conversion function.
60946         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
60947         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
60948         longer needed.
60949
60950 2004-01-15  Jim Meyering  <jim@meyering.net>
60951
60952         Merge from coreutils.
60953
60954         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
60955         if no library is required.
60956         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
60957         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
60958         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
60959         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
60960         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
60961         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
60962         value, $ac_cv_search_crypt, if it's "none required".
60963         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
60964         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
60965         not gl_FUNC_GETLOADAVG.
60966         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
60967         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
60968
60969 2004-01-15  Jim Meyering  <jim@meyering.net>
60970
60971         Merge from coreutils.
60972
60973         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
60974         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
60975         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
60976
60977         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
60978         optional configure-time default.
60979
60980         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60981
60982         * lib/xreadlink.c (xreadlink): Correct outdated comment.
60983
60984 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
60985
60986         Merge from coreutils.
60987
60988         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
60989         value, $ac_cv_search_nanosleep, if it's "none required".
60990
60991 2004-01-14  Paul Eggert  <eggert@twinsun.com>
60992
60993         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
60994         with like-named macro in fnmatch.c.
60995         (EXT): Use an internal constant instead.
60996
60997         Merge fnmatch patches from glibc.
60998         * lib/fnmatch.c (mbsinit): Remove define.
60999         Add libc_hidden_ver (__fnmatch, fnmatch).
61000         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61001         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61002
61003 2004-01-14  Karl Berry  <karl@gnu.org>
61004
61005         * config/install-sh: update from automake.
61006
61007 2004-01-13  Karl Berry  <karl@gnu.org>
61008
61009         * config/install-sh: update from automake.
61010
61011 2004-01-09  Karl Berry  <karl@gnu.org>
61012
61013         * config/install-sh: update from automake.
61014
61015 2004-01-05  Karl Berry  <karl@gnu.org>
61016
61017         * config/config.{sub,guess}: update from config.
61018
61019 2003-12-31  Karl Berry  <karl@gnu.org>
61020
61021         * config/depcomp: update from automake.
61022
61023 2003-12-14  Karl Berry  <karl@gnu.org>
61024
61025         * lib/config.charset: update from gettext-runtime.
61026
61027 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61028
61029         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61030         Bug reported by Alfred M. Szmidt.
61031
61032 2003-12-03  Bruno Haible  <bruno@clisp.org>
61033
61034         * m4/gettext.m4: Upgrade from gettext-0.13.
61035         * m4/po.m4: Upgrade from gettext-0.13.
61036         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61037         * m4/intmax.m4: New file, from gettext-0.13.
61038         * m4/printf-posix.m4: New file, from gettext-0.13.
61039
61040 2003-11-29  Karl Berry  <karl@gnu.org>
61041
61042         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61043
61044 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61045             Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/printf-parse.h: Don't include sys/types.h.
61048         (ARG_NONE): New macro.
61049         (char_directive): Change type of *arg_index fields to size_t.
61050         * lib/printf-parse.c: Don't include sys/types.h.
61051         (SSIZE_MAX): Remove macro.
61052         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61053         Remove unnecessary overflow check.
61054         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61055         fields.
61056
61057 2003-11-25  Bruno Haible  <bruno@clisp.org>
61058
61059         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61060
61061 2003-11-25  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61064         gt_TYPE_SSIZE_T.
61065
61066 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61067
61068         * modules/alloca: Remove dependency on xalloc.
61069
61070 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61071
61072         * lib/alloca.c: Remove dependency on xalloc module.
61073         (xalloc_die): Remove.
61074         (memory_full) [!defined emacs]: New macro.
61075         [!defined emacs]: Don't include xalloc.h.
61076         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61077         address arithmetic overflows.  Change datatypes a bit to avoid
61078         unnecessary casts.
61079
61080 2003-11-22  Jim Meyering  <jim@meyering.net>
61081
61082         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61083         s/size/size_t/.
61084
61085 2003-11-21  Karl Berry  <karl@gnu.org>
61086
61087         * config/config.{sub,guess}: update from config.
61088
61089 2003-11-18  Karl Berry  <karl@gnu.org>
61090
61091         * config/config.{sub,guess}: update from config.
61092
61093         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61094
61095 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61096
61097         * README: Mention that S+T cannot overflow if S is the size of
61098         an existing object and T is sufficiently small.
61099
61100 2003-11-17  Jim Meyering  <jim@meyering.net>
61101
61102         On systems without utime and without a utimes function capable of
61103         dealing with a NULL struct utimbuf* argument, this utime replacement
61104         could -- in unusual circumstances -- leak a file descriptor.
61105         * lib/utime.c: Include <unistd.h> and <errno.h>.
61106         (utime_null): Be sure to close `fd' and to preserve errno.
61107         Reported by Geoff Collyer via Arnold Robbins.
61108
61109 2003-11-17  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61112         (Depends-on): Add xsize.
61113
61114 2003-11-17  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61117
61118 2003-11-17  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/vasnprintf.c (alloca): Remove fallback definition.
61121         (freea): Remove definition.
61122         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61123         Reported by Paul Eggert.
61124
61125 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61126             Bruno Haible  <bruno@clisp.org>
61127
61128         Protect against address arithmetic overflow.
61129         * lib/printf-args.h: Include stddef.h.
61130         (arguments): Change type of field 'count' to size_t.
61131         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61132         'unsigned int' where appropriate.
61133         * lib/printf-parse.h: Include sys/types.h.
61134         (char_directive): Change type of *arg_index fields to ssize_t.
61135         (char_directives): Change type of fields 'count', max_*_length to
61136         size_t.
61137         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61138         (SSIZE_MAX): Define fallback value.
61139         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61140         instead of 'int' where appropriate. Check a_allocated, d_allocated
61141         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61142         * lib/vasnprintf.c: Include xsize.h.
61143         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61144         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61145         overflow. Avoid wraparound when converting a width or precision from
61146         decimal to binary.
61147
61148 2003-11-16  Bruno Haible  <bruno@clisp.org>
61149
61150         Update from GNU gettext.
61151         * lib/printf-parse.c: Generalize to it can be compiled for wide
61152         strings.
61153         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61154         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61155         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61156         SNPRINTF): New macros.
61157         Don't include <alloca.h> if the file is used inside libintl.
61158         (local_wcslen): New function, for Solaris 2.5.1.
61159         (VASNPRINTF): Use it instead of wcslen.
61160
61161 2003-11-16  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/xsize.h (xmax): New function.
61164         (xsum, xsum3, xsum4): Declare as "pure" functions.
61165
61166 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61167
61168         * modules/xalloc (Files): Undo latest change, since xalloc.h
61169         no longer needs SIZE_MAX or PTRDIFF_MAX.
61170
61171 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61172
61173         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61174         gl_PTRDIFF_MAX.
61175
61176 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61177
61178         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61179         "return", to pacify some unknown compiler.  Problem reported
61180         by Joerg Schilling.
61181
61182 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61183
61184         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61185         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61186         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61187         heuristic is just as accurate as far as we know, and it removes a
61188         dependency on size_max.m4 and ptrdiff_max.m4.
61189
61190 2003-11-11  Bruno Haible  <bruno@clisp.org>
61191
61192         * modules/xsize (Files): Add m4/size_max.m4.
61193         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61194
61195 2003-11-11  Bruno Haible  <bruno@clisp.org>
61196
61197         * m4/size_max.m4: New file.
61198         * m4/ptrdiff_max.m4: New file.
61199         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61200         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61201         (gl_XALLOC): Invoke it.
61202
61203 2003-11-11  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61206         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61207         defined.
61208
61209 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61210
61211         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61212         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61213         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61214         From Bruno Haible.
61215         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61216         not (size_t) -1, since it's defined here.
61217
61218 2003-11-09  Karl Berry  <karl@gnu.org>
61219
61220         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61221
61222 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61223
61224         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61225         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61226         Reject sizes of exactly SIZE_MAX bytes.
61227         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61228         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61229
61230 2003-11-05  Bruno Haible  <bruno@clisp.org>
61231
61232         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61233         SIZE_MAX defined in <limits.h> on Solaris.
61234
61235 2003-11-04  Jim Meyering  <jim@meyering.net>
61236
61237         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61238         variable names, rather than @VAR@.
61239         * modules/poll: Likewise.
61240
61241 2003-11-04  Bruno Haible  <bruno@clisp.org>
61242
61243         * modules/xsize: New file.
61244         * modules/linebreak: Depend on xsize.
61245         * MODULES.html.sh (func_all_modules): Add xsize.
61246
61247 2003-11-04  Bruno Haible  <bruno@clisp.org>
61248
61249         * m4/xsize.m4: New file.
61250
61251 2003-11-04  Bruno Haible  <bruno@clisp.org>
61252
61253         * lib/xsize.h: New file.
61254         * lib/linebreak.c: Include xsize.h.
61255         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61256         argument for overflow.
61257         Suggested by Paul Eggert.
61258
61259 2003-11-03  Karl Berry  <karl@gnu.org>
61260
61261         * config/config.{guess,sub}: update from config.
61262
61263 2003-11-03  Jim Meyering  <jim@meyering.net>
61264
61265         * modules/userspec (lib_SOURCES): Add userspec.h.
61266         (Include): Add "userspec.h".
61267         Improve description.
61268
61269 2003-11-03  Jim Meyering  <jim@meyering.net>
61270
61271         * lib/userspec.c: Include "userspec.h".
61272         * lib/userspec.h: New file.
61273
61274 2003-11-03  Bruno Haible  <bruno@clisp.org>
61275
61276         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61277
61278 2003-11-03  Bruno Haible  <bruno@clisp.org>
61279
61280         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61281         available, to avoid (extremely rare) race condition.
61282         Suggested by Paul Eggert.
61283
61284 2003-11-02  Karl Berry  <karl@gnu.org>
61285
61286         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61287
61288 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61289
61290         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61291         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61292         (read_filesystem_list): Set and use me_type_malloced.
61293         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61294         whatever the type happens to be), for brevity and consistency.
61295         Check for size calculation overflow on Alphas running OSF/1.
61296
61297 2003-10-31  Jim Meyering  <jim@meyering.net>
61298
61299         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61300
61301         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61302
61303 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61304             Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61307         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61308
61309 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61310
61311         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61312         netbsd*-gnu*.  Suggested by Robert Millan.
61313
61314 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61315
61316         * modules/group-member: Depend on stdbool.
61317
61318 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61319
61320         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61321
61322 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61323
61324         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61325         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61326         after the 'gnu' in these cases.  This fixes some bugs in the
61327         previous change, and is based on suggestions by Robert Millan.
61328
61329 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61330
61331         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61332         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61333         no longer needed.
61334         * lib/quotearg.c (quotearg_n_options): Use it.
61335         * lib/group-member.c: Include <stdbool.h>.
61336         (free_group_info): Arg is now const *; don't free arg.
61337         (get_group_info): Now returns bool and accepts struct group_info *,
61338         rather than returning a malloc'ed struct group_info *.
61339         All uses changed.  Check for overflow in internal size calculation.
61340
61341         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61342         rather than xmalloc/xrealloc.
61343         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61344         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61345         conformance bug: the old code used a pointer after freeing the
61346         storage that it addressed.
61347         * lib/hash.c (hash_initialize): Simplify the code by using
61348         xalloc_oversized rather than doing it by hand.
61349         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61350         the buffer preserved.  Use free and xmalloc instead.
61351         * lib/quotearg.c (quotearg_n_options): Likewise.
61352         Use a simpler test for size overflow.  Don't use xalloc_oversized
61353         because unsigned int might be wider than size_t (!); this suggests
61354         that we should switch from unsigned int to size_t for slot numbers.
61355
61356 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61357
61358         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61359         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61360         NetBSD kernels.  Requested by Richard Stallman.
61361
61362 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61363
61364         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61365         to allocate the returned structure.  Do not allocate a subarray,
61366         as x2nrealloc will do that.
61367         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61368         instead of xnrealloc.
61369         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61370
61371 2003-10-27  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/stdbool_.h: Better support for BeOS.
61374
61375 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61376
61377         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61378         now uses inline.
61379
61380 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61381
61382         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61383         callers that want to do their own size-overflow checking.  Include
61384         <stdbool.h>, since xalloc_oversized returns bool.
61385         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61386         to use xalloc_oversized.
61387
61388         Add two functions x2realloc, x2nrealloc, for programs that grow
61389         arrays dynamically by doubling their sizes.
61390         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61391         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61392         New functions.
61393
61394         Port to C99 semantics for 'inline' of external functions.
61395         Bug reported by Bruno Haible.
61396         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61397         with the old contents of xnmalloc.
61398         (xnmalloc, xmalloc): Use it.
61399         (xnrealloc_inline): New static inline function,
61400         with the old contents of xnrealloc.
61401         (xnrealloc, xrealloc): Use it.
61402
61403         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61404         that.
61405
61406 2003-10-26  Karl Berry  <karl@gnu.org>
61407
61408         * config/srclist.txt (COPYING.DOC): no longer available from
61409         /gd/gnuorg; don't know where the ultimate source is.
61410
61411 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61412
61413         Fix several address-calculation bugs in the hash modules,
61414         plus some minor code cleanup.
61415
61416         * lib/hash.h: Include <stdbool.h>, for bool.
61417         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61418         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61419         hash_get_n_entries, hash_get_max_bucket_length,
61420         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61421         hash_rehash): Use size_t rather than unsigned.
61422         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61423         hash_get_n_buckets_used, hash_get_n_entries,
61424         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61425         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61426         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61427         Likewise.
61428         (SIZE_MAX): Define if not defined.
61429         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61430         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61431         hash_print):
61432         Use const * when possible.
61433         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61434         (check_tuning): Fix bug: if tuning parameters were very close to
61435         0 or 1, rounding errors could have caused subscript violations.
61436         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61437         (hash_initialize): Add 'fail:' label
61438         to free table and return NULL, and use it to simplify code.
61439         Use calloc rather than clearing the storage ourself.
61440         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61441         buffer size calculations.
61442         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61443         Include <stddef.h>, for size_t.
61444         * lib/hash-pjw.c (hash_pjw): Likewise.
61445         Switch to method described by Bruno Haible.
61446         Include <limits.h>, for CHAR_BIT.
61447         (SIZE_BITS): New macro.
61448
61449 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61450
61451         * m4/getline.m4 (AM_FUNC_GETLINE):
61452         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61453         hosts.  Problem reported by Derek Robert Price in
61454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61455         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61456         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61457
61458 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61459
61460         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61461         ceiling the allocation at NMAX bytes rather than silently
61462         discarding input bytes before NMAX is reached.  This makes
61463         a difference only if NMAX exceeds SIZE_MAX / 2.
61464
61465         * lib/obstack.c: Merge from glibc.
61466         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61467         Add libc_hidden_def (_obstack_newchunk).
61468         (_obstack_free) [! defined _LIBC]: Remove.
61469         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61470         a clone of the function body.
61471         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61472         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61473
61474         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61475         glibc.
61476         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61477         arg to memcpy.
61478
61479         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61480         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61481         Don't use lvalue casts, as GCC plans to remove support for them
61482         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61483         was also present in the non-GCC version, indicating that this
61484         code had always been buggy and had never been widely used.
61485         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61486         Use the fast variant of each macro, rather than copying the
61487         definiens of the fast variant; that way, we'll be more likely to
61488         catch future bugs in the fast variants.
61489
61490 2003-10-20  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/wait-process: New file.
61493         * MODULES.html.sh (func_all_modules): Add wait-process.
61494
61495 2003-10-20  Bruno Haible  <bruno@clisp.org>
61496
61497         * m4/wait-process.m4: New file.
61498
61499 2003-10-20  Bruno Haible  <bruno@clisp.org>
61500
61501         * lib/wait-process.h: New file, from GNU gettext.
61502         * lib/wait-process.c: New file, from GNU gettext.
61503
61504 2003-10-19  Jim Meyering  <jim@meyering.net>
61505
61506         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61507         HPUX 10.20.
61508
61509 2003-10-18  Karl Berry  <karl@gnu.org>
61510
61511         * config/config.guess: update from config.
61512
61513 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61514
61515         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61516         (getgroups): First arg is int, not size_t.
61517         Don't let 'free' mangle errno.
61518
61519 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61520
61521         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61522
61523 2003-10-16  Karl Berry  <karl@gnu.org>
61524
61525         * config/config.{guess,sub}: update from config.
61526
61527 2003-10-16  Jim Meyering  <jim@meyering.net>
61528
61529         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61530         memcpy.
61531
61532 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61533
61534         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61535         (SIZE_MAX): Remove.
61536         (new_exclude, add_exclude_file): Initial size no longer needs to
61537         be a power of 2.
61538         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61539         our own address arithmetic overflow checking.
61540
61541         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61542         (fnmatch): Do not alloca more than 2000 wide characters;
61543         instead, use malloc for large buffers.
61544         Check for address arithmetic overflow, and return -1
61545         with errno set to ENOMEM in that case.
61546         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61547         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61548         instead, return -1.  Check for address arithmetic overflow.
61549
61550 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61551
61552         Handle invalid suffixes and overflow independently, so that
61553         callers can treat them independently as needed.  Fix some bugs in
61554         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61555         suffix for a human-readable blocksize.  The major caller-visible
61556         change is the addition of a new
61557         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61558         that both overflow and suffix chars were found.
61559
61560         * lib/human.c (humblock): Don't check separately for invalid suffix
61561         char; that is xstrtoumax's job (now that its bug is fixed).
61562         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61563         INTMAX_MAX]: New macros.
61564         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61565         TYPE_MAXIMUM): New macros.
61566         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61567         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61568         if overflow occurs, as it's what __strtol does and it's more useful
61569         in practice.
61570         (__xstrtol): If __strtol reports some error other than ERANGE,
61571         reflect it to the caller as LONGINT_INVALID.  If it reports
61572         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61573         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61574         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61575         value.
61576         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61577         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61578         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61579         [defined UINTMAX_MAX]: New macros.
61580
61581 2003-10-14  Bruno Haible  <bruno@clisp.org>
61582
61583         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61584
61585 2003-10-14  Bruno Haible  <bruno@clisp.org>
61586
61587         * m4/sig_atomic_t: New file, from GNU gettext.
61588         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61589
61590 2003-10-14  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61593         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61594         Also use volatile where needed.
61595
61596 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61597
61598         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61599         Change maintainer from Bruno Haible to 'all'.
61600
61601 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61602
61603         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61604
61605 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61606
61607         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61608         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61609         and define in terms of the other primitives.
61610         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61611         (SIZE_MAX): Define if not already defined.
61612         (array_size_overflow): New function.
61613         (xalloc_die): Abort instead of exiting if 'error' returns.
61614         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61615         (xmalloc, xrealloc): Use them.
61616         (xcalloc): Check for address arithmetic overflow.
61617         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61618         a bit faster than strcpy.
61619
61620 2003-10-10  Simon Josefsson  <jas@extundo.com>
61621
61622         * modules/argp (Depends-on): Add restrict and strcase.
61623
61624 2003-10-10  Simon Josefsson  <jas@extundo.com>
61625
61626         * m4/argp.m4: Add AC_C_INLINE.
61627
61628 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61629
61630         Merge getpass from libc, plus a few fixes.
61631
61632         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61633         Include <stdbool.h>.
61634         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61635         __fsetlocking to empty.
61636         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61637         do include <bits/libc-lock.h>.
61638         Do not include <fcntl.h>; not needed.
61639         [_LIBC]: Include <wchar.h>.
61640         (NOTCANCEL_MODE): New macro.
61641         (flockfile, funlockfile) [_LIBC]: New macros.
61642         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61643         [!_LIBC]: New macros.
61644         (call_fclose): New function.
61645         (getpass): Use it.  Save tty stream separately; this simplifies the
61646         code and makes it more reliable if stdin happens to equal stdout.
61647         Invoke __fsetlocking on tty.
61648         Handle thread cancellation if needed.
61649         Namespace cleanup (use __tcgetattr, __getline).
61650         Use bool for Booleans.
61651         [USE_IN_LIBIO]: Handle wide streams.
61652         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61653         stream might go where.
61654
61655         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61656         doesn't have to include <stdio.h> before us.
61657         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61658         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61659         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61660         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61661         if not declared, so that we can use getpass.c code from libc without
61662         rewriting it.
61663         (flockfile, ftrylockfile, funlockfile): New macros.
61664
61665 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61666
61667         * modules/getpass: Depend on stdbool.
61668
61669 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61670
61671         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61672
61673 2003-10-07  Karl Berry  <karl@gnu.org>
61674
61675         * config/config.{guess,sub}: update from config.
61676
61677 2003-10-06  Jim Meyering  <jim@meyering.net>
61678             Bruno Haible  <bruno@clisp.org>
61679
61680         This lets translators provide better translations for the
61681         "Written by ..." part of --version output.
61682         * lib/version-etc.h: Include stdarg.h.
61683         (version_etc_copyright): Declare as readonly.
61684         (version_etc): Make this function variadic with a NULL-terminated list
61685         of author name strings.
61686         (version_etc_va): New declaration.
61687         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61688         (version_etc_copyright): Declare as readonly.
61689         (version_etc_va): New function. Provide a different translatable string
61690         for each possible number of authors < 10. Abbreviate when there are 10
61691         authors or more.
61692         (version_etc): Make this function variadic. Call version_etc_va.
61693         Suggestion from Gary V. Vaughan.
61694
61695         * lib/long-options.h (parse_long_options): Change prototype: the
61696         authors string is moved to the end and becomes variadic.
61697         * lib/long-options.c: Include stdarg.h.
61698         (parse_long_options): Make this function variadic, too.
61699         Call version_etc_va, not version_etc.
61700
61701 2003-10-06  Bruno Haible  <bruno@clisp.org>
61702
61703         * modules/version-etc-2: Remove file.
61704         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61705
61706 2003-10-06  Bruno Haible  <bruno@clisp.org>
61707
61708         * modules/fatal-signal: New file.
61709         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61710
61711 2003-10-06  Bruno Haible  <bruno@clisp.org>
61712
61713         * m4/fatal-signal.m4: New file.
61714         * m4/signalblocking.m4: New file, from GNU gettext.
61715
61716 2003-10-06  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/version-etc-2.h: Remove file.
61719         * lib/version-etc-2.c: Remove file.
61720
61721 2003-10-06  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/fatal-signal.h: New file, from GNU gettext.
61724         * lib/fatal-signal.c: New file, from GNU gettext.
61725
61726 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61727
61728         * README: Rework advice for preventing empty .o files.
61729         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61730         not <sys/types.h>.
61731
61732 2003-10-04  Karl Berry  <karl@gnu.org>
61733
61734         * lib/argp*: update from libc.
61735
61736 2003-10-04  Karl Berry  <karl@gnu.org>
61737
61738         * config/config.{guess,sub}: update from config.
61739
61740 2003-10-02  Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/lchown (Include): Add lchown.h.
61743         * modules/time_r (Include): Use "..." syntax.
61744         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61745
61746 2003-10-01  Simon Josefsson  <jas@extundo.com>
61747
61748         * MODULES.html.sh (func_all_modules): Move gethostname from section
61749         'based on' to section 'lacking' POSIX:2001.
61750
61751 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61752
61753         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61754         to output mode on the same stream.
61755
61756 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61757
61758         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61759         Fix arg typo in previous patch.
61760
61761 2003-09-28  Jim Meyering  <jim@meyering.net>
61762
61763         * lib/error.c: Correct cpp indentation.
61764
61765 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61766
61767         * modules/free: New file.
61768
61769 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61770
61771         * m4/free.m4: New file.
61772
61773 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61774
61775         * lib/minmax.h (MIN, MAX)
61776         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61777         Omit the special code that used __typeof__, since we worry that
61778         it could be more trouble than it's worth.  See:
61779         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61780         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61781
61782         * lib/free.c: New file.
61783
61784 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61785
61786         Trivial fixes to Makefile.am parts of module listings.
61787         * modules/strstr: Append strstr.h to lib_SOURCES.
61788         * modules/strcase: Likewise, for strcase.h.
61789
61790 2003-09-27  Karl Berry  <karl@gnu.org>
61791
61792         * config/mkinstalldirs: update from automake.
61793
61794 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61795
61796         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61797         (error_tail): Do not loop, reallocating temporary buffer, since
61798         the output cannot contain more wide characters than the input
61799         contains bytes, the size must be big enough already.  This avoids
61800         one potential size overflow calculation.  Check for size overflow
61801         when calculating temporary buffer size.  Free temporary buffer
61802         when done, if it was allocated with malloc; this plugs a memory
61803         leak.  Remove casts from void * to pointers, that are no longer
61804         needed now that we're assuming C89 or better.
61805
61806         Merge error changes from glibc.
61807
61808         * lib/error.c, error.h: Update copyright notice header to match glibc.
61809         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61810         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61811         Disable cancellation while printing error.
61812         * lib/error.h: Prepend __ to parameter names.
61813
61814 2003-09-26  Jim Meyering  <jim@meyering.net>
61815
61816         * lib/error.c (error_tail): Move some declarations
61817         into inner scope where the local variables are used.
61818
61819 2003-09-26  Bruno Haible  <bruno@clisp.org>
61820
61821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61822         stpncpy().
61823         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61824
61825 2003-09-26  Bruno Haible  <bruno@clisp.org>
61826
61827         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61828         (stpncpy): Define as alias for gnu_stpncpy.
61829         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61830
61831 2003-09-25  Simon Josefsson  <jas@extundo.com>
61832
61833         * lib/xgetdomainname.h: New file.
61834         * lib/xgetdomainname.c: New file.
61835
61836 2003-09-25  Simon Josefsson  <jas@extundo.com>
61837             Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/getdomainname: New file.
61840         * modules/xgetdomainname: New file.
61841         * MODULES.html.sh (func_all_modules): Add getdomainname,
61842         xgetdomainname.
61843
61844 2003-09-25  Simon Josefsson  <jas@extundo.com>
61845             Bruno Haible  <bruno@clisp.org>
61846
61847         * m4/getdomainname.m4: New file.
61848
61849 2003-09-25  Simon Josefsson  <jas@extundo.com>
61850             Bruno Haible  <bruno@clisp.org>
61851
61852         * lib/getdomainname.h: New file.
61853         * lib/getdomainname.c: New file.
61854
61855 2003-09-25  Karl Berry  <karl@gnu.org>
61856
61857         * lib/argp-fmtstream.c, argp-help.c: update from libc.
61858
61859 2003-09-25  Karl Berry  <karl@gnu.org>
61860
61861         * config/install-sh: update from automake.
61862
61863 2003-09-25  Bruno Haible  <bruno@clisp.org>
61864
61865         * modules/version-etc-2: New file, from modules/version-etc with
61866         modifications.
61867         * MODULES.html.sh (func_all_modules): Add version-etc-2.
61868
61869 2003-09-25  Bruno Haible  <bruno@clisp.org>
61870
61871         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
61872         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
61873
61874 2003-09-24  Simon Josefsson  <jas@extundo.com>
61875
61876         * modules/xgethostname: Add xgethostname.h.
61877
61878 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61879
61880         * lib/linebuffer.c (freebuffer): Don't free the argument, just
61881         the buffer associated with the argument.  Bug reported by
61882         Simon Josefsson.
61883
61884 2003-09-24  Paul Eggert  <eggert@twinsun.com>
61885
61886         * README: Document assumptions that 'int' is at least 32 bits
61887         wide, that integer arithmetic is 2's complement without overflow,
61888         that there are no holes in integer values, that adding sizes of
61889         two nonoverlapping objects can't overflow, and that all-bits-zero
61890         yields scalar zero.  Fix spelling and capitalization typos.
61891
61892 2003-09-19  Karl Berry  <karl@gnu.org>
61893
61894         * lib/argp.h: update from libc.
61895
61896 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61897
61898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
61899         to avoid spurious warnings like "AC_RUN_IFELSE was called before
61900         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
61901
61902 2003-09-17  Paul Eggert  <eggert@twinsun.com>
61903
61904         * gnulib-tool: Use "test -h", not "test -L", for portability
61905         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
61906         (tags_regexp): Remove, since \| doesn't conform to POSIX.
61907         (sed_extract_prog): Issue s commands one-by-one, rather than
61908         using \| in one s command.
61909
61910 2003-09-16  Paul Eggert  <eggert@twinsun.com>
61911
61912         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
61913         input error, instead of returning NULL the next time we are called
61914         (and therefore losing track of errno).
61915
61916 2003-09-16  Bruno Haible  <bruno@clisp.org>
61917
61918         * gnulib-tool (func_create_testdir): Warn about duplicated
61919         dependencies.
61920
61921 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61922
61923         * modules/argmatch, modules/fatal, modules/obstack,
61924         modules/xalloc, modules/xgethostname: Sort dependencies by
61925         importance, not alphabetically.
61926
61927 2003-09-15  Paul Eggert  <eggert@twinsun.com>
61928
61929         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
61930         fails, so that the caller gets the proper errno.
61931
61932         * lib/readutmp.c (read_utmp): Likewise.
61933         Check for fstat error.  Close stream and free storage
61934         when failing.
61935
61936 2003-09-14  Karl Berry  <karl@gnu.org>
61937
61938         * config/srclist.txt (strdup.c): disable for c89 changes.
61939
61940 2003-09-14  Jim Meyering  <jim@meyering.net>
61941
61942         * lib/getloadavg.c: Correct cpp indentation.
61943         * lib/strdup.c: Likewise.
61944         * lib/vasnprintf.c: Likewise.
61945
61946 2003-09-14  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/fwriteerror: New file.
61949         * MODULES.html.sh (func_all_modules): Add fwriteerror.
61950
61951 2003-09-14  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/fwriteerror.h: New file.
61954         * lib/fwriteerror.c: New file.
61955
61956 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61957
61958         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
61959         modules/xgethostname, modules/xalloc: Depend on exit.
61960
61961 2003-09-12  Paul Eggert  <eggert@twinsun.com>
61962
61963         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
61964
61965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
61966         and AC_MINIX, too, so that their extensions are available.
61967
61968         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
61969         This macro has been superseded by gl_BACKUPFILE.
61970
61971         More patches to assume C89 or better.
61972
61973         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
61974
61975         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
61976         unconditionally.
61977         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
61978         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
61979         Include <string.h>, <stdlib.h> unconditionally.
61980         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
61981         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
61982         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
61983         headers or for string.h.
61984         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
61985         or strtoul.
61986
61987         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
61988         headers.
61989         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
61990         * m4/userspec.m4 (gl_USERSPEC): Likewise.
61991         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
61992         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
61993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
61995         memcpy, memset.
61996         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
61997         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
61998         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
61999         strtol.
62000         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62001         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62002         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62003         strtoul.
62004
62005 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62006
62007         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62008         * lib/obstack.c [!defined _LIBC]: Likewise.
62009         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62010         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62011         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62012
62013         More changes to assume C89 or better.
62014
62015         * lib/error.c (error_tail): Assume vprintf.
62016
62017         * lib/argmatch.c (getenv): Remove decl.
62018         * lib/progreloc.c (get_full_program_name): Define via prototype.
62019         * lib/setenv.c (clearenv): Likewise.
62020         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62021         needed.
62022         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62023         (malloc, memcpy): Remove decls.
62024         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62025         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62026         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62027         (memcpy): Remove macro.
62028         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62029         (__P): Remove.  All uses removed.
62030         (PTR): Remove.  All uses changed to void *.
62031         (CHAR_BIT, NULL): Remove.
62032         (spaces, zeros, memset_space, memset_zero)
62033         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62034         Remove.
62035         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62036         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62037         Define with prototype.
62038         Remove now-unnecessary prototype decl.
62039         (extra_args_spec): Assume ANSI C.  All uses changed.
62040         (extra_args_spec_iso): Remove.
62041         (my_strftime, emacs_strftimeu): Define via prototype.
62042         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62043         unconditionally.
62044         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62045         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62046         (strtoul, strtol): Remove decls.
62047         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62048         LONG_MAX): Remove.
62049         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62050         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62051         (LOCALE_PARAM_PROTO): New macro.
62052         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62053         (INTERNAL (strtol), strtol): Define with a prototype.
62054         (PARAMS): Remove.  All uses removed.
62055         * lib/tempname.c: Include <string.h> unconditionally.
62056         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62057         * lib/xgethostname.c (main): Define with a prototype.
62058         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62059         Include <stdlib.h> unconditionally.
62060         (calloc, malloc, realloc, free): Remove decls.
62061         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62062         Include <stdlib.h> unconditionally.  Sort include file names.
62063         (strtod): Remove.
62064         (xstrtod): Define with a prototype.
62065         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62066         (strtol, strtoul): Remove decls.
62067
62068 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62069
62070         More patches to assume C89 or better.
62071         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62072         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62073         string.h, memchr, STDC_HEADERS.
62074
62075 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62076
62077         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62078         Include <stdlib.h>, <string.h> unconditionally.
62079         Remove now-unnecessary cast to char *.
62080         * lib/strnlen.c: Include <string.h> unconditionally.
62081         * lib/yesno.c (yesno): Define with a prototype.
62082
62083 2003-09-11  Bruno Haible  <bruno@clisp.org>
62084
62085         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62086
62087 2003-09-10  Jim Meyering  <jim@meyering.net>
62088
62089         * lib/error.c: Correct indentation of cpp directives.
62090
62091 2003-09-10  Bruno Haible  <bruno@clisp.org>
62092
62093         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62094         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62095         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62096         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62097         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62098         <stdlib.h> and <string.h> checks.
62099         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62100         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62101
62102 2003-09-10  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/strcspn.c: Include <string.h> unconditionally.
62105         * lib/strpbrk.c: Include <string.h> unconditionally.
62106         * lib/strstr.c: Include <string.h> unconditionally.
62107         * lib/unicodeio.c: Include <string.h> unconditionally.
62108         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62109         * lib/unsetenv.c: Likewise.
62110         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62111         * lib/yesno.c: Include <stdlib.h> unconditionally.
62112         (rpmatch): Add prototype.
62113
62114 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62115
62116         More patches to assume C89 or better.
62117         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62118         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62119         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62120         or for string.h.
62121         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62122         stdlib.h.
62123         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62124         C headers.
62125         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62126         string.h.
62127         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62128         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62129         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62130         or for string.h.
62131         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62132         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62133         C headers.
62134         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62135         memcpy.
62136         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62137         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62138         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62139         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62140         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62141         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62142         string.h, free.
62143         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62144         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62145         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62146         C headers, or for string.h.
62147         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62148         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62149         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62150         headers, memory.h, stdlib.h, string.h, strings.h.
62151         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62152         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62153         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62154         strchr.
62155         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62156         headers, memory.h, string.h.
62157         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62158         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62159         free.
62160         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62161         headers.
62162         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62163         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62164         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62165         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62166         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62167
62168 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62169
62170         More K&R removal.
62171
62172         * lib/acosl.c (main): Use a prototype.
62173         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62174         tanl.c: Likewise.
62175
62176         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62177
62178         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62179         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62180         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62181         with a prototype.
62182         * lib/getopt.c (const): Remove macro.
62183         Include <string.h> unconditionally.
62184         (my_index): Remove; all uses changed to strchr.
62185         (strlen): Remove decl.
62186         (exchange): Remove forward decl; no longer needed.
62187         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62188         Define with prototype.
62189         * lib/getopt1.c (const): Remove macro.
62190         (getopt_long, getopt_long_only, main): Define with prototype.
62191
62192         * lib/getugroups.c: Include <string.h> unconditionally.
62193
62194         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62195         (getusershell, setusershell, endusershell, readname, main):
62196         Define with prototypes.
62197
62198         * lib/group-member.c: Include group-member.h first.
62199         Include <stdlib.h> unconditionally.
62200
62201         * lib/hard-locale.c: Include hard-locale.h first.
62202         Include <stdlib.h>, <string.h> unconditionally.
62203
62204         * lib/hash.c (free, malloc): Remove decls.
62205         Include <stdlib.h> unconditionally.
62206
62207         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62208         (getenv): Do not declare.
62209
62210         * lib/idcache.c: Include <string.h> unconditionally.
62211
62212         * lib/long-options.c: Include long-options.h first, to test interface.
62213         Include <stdlib.h> unconditionally.
62214
62215         * lib/makepath.c: Include makepath.h first, to test interface.
62216         Include <stdlib.h> and <string.h> unconditionally.
62217
62218         * lib/linebuffer.c: Include <stdlib.h>.
62219         (free): Remove decl.
62220
62221         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62222         stddef.h. rpl_malloc returns void *, not char *.
62223         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62224         prototype.
62225
62226         * lib/md5.h: Include <limits.h> unconditionally.
62227         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62228         (__P): Remove; all uses removed.
62229         * lib/md5.c: Include "md5.h" first.
62230         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62231         md5_buffer, md5_process_bytes, md5_process_block):
62232         Define with prototypes.
62233         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62234         * lib/sha.c: Include "sha.h" first.
62235         Include <stdlib.h>, <string.h> unconditionally.
62236
62237         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62238         * lib/memcmp.c (__ptr_t): Likewise.
62239         * lib/memrchr.c (__ptr_t): Likewise.
62240         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62241         Include <string.h> unconditionally.
62242         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62243         * lib/memchr.c: Include <stdlib.h> unconditionally.
62244         * lib/memchr.c (LONG_MAX): Remove.
62245         * lib/memrchr.c (LONG_MAX): Likewise.
62246         * lib/memchr.c (__memchr): Define via a prototype.
62247         * lib/memrchr.c (__memrchr): Likewise.
62248         * lib/memcmp.c (__P): Remove, and remove all uses.
62249         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62250         Remove forward decls; no longer needed.
62251         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62252         Use types required by C89 in prototype.
62253
62254         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62255         * lib/savedir.c: Likewise.
62256         * lib/mkdir.c (free): Remove decl.
62257         * lib/rmdir.c (rmdir): Define with a prototype.
62258         * lib/savedir.c: Include savedir.h first, to test interface.
62259
62260         * lib/mktime.c (STDC_HEADERS): Remove.
62261         Include <stdlib.h>, <string.h> unconditionally.
62262
62263         * lib/modechange.c: Include <stdlib.h> unconditionally.
62264         (malloc): Remove decl.
62265
62266         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62267         (free): Remove decl.
62268
62269         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62270         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62271         (This type really should be intptr_t, but that's a C99ism.)
62272         (_obstack_memcpy): Remove: all uses changed to memcpy.
62273         Include <string.h> unconditionally.
62274         (struct obstack): Assume __STDC__ for types of members
62275         chunkfun, freefun, extra_arg.
62276         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62277         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62278         obstack_begin, obstack_specify_allocation,
62279         obstack_specify_allocation_with_arg, obstack_chunkfun,
62280         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62281         Remove unprototyped decls and the macros that use them.
62282         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62283         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62284         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62285         (defined __STDC__ && __STDC__)]:
62286         Remove nonprototyped code.
62287         Include <stdlib.h> unconditionally.
62288         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62289         _obstack_allocated_p, _obstack_free, obstack_free,
62290         _obstack_memory_used, print_and_abort):
62291         Define using prototypes.
62292         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62293         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62294         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62295         obstack_next_free, obstack_object_size, obstack_room) [0]:
62296         Remove unused, unprototyped code.
62297
62298         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62299
62300         * lib/physmem.c (physmem_total, physmem_available, main): Define
62301         with prototypes.
62302
62303         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62304         (main): Define with a prototype.
62305
62306         * lib/posixver.c (getenv): Remove decl.
62307
62308         * lib/putenv.c (malloc): Returns void *, not char *.
62309         Include <string.h> unconditionally.
62310         (strchr, memcpy, NULL): Do not define.
62311
62312         * lib/readtokens.c: Include readtokens.h first, to test interface.
62313         Include <stdlib.h>, <string.h> unconditionally.
62314         (init_tokenbuffer): Define with a prototype.
62315
62316         * lib/regex.c (PARAMS): Remove.  All uses removed.
62317         All uses of _RE_ARGS removed, too.
62318         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62319         unconditionally.
62320         (bzero): Assume memset exists.
62321         (memcmp, memcpy, NULL): Remove.
62322         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62323         char, or assignments to local vars of type signed char.
62324         (init_syntax_once, PREFIX(extract_number_and_incr),
62325         PREFIX(print_partial_compiled_pattern),
62326         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62327         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62328         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62329         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62330         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62331         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62332         wcs_compile_range, byte_compile_range, truncate_wchar,
62333         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62334         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62335         count_mbs_length, wcs_re_match_2_internal,
62336         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62337         PREFIX(alt_match_null_string_p),
62338         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62339         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62340         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62341         now-unnecessary declaration, if any.
62342         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62343         regcomp, regexec):
62344         Remove now-unnecessary casts among pointer types.
62345         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62346
62347         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62348         (free): Remove decl.
62349
62350         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62351
62352         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62353         (free): Remove decl.
62354
62355         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62356         * lib/xgetcwd.c: Likewise.
62357
62358         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62359         (free): Remove decl.
62360
62361         * lib/strchrnul.c (strchrnul): Define with a prototype.
62362         Fix bug: c_in was not converted to char before searching.
62363
62364         The following changes are not K&R related:
62365
62366         * lib/group-member.h: Include <sys/types.h>, so that this file is
62367         self-contained.
62368         * lib/makepath.h: Likewise.
62369
62370         * lib/getusershell.c (readname, default_index, line_size, readname):
62371         Use size_t, not int, for sizes.
62372         (readname): If the size overflows, report an error instead of
62373         looping forever.
62374
62375 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62376
62377         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62378         libc.
62379
62380 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62381
62382         * README: New section: portability guidelines.
62383
62384 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62385
62386         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62387         C89 spec.
62388
62389 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62390
62391         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62392
62393 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62394
62395         Assume C89 or better; remove K&R cruft.
62396         A few of these changes were first proposed by Derek Robert Price
62397         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62398
62399         * lib/addext.c: Include <string.h> unconditionally.
62400         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62401         Don't declare getenv or malloc.
62402
62403         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62404         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62405         (NULL): Remove.
62406         (find_stack_direction, alloca): Use prototypes.
62407
62408         * lib/atexit.c (atexit): Define using a prototype.
62409
62410         * lib/basename.c, dirname.c, stripslash.c:
62411         Include <string.h> unconditionally.
62412
62413         * lib/bcopy.c: Include <stddef.h>.
62414         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62415
62416         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62417
62418         * lib/error.h (error, error_at_line, error_print_progname)
62419         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62420         * lib/error.c: Include error.h first, to check interface.
62421         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62422         (VA_START): Remove; all uses changeed to va_start.
62423         (exit, strerror): Remove decls.
62424         (error_print_progname): Prototype uncondionally.
62425         Don't include <errno.h>; no longer needed.
62426         (private_strerror): Remove.
62427         (error_tail): Always define.
62428         (error, error_at_line): Assume C89 or better; always use prototypes.
62429         * lib/fatal.c: Include "fatal.h" first, to test interface.
62430         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62431         (VA_START): Remove; all uses changed to va_start.
62432         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62433         this case.
62434         (exit): Remove decl.
62435         (fatal): Prototype unconditionally.  Assume va_start works.
62436         Abort at end, to pacify gcc.
62437
62438         * lib/euidaccess.c (main): Define with a prototype.
62439
62440         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62441
62442         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62443
62444         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62445         prototypes.
62446         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62447         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62448         (getenv): Remove decl.
62449         (fnmatch): Define using a prototype.
62450         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62451         (FCT): Define using a prototype.
62452
62453         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62454
62455         * lib/gethostname.c: Include <stddef.h>.
62456         (gethostname): Define with prototype.  Length is size_t, not int.
62457
62458 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62459
62460         Assume C89 or better; remove K&R cruft.
62461         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62462         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62463         string.h, getenv, malloc.
62464         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62465         headers.
62466         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62467         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62468         do not check for strerror.
62469         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62470         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62471         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62472         do not check for doprnt or vprintf.
62473         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62474         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62475
62476 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62477
62478         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62479         getversion.c should have been removed then, but was accidentally
62480         preserved.
62481
62482         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62483         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62484
62485 2003-09-08  Karl Berry  <karl@gnu.org>
62486
62487         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62488                 config, forget about prep.
62489
62490         * config/depcomp, missing: update from automake.
62491
62492 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62493
62494         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62495         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62496
62497 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62498
62499         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62500         copy_tm_result.  Bug reported by Simon Josefsson in
62501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62502
62503 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62504
62505         * m4/time_r.m4: New file.
62506         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62507         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62508         is. Check for timegm declaration.
62509         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62510         Do not check for gmtime_r.
62511         Replace mktime if __mktime_internal does not exist and if mktime
62512         hasn't been replaced already.
62513
62514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62515
62516         * lib/time_r.c, lib/time_r.h: New files.
62517
62518         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62519         __localtime_r.
62520         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62521         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62522
62523         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62524         __gmtime_r.
62525         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62526         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62527         Include <time_r.h>.
62528
62529         * lib/timegm.c: Switch to glibc implementation, with the following
62530         changes:
62531         [defined HAVE_CONFIG_H]: Include <config.h>.
62532         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62533         (__mktime_internal) [!defined _LIBC]: New decl.
62534         (__gmtime_r) [!defined _LIBC]: New macro and function.
62535         (timegm): Use a prototype, since gnulib assumes C89.
62536         Do not bother declaring tmp to be const, as it's not really usefu.
62537         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62538         (timegm): Declare only if HAVE_DECL_TIMEGM.
62539
62540 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62541
62542         * MODULES.html.sh (func_all_modules): Add time_r.
62543         * modules/time_r: New file.
62544         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62545         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62546
62547 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62548
62549         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62550         Bug reported by Lute Kamstra in
62551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62552
62553         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62554         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62555         course with correspondingly smaller numbers for tomorrow and
62556         yesterday.  From Tadayoshi Funaba.  Originally installed into
62557         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62558         coreutils merge?).
62559
62560 2003-08-31  Simon Josefsson  <jas@extundo.com>
62561
62562         * modules/timegm: New file.
62563         * MODULES.html.sh (func_all_modules): Add timegm.
62564
62565 2003-08-31  Simon Josefsson  <jas@extundo.com>
62566
62567         * m4/timegm.m4: New file.
62568
62569 2003-08-31  Simon Josefsson  <jas@extundo.com>
62570
62571         * lib/timegm.h: New file.
62572         * lib/timegm.c: New file.  Based on
62573         wget-1.8.2/src/http.c:mktime_from_utc.
62574
62575 2003-08-31  Karl Berry  <karl@gnu.org>
62576
62577         * lib/argp.h: update from libc.
62578
62579 2003-08-28  Bruno Haible  <bruno@clisp.org>
62580
62581         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62582         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62583         followed by '#define fnmatch fnmatch_posix' gives an error.
62584
62585 2003-08-28  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62588         warning on QNX, which defines O_BINARY to 000000.
62589
62590 2003-08-27  Jim Meyering  <jim@meyering.net>
62591
62592         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62593         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62594         would fail after 32.  Reported by Danny Levinson.  Details here:
62595         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62596
62597 2003-08-24  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62600         MSVC7 <stdio.h> is included later.
62601
62602 2003-08-22  Simon Josefsson  <jas@extundo.com>
62603
62604         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62605
62606 2003-08-20  Karl Berry  <karl@gnu.org>
62607
62608         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62609
62610 2003-08-20  Bruno Haible  <bruno@clisp.org>
62611
62612         * modules/progname: New file.
62613         * MODULES.html.sh (func_all_modules): Add progname.
62614
62615 2003-08-20  Bruno Haible  <bruno@clisp.org>
62616
62617         * lib/progname.h: New file, from GNU gettext.
62618         * lib/progname.c: New file, from GNU gettext.
62619         * lib/progreloc.c: New file, from GNU gettext.
62620
62621 2003-08-19  Jim Meyering  <jim@meyering.net>
62622
62623         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62624         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62625
62626 2003-08-19  Bruno Haible  <bruno@clisp.org>
62627
62628         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62629         more.
62630
62631 2003-08-19  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/xstrdup.c: Assume <string.h> exists.
62634
62635 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62636
62637         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62638         in makefile rules.
62639
62640 2003-08-18  Jim Meyering  <jim@meyering.net>
62641
62642         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62643         * m4/lib-ld.m4: Likewise.
62644
62645 2003-08-18  Jim Meyering  <jim@meyering.net>
62646
62647         * lib/setenv.h: Indent nested cpp directive.
62648         * lib/vasnprintf.c: Remove trailing blanks.
62649
62650 2003-08-17  Simon Josefsson  <jas@extundo.com>
62651
62652         * modules/xstrndup: New file.
62653         * MODULES.html.sh (func_all_modules): Add xstrndup.
62654
62655 2003-08-17  Simon Josefsson  <jas@extundo.com>
62656
62657         * modules/argp: Fix autoconf macro name. Add more dependencies.
62658
62659 2003-08-17  Simon Josefsson  <jas@extundo.com>
62660
62661         * m4/xstrndup.m4: New file.
62662
62663 2003-08-17  Simon Josefsson  <jas@extundo.com>
62664
62665         * m4/argp.m4: New file.
62666
62667 2003-08-17  Simon Josefsson  <jas@extundo.com>
62668             Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/xstrndup.h: New file.
62671         * lib/xstrndup.c: New file.
62672
62673 2003-08-17  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/strndup (Files, Include): Add lib/strndup.h.
62676
62677 2003-08-17  Bruno Haible  <bruno@clisp.org>
62678
62679         * modules/euidaccess (Files): Add lib/euidaccess.h.
62680
62681 2003-08-17  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/strndup.h: New file.
62684
62685 2003-08-17  Bruno Haible  <bruno@clisp.org>
62686
62687         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62688         like AC_GNU_SOURCE.
62689         * modules/extensions (configure.ac): Comment out the invocation of
62690         gl_USE_SYSTEM_EXTENSIONS.
62691
62692 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62693
62694         Merges from coreutils, etc.
62695         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62696         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62697         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62698         fixing a typo.
62699         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62700         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62701
62702 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62703
62704         Document merge from coreutils.
62705         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62706         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62707         * modules/utime: Add m4/utimes-null.m4.
62708
62709 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62710
62711         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62712         space, undoing this 2003-08-12 change:
62713         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62714
62715 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62716
62717         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62718         strtoul.c from libc, undoing this 2003-08-12 change:
62719         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62720
62721 2003-08-16  Jim Meyering  <jim@meyering.net>
62722
62723         Merges from coreutils.
62724         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62725         prefix.  Adjust cache variables similarly.  Create 500 rather than
62726         just 300 files, to exercise bug on Darwin6.5, too.
62727         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62728         $missing_dir.
62729         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62730         AM_SYS_POSIX_TERMIOS.
62731         Reported by mkc@mathdogs.com.
62732         Also change use of $am_cv_sys_posix_termios
62733         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62734         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62735         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62736         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62737         in /proc/mounts until it finds one with matching device number.  This
62738         is unnecessary when the FILE argument *is* a mount point.  No stat call
62739         is necessary in that case.  So, disable the statvfs-testing code on
62740         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62741         as RedHat bug# 84846.
62742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62743         to 1MB, so as not to render systems with no stack size limit (e.g.,
62744         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62745         Include <unistd.h>.  On some systems,
62746         it is required for the definition of _SC_PAGESIZE.
62747
62748 2003-08-16  Jim Meyering  <jim@meyering.net>
62749
62750         Merge from coreutils.
62751         * lib/xstrtoimax.c: #else #if -> #elif.
62752         * lib/xstrtoumax.c: Likewise.
62753
62754 2003-08-16  Jim Meyering  <jim@meyering.net>
62755
62756         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62757         * m4/utimes.m4: Removed.
62758         * m4/utimes-null.m4: Renamed from utimes.m4.
62759
62760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62761         to 1MB, so as not to render systems with no stack size limit (e.g.,
62762         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62763         Include <unistd.h>.  On some systems,
62764         it is required for the definition of _SC_PAGESIZE.
62765
62766 2003-08-16  Jim Meyering  <jim@meyering.net>
62767         and Paul Eggert  <eggert@cs.ucla.edu>
62768
62769         Merges from coreutils, etc.
62770
62771         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62772         using the latest version from cvs.  This avoids problems with #line
62773         directives using a vendor (Sun) compiler.
62774         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62775         Don't set GETGROUPS_LIB here; now it's
62776         done via getgroups.m4's wrapper function.
62777         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62778         rather than just in sh-util/configure.in, so that the
62779         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62780         same.
62781         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62782         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62783         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62784         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62785         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62786         Remove code that is now done by the newly-required macros.
62787         Append $(EXEEXT) to DF_PROG.
62788         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62789         Do not invoke or require the following here,
62790         since prereq.m4 or some gnulib .m4 now does this for us:
62791         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62792         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62793         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62794         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62795         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62796         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62797         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62798         AC_FUNC_OBSTACK.
62799         Do not replace the following functions, as this is now the job
62800         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62801         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62802         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62803         atexit getpass, strdup, getpagesize.
62804         Replace 'raise'.
62805         Do not check for the following functions, as this is now the job
62806         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62807         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62808         setregid.
62809         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62810         Check for sys/sysctl.h.
62811         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62812         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62813         of checking for ssize_t ourselves.
62814
62815         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62816         Require every macro that gnulib/modules/* suggests for us.
62817         (jm_PREREQ_ADDEXT): New macro.
62818         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62819         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62820
62821         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62822         (gl_PHYSMEM): Use it.
62823         Also check for `table' function.
62824         Check for new headers and functions.
62825         Add check for sys/sysmp.h.
62826         With suggestions from Kaveh Ghazi.
62827         Ignore headers that are present but cannot be compiled.  This
62828         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62829         C 5.4.
62830
62831 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62832
62833         Document merge from coreutils.
62834         * modules/userspec: Depend on posixver.
62835         * modules/strftime: Depend on tzset.
62836
62837 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62838
62839         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62840         rather than tab, after '#' in shell-script copyright notices.
62841         Suggested by Bruno Haible.
62842
62843 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62844
62845         * config/srclist-update: Use three spaces, rather than tab, after '#'
62846         in shell-script copyright notices.  Suggested by Bruno Haible.
62847         Remove unnecessary parenthesization in regular expression.
62848
62849 2003-08-15  Jim Meyering  <jim@meyering.net>
62850
62851         Merge from coreutils.
62852         * lib/xgethostname.c: Include <stdlib.h>.
62853         (xghostname): Don't exit for anything other than memory-related
62854         failure; just return NULL.
62855         * lib/userspec.c: Include "posixver.h".
62856         (parse_user_spec): Accept `.' as a separator only
62857         in pre-POSIX-200112 mode.
62858         * lib/strtoimax.c: Use #elif rather than #else #if.
62859         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
62860         Remove function, now that we can rely on a working tzset function.
62861         [!_LIBC]: Ensure that the required autoconf test has been run.
62862         [!defined _NL_CURRENT && HAVE_STRFTIME]:
62863         Use underlying_strftime for %r.
62864         * lib/sha.c: Merge in some clean-up and optimization changes from
62865         glibc.
62866         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
62867         Ensure that it is a multiple of 64.
62868         Rearrange loop exit tests so as to avoid performing an
62869         additional fread after encountering an error or EOF.
62870         * lib/realloc.c: Update copyright date.
62871
62872 2003-08-15  Jim Meyering  <jim@meyering.net>
62873         and Paul Eggert  <eggert@twinsun.com>
62874
62875         Merge from coreutils.
62876         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
62877         member but strut utmpx does not.  Needed for AIX 4.3.3.
62878         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
62879
62880 2003-08-15  Jim Meyering  <jim@meyering.net>
62881         and Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         Merges from coreutils, etc.
62884         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
62885         Require gl_FUNC_TZSET_CLOBBER.
62886         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
62887         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
62888         members.
62889
62890 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62891
62892         Help the merge from coreutils.
62893         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
62894         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
62895         * m4/tzset.m4: Use it too.
62896
62897 2003-08-14  Paul Eggert  <eggert@twinsun.com>
62898
62899         * modules/tzset: New file.
62900
62901 2003-08-14  Jim Meyering  <jim@meyering.net>
62902
62903         Merges from coreutils.
62904         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
62905         variable names, rather than @FNMATCH_H@.
62906         * modules/alloca: Likewise for $(ALLOCA_H).
62907
62908         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
62909         the three copies of the literal target, `fnmatch.h'.
62910         * modules/alloca (alloca.h): Likewise.
62911
62912 2003-08-14  Jim Meyering  <jim@meyering.net>
62913
62914         Merge from coreutils.
62915         * m4/tzset.m4: New file.
62916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
62917         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
62918         otherwise, AIX 5.1 systems would end up using the latter.
62919         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
62920         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
62921         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
62922         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
62923
62924 2003-08-14  Jim Meyering  <jim@meyering.net>
62925
62926         Merge from coreutils.
62927         * lib/obstack.h: Whitespace changes.
62928         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
62929         and xcalloc return values.
62930         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
62931         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
62932         hang on OSF/1 5.1 for DIR on both local and remote file systems.
62933         Reported by (and fix confirmed by) Nelson H. F. Beebe.
62934         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62935         error from mntctl.
62936         Use mntctl's return value to drive the entry-processing loop, since
62937         we can't rely on the value of the vmt_length member in the last
62938         entry.  On some systems doing so could result in exhausting
62939         virtual memory.  Based in part on a patch from Mike Jetzer.
62940
62941 2003-08-14  Jim Meyering  <jim@meyering.net>
62942         and Paul Eggert  <eggert@twinsun.com>
62943
62944         Merges from coreutils, plus other fixes.
62945         * lib/physmem.c: Merge in portability changes from gcc/libiberty
62946         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
62947         for credits and details.  Thanks to Kaveh Ghazi for helping
62948         to keep these files in sync.
62949         (ARRAY_SIZE): Define it.
62950         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
62951         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
62952         (memcasecmp): Don't assume size_t fits in unsigned int.
62953         Remove casts and duplicate code.
62954         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
62955         (memcpy): Remove definition.
62956         Merge in some clean-up and optimization changes from glibc.
62957         [BLOCKSIZE]: Move definition to top of file.
62958         Ensure that it is a multiple of 64.
62959         Rearrange loop exit tests so as to avoid performing an
62960         additional fread after encountering an error or EOF.
62961         * lib/md5.h (md5_uintptr): Define.
62962         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
62963         return to the initial working directory.  Preserve errno
62964         for caller.
62965         * lib/idcache.c: Include "xalloc.h".
62966         (xmalloc, xrealloc): Remove decls.
62967         (getuser): Remove casts no longer required in C89.
62968         * lib/human.c: Include stdio.h, for sprintf.
62969         * lib/group-member.c: Include "xalloc.h".
62970         (xmalloc, xrealloc): Remove decls.
62971         (get_group_info): Remove casts no longer required in C89.
62972         * lib/getusershell.c (readname): Remove casts no longer required in
62973         C89.
62974         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
62975         * lib/getline.c: Whitespace fix, from coreutils.
62976
62977 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62978
62979         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
62980         Check for isascii.
62981
62982         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
62983         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
62984         Undo previous (whitespace-only) change.
62985
62986 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62987
62988         * lib/exclude.c: Include <ctype.h>
62989         (IN_CTYPE_DOMAIN): New macro.
62990         (is_space): New fn.
62991         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
62992         and empty lines.
62993
62994         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
62995         Undo previous (whitespace-only) change.
62996
62997 2003-08-13  Paul Eggert  <eggert@twinsun.com>
62998
62999         * config/srclist-update: Change update back to the old behavior,
63000         leaving whitespace alone.  Use one 'sed' command rather than a
63001         pipeline.
63002         (fixlicense): Now a variable, not a function.
63003         (remove_trailing_blanks): Remove.
63004         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63005         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63006         Undo previous (whitespace-only) change.
63007
63008 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63009
63010         Merge from coreutils.
63011         * modules/euidaccess: Add lib_SOURCES, include for new
63012         file euidaccess.h
63013
63014 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63015
63016         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63017         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63018         Normalize leading white space and remove trailing white space.
63019
63020         Merge from coreutils
63021         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63022
63023         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63024         0.12.1.  These files are now being upgraded automatically by
63025         ../config/srclist-update.
63026
63027 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63028
63029         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63030         Normalize leading white space and remove trailing white space.
63031         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63032         notice, as per ../config/srclist-update.
63033
63034         Merge from coreutils.
63035         * lib/euidaccess.h: New file.
63036         * lib/euidaccess.c: Include it.
63037         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63038         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63039         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63040
63041 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63042
63043         * config/srclist-update: Add copyright notice.
63044         (remove_id_lines, remove_trailing_blanks): New constants.
63045         (fixfile): Use them to normalize spacing a bit in copied files.
63046         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63047         Normalize leading white space and remove trailing white space.
63048
63049         * config/texinfo.tex: Sync with texinfo.
63050
63051         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63052         strtoul.c from libc, to merge coreutils whitespace changes.
63053
63054         * config/srclist.txt: Get the following m4 files from gettext:
63055         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63056         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63057         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63058         wint_t.m4.
63059
63060 2003-08-12  Karl Berry  <karl@gnu.org>
63061
63062         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63063         been made.
63064
63065 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63066
63067         * modules/gnu-source, m4/gnu-source.m4:
63068         Remove; we're assuming Autoconf 2.54 or later now.
63069         Suggested by Bruno Haible.
63070         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63071
63072 2003-08-11  Bruno Haible  <bruno@clisp.org>
63073
63074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63075
63076 2003-08-11  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63079         (vasnprintf): Use it instead of wcslen.
63080
63081 2003-08-11  Bruno Haible  <bruno@clisp.org>
63082
63083         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63084         value to ensure that _Bool promotes to int. Use #define for _Bool when
63085         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63086
63087 2003-08-10  Karl Berry  <karl@gnu.org>
63088
63089         * lib/regex.h: update from libc (whitespace fix).
63090
63091 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63092
63093         Merge some files from coreutils.  These changes were
63094         originally made by Jim Meyering.
63095         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63096         many older Unixes require this.
63097         * lib/alloca.c (alloca): Remove cast to argument of free;
63098         no longer needed in C89.
63099         * lib/alloca_.h, regex.h: Fix white space to match
63100         what GNU indent does.
63101
63102 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63103
63104         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63105         apparently Emacs's Unicode mode got confused before my 2003-08-05
63106         checkin.
63107
63108 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63109
63110         * m4/extensions.m4: New file.
63111         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63112         Require gl_USE_SYSTEM_EXTENSIONS.
63113         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63114         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63115
63116 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63117
63118         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63119         * modules/extensions, modules/gnu-source: New files.
63120         * modules/timespec, modules/unlocked-io: Depend on extensions.
63121
63122 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63123
63124         * modules/restrict: New file.
63125         * MODULES.html.sh (func_all_modules): Add restrict.
63126         * modules/regex: Depend on restrict.
63127
63128 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63129
63130         * m4/restrict.m4: New file.
63131         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63132
63133 2003-08-07  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63136         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63137
63138 2003-08-07  Bruno Haible  <bruno@clisp.org>
63139
63140         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63141         makes the module 'getndelim2' compatible with the module 'getline'.
63142
63143 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63144
63145         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63146         byte with "\201" to avoid glitches when editing that source file
63147         with multi-gnome-terminal.
63148
63149 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63150
63151         * lib/bumpalloc.h: Remove.
63152
63153 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63154
63155         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63156         * modules/bumpalloc: Remove.
63157
63158 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63159
63160         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63161         GNU coding style.
63162
63163         Merge from coreutils.
63164         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63165         1. From glibc.
63166         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63167         from Karl Berry, implemented by Jim Meyering.
63168         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63169         from Dmitry V. Levin.
63170         Remove anachronistic cast of xrealloc.
63171         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63172         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63173         type. Otherwise, it wouldn't compile with at least /bin/cc on
63174         ymp-cray-unicos9.0.2.X.
63175         Combine two mostly-identical uses of alloca into one.
63176         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63177
63178 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63179
63180         [From Emacs.]
63181
63182         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63183         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63184         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63185         obsolete NLIST_NAME_UNION.
63186         [__GNU__]: Undef BSD and FSCALE.
63187         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63188
63189 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63190
63191         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63192         an enum type, so that it's guaranteed to promote to int.  See:
63193         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63194
63195 2003-08-03  Karl Berry  <karl@gnu.org>
63196
63197         * config/depcomp: update from automake.
63198
63199 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63200
63201         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63202         (strerror): Don't assume that a printable int fits in 14 bytes.
63203
63204 2003-07-31  Bruno Haible  <bruno@clisp.org>
63205
63206         * modules/getpass-gnu: New file.
63207         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63208
63209 2003-07-31  Bruno Haible  <bruno@clisp.org>
63210
63211         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63212
63213 2003-07-24  Karl Berry  <karl@gnu.org>
63214
63215         * config/missing: update from automake.
63216
63217 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63218             Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63221         * lib/getline.c (getline, getdelim): Likewise.
63222         Remove _GNU_SOURCE define; now it's defined in config.h through
63223         m4/getline.m4.
63224
63225 2003-07-23  Karl Berry  <karl@gnu.org>
63226
63227         * config/config.sub: update from prep.
63228
63229 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63230
63231         * modules/xalloc (Depends-on): Add exitfail.
63232         * modules/xmemcoll: Likewise.
63233
63234 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63235
63236         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63237         over-parenthesization in macros.
63238
63239         Sync with coreutils.
63240
63241         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63242         required by C99.
63243
63244         Use `exit_failure' for xalloc and xmemcoll instead of their own
63245         private exit-failure variables.
63246         * lib/xalloc.h (xalloc_exit_failure): Remove.
63247         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63248         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63249         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63250         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63251         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63252
63253 2003-07-20  Jim Meyering  <jim@meyering.net>
63254
63255         * modules/closeout (Depends-on): Add exitfail.
63256         Suggestion from Bruno Haible.
63257
63258 2003-07-19  Karl Berry  <karl@gnu.org>
63259
63260         * config/config.sub: update from prep.
63261
63262 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63263
63264         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63265         Remove.
63266         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63267         to test that it can stand by itself.  Include "exitfail.h".
63268         Clients should set exit_failure instead.
63269         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63270
63271 2003-07-18  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/getndelim2: New file.
63274         * modules/getline: Share files with module getndelim2.
63275         * modules/getnline: Depend on getndelim2 instead of sharing files with
63276         it. Add getnline.c to lib_SOURCES.
63277         * MODULES.html.sh (func_all_modules): Add getndelim2.
63278
63279 2003-07-18  Bruno Haible  <bruno@clisp.org>
63280
63281         * m4/getndelim2.m4: New file.
63282         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63283         invoke gl_PREREQ_GETNDELIM2.
63284         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63285         gl_PREREQ_GETNDELIM2.
63286         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63287         gl_GETNDELIM2.
63288
63289 2003-07-18  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/getndelim2.h: New file.
63292         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63293         getndelim2.h.
63294         (getndelim2): Make non-static. Change return type to ssize_t.
63295         * lib/getline.h: Change argument names.
63296         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63297         * lib/getnline.c: Include getndelim2.h.
63298
63299 2003-07-18  Andreas Schwab  <schwab@suse.de>
63300
63301         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63302
63303 2003-07-17  Karl Berry  <karl@gnu.org>
63304
63305         * config/config.sub: update from prep.
63306
63307 2003-07-17  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/getnline: New file.
63310         * modules/getline: Add lib/getndelim2.c to source file list.
63311         * MODULES.html.sh (func_all_modules): Add getnline.
63312
63313 2003-07-17  Bruno Haible  <bruno@clisp.org>
63314
63315         * m4/getnline.m4: New file.
63316
63317 2003-07-17  Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/Makefile.am.in: Remove file.
63320         * m4/Makefile.am: Remove file.
63321         * m4/Makefile.in: Remove file.
63322
63323 2003-07-17  Bruno Haible  <bruno@clisp.org>
63324
63325         * lib/getnline.h: New file.
63326         * lib/getnline.c: New file.
63327         * lib/getndelim2.c: New file, extracted from getline.c.
63328         (getndelim2): Renamed from getdelim2, with added nmax argument.
63329         * lib/getline.c: Include getndelim2.c.
63330         (getdelim2): Moved out to getndelim2.c.
63331         (getline, getdelim): Update.
63332
63333 2003-07-17  Bruno Haible  <bruno@clisp.org>
63334
63335         * lib/Makefile.am: Remove file.
63336         * lib/Makefile.in: Remove file.
63337
63338 2003-07-17  Bruno Haible  <bruno@clisp.org>
63339
63340         * configure.in: Remove file.
63341         * Makefile.in: Remove file.
63342
63343 2003-07-17  Bruno Haible  <bruno@clisp.org>
63344
63345         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63346
63347 2003-07-16  Karl Berry  <karl@gnu.org>
63348
63349         * config/srclist-update: was running fixlicense twice, which caused
63350                 texinfo.tex to be nullified for some reason.  Simplify,
63351                 $gplsrc is no longer needed as far as I can see?
63352
63353 2003-07-16  Jim Meyering  <jim@meyering.net>
63354
63355         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63356
63357 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63358
63359         * config/srclist.txt: Get the following files from gettext-runtime/intl
63360         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63361         ref-del.sin.  From Bruno Haible.
63362         * config/srclist-update (fixfile): Change grep pattern again, since the
63363         previous fix didn't work (there was another trailing $).  Use
63364         '[$]' to escape the $s.
63365
63366 2003-07-15  Karl Berry  <karl@gnu.org>
63367
63368         * lib/vasnprintf.c: update from gettext.
63369
63370 2003-07-15  Karl Berry  <karl@gnu.org>
63371
63372         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63373         gets expanded when surrounded by '$'.
63374
63375 2003-07-15  Jim Meyering  <jim@meyering.net>
63376
63377         * modules/save-cwd: Don't depend on error.  From Derek Price.
63378
63379 2003-07-15  Jim Meyering  <jim@meyering.net>
63380
63381         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63382
63383 2003-07-14  Simon Josefsson  <jas@extundo.com>
63384
63385         * modules/mempcpy: New file.
63386         * MODULES.html.sh (func_all_modules): Add mempcpy.
63387
63388 2003-07-14  Simon Josefsson  <jas@extundo.com>
63389
63390         * m4/mempcpy.m4: New file.
63391
63392 2003-07-14  Simon Josefsson  <jas@extundo.com>
63393
63394         * lib/mempcpy.h: New file.
63395         * lib/mempcpy.c: New file.
63396
63397 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63398
63399         * modules/getdate, modules/posixtm: Depend on mktime.
63400
63401 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63402
63403         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63404         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63405         unicodeio.c, unicodeio.h, unlocked-io.h:
63406         Switch from LGPL to GPL.
63407
63408 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63409
63410         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63411         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63412         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63413         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63414         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63415         updated automatically by ../config/srclist-update.  This changes
63416         their license from LPGL to GPL.
63417
63418 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63419
63420         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63421         assumed to refer to the root of the most recent stable gettext version.
63422         * config/srclistvars.sh: Add defaults for eggert.
63423         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63424         Match "This program" as well as "The program".  This is needed
63425         for gettext.
63426
63427 2003-07-14  Jim Meyering  <jim@meyering.net>
63428
63429         Don't emit diagnostics.  Let callers do that.
63430         * lib/save-cwd.c: Don't include "error.h".
63431         (save_cwd): Don't call error.  Ensure that errno is valid
63432         when returning nonzero.
63433
63434         * lib/save-cwd.h (restore_cwd): Update prototype.
63435         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63436         Simplify.  Don't call error upon failure.  Let callers do that.
63437         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63438         when auditing is enabled.  But don't bother updating the #if.
63439
63440 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63441
63442         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63443         it breaks C++ compilation.
63444         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63445
63446 2003-07-10  Simon Josefsson  <jas@extundo.com>
63447
63448         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63449
63450 2003-07-10  Jim Meyering  <jim@meyering.net>
63451
63452         * m4/clock_time.m4: Remove trailing blank.
63453         * m4/intmax_t.m4: Likewise.
63454
63455 2003-07-10  Jim Meyering  <jim@meyering.net>
63456
63457         * lib/vasnprintf.c: Remove trailing blanks.
63458         Make cpp indentation consistent.
63459
63460 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63461
63462         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63463         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63464         Switch from LGPL to GPL.
63465
63466 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63467
63468         * config/srclist.txt: Sort sublists.  Add
63469         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63470         that differ from gnulib for one reason or another; we'd like this list
63471         to be smaller but for now let's document what we have.
63472
63473 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63474
63475         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63476         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63477         and sweeter "eval x=$x".
63478         * config/srclist.txt: Get lib/argp* from glibc.
63479
63480 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63481
63482         * lib/mktime.c: Fix some boundary cases and remove need for floating
63483         point.
63484
63485         Issue a compile-time diagnostic if time_t is floating point, or if
63486         two's complement arithmetic is not in effect, or if arithmetic
63487         right shift does not propagate the sign.  These assumptions were
63488         all in the original code but they weren't checked.
63489
63490         (TIME_T_MIDPOINT, verify): New macros.
63491         (__isleap): Remove; it has integer overflow problems.
63492         (leapyear): New function, without those problems.
63493         (ydhms_tm_diff): Remove; splitting into two parts.
63494         (ydhms_diff): New function, containing the arithmetic part of
63495         the old ydhms_tm_diff function.  Issue a compile-time
63496         diagnostic if we are not using C99 integer division.
63497         Avoid casts when possible.
63498         (guess_time_tm): New function, containing the checking part of
63499         the old ydhms_tm_diff function.  Return the new value, rather than
63500         the difference between it and the old.  Accept a new argument T
63501         so that *T specifies the old value.  Check for overflow in the result.
63502
63503         (__mktime_internal): Use a time_t offset, not a long int offset.
63504         This undoes the 2003-06-04 change, which is no longer needed now
63505         that we have better overflow checking.
63506         (localtime_offset): Likewise.
63507
63508         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63509         and long are 64-bit but int is only 32-bit.
63510         (ydhms_diff): Use long int to store year1 and yday1.
63511         Issue a compile-time diagnostic if long int is not wide enough.
63512
63513         (__mktime_internal): Use long int to store adjusted year and yday.
63514         Use plain C rather than preprocessor commands, if that doesn't
63515         affect efficiency.
63516         Check for overflow (and try to repair) after each probe
63517         rather than checking only at the very end.  This avoids some bugs
63518         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63519         does not equal GMT offset at maximum time).
63520         Use integer to check for overflow rather than floating point; this
63521         is more portable to non-IEEE hosts, and is a tad faster.
63522         When we detect that we are oscillating between two values,
63523         don't check whether tm_isdst has the requested value, since
63524         we already know the answer.  When tm_isdst has the wrong value,
63525         use a different heuristic to find the right one, based on the
63526         extreme values actually observed in practice in tz2003a,
63527         rather than the (overly optimistic) "previous 3 calendar quarters".
63528
63529         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63530         "T const" to accommodate glibc style.
63531         (check_result): Use less-confusing report format.  "long" -> "long int.
63532         (main): Likewise.
63533         Don't loop if the iteration overflows time_t.
63534         Allow a negative step in the iteration.
63535
63536 2003-07-06  Karl Berry  <karl@gnu.org>
63537
63538         * config/depcomp: update from automake.
63539         * config/config.sub: update from prep.
63540
63541 2003-07-03  Karl Berry  <karl@gnu.org>
63542
63543         * config/config.guess: update from prep.
63544
63545 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63546
63547         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63548         xreadlink.c now includes it unconditionally.
63549
63550 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63551
63552         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63553         having it depend on HAVE_SYS_TYPES_H.
63554
63555 2003-07-01  Bruno Haible  <bruno@clisp.org>
63556
63557         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63558         <sys/types.h> should be sufficient.
63559         Reported by Paul Eggert.
63560
63561 2003-06-26  Karl Berry  <karl@gnu.org>
63562
63563         * config/depcomp: update from automake.
63564
63565 2003-06-26  Bruno Haible  <bruno@clisp.org>
63566
63567         * modules/human: Depend on module stdbool.
63568
63569 2003-06-25  Bruno Haible  <bruno@clisp.org>
63570
63571         * modules/readlink: New file.
63572         * modules/xreadlink: Depend on it.
63573         * MODULES.html.sh (func_all_modules): Add readlink.
63574
63575 2003-06-25  Bruno Haible  <bruno@clisp.org>
63576
63577         * m4/readlink.m4: New file.
63578
63579 2003-06-25  Bruno Haible  <bruno@clisp.org>
63580
63581         * lib/readlink.c: New file.
63582
63583 2003-06-22  Karl Berry  <karl@gnu.org>
63584
63585         * config/srclist.txt: update mkinstalldirs from automake.
63586         * config/mkinstalldirs: update.
63587
63588 2003-06-22  Bruno Haible  <bruno@clisp.org>
63589
63590         Portability to mingw32.
63591         * m4/ssize_t.m4: New file, from GNU gettext.
63592         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63593         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63594
63595 2003-06-22  Bruno Haible  <bruno@clisp.org>
63596
63597         * modules/safe-read: Add m4/ssize_t.m4.
63598         * modules/xreadlink: Add m4/ssize_t.m4.
63599
63600 2003-06-20  Bruno Haible  <bruno@clisp.org>
63601
63602         Assume C89, so PARAMS isn't needed.
63603         * lib/unicodeio.h (PARAMS): Remove.
63604         * lib/unicodeio.c: Don't use PARAMS.
63605
63606 2003-06-18  Karl Berry  <karl@gnu.org>
63607
63608         * config/config.{guess,sub}: update from prep.
63609
63610 2003-06-18  Jim Meyering  <jim@meyering.net>
63611
63612         Merge changes from coreutils.
63613         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63614         Remove explicit declarations of xmalloc and realloc.
63615         Include xalloc.h.
63616         (read_utmp): Remove anachronistic cast of xmalloc.
63617
63618 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63619
63620         Assume C89, so PARAMS isn't needed.
63621         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63622         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63623         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63624         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63625         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63626         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63627         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63628         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63629         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63630         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63631         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63632         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63633         no longer needed. Anyway, config.h should always be included before any
63634         other file.
63635
63636 2003-06-11  Simon Josefsson  <jas@extundo.com>
63637
63638         * modules/sysexits: New file.
63639         * MODULES.html.sh (func_all_modules): Add sysexits.
63640
63641 2003-06-11  Simon Josefsson  <jas@extundo.com>
63642
63643         * lib/sysexit_.h: New file.
63644
63645 2003-06-11  Derek Price  <derek@ximbiot.com>
63646
63647         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63648         necessary.
63649
63650 2003-06-11  Bruno Haible  <bruno@clisp.org>
63651
63652         * m4/sysexits.m4: New file.
63653
63654 2003-06-10  Simon Josefsson  <jas@extundo.com>
63655
63656         * lib/argp.h: New file, from glibc.
63657         * lib/argp-ba.c: New file, from glibc.
63658         * lib/argp-eexst.c: New file, from glibc.
63659         * lib/argp-fmtstream.c: New file, from glibc.
63660         * lib/argp-fmtstream.h: New file, from glibc.
63661         * lib/argp-fs-xinl.c: New file, from glibc.
63662         * lib/argp-help.c: New file, from glibc.
63663         * lib/argp-namefrob.h: New file, from glibc.
63664         * lib/argp-parse.c: New file, from glibc.
63665         * lib/argp-pv.c: New file, from glibc.
63666         * lib/argp-pvh.c: New file, from glibc.
63667         * lib/argp-xinl.c: New file, from glibc.
63668
63669 2003-06-10  Simon Josefsson  <jas@extundo.com>
63670
63671         * modules/strchrnul: New file.
63672
63673 2003-06-10  Simon Josefsson  <jas@extundo.com>
63674
63675         * modules/argp: New file.
63676
63677 2003-06-10  Simon Josefsson  <jas@extundo.com>
63678
63679         * m4/strchrnul.m4: New file.
63680
63681 2003-06-10  Simon Josefsson  <jas@extundo.com>
63682
63683         * lib/strchrnul.h: New file.
63684         * lib/strchrnul.c: New file.
63685
63686 2003-06-10  Bruno Haible  <bruno@clisp.org>
63687
63688         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63689
63690 2003-06-07  Karl Berry  <karl@gnu.org>
63691
63692         * config/config.{guess,sub}: update from prep.
63693
63694 2003-06-07  Jim Meyering  <jim@meyering.net>
63695
63696         * modules/strtod: Use $(...) notation, not @...@ for
63697         AC_REPLACE'd variables.
63698         * modules/localcharset: Likewise.
63699
63700 2003-06-07  Jim Meyering  <jim@meyering.net>
63701
63702         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63703         in place of my name in the copyright comment.
63704         Remove definition and uses of __P.
63705
63706         From coreutils.
63707         * lib/stat.c: Don't declare xmalloc explicitly.
63708         Instead, include "xalloc.h".
63709         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63710         xrealloc, and xcalloc return values.
63711         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63712         Improve comment.
63713         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63714
63715 2003-06-07  Bruno Haible  <bruno@clisp.org>
63716
63717         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63718         avoid AC_CONFIG_LINKS.
63719         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63720         fnmatch.h, to avoid AC_CONFIG_LINKS.
63721         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63722
63723 2003-06-07  Bruno Haible  <bruno@clisp.org>
63724
63725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63726         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63727         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63728         directory.
63729         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63730         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63731         directory.
63732
63733 2003-06-06  Jim Meyering  <jim@meyering.net>
63734
63735         Merge from coreutils.
63736         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63737         Consolidate declarations and initializations of *_base* locals.
63738
63739         Merge from coreutils.
63740         This avoids a core dump on systems without GNU putenv,
63741         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63742         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63743         (unsetenv): New static function, from GNU libc.
63744         (rpl_putenv): Use it.
63745
63746         * lib/modechange.c: Remove trailing blanks.
63747
63748         Merge from coreutils.
63749         * lib/fsusage.c: Remove declaration of statfs.
63750         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63751
63752         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63753
63754 2003-06-06  Jim Meyering  <jim@meyering.net>
63755
63756         * lib/stdbool_.h: Renamed from stdbool.h.in.
63757
63758 2003-06-06  Jim Meyering  <jim@meyering.net>
63759             Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63762         Adjust Makefile.am snippet not to redirect directly to target.
63763         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63764
63765 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63766
63767         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63768         mismatch, look in future quarters as well as past.  This fixes a
63769         bug when processing fall-backwards gaps immediately after a long
63770         period of daylight-saving time.
63771
63772         * lib/mktime.c: Assume freestanding C89 or better.
63773         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63774         (__P): Remove; not used.
63775         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63776         (mktime, not_equal_tm, print_tm, check_result,
63777         main): Use prototypes.  Use const * where appropriate.
63778         (main): Fix typo in testing code that uncovered by above changes.
63779         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63780
63781 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63782
63783         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63784         locale.h, localeconv.  This merges changes from coreutils.
63785
63786         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63787         It can be removed after the next Autoconf is released.
63788         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63789         needed.
63790
63791 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63792
63793         * lib/mktime.c: Fix Debian bug 177940
63794         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63795         (localtime_offset): Now long int, not time_t, because we want it
63796         to be guaranteed to be signed.  All uses changed.
63797         (__mktime_internal): If overflow would occur when adding offset,
63798         don't add it.
63799
63800         Merge 'human' changes from coreutils.  Rewrite to support
63801         locale-specific notations like thousands separators.
63802         * lib/human.c: Simplify authorship notice.
63803         Include human.h immediately after config.h.
63804         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63805         <limits.h>: Do not include, since human.h does.
63806         (SIZE_MAX, UINTMAX_MAX): New macros.
63807         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63808         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63809         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63810         (power_letter): Renamed from suffixes.
63811         (generate_suffix_backwards): Remove.
63812         (adjust_value): Now takes int style (because of human.h changes)
63813         and long double value (for greater precision on some platforms).
63814         (group_number): New function.
63815         (human_readable): Use it.  Use integer options, not enum.
63816         Put the options before the sizes in the arg list.
63817         Support all the new options.
63818         The old human_readable function has been removed;
63819         use inttostr.h instead.
63820         (human_readable, default_block_size, humblock):
63821         Use uintmax_t, not int, for block sizes.
63822         (human_readable_inexact, block_size_types): Remove.
63823         (block_size_opts): New constant.
63824         (human_options): Renamed from human_block_size, with new signature
63825         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63826         * lib/human.h: Add copyright and authorship notice.
63827         Include <limits.h> and <stdbool.h> unconditionally.
63828         (PARAMS): Remove.  All uses removed.
63829         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63830         (enum human_inexact_style): Remove tag; now a nameless enum.
63831         (human_floor, human_ceiling, human_round_to_even): Now have
63832         values 2, 0, 1 rather than -1, 1, 0.
63833         (human_group_digits, human_suppress_point_zero, human_autoscale,
63834         human_base_1024, human_SI, human_B): New constants.
63835         (human_readable_inexact, human_block_size): Remove.
63836         (human_readable): Size args are now uintmax_t, not int.
63837         (human_options): New decl.
63838
63839         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63840         unnecessary now that we assume C89 or better.  This change
63841         imported from coreutils.
63842
63843         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63844         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
63845         in the 2003-05-30 sync from glibc.
63846
63847         .h files should stand alone, but we shouldn't include <sys/types.h>
63848         if we can get away with just <stddef.h>.
63849
63850         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
63851         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
63852         rather than <sys/types.h>, as we merely need size_t.
63853         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
63854         to get size_t.
63855         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
63856         Include <stdio.h>, to get FILE.
63857         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
63858         memcasecmp.h has included <stddef.h> and all we need is size_t.
63859         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
63860         our interface, instead of including <sys/types.h>
63861
63862 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63863
63864         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
63865         now, as glibc mktime is buggy on non-glibc systems.
63866
63867 2003-06-03  Karl Berry  <karl@gnu.org>
63868
63869         * config/config.sub: update from prep.
63870
63871 2003-06-02  Paul Eggert  <eggert@twinsun.com>
63872
63873         [from coreutils]
63874         Fix some minor time-related bugs with POSIX time arguments.
63875         Some valid time stamps were being rejected (notably -1, and
63876         time stamps before 1900 on 64-bit hosts).  And some invalid
63877         time stamps were being accepted, e.g. September 31.
63878
63879         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
63880         that we can return (time_t) -1 successfully.
63881         * lib/posixtm.c: Likewise.
63882         [HAVE_STDBOOL_H]: Include <stdbool.h>.
63883         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
63884         (t): Remove static var.
63885         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
63886         of static var.  All uses changed.
63887         (year): Do not reject years before 1900; they can occur with
63888         64-bit time_t.
63889         (posix_time_parse): Do not check for out-of-range components;
63890         that is now the caller's responsibility, since our checks were
63891         only approximations.
63892         (posixtime): Use mktime to check for out-of-range components,
63893         since it knows them exactly.
63894         If mktime returns (time_t) -1, check whether an error actually occurred
63895         by invoking localtime on -1.
63896         (main) [TEST_POSIXTIME]: Check for input data errors, and report
63897         posixtime failures better.
63898         Improve the test data (in comments only).
63899
63900 2003-06-02  Karl Berry  <karl@gnu.org>
63901
63902         * config/mkinstalldirs (version): new variable.
63903         (--version): new option.
63904         (usage): improve message.
63905
63906 2003-05-30  Karl Berry  <karl@gnu.org>
63907
63908         * lib/mktime.c: update from libc.
63909
63910 2003-05-30  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
63913         * config/config.rpath: Upgrade to gettext-0.12.1.
63914
63915 2003-05-30  Bruno Haible  <bruno@clisp.org>
63916
63917         * m4/gettext.m4: Upgrade to gettext-0.12.1.
63918         * m4/nls.m4: New file, from gettext-0.12.1.
63919         * m4/po.m4: New file, from gettext-0.12.1.
63920         * m4/progtest.m4: Upgrade to gettext-0.12.1.
63921
63922 2003-05-30  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
63925         * lib/localcharset.h: Likewise.
63926         * lib/localcharset.c: Likewise.
63927
63928 2003-05-29  Karl Berry  <karl@gnu.org>
63929
63930         * config/config.rpath: update from gettext.
63931
63932 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63933
63934         Assume the headers required for C89 freestanding compilers.
63935         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
63936         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
63937         * m4/human.m4 (gl_HUMAN): Likewise.
63938         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
63939         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
63940         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63941         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
63942         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63943         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
63944
63945 2003-05-28  Paul Eggert  <eggert@twinsun.com>
63946
63947         Assume the headers required for C89 freestanding compilers.
63948         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
63949         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
63950         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
63951         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
63952         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
63953         define, since <limits.h> is guaranteed to do that.
63954         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
63955         * lib/exclude.c: Include <stdbool.h> unconditionally.
63956         * lib/tempname.c: Include <stddef.h> unconditionally.
63957         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
63958         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
63959         <stddef.h> does that.
63960         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
63961         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
63962         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
63963         needed.
63964         * lib/xstrtol.c: Likewise.
63965         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
63966         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
63967
63968         * lib/addext.c (addext): Use assignment rather than cast, to avoid
63969         warnings on some platforms.
63970
63971         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63972         arbitrarily.
63973
63974 2003-05-26  Jim Meyering  <jim@meyering.net>
63975
63976         Merge in a change from coreutils:
63977         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
63978         that is guaranteed to be `no'.  Use `no_such_member' to indicate
63979         that condition, rather than `-1' which is slightly misleading.
63980         Change the name of the cache variable to have the gl_ prefix.
63981         Prompted by a patch from Richard Dawe for DJGPP.
63982
63983 2003-05-24  Karl Berry  <karl@gnu.org>
63984
63985         * config/config.guess: update from prep.
63986
63987 2003-05-22  Karl Berry  <karl@gnu.org>
63988
63989         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
63990
63991 2003-05-20  Karl Berry  <karl@gnu.org>
63992
63993         * config/config.guess: update from prep.
63994
63995 2003-05-18  Karl Berry  <karl@gnu.org>
63996
63997         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
63998         might actually be set by the user.
63999
64000         * config/depcomp, install-sh, mdate-sh: update from automake.
64001
64002 2003-05-17  Bruno Haible  <bruno@clisp.org>
64003
64004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64005         invalid expansion for AC_EGREP_CPP.
64006         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64007         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64008         Suggested by Akim Demaille <akim@epita.fr> in
64009         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64010
64011 2003-05-12  Jim Meyering  <jim@meyering.net>
64012
64013         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64014         the space-padded-by-default conversion specifiers, %e, %k, %l.
64015
64016 2003-05-12  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64019         the string is longer than 4 KB.
64020
64021 2003-05-11  Karl Berry  <karl@gnu.org>
64022
64023         * config/config.{guess,sub}: update from prep.
64024
64025 2003-05-09  Bruno Haible  <bruno@clisp.org>
64026
64027         * modules/error: Add m4/strerror_r.m4 to file list.
64028
64029 2003-05-03  Bruno Haible  <bruno@clisp.org>
64030
64031         Upgrade to Unicode-4.0.
64032         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64033         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64034         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64035         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64036         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64037         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64038         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64039         Change width of U+E0100..U+E01EF from 1 to 0.
64040
64041 2003-04-25  Jim Meyering  <jim@meyering.net>
64042
64043         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64044         of type size_t, not int.
64045
64046 2003-04-25  Bruno Haible  <bruno@clisp.org>
64047
64048         * lib/copy-file.c: Include <stddef.h>, for size_t.
64049
64050 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64051
64052         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64053         code which expansion is under static control.  Patch imported from
64054         Akim Demaille's patch to Bison; see
64055         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64056
64057 2003-04-14  Bruno Haible  <bruno@clisp.org>
64058
64059         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64060
64061 2003-04-11  Jim Meyering  <jim@meyering.net>
64062
64063         Merge changes from Coreutils.
64064
64065         2003-03-22  Jim Meyering  <jim@meyering.net>
64066
64067         * lib/strftime.c (widen): Cast alloca return value to proper type.
64068
64069         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64070
64071         From GNU libc.
64072         * lib/strftime.c (my_strftime): Handle very large width
64073         specifications for numeric values correctly.  Improve checks for
64074         overflow.
64075
64076         2003-01-19  Jim Meyering  <jim@meyering.net>
64077
64078         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64079         definitions.
64080         (nl_get_alt_digit) [! defined my_strftime]: Define.
64081         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64082         _nl_get_alt_digit and _nl_get_walt_digit.
64083
64084         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64085         libc. These changes have no effect outside of _LIBC.
64086
64087 2003-04-10  Bruno Haible  <bruno@clisp.org>
64088
64089         * modules/findprog: New file.
64090         * MODULES.html.sh (func_all_modules): Add it.
64091
64092 2003-04-10  Bruno Haible  <bruno@clisp.org>
64093
64094         * m4/findprog.m4: New file.
64095         * m4/eaccess.m4: New file.
64096
64097 2003-04-10  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/findprog.h: New file, from GNU gettext.
64100         * lib/findprog.c: New file, from GNU gettext.
64101
64102 2003-04-05  Jim Meyering  <jim@meyering.net>
64103
64104         Merge changes from Coreutils.
64105
64106         * lib/exclude.h (PARAMS): Remove definition and uses.
64107         * lib/exclude.c: Remove uses of `PARAMS'.
64108
64109         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64110         Add test-cases for DOS filenames. Declare program_name.
64111         (main): Set up program_name.  Patch by Rich Dawe.
64112
64113         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64114         error from mntctl.
64115         Use mntctl's return value to drive the entry-processing loop, since
64116         we can't rely on the value of the vmt_length member in the last
64117         entry.  On some systems doing so could result in exhausting
64118         virtual memory.  Based in part on a patch from Mike Jetzer.
64119
64120 2003-04-04  Bruno Haible  <bruno@clisp.org>
64121
64122         * modules/linebreak: New file.
64123         * MODULES.html.sh (func_all_modules): Add it.
64124
64125 2003-04-04  Bruno Haible  <bruno@clisp.org>
64126
64127         * m4/linebreak.m4: New file.
64128
64129 2003-04-04  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/linebreak.h: New file, from GNU gettext.
64132         * lib/linebreak.c: New file, from GNU gettext with slight
64133         modifications.
64134         * lib/lbrkprop.h: New file, from GNU gettext.
64135
64136 2003-04-03  Bruno Haible  <bruno@clisp.org>
64137
64138         * modules/utf8-ucs4: New file.
64139         * modules/utf16-ucs4: New file.
64140         * modules/ucs4-utf8: New file.
64141         * modules/ucs4-utf16: New file.
64142         * MODULES.html.sh (func_all_modules): Add them.
64143
64144 2003-04-03  Bruno Haible  <bruno@clisp.org>
64145
64146         * m4/utf-ucs4.m4: New file.
64147         * m4/ucs4-utf.m4: New file.
64148
64149 2003-04-03  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/utf8-ucs4.h: New file, from GNU gettext.
64152         * lib/utf16-ucs4.h: New file, from GNU gettext.
64153         * lib/ucs4-utf8.h: New file, from GNU gettext.
64154         * lib/ucs4-utf16.h: New file, from GNU gettext.
64155
64156 2003-04-02  Bruno Haible  <bruno@clisp.org>
64157
64158         * modules/binary-io: New file.
64159         * MODULES.html.sh (func_all_modules): Add it.
64160
64161 2003-04-02  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/binary-io.h: New file, from GNU gettext.
64164
64165 2003-04-01  Bruno Haible  <bruno@clisp.org>
64166
64167         * modules/pathname: New file.
64168         * MODULES.html.sh (func_all_modules): Add it.
64169
64170 2003-04-01  Bruno Haible  <bruno@clisp.org>
64171
64172         * lib/pathname.h: New file, from GNU gettext.
64173         * lib/concatpath.c: New file, from GNU gettext.
64174
64175 2003-03-30  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64178
64179 2003-03-30  Bruno Haible  <bruno@clisp.org>
64180
64181         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64182         function chown() doesn't exist.
64183
64184 2003-03-28  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/copy-file: New file.
64187         * MODULES.html.sh (func_all_modules): Add it.
64188
64189 2003-03-28  Bruno Haible  <bruno@clisp.org>
64190
64191         * m4/copy-file.m4: New file.
64192
64193 2003-03-28  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/copy-file.h: New file, from GNU gettext.
64196         * lib/copy-file.c: New file, from GNU gettext.
64197
64198 2003-03-18  Jim Meyering  <jim@meyering.net>
64199
64200         * lib/quote.c (quote_n): Fix typo in comment.
64201
64202 2003-03-18  Bruno Haible  <bruno@clisp.org>
64203
64204         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64205         checking.
64206         * m4/onceonly_2_57.m4: Likewise.
64207
64208 2003-03-17  Bruno Haible  <bruno@clisp.org>
64209
64210         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64211         (m4_quote): Remove macro.
64212         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64213
64214 2003-03-14  Jim Meyering  <jim@meyering.net>
64215
64216         Merge changes from Coreutils.
64217         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64218         to be const, in order to avoid warnings.
64219         (obstack_room): Likewise.
64220         (obstack_empty_p): Likewise.
64221
64222 2003-03-14  Bruno Haible  <bruno@clisp.org>
64223
64224         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64225         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64226
64227 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64228
64229         Merge changes from Bison.
64230         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64231         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64232         when compiling Bison 1.875's `bitset bset = obstack_alloc
64233         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64234         * lib/hash.c: Include <stdbool.h> unconditionally.
64235
64236 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64237
64238         * m4/onceonly.m4 (m4_quote): New macro.
64239         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64240         Quote AC_FOREACH variable-expansions properly.
64241
64242 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64243
64244         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64245
64246 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64247
64248         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64249         Reported by Bruce Becker; see:
64250         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64251
64252 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64253             Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64256         Reported by John Hughes, see
64257         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64258
64259 2003-02-20  Bruno Haible  <bruno@clisp.org>
64260
64261         * MODULES.html.sh (func_all_modules): Add poll.
64262
64263 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64264
64265         * modules/poll: New file.
64266
64267 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64268
64269         * lib/poll_.h: New file.
64270         * lib/poll.c: New file.
64271
64272 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64273
64274         * m4/poll.m4: New file.
64275
64276 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64277
64278         * modules/mathl: New file.
64279
64280 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64281
64282         * lib/mathl.h: New file.
64283         * lib/acosl.c: New file.
64284         * lib/asinl.c: New file.
64285         * lib/atanl.c: New file.
64286         * lib/ceill.c: New file.
64287         * lib/cosl.c: New file.
64288         * lib/expl.c: New file.
64289         * lib/floorl.c: New file.
64290         * lib/frexpl.c: New file.
64291         * lib/ldexpl.c: New file.
64292         * lib/logl.c: New file.
64293         * lib/sincosl.c: New file.
64294         * lib/sinl.c: New file.
64295         * lib/sqrtl.c: New file.
64296         * lib/tanl.c: New file.
64297         * lib/trigl.c: New file.
64298         * lib/trigl.h: New file.
64299
64300 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64301
64302         * m4/mathl.m4: New file.
64303
64304 2003-02-18  Bruno Haible  <bruno@clisp.org>
64305
64306         * MODULES.html.sh (func_all_modules): Add mathl.
64307
64308 2003-02-17  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/mkdtemp: New module.
64311         * MODULES.html.sh (func_all_modules): Add it.
64312
64313 2003-02-17  Bruno Haible  <bruno@clisp.org>
64314
64315         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64316
64317 2003-02-17  Bruno Haible  <bruno@clisp.org>
64318
64319         * lib/mkdtemp.h: New file, from GNU gettext.
64320         * lib/mkdtemp.c: New file, from GNU gettext.
64321
64322 2003-02-02  Jim Meyering  <jim@meyering.net>
64323
64324         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64325         e.g. glibc-2.2.93.
64326
64327 2003-01-31  Bruno Haible  <bruno@clisp.org>
64328
64329         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64330         'rpl_rename'.
64331         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64332         'rpl_strnlen'.
64333         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64334         'rpl_strtod'.
64335         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64336         'rpl_utime'.
64337
64338 2003-01-31  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/rename.c: #undef rename before defining rpl_rename.
64341         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64342
64343 2003-01-30  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/vasnprintf, modules/vasprintf: New modules.
64346         * MODULES.html.sh (func_all_modules): Add them.
64347
64348 2003-01-30  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/signed.m4: New file, from GNU gettext.
64351         * m4/longdouble.m4: New file, from GNU gettext.
64352         * m4/wchar_t.m4: New file, from GNU gettext.
64353         * m4/wint_t.m4: New file, from GNU gettext.
64354         * m4/vasnprintf.m4: New file.
64355         * m4/vasprintf.m4: New file.
64356
64357 2003-01-30  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/printf-args.h: New file, from GNU gettext.
64360         * lib/printf-args.c: New file, from GNU gettext.
64361         * lib/printf-parse.h: New file, from GNU gettext.
64362         * lib/printf-parse.c: New file, from GNU gettext.
64363         * lib/vasnprintf.h: New file, from GNU gettext.
64364         * lib/vasnprintf.c: New file, from GNU gettext.
64365         * lib/asnprintf.c: New file, from GNU gettext.
64366         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64367         * lib/vasprintf.c: New file, from GNU gettext.
64368         * lib/asprintf.c: New file, from GNU gettext.
64369
64370 2003-01-29  Bruno Haible  <bruno@clisp.org>
64371
64372         * modules/stpncpy: New module.
64373         * MODULES.html.sh (func_all_modules): Add it.
64374
64375 2003-01-29  Bruno Haible  <bruno@clisp.org>
64376
64377         * m4/stpncpy.m4: New file.
64378
64379 2003-01-29  Bruno Haible  <bruno@clisp.org>
64380
64381         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64382         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64383
64384 2003-01-28  Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/c-ctype: New module.
64387         * MODULES.html.sh (func_all_modules): Add it.
64388
64389 2003-01-28  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64392         Paul Eggert.
64393         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64394         Paul Eggert.
64395
64396 2003-01-27  Bruno Haible  <bruno@clisp.org>
64397
64398         * modules/xsetenv: New module.
64399         * MODULES.html.sh (func_all_modules): Add it.
64400
64401 2003-01-27  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/xsetenv.h: New file, from GNU gettext.
64404         * lib/xsetenv.c: New file, from GNU gettext.
64405
64406 2003-01-23  Jim Meyering  <jim@meyering.net>
64407
64408         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64409         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64410
64411 2003-01-23  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/minmax: New module.
64414         * MODULES.html.sh (func_all_modules): Add it.
64415
64416 2003-01-23  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64419         Eggert.
64420
64421 2003-01-22  Bruno Haible  <bruno@clisp.org>
64422
64423         * modules/exit: New module.
64424         * MODULES.html.sh (func_all_modules): Add it.
64425
64426 2003-01-22  Bruno Haible  <bruno@clisp.org>
64427
64428         * lib/exit.h: New file, from GNU gettext.
64429
64430 2003-01-19  Bruno Haible  <bruno@clisp.org>
64431
64432         * gnulib-tool: Recognize option --extract-maintainer.
64433         (func_get_maintainer): New function.
64434         * modules/*: Add Maintainer entry.
64435
64436 2003-01-16  Jim Meyering  <jim@meyering.net>
64437
64438         * m4/regex.m4: The `regex' struct is both input and output.
64439         Initialize it before each use.  Patch by Tim Waugh.
64440
64441 2003-01-16  Bruno Haible  <bruno@clisp.org>
64442
64443         * MODULES.html.sh: Add a table of contents. Add the module name as
64444         leftmost column. Add hyperlinks.
64445
64446 2003-01-15  Bruno Haible  <bruno@clisp.org>
64447
64448         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64449
64450 2003-01-15  Bruno Haible  <bruno@clisp.org>
64451
64452         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64453         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64454         suffix.
64455
64456 2003-01-15  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64459
64460 2003-01-15  Bruno Haible  <bruno@clisp.org>
64461
64462         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64463         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64464
64465 2003-01-14  Jim Meyering  <jim@meyering.net>
64466
64467         * lib/same.c (same_name): Tweak a comment.
64468
64469 2003-01-14  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64472         when a string comparison is sufficient.
64473
64474 2003-01-14  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64477         'unsigned int'.
64478
64479 2003-01-14  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/hash-pjw.c: Add comment about low quality of this function.
64482
64483 2003-01-13  Bruno Haible  <bruno@clisp.org>
64484
64485         * modules/stpcpy: Distribute lib/stpcpy.h.
64486         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64487
64488 2003-01-13  Bruno Haible  <bruno@clisp.org>
64489
64490         * modules/*: Add a description.
64491         * modules/strpbrk: Fix Makefile.am snippet.
64492         * modules/strtoimax: Fix dependencies.
64493         * modules/strtoumax: Likewise.
64494
64495 2003-01-13  Bruno Haible  <bruno@clisp.org>
64496
64497         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64498         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64499         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64500
64501 2003-01-13  Bruno Haible  <bruno@clisp.org>
64502
64503         * gnulib-tool (func_create_testdir): Store config/* files in the main
64504         directory.
64505         * config.rpath: Move to ...
64506         * config/config.rpath: ... here.
64507         * modules/gettext: Contains config/config.rpath, not config.rpath.
64508         * modules/iconv: Likewise.
64509
64510 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64511
64512         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64513         to avoid collisions with libcurses and libreadline.
64514
64515         * m4/getstr.m4: Remove.
64516         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64517
64518 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64519
64520         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64521         to avoid collisions with libcurses and libreadline.
64522
64523         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64524         * lib/getstr.h, getstr.c: Remove.
64525         * lib/getline.c: Include "getline.h", to check interface.
64526         Move body of old getstr.c here: this defines MIN_CHUNK and
64527         declares getdelim2, which is renamed from getstr.
64528         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64529
64530         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64531         All uses changed.
64532         * lib/linebuffer.h: Likewise.
64533         (readline): Remove backward-compatibility macro.
64534
64535 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64536
64537         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64538         to avoid collisions with libcurses and libreadline.
64539         * getstr: Remove.
64540         * MODULES.html.sh: Remove getstr.
64541         * modules/getline: Depend on unlocked-io, not getstr.
64542
64543 2003-01-12  Jim Meyering  <jim@meyering.net>
64544
64545         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64546
64547 2003-01-10  Bruno Haible  <bruno@clisp.org>
64548
64549         * modules/alloca: Change Makefile.am requirements. Simplify Include
64550         requirements. Add lib/alloca_.h to file list.
64551
64552 2003-01-10  Bruno Haible  <bruno@clisp.org>
64553
64554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64555
64556 2003-01-10  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/alloca_.h: New file.
64559         * lib/getdate.y: Unconditionally include alloca.h.
64560         * lib/makepath.c: Likewise.
64561         * lib/setenv.c: Likewise.
64562         * lib/userspec.c: Likewise.
64563
64564 2003-01-09  Karl Berry  <karl@gnu.org>
64565
64566         * MODULES.html.sh: include `dirname $0` in PATH, to find
64567         gnulib-tool.
64568
64569 2003-01-09  Bruno Haible  <bruno@clisp.org>
64570
64571         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64572         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64573
64574 2003-01-09  Bruno Haible  <bruno@clisp.org>
64575
64576         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64577
64578 2003-01-09  Bruno Haible  <bruno@clisp.org>
64579
64580         * lib/stdbool.h.in: New file.
64581
64582 2003-01-09  Bruno Haible  <bruno@clisp.org>
64583
64584         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64585         * MODULES.html.sh: Likewise.
64586
64587 2003-01-08  Jim Meyering  <jim@meyering.net>
64588
64589         * lib/full-write.c: Undefine and define-away `const' after inclusion
64590         of errno.h, not before.  Suggestion from Bruno Haible.
64591
64592 2003-01-08  Bruno Haible  <bruno@clisp.org>
64593
64594         * modules/full-read: Depend on full-write.
64595
64596 2003-01-08  Bruno Haible  <bruno@clisp.org>
64597
64598         * lib/safe-read.c: Include specification header first, to ensure its
64599         selfcontainedness.
64600         * lib/full-write.c: Likewise.
64601
64602 2003-01-07  Jim Meyering  <jim@meyering.net>
64603
64604         * lib/full-write.c: Rework so that it may serve to define full_read,
64605         too.
64606         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64607
64608 2003-01-07  Bruno Haible  <bruno@clisp.org>
64609
64610         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64611         <inttypes.h>.
64612         * lib/xstrtol.h: Likewise.
64613         * lib/xstrtoimax.c: Likewise.
64614         * lib/xstrtoumax.c: Likewise.
64615         * lib/human.h: Likewise.
64616
64617         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64618         on systems that have <inttypes.h> but not <stdint.h>.
64619
64620 2003-01-07  Bruno Haible  <bruno@clisp.org>
64621
64622         * MODULES.html.sh: Add copyright notice.
64623         (missed_files): Omit CVS directory entries.
64624         (func_module): Make it work with sed-3.02.
64625         * MODULES.txt: Remove file.
64626
64627 2003-01-06  Jim Meyering  <jim@meyering.net>
64628
64629         * lib/version-etc.c: Update year in translatable copyright string.
64630
64631 2003-01-03  Karl Berry  <karl@gnu.org>
64632
64633         * config/config.{guess,sub}: update from prep.
64634
64635 2003-01-02  Karl Berry  <karl@gnu.org>
64636
64637         * doc/COPYING.DOC: belatedly updated to 1.2.
64638
64639 2003-01-01  Karl Berry  <karl@gnu.org>
64640
64641         * gnulib-tool (func_verify_module): report module name $module in
64642         error message, not $1.
64643         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64644         be created, only if it doesn't exist.
64645         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64646
64647 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64648
64649         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64650
64651 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64652
64653         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64654         memcmp if strcoll doesn't work.
64655
64656 2002-12-31  Bruno Haible  <bruno@clisp.org>
64657
64658         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64659         nonempty.
64660
64661 2002-12-31  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/memcoll.c (STRCOLL): New macro.
64664         (memcoll): Use it.
64665
64666 2002-12-31  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/localcharset.h: New file.
64669         * lib/localcharset.c: Include it.
64670         * lib/unicodeio.c: Likewise.
64671
64672 2002-12-31  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64675         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64676
64677 2002-12-31  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/getline.h: Include <stddef.h>, for size_t.
64680
64681         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64682         * lib/unicodeio.c: Don't include <stddef.h>.
64683
64684 2002-12-31  Bruno Haible  <bruno@clisp.org>
64685
64686         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64687         HAVE_TM_ZONE.
64688
64689 2002-12-24  Karl Berry  <karl@gnu.org>
64690
64691         * config/config.guess: update from prep.
64692
64693 2002-12-24  Bruno Haible  <bruno@clisp.org>
64694
64695         General infrasructure.
64696         * m4/README: Rewritten.
64697         * m4/onceonly.m4: New file.
64698         * m4/onceonly_2_57.m4: New file.
64699
64700         Module atexit.
64701         * m4/atexit.m4: New file.
64702
64703         Module strtod.
64704         * m4/strtod.m4: New file.
64705
64706         Module strtol.
64707         * m4/strtol.m4: New file.
64708
64709         Module strtoul.
64710         * m4/strtoul.m4: New file.
64711
64712         Module memchr.
64713         * m4/memchr.m4: New file.
64714
64715         Module memcmp.
64716         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64717         (jm_FUNC_MEMCMP): Invoke it.
64718
64719         Module memcpy.
64720         * m4/memcpy.m4: New file.
64721
64722         Module memmove.
64723         * m4/memmove.m4: New file.
64724
64725         Module memset.
64726         * m4/memset.m4: New file.
64727
64728         Module strcspn.
64729         * m4/strcspn.m4: New file.
64730
64731         Module strpbrk.
64732         * m4/strpbrk.m4: New file.
64733
64734         Module strstr.
64735         * m4/strstr.m4: New file.
64736
64737         Module strerror.
64738         * m4/strerror.m4: New file.
64739
64740         Module mktime.
64741         * m4/mktime.m4: Renamed from jm-mktime.m4.
64742         (gl_PREREQ_MKTIME): New macro.
64743         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64744
64745         Module malloc.
64746         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64747         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64748         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64749
64750         Module realloc.
64751         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64752         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64753         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64754
64755         Module strftime.
64756         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64757         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64758         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64759         gl_TM_GMTOFF.
64760         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64761
64762         Module xalloc.
64763         * m4/xalloc.m4: New file.
64764
64765         Module alloca.
64766         * m4/alloca.m4: New file.
64767
64768         Module putenv.
64769         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64770         (jm_FUNC_PUTENV): Invoke it.
64771
64772         Module setenv.
64773         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64774         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64775         when invoked twice.
64776         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64777         gt_FUNC_SETENV.
64778
64779         Module memrchr.
64780         * m4/memrchr.m4: New file.
64781
64782         Module stpcpy.
64783         * m4/stpcpy.m4: New file.
64784
64785         Module strcase.
64786         * m4/strcase.m4: New file.
64787
64788         Module strdup.
64789         * m4/strdup.m4: New file.
64790
64791         Module strnlen.
64792         * m4/strnlen.m4: New file.
64793
64794         Module strndup.
64795         * m4/strndup.m4: New file.
64796
64797         Module xstrtod.
64798         * m4/xstrtod.m4: New file.
64799
64800         Module xstrtol.
64801         * m4/xstrtol.m4: New file.
64802
64803         Module getdate.
64804         * m4/getdate.m4: New file.
64805
64806         Module unlocked-io.
64807         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64808         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64809         * m4/jm-glibc-io.m4n: Remove file.
64810
64811         Module long-options.
64812         * m4/long-options.m4: New file.
64813
64814         Module md5.
64815         * m4/md5.m4: New file.
64816
64817         Module sha.
64818         * m4/sha.m4: New file.
64819
64820         Module getstr.
64821         * m4/getstr.m4: New file.
64822
64823         Module getline.
64824         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64825         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64826         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64827         simply getline. Infoke gl_PREREQ_GETLINE.
64828
64829         Module obstack.
64830         * m4/obstack.m4: New file.
64831
64832         Module hash.
64833         * m4/hash.m4: New file.
64834
64835         Module readtokens.
64836         * m4/readtokens.m4: New file.
64837
64838         Module strverscmp.
64839         * m4/strverscmp.m4: New file.
64840
64841         Module stdbool.
64842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64843         OSF/1.
64844
64845         Module strtoll.
64846         * m4/strtoll.m4: New file.
64847
64848         Module strtoull.
64849         * m4/strtoull.m4: New file.
64850
64851         Module strtoimax.
64852         * m4/strtoimax.m4: New file.
64853
64854         Module strtoumax.
64855         * m4/strtoumax.m4: New file.
64856
64857         Module xstrtoimax.
64858         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
64859         jm_AC_PREREQ_XSTRTOIMAX.
64860         Moved the strtol prerequisites to strtol.m4.
64861         Moved the strtoll prerequisites to strtoll.m4.
64862         Moved the strtoimax prerequisites to strtoimax.m4.
64863
64864         Module xstrtoumax.
64865         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
64866         jm_AC_PREREQ_XSTRTOUMAX.
64867         Moved the strtoul prerequisites to strtoul.m4.
64868         Moved the strtoull prerequisites to strtoull.m4.
64869         Moved the strtoumax prerequisites to strtoumax.m4.
64870
64871         Module chown.
64872         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
64873         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
64874
64875         Module dup2.
64876         * m4/dup2.m4: New file.
64877
64878         Module ftruncate.
64879         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
64880         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
64881
64882         Module getgroups.
64883         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
64884         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
64885
64886         Module gettimeofday.
64887         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
64888         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
64889         gl_PREREQ_GETTIMEOFDAY.
64890
64891         Module mkdir.
64892         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
64893         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
64894
64895         Module mkstemp.
64896         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
64897         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
64898         jm_AC_TYPE_UINTMAX_T.
64899         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
64900
64901         Module stat.
64902         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
64903         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
64904
64905         Module lstat.
64906         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
64907         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
64908
64909         Module timespec.
64910         * m4/timespec.m4 (gl_TIMESPEC): New macro.
64911         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
64912         * m4/st_mtim.m4: Indentation.
64913
64914         Module nanosleep.
64915         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
64916         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
64917         gl_PREREQ_NANOSLEEP.
64918
64919         Module regex.
64920         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
64921         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
64922         (gl_REGEX): New macro.
64923
64924         Module rename.
64925         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
64926         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
64927
64928         Module rmdir.
64929         * m4/rmdir.m4: New file.
64930
64931         Module utime.
64932         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
64933         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
64934         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
64935
64936         Module dirname.
64937         * m4/dirname.m4: New file.
64938
64939         Module getopt.
64940         * m4/getopt.m4: New file.
64941
64942         Module unistd-safer.
64943         * m4/unistd-safer.m4: New file.
64944
64945         Module fnmatch.
64946         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
64947         declaration.
64948         (gl_PREREQ_FNMATCH_EXTRA): New macro.
64949         (gl_FUNC_FNMATCH_POSIX): New macro.
64950         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
64951         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
64952         simply fnmatch.
64953
64954         Module exclude.
64955         * m4/exclude.m4: New file.
64956
64957         Module human.
64958         * m4/human.m4: New file.
64959
64960         Module acl.
64961         * m4/acl.m4: Nop.
64962
64963         Module backupfile.
64964         * m4/backupfile.m4: New file.
64965         * m4/d-ino.m4: Indentation.
64966
64967         Module fsusage.
64968         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
64969         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
64970         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
64971
64972         Module dirfd.
64973         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
64974         requirements.
64975
64976         Module euidaccess.
64977         * m4/euidaccess.m4: New file.
64978
64979         Module file-type.
64980         * m4/file-type.m4: New file.
64981
64982         Module fileblocks.
64983         * m4/fileblocks.m4: New file.
64984
64985         Module filemode.
64986         * m4/filemode.m4: New file.
64987
64988         Module isdir.
64989         * m4/isdir.m4: New file.
64990
64991         Module lchown.
64992         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
64993         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
64994
64995         Module makepath.
64996         * m4/makepath.m4: New file.
64997
64998         Module modechange.
64999         * m4/modechange.m4: New file.
65000
65001         Module mountlist.
65002         * m4/mountlist.m4: New file.
65003         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65004         Indentation.
65005
65006         Module path-concat.
65007         * m4/path-concat.m4: New file.
65008
65009         Module pathmax.
65010         * m4/pathmax.m4: New file.
65011
65012         Module same.
65013         * m4/same.m4: New file.
65014
65015         Module save-cwd.
65016         * m4/save-cwd.m4: New file.
65017
65018         Module savedir.
65019         * m4/savedir.m4: New file.
65020
65021         Module xgetcwd.
65022         * m4/xgetcwd.m4: New file.
65023         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65024
65025         Module xreadlink.
65026         * m4/xreadlink.m4: New file.
65027
65028         Module safe-read.
65029         * m4/safe-read.m4: New file.
65030
65031         Module safe-write.
65032         * m4/safe-write.m4: New file.
65033
65034         Module closeout.
65035         * m4/closeout.m4: New file.
65036
65037         Module stdio-safer.
65038         * m4/stdio-safer.m4: New file.
65039
65040         Module getpass.
65041         * m4/getpass.m4: New file.
65042
65043         Module getugroups.
65044         * m4/getugroups.m4: New file.
65045
65046         Module group-member.
65047         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65048         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65049
65050         Module idcache.
65051         * m4/idcache.m4: New file.
65052
65053         Module userspec.
65054         * m4/userspec.m4: New file.
65055
65056         Module gettime.
65057         * m4/clock_time.m4: New file.
65058         * m4/gettime.m4: New file.
65059
65060         Module settime.
65061         * m4/settime.m4: New file.
65062
65063         Module posixtm.
65064         * m4/posixtm.m4: New file.
65065
65066         Module gethostname.
65067         * m4/gethostname.m4: New file.
65068
65069         Module canon-host.
65070         * m4/canon-host.m4: New file.
65071
65072         Module gettext.
65073         * m4/codeset.m4: New file, from gettext-0.11.5.
65074         * m4/gettext.m4: New file, from gettext-0.11.5.
65075         * m4/glibc21.m4: New file, from gettext-0.11.5.
65076         * m4/iconv.m4: New file, from gettext-0.11.5.
65077         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65078         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65079         * m4/inttypes.m4: New file, from gettext-0.11.5.
65080         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65081         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65082         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65083         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65084         * m4/lib-link.m4: New file, from gettext-0.11.5.
65085         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65086         * m4/progtest.m4: New file, from gettext-0.11.5.
65087         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65088         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65089         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65090
65091         Module localcharset.
65092         * m4/localcharset.m4: New file.
65093
65094         Module hard-locale.
65095         * m4/hard-locale.m4: New file.
65096
65097         Module mbswidth.
65098         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65099         onceonly macros.
65100         * m4/mbrtowc.m4: Add comment.
65101
65102         Module memcasecmp.
65103         * m4/memcasecmp.m4: New file.
65104
65105         Module memcoll.
65106         * m4/memcoll.m4: New file.
65107
65108         Module unicodeio.
65109         * m4/unicodeio.m4: New file.
65110
65111         Module rpmatch.
65112         * m4/rpmatch.m4: New file.
65113
65114         Module yesno.
65115         * m4/yesno.m4: New file.
65116
65117         Module exitfail.
65118         * m4/exitfail.m4: New file.
65119
65120         Module c-stack.
65121         * m4/c-stack.m4 (gl_C_STACK): New macro.
65122         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65123
65124         Module error.
65125         * m4/error.m4 (gl_ERROR): New macro.
65126         (jm_PREREQ_ERROR): Use onceonly macros.
65127
65128         Module fatal.
65129         * m4/fatal.m4: New file.
65130
65131         Module getloadavg.
65132         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65133         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65134
65135         Module getpagesize.
65136         * m4/getpagesize.m4: New file.
65137
65138         Module getusershell.
65139         * m4/getusershell.m4: New file.
65140
65141         Module physmem.
65142         * m4/physmem.m4: New file.
65143
65144         Module posixver.
65145         * m4/posixver.m4: New file.
65146
65147         Module quotearg.
65148         * m4/quotearg.m4: New file.
65149
65150         Module quote.
65151         * m4/quote.m4: New file.
65152
65153         Module readutmp.
65154         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65155
65156         Module sig2str.
65157         * m4/sig2str.m4: New file.
65158
65159         Other.
65160         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65161         ulonglong.m4.
65162         * m4/intmax_t.m4: New file.
65163         * m4/d-type.m4: Indentation.
65164         * m4/jm-macros.m4: Update.
65165         * m4/prereq.m4 (jm_PREREQ): Update.
65166         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65167         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65168         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65169         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65170         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65171         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65172         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65173         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65174         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65175         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65176         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65177         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65178         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65179         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65180         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65181         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65182         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65183         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65184         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65185
65186 2002-12-24  Bruno Haible  <bruno@clisp.org>
65187
65188         * MODULES.txt: Update according to m4/ changes.
65189
65190         Module gettext.
65191         * config.rpath: New file, from gettext-0.11.5.
65192
65193         * modules/*: New module descriptions.
65194         * gnulib-tool: New file.
65195         * MODULES.html.sh: New file.
65196
65197 2002-12-21  Karl Berry  <karl@gnu.org>
65198
65199         * doc/fdl.texi: update to version 1.2.
65200
65201 2002-12-19  Karl Berry  <karl@gnu.org>
65202
65203         * config/config.guess: update from prep.
65204
65205 2002-12-18  Bruno Haible  <bruno@clisp.org>
65206
65207         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65208         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65209
65210 2002-12-17  Bruno Haible  <bruno@clisp.org>
65211
65212         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65213         stdlib.h, string.h.
65214
65215 2002-12-17  Bruno Haible  <bruno@clisp.org>
65216
65217         * lib/canon-host.c (strdup): Remove unused declaration.
65218
65219         * lib/fsusage.c: Include full_read.h.
65220         (get_fs_usage): Use full_read instead of safe_read.
65221
65222         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65223
65224 2002-12-12  Karl Berry  <karl@gnu.org>
65225
65226         * config/config.guess: update from prep.
65227
65228 2002-12-11  Bruno Haible  <bruno@clisp.org>
65229
65230         * m4/setenv.m4: New file, from gettext-0.11.5.
65231
65232 2002-12-11  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65235         not unsetenv().
65236         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65237         modifications:
65238
65239         2002-12-11  Bruno Haible  <bruno@clisp.org>
65240
65241                 * setenv.c (alloca): Fall back to malloc.
65242                 (freea): New macro.
65243                 (setenv): Use freea() to free memory allocated with alloca().
65244
65245         2002-11-13  Bruno Haible  <bruno@clisp.org>
65246
65247                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65248                 function declarations.
65249                 * unsetenv.c (unsetenv): Likewise.
65250
65251         2002-03-04  Bruno Haible  <bruno@clisp.org>
65252
65253                 Portability to AIX 4.3.3.
65254                 * unsetenv.c: New file, extracted from setenv.c.
65255                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65256
65257         2001-12-20  Bruno Haible  <bruno@clisp.org>
65258
65259                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65260                 use malloc instead. For SunOS 4.
65261
65262         2001-12-11  Bruno Haible  <bruno@clisp.org>
65263
65264                 * setenv.c: Declare alloca.
65265                 (compar_fn_t): New typedef.
65266                 (KNOWN_VALUE, STORE_VALUE): Use it.
65267
65268         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65269         setenv.h.
65270
65271 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65272
65273         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65274         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65275         Choose values that are less likely to collide with system fnmatch
65276         options.
65277         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65278         defined (e.g., a pure POSIX system).
65279         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65280         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65281
65282 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65283
65284         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65285         a pain in practice to deal with generated m4 files.  This change
65286         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65287
65288         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65289         and jm-glibc-io.m4, as they are no longer a special case.
65290         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65291         kludge and the auto-generation stuff.  Check only whether the
65292         functions are declared, not whether they exist, since older hosts
65293         that don't declare the functions can't use the optimization anyway.
65294
65295 2002-12-06  Jim Meyering  <jim@meyering.net>
65296
65297         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65298
65299         Merge in changes from libc's misc/error.c, in preparation
65300         for the merge of gnulib's changes back into libc.
65301
65302         * lib/error.c (_): Define only if not already defined.
65303         Move definition to follow all #include directives.
65304         Include unlocked-io.h only if !_LIBC.
65305         [_LIBC]: Include <libio/libioP.h>.
65306         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65307         (fflush): Tweak definition to use INTUSE.
65308         (putc): Define.
65309
65310 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65311
65312         * lib/alloca.c [defined emacs]: Include "lisp.h".
65313         (xalloc_die) [defined emacs]: New macro.
65314         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65315         [! defined emacs]: Include <xalloc.h>.
65316         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65317         (pointer): Typedef to POINTER_TYPE *.
65318         (malloc): Remove decl; we now always use xmalloc.
65319         (alloca): Use old-style definition, since Emacs needs this.
65320         Check for arithmetic overflow when computing combined size.
65321
65322 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65323
65324         Do not generate unlocked-io.h automatically, since it's easier to
65325         maintain it by hand.
65326
65327         * lib/unlocked-io.h: New file, from GNU diffutils,
65328         but with proper copyright notice and attribution.
65329         * lib/gen-uio: Remove.
65330         * lib/Makefile.am: Add copyright notice.
65331         (libfetish_a_SOURCES): Add unlocked-io.h.
65332         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65333         (DISTCLEANFILES, io_functions): Remove macros.
65334         (EXTRA_DIST): Remove gen_uio.
65335         (unlocked-io.h): Remove rule.
65336
65337 2002-12-04  Jim Meyering  <jim@meyering.net>
65338
65339         Reflect the fact that stat.c and lstat.c are no longer generated.
65340         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65341         (DISTCLEANFILES): Likewise.
65342         (EXTRA_DIST): Likewise.
65343         (all_local): Don't depend on stat.c or lstat.c.
65344         (stat.c, lstat.c): Remove rules.
65345         (EXTRA_DIST): Remove xstat.in.
65346
65347         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65348         * lib/stat.c: New file.  Contents mostly from xstat.in.
65349         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65350         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65351
65352         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65353         too.
65354         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65355
65356 2002-12-03  Jim Meyering  <jim@meyering.net>
65357
65358         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65359         but not semantics, to minimize the differences between these two files.
65360         (safe_read): Change comment to mention SAFE_READ_ERROR.
65361
65362         * lib/safe-read.c (IS_EINTR): Define.
65363         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65364
65365 2002-12-02  Jim Meyering  <jim@meyering.net>
65366
65367         * lib/safe-read.c (EINTR): Define.
65368         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65369         (INT_MAX): Provide fallback.
65370         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65371
65372         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65373
65374 2002-12-02  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65377         Define, taken from safe-read.c.
65378         (INT_MAX): Provide fallback.
65379         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65380         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65381
65382         * lib/safe-read.c (EINTR): Remove definition.
65383         (safe_read): Don't use EINTR if it is absent.
65384
65385 2002-12-01  Jim Meyering  <jim@meyering.net>
65386
65387         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65388         zero.
65389         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65390
65391 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65392
65393         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65394         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65395         with `if (! (value < limit)) abort ();', for readability.
65396
65397 2002-11-26  Karl Berry  <karl@gnu.org>
65398
65399         * lib/strdup.c: copy from libc again, with jim's ok.
65400         * lib/.cppi-disable: re-add strdup.c
65401
65402 2002-11-25  Karl Berry  <karl@gnu.org>
65403
65404         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65405         instead of "strtol.c".
65406
65407 2002-11-25  Karl Berry  <karl@gnu.org>
65408
65409         * config/install-sh: update from automake for variable quoting, $0 in
65410         error msgs, etc.
65411
65412         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65413         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65414         entry.
65415
65416 2002-11-25  Jim Meyering  <jim@meyering.net>
65417
65418         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65419
65420 2002-11-24  Karl Berry  <karl@gnu.org>
65421
65422         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65423         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65424
65425 2002-11-24  Jim Meyering  <jim@meyering.net>
65426
65427         Update from coreutils:
65428
65429         * lib/mktime.c: Merge in changes from libc.
65430
65431         Avoid a link-time failure on some Linux systems.
65432         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65433         (otherwise).
65434         (__mon_yday): Declare with the STATIC attribute.
65435         (__mktime_internal): Likewise.
65436         Based on a report from Greg Schafer.
65437
65438 2002-11-23  Jim Meyering  <jim@meyering.net>
65439
65440         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65441         Use `unsigned', not `int', as type of index.
65442
65443         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65444
65445         * lib/fsusage.c: Remove unneeded parentheses around operands of
65446         `defined'.
65447
65448 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65449
65450         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65451         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65452         so that we can be included first.
65453         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65454         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65455         No need to include stddef.h or sys/types.h any more.
65456         Surround local include files with "", not "<>".
65457         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65458         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65459         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65460         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65461         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65462         (ISPRINT): Remove; no longer needed now that we assume C89.
65463
65464         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65465         Preserve errno.
65466
65467         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65468         quotearg_char): Use SIZE_MAX rather than
65469         (size_t) -1 when we are talking about "infinity".
65470
65471         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65472
65473 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65474
65475         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65476         hint that one should use `if (! x) abort ();' rather than `assert
65477         (x);', and anyway it's one less thing to worry about configuring.
65478         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65479         hash_rehash, hash_insert): Use abort rather than assert.
65480
65481 2002-11-22  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/safe-read.h: Assume C89. Add comments.
65484         (safe_read): Change return type to size_t.
65485         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65486         byte counts > SSIZE_MAX correctly.
65487         * lib/safe-write.h: New file.
65488         * lib/safe-write.c: New file.
65489         * lib/full-read.h: New file.
65490         * lib/full-read.c: New file.
65491         * lib/full-write.h: Assume C89. Add comments.
65492         * lib/full-write.c: Include safe-write.h.
65493         (full_write): Rewritten to use safe_write.
65494         Suggested by Jim Meyering and Paul Eggert.
65495
65496 2002-11-21  Jim Meyering  <jim@meyering.net>
65497
65498         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65499
65500         Merge in changes from the coreutils.
65501
65502         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65503         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65504         <stdint.h>.
65505         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65506         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65507         int.  Work more efficiently if X is the same width as uintmax_t.
65508         Do not compare X to -1, to avoid bogus compiler warning.
65509         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65510         Don't assume that f_frsize and f_bsize are the same type.
65511
65512         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65513         warning on FreeBSD.
65514
65515         * lib/makepath.c (make_path): Restore umask *before* creating the final
65516         component.
65517         (make_path): Minor reformatting.
65518
65519         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65520         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65521         HAVE_MALLOC/HAVE_REALLOC.
65522
65523         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65524         dummy ones.  At least on GNU/Linux systems, `auto' means something
65525         else.
65526         From Michael Stone.
65527
65528 2002-11-21  Bruno Haible  <bruno@clisp.org>
65529
65530         Remove case insensitive option matching.
65531         * lib/argmatch.h (argcasematch): Remove declaration.
65532         (ARGCASEMATCH): Remove macro.
65533         (__xargmatch_internal): Remove case_sensitive argument.
65534         (XARGMATCH): Update.
65535         (XARGCASEMATCH): Remove macro.
65536         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65537         case_sensitive argument.
65538         (argcasematch): Remove function.
65539         (__xargmatch_internal): Remove case_sensitive argument.
65540         (main): Use XARGMATCH instead of XARGCASEMATCH.
65541
65542         * lib/xmalloc.c: Change compile-time error message. Add comment about
65543         required autoconf version.
65544
65545 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65546
65547         Merge argmatch cleanups from Bison.  Assume C89.
65548
65549         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65550         Include stdlib.h, for EXIT_FAILURE.
65551         Always include <string.h>, since we assume C89.
65552         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65553         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65554         Include <stddef.h> instead, since it's all we need for size_t.
65555         (PARAMS): Remove.  All uses removed.
65556         (ARRAY_CARDINALITY): Do not bother to #undef.
65557         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65558         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65559         Remove unnecessary parentheses.
65560         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65561         Insert necessary parentheses.
65562         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65563         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65564
65565 2002-11-19  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65568         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65569
65570         * lib/mbswidth.h (PARAMS): Remove macro.
65571         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65572         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65573
65574         * lib/gcd.h (PARAMS): Remove macro.
65575         (gcd): Use ANSI C function declarations.
65576         * lib/gcd.c (gcd): Likewise.
65577
65578 2002-11-15  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/strcspn.c: Include <stddef.h>.
65581         (strcspn): Use ANSI C function declaration. Change return type to
65582         size_t. Use NULL.
65583         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65584         (strpbrk): Use NULL.
65585         * lib/strpbrk.h (PARAMS): Remove macro.
65586         (strpbrk): Use ANSI C function declaration.
65587         * lib/strstr.c: Don't include <sys/types.h>.
65588         * lib/strstr.h (PARAMS): Remove macro.
65589         (strstr): Use ANSI C function declarations.
65590
65591 2002-11-14  Karl Berry  <karl@gnu.org>
65592
65593         * config/mkinstalldirs: `do' on separate line, instead of
65594         `for var; do'.
65595
65596 2002-11-06  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65599         * lib/gcd.c (gcd): Likewise.
65600
65601 2002-11-05  Bruno Haible  <bruno@clisp.org>
65602
65603         * lib/gcd.h: New file, from gettext-0.11.5.
65604         * lib/gcd.c: New file, from gettext-0.11.5.
65605
65606 2002-11-05  Bruno Haible  <bruno@clisp.org>
65607
65608         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65609         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65610         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65611         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65612
65613         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65614         <libintl.h>.
65615         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65616         <libintl.h>.
65617
65618         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65619         * lib/human.c: Include gettext.h instead of <libintl.h>.
65620         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65621         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65622         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65623         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65624         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65625         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65626         (textdomain): Remove definition.
65627         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65628
65629         * lib/long-options.c: Remove include of <libintl.h> and definition of
65630         _.
65631         * lib/same.c: Remove include of <libintl.h> and definition of _.
65632
65633 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65634
65635         * lib/config.charset: A few additions for Solaris.
65636
65637 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65638
65639         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65640         * lib/localcharset.c (locale_charset): Declare as extern "C".
65641
65642 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65643
65644         * lib/config.charset: msdos in uk_UA uses CP1125.
65645
65646 2002-11-04  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65649         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65650         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65651         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65652         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65653
65654 2002-11-04  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/localcharset.c (locale_charset): Don't return an empty string.
65657
65658 2002-11-04  Bruno Haible  <bruno@clisp.org>
65659
65660         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65661         aliases.
65662
65663 2002-11-04  Bruno Haible  <bruno@clisp.org>
65664
65665         * lib/config.charset: Update for newest glibc. Add canonical names
65666         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65667
65668 2002-11-04  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/config.charset: Add support for NetBSD.
65671
65672 2002-11-04  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65675
65676 2002-11-01  Bruno Haible  <bruno@clisp.org>
65677
65678         * configure.in: Add AC_CONFIG_AUX_DIR call.
65679         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65680         test/Makefile.
65681         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65682
65683 2002-09-28  Karl Berry  <karl@gnu.org>
65684
65685         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65686         installed automake until the next release, since changes have been
65687         made.
65688
65689 2002-09-25  Karl Berry  <karl@gnu.org>
65690
65691         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65692         * lib/getopt*: copy from libc/posix.
65693         * lib/gettext.h: copy from gettext.
65694         * lib/.cppi-disable: add strdup.c, gettext.h.
65695
65696 2002-09-25  Karl Berry  <karl@gnu.org>
65697
65698         * config/srclist.txt: enable gettext.h check.
65699         * config/config.{guess,sub}: update from prep.
65700         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65701                 from automake 1.6.3.
65702         See srclist*.
65703
65704 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65705
65706         * regex.c (PATFETCH): Remove the translating fetch.
65707         (PATFETCH_RAW): Rename to PATFETCH.
65708         (set_image_of_range): New fun.
65709         (SET_RANGE_TABLE_WORK_AREA): Use it.
65710         (regex_compile): Don't translate the pattern chars so eagerly.
65711         Only do it when inserting an `exactn' bytecode or when handling
65712         a char-range.
65713         (mutually_exclusive_p): Avoid empty statement.
65714
65715 2002-07-06  Jim Meyering  <meyering@lucent.com>
65716
65717         * m4/README: Don't mention Makefile.am.in.
65718         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65719
65720 2002-07-01  Jim Meyering  <meyering@lucent.com>
65721
65722         * lib/c-stack.c: Include sys/time.h.
65723         From Volker Borchert.
65724
65725 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65726
65727         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65728
65729 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65730
65731         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65732         New macro.  Use it uniformly instead of
65733         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65734         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65735         reported by Vin Shelton.
65736
65737 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65738
65739         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65740         Do not assume SA_SIGINFO behavior.
65741         Bug reported by Jim Meyering on NetBSD 1.5.2.
65742
65743 2002-06-22  Jim Meyering  <meyering@lucent.com>
65744
65745         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65746         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65747
65748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65749         now that configure.ac uses AC_GNU_SOURCE.
65750         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65751         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65752
65753         Update to latest tools.  Suggestions from Paul Eggert.
65754         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65755         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65756         * m4/fnmatch.m4: Likewise.
65757         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65758         to AC_HEADER_STDBOOL
65759
65760 2002-06-22  Jim Meyering  <meyering@lucent.com>
65761
65762         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65763         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65764
65765 2002-06-22  Jim Meyering  <meyering@lucent.com>
65766
65767         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65768
65769         * lib/exitfail.c, exitfail.h: Likewise.
65770         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65771
65772         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65773         of fnmatch.h.
65774         (EXTRA_DIST): Add fnmatch_loop.c.
65775         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65776
65777         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65778         * lib/fnmatch.c: Update from diffutils-2.8.2.
65779         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65780         * lib/fnmatch.h: Remove file.
65781
65782 2002-06-21  Jim Meyering  <meyering@lucent.com>
65783
65784         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65785         * m4/mbrtowc.m4: Likewise.
65786
65787         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65788         * m4/mbswidth.m4: Reflect name change:
65789         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65790         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65791
65792         * m4/lib-link.m4: Update from gettext-0.11.2.
65793         * m4/gettext.m4: Likewise.
65794
65795         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65796         From Alfred M. Szmidt.
65797
65798 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65799
65800         * lib/file-type.h: Report an error if neither S_ISREG nor
65801         S_IFREG is defined, instead of using a test specific to glibc
65802         2.2.  This should be safe, since POSIX requires S_ISREG and
65803         Unix Version 7 had S_IFREG.  We don't need to check for
65804         <sys/types.h> since we don't use any symbols that it defines.
65805
65806 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65807
65808         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65809         $@-t, so that each temporary file name is unique and valid in the first
65810         8 characters, for operation under DOS.
65811
65812 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65813
65814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65815
65816 2002-06-15  Jim Meyering  <meyering@lucent.com>
65817
65818         Work even with DJGPP 2.03, which lacks support for symlinks.
65819         From Richard Dawe.
65820         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65821         is defined.
65822         * lib/lchown.c (S_ISLNK): Likewise.
65823
65824 2002-06-15  Jim Meyering  <meyering@lucent.com>
65825
65826         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65827         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65828         have been included before this file.
65829
65830 2002-06-14  Jim Meyering  <meyering@lucent.com>
65831
65832         * lib/file-type.h: Use the version from diffutils-2.8.2.
65833         * lib/file-type.c: Likewise.
65834
65835 2002-06-07  Jim Meyering  <meyering@lucent.com>
65836
65837         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65838         They're needed at least for NetBSD 1.5.2.
65839         ($statxfs_includes): Include those same headers.
65840         ($statxfs_includes): Include sys/vfs.h if available.
65841         ($statxfs_includes): Likewise for sys/statvfs.h.
65842         Check for the following members in both structs statfs and statvfs:
65843         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65844
65845 2002-06-01  Jim Meyering  <meyering@lucent.com>
65846
65847         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
65848         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
65849
65850 2002-05-28  Jim Meyering  <meyering@lucent.com>
65851
65852         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
65853         Reported by Volker Borchert.
65854
65855 2002-05-27  Jim Meyering  <meyering@lucent.com>
65856
65857         Fix a problem seen only on nonconforming systems whereby ls.c's
65858         use of localtime, and then of gettimeofday would cause trouble:
65859         the localtime call used to initialize rpl_gettimeofday's save
65860         mechanism would clobber ls's current local time information so
65861         that in any long listing the first file would always be listed
65862         with date 1970-01-01.  Analysis by Volker Borchert.
65863
65864         * lib/gettimeofday.c (localtime): Undefine.
65865         (rpl_localtime): New function.
65866
65867 2002-05-27  Jim Meyering  <meyering@lucent.com>
65868
65869         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
65870         localtime.
65871
65872         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
65873         use the replacement function; it wouldn't resolve at link time.
65874         Reported by Volker Borchert.
65875
65876 2002-05-22  Jim Meyering  <meyering@lucent.com>
65877
65878         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
65879         file-type.h.
65880         * lib/file-type.h: New file.
65881         * lib/file-type.c (file_type): New file/function.  Extracted from
65882         diffutils.
65883
65884 2002-04-30  Jim Meyering  <meyering@lucent.com>
65885
65886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
65887
65888 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65889
65890         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
65891
65892 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65893
65894         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
65895         Do not check for alloca.h (no longer used) or stdbool.h (was never
65896         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
65897
65898 2002-04-29  Paul Eggert  <eggert@twinsun.com>
65899
65900         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
65901
65902 2002-04-29  Jim Meyering  <meyering@lucent.com>
65903
65904         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
65905         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
65906         Use AC_FUNC_STRNLEN here instead.
65907
65908         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
65909         With autoconf-2.53a, it's part of AC_PROG_CC.
65910
65911 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65912
65913         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
65914         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
65915
65916 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65917
65918         * lib/sig2str.h, lib/sig2str.c: New files.
65919         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
65920
65921 2002-04-28  Paul Eggert  <eggert@twinsun.com>
65922
65923         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
65924         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
65925         of 127, since 64 is the largest conceivable number for ancient
65926         nonstandard hosts.
65927         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
65928
65929 2002-04-28  Jim Meyering  <meyering@lucent.com>
65930
65931         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
65932
65933 2002-04-24  Jim Meyering  <meyering@lucent.com>
65934
65935         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
65936         (jm_PREREQ): Use it.
65937
65938         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
65939         mach/mach.h fcntl.h.
65940         Check for this function: setlocale.
65941
65942 2002-04-24  Jim Meyering  <meyering@lucent.com>
65943
65944         * lib/gettext.h: New file, from Gettext.
65945         * lib/Makefile.am (INCLUDES): Remove -I../intl.
65946         (libfetish_a_SOURCES): Add gettext.h.
65947
65948 2002-04-16  Jim Meyering  <meyering@lucent.com>
65949
65950         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
65951         ut_pid, ut_id, ut_exit.
65952
65953 2002-04-16  Jim Meyering  <meyering@lucent.com>
65954
65955         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
65956         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
65957         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
65958
65959 2002-04-12  Jim Meyering  <meyering@lucent.com>
65960
65961         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
65962         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
65963         existence of the getmntinfo function.  Needed for Darwin 5.3.
65964
65965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
65966         This is necessary at least on Darwin 5.3.
65967
65968         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
65969         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
65970         strnlen.o in the library, and that makes some versions of ranlib
65971         object.
65972
65973 2002-04-12  Jim Meyering  <meyering@lucent.com>
65974
65975         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
65976
65977 2002-04-09  Jim Meyering  <meyering@lucent.com>
65978
65979         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
65980         to be more precise.  Rather than saying we're checking whether the
65981         function `works', say what we're testing.
65982         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
65983         Reported by Bruno Haible.
65984
65985 2002-03-10  Jim Meyering  <meyering@lucent.com>
65986
65987         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
65988         Suggestion from Santiago Vila.
65989
65990 2002-03-08  Jim Meyering  <meyering@lucent.com>
65991
65992         * lib/rename.c: Mention that this wrapper is needed also on
65993         mips-dec-ultrix4.4 systems.
65994
65995 2002-03-02  Jim Meyering  <meyering@lucent.com>
65996
65997         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
65998         not HAVE_CLOCK_SETTIME.
65999
66000 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66001
66002         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66003         Check for clock_settime.
66004
66005 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66006
66007         * lib/nanosleep.h: Rename to....
66008         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66009
66010         * lib/gettime.c: New file.
66011         * lib/settime.c: New file.
66012         * lib/stime.c: Remove.
66013
66014         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66015         timespec.h.  Remove nanosleep.h.
66016
66017 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66018
66019         * m4/acl.m4: New file.
66020         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66021         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66022
66023 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66024
66025         * lib/acl.c, lib/acl.h: New files.
66026         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66027
66028 2002-02-24  Jim Meyering  <meyering@lucent.com>
66029
66030         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66031         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66032         cause trouble.  Reported by Nelson Beebe.
66033
66034 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66035
66036         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66037         compilers that don't know that xalloc_die never returns.
66038
66039 2002-02-20  Jim Meyering  <meyering@lucent.com>
66040
66041         * lib/getdate.c: Regenerate using bison-1.33.
66042
66043 2002-02-17  Jim Meyering  <meyering@lucent.com>
66044
66045         * config/config.guess (main): Don't use `head -1'; it's no longer
66046         portable. Use `sed 1q' instead.
66047
66048 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66049
66050         * m4/codeset.m4: Upgrade to gettext-0.11.
66051         * m4/gettext.m4: Upgrade to gettext-0.11.
66052         * m4/glibc21.m4: Upgrade to gettext-0.11.
66053         * m4/iconv.m4: Upgrade to gettext-0.11.
66054         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66055         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66056         * m4/lib-ld.m4: New file, from gettext-0.11.
66057         * m4/lib-link.m4: New file, from gettext-0.11.
66058         * m4/lib-prefix.m4: New file, from gettext-0.11.
66059         * m4/progtest.m4: Upgrade to gettext-0.11.
66060
66061 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66062
66063         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66064         (jm_PREREQ): Use it.
66065
66066 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66067
66068         * lib/posixver.c, lib/posixver.h: New files.
66069         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66070
66071 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66072             Bruno Haible  <bruno@clisp.org>
66073
66074         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66075         (fwrite_success_callback): New declaration.
66076         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66077         print_unicode_char. Call failure callback instead of error.
66078         (fwrite_success_callback): New function.
66079         (exit_failure_callback): New function.
66080         (fallback_failure_callback): New function.
66081         (print_unicode_char): Call unicode_to_mb.
66082
66083 2002-01-26  Jim Meyering  <meyering@lucent.com>
66084
66085         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66086         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66087
66088 2002-01-26  Jim Meyering  <meyering@lucent.com>
66089
66090         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66091
66092 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66093
66094         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66095
66096 2002-01-22  Jim Meyering  <meyering@lucent.com>
66097
66098         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66099         Otherwise, some versions of automake would omit the rule that makes
66100         Makefile from Makefile.in.
66101
66102 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66103
66104         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66105         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66106         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66107         (memcoll): Set errno to zero if there is no error.
66108
66109         * lib/quotearg.c (quotearg_buffer_restyled):
66110         Fix bug with quoting buffers containing NUL when backslashing escapes.
66111         This bug was exposed by the other changes in this patch.
66112         (quotearg_n_options): New arg ARGSIZE.
66113         All callers changed.
66114         (quoting_options_from_style): New function.
66115         (quotearg_n_style): Use it.
66116         (quotearg_n_style_mem): New function.
66117
66118         * lib/quotearg.h (quotearg_n_style_mem): New function.
66119
66120 2002-01-19  Jim Meyering  <meyering@lucent.com>
66121
66122         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66123         Remove useless quotes: DF_PROG="df".
66124         * m4/strnlen.m4: New file.
66125
66126 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66127
66128         * lib/backupfile.c (ISDIGIT): Comment fix.
66129         * lib/getdate.y (ISDIGIT): Likewise.
66130         * lib/posixtm.c (ISDIGIT, year): Likewise.
66131         * lib/strverscmp.c (ISDIGIT): Likewise.
66132         * lib/userspec.c (ISDIGIT): Likewise.
66133
66134 2002-01-16  Jim Meyering  <meyering@lucent.com>
66135
66136         * lib/getdate.y: Add three semicolons, each just before a closing
66137         brace. Bison (as of version 1.31) no longer papers over that mistake.
66138
66139 2002-01-05  Jim Meyering  <meyering@lucent.com>
66140
66141         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66142
66143 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66144
66145         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66146         not silently exit merely because the output buffer happens to
66147         have nothing pending.
66148
66149 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66150
66151         See the big note in ../ChangeLog.
66152         * lib/human.c (suffixes): Prefer K to k for 1024.
66153         (generate_suffix_backwards): New function.
66154         (human_readable_inexact): Use it.
66155         * lib/xstrtol.c (__xstrtol): If there is no number but there
66156         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66157         Accept 'K' as well as 'k'.
66158
66159 2001-12-15  Jim Meyering  <meyering@lucent.com>
66160
66161         * lib/regex.h (__restrict_arr): Update from libc.
66162
66163         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66164         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66165         (STREQ): Define.
66166
66167 2001-12-14  Jim Meyering  <meyering@lucent.com>
66168
66169         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66170         Suggestion from Bruno Haible.
66171
66172 2001-12-10  Jim Meyering  <meyering@lucent.com>
66173
66174         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66175         xrealloc, Instead, include "xalloc.h".
66176         (initbuffer): Don't cast xmalloc return value to char*.
66177         (readline): Reword comment.
66178         Don't cast xrealloc return value to char*
66179         Return NULL, not 0.
66180
66181 2001-12-09  Jim Meyering  <meyering@lucent.com>
66182
66183         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66184         about `signed and unsigned type in conditional expression'.
66185         * lib/posixtm.c (posix_time_parse): Likewise.
66186
66187         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66188
66189         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66190         to avoid a pedantic warning.
66191
66192         * lib/getstr.c: Don't include assert.h.
66193         (getstr): Remove warning-evoking assertions.
66194         Return -1 if offset parameter is out of bounds.
66195         Change the type of a local from int to size_t.
66196
66197         * lib/strftime.c (my_strftime_localtime_r): Include this function
66198         definition in the `#if ! HAVE_TM_GMTOFF' block.
66199
66200         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66201         Include xalloc.h instead.
66202
66203 2001-12-02  Jim Meyering  <meyering@lucent.com>
66204
66205         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66206         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66207         included.
66208
66209         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66210         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66211
66212 2001-11-30  Akim Demaille  <akim@epita.fr>
66213
66214         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66215         before being defined.
66216
66217 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66218
66219         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66220         First arg is int, not unsigned.
66221         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66222         (SIZE_MAX, UINT_MAX): New macros.
66223         (quotearg_n_options): Abort if N is negative.
66224         Avoid overflow check on hosts where size_t is 64 bits and int
66225         is 32 bits, as overflow is impossible there.
66226         Fix off-by-one typo that caused unnecessary reallocation.
66227
66228 2001-11-27  Jim Meyering  <meyering@lucent.com>
66229
66230         * lib/tempname.c: Merge with version from libc.
66231         * lib/regex.c: Likewise.
66232
66233         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66234         systems for which STDC_HEADERS is 0, it was not included, resulting in
66235         a warning about an integer-to-pointer conversion problem with getenv.
66236         Reported by Volker Borchert.
66237
66238 2001-11-26  Jim Meyering  <meyering@lucent.com>
66239
66240         * lib/gtod.h: Remove file.
66241         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66242         * lib/gettimeofday.c: Don't include gtod.h.
66243         (GTOD_init): Remove function.
66244         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66245         Suggestion from Volker Borchert.
66246
66247 2001-11-23  Jim Meyering  <meyering@lucent.com>
66248
66249         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66250         it.
66251         * lib/hash.c (struct hash_table): Define it here instead.
66252
66253 2001-11-22  Jim Meyering  <meyering@lucent.com>
66254
66255         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66256
66257 2001-11-20  Jim Meyering  <meyering@lucent.com>
66258
66259         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66260         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66261
66262 2001-11-19  Jim Meyering  <meyering@lucent.com>
66263
66264         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66265         directory.  Use "conftestXXXXXX" as the template.
66266         Suggestion from Paul Eggert.
66267
66268         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66269         immediately, so the test doesn't mistakenly hit the max-open-files
66270         limit.
66271
66272 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66273
66274         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66275         (TEMPORARIES): New macro.
66276         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66277         removes an artificial limitation (e.g. HP-UX 10.20, where
66278         TMP_MAX is 17576).
66279
66280 2001-11-18  Jim Meyering  <meyering@lucent.com>
66281
66282         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66283
66284 2001-11-18  Jim Meyering  <meyering@lucent.com>
66285
66286         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66287         on SunOS 4.
66288
66289         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66290         files will be created before anything else.
66291
66292 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66293
66294         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66295         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66296
66297 2001-11-17  Jim Meyering  <meyering@lucent.com>
66298
66299         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66300         Prompted by a report from Bob Proulx.
66301
66302         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66303         Instead, require UTILS_FUNC_MKSTEMP.
66304
66305 2001-11-17  Jim Meyering  <meyering@lucent.com>
66306
66307         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66308         Now, that's done as part of AC_FUNC_STRTOD.
66309
66310 2001-11-17  Jim Meyering  <meyering@lucent.com>
66311
66312         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66313         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66314         rather than group writable.  Patch by Juan F. Codagnone.
66315
66316         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66317         xrealloc, Instead, include "xalloc.h".
66318
66319         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66320         Remove explicit declarations of xmalloc, xrealloc,
66321         and xstrdup.  Instead, include "xalloc.h".
66322
66323         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66324         unlocked-io.h.
66325         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66326         Likewise.
66327         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66328
66329         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66330         Reported by Padraig Brady.
66331
66332         * lib/mkstemp.c: #undef mkstemp.
66333         Include config.h.
66334         (rpl_mkstemp): Rename from mkstemp.
66335         Protoize.
66336
66337 2001-11-16  Jim Meyering  <meyering@lucent.com>
66338
66339         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66340         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66341         determine the amount of total physical memory, use pstat_getstatic.
66342         HPUX-11 doesn't define _SC_PHYS_PAGES.
66343         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66344         If sysconf couldn't be used to determine the amount of available
66345         physical memory, use both pstat_getstatic and pstat_getdynamic.
66346         Based on a patch from Bob Proulx.
66347
66348 2001-11-10  Jim Meyering  <meyering@lucent.com>
66349
66350         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66351         (jm_PREREQ): Use it.
66352
66353 2001-11-09  Jim Meyering  <meyering@lucent.com>
66354
66355         * m4/jm-macros.m4: Require autoconf-2.52f.
66356         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66357         Use these AC_-prefixed names, not the AM_-prefixed ones.
66358
66359         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66360
66361 2001-11-05  Jim Meyering  <meyering@lucent.com>
66362
66363         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66364
66365 2001-11-04  Jim Meyering  <meyering@lucent.com>
66366
66367         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66368         $DEFS.
66369
66370 2001-11-03  Jim Meyering  <meyering@lucent.com>
66371
66372         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66373         of AC_DEFUN.
66374
66375         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66376         know the name of the variable in the macro definition.
66377
66378 2001-11-03  Jim Meyering  <meyering@lucent.com>
66379
66380         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66381         in argmatch_to_argument call.
66382
66383         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66384         argument.
66385
66386         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66387         e.g., a fault due to an attempt to free a NULL pointer.
66388
66389 2001-11-01  Jim Meyering  <meyering@lucent.com>
66390
66391         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66392         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66393
66394 2001-11-01  Jim Meyering  <meyering@lucent.com>
66395
66396         * lib/dirfd.c, lib/dirfd.h: New files.
66397         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66398
66399         * lib/hash.c (hash_print) [TESTING]: Clean up.
66400
66401 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66402
66403         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66404         to avoid a warning if -Wall.
66405
66406 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66407
66408         * README: New file
66409         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66410         (per RMS's instructions, this is now the canonical source)
66411         * lgpl/, gpl/: New directories.
66412
66413 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66414
66415         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66416
66417 2001-10-21  Jim Meyering  <meyering@lucent.com>
66418
66419         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66420         this code would end up calling gettext even in packages built
66421         with --disable-nls.
66422         * lib/getopt.c (_): Likewise.
66423         * lib/regex.c (_): Likewise.
66424
66425 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66426
66427         * m4/error.m4 (jm_PREREQ_ERROR):
66428         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66429         AC_FUNC_STRERROR_R does that.
66430         Check for strerror declaration.
66431
66432         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66433         are supposed to have them these days.
66434         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66435         Merge changes from latest Autoconf CVS.
66436         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66437         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66438         POSIX decided to standardize on the int flavor of strerror_r.
66439
66440 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66441
66442         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66443         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66444         Use strerror_r that is only a macro, even if it is not a function.
66445         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66446         (private_strerror): Use prototypes, not old-style function definition.
66447         (print_errno_message): New function.
66448         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66449         char*-flavored one.
66450         (error_tail, error, error_at_line): Use it.
66451
66452 2001-10-11  Jim Meyering  <meyering@lucent.com>
66453
66454         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66455         and quote_n (1, ... to avoid clobbering a buffer.
66456
66457 2001-10-05  Jim Meyering  <meyering@lucent.com>
66458
66459         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66460         hash-pjw.h.
66461         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66462         * lib/hash-pjw.h: New file.
66463
66464 2001-09-30  Jim Meyering  <meyering@lucent.com>
66465
66466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66467         `struct fsstat' has the `f_fstypename' member.
66468         Use that to define FS_TYPE, which is now used to make
66469         the getfsstat link test tighter.
66470
66471 2001-09-30  Jim Meyering  <meyering@lucent.com>
66472
66473         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66474         Include <sys/ucred.h>, for Apple Darwin.
66475         Include sys/mount.h and sys/fs_types.h only if available.
66476         (FS_TYPE): Define.
66477         (read_filesystem_list): Use FS_TYPE.
66478
66479 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66480
66481         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66482         a boolean context.
66483
66484 2001-09-29  Jim Meyering  <meyering@lucent.com>
66485
66486         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66487         [one-argument getmntent function]): Include stdio.h before mntent.h.
66488         SunOS 4.1.x needs it for the declaration of `FILE'.
66489         Patch by Volker Borchert.
66490
66491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66492         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66493         sys/fs_types.h, and make the link-test for getfsstat guard #include
66494         directives with appropriate #if HAVE_*_H tests so that we can
66495         detect getfsstat on Apple Darwin1.3.7 systems.
66496         Reported by Nelson Beebe.
66497         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66498
66499 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66500
66501         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66502         #defines strtoimax.  Also treat the other strto* functions
66503         like strtoimax.
66504
66505         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66506         Check for strtoul and strtoumax,
66507         as those declarations are made even in the signed case.
66508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66509         Likewise, for strtol and strtoimax.
66510
66511 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66512
66513         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66514         #defines strtoimax.  Also treat the other strto* functions
66515         like strtoimax.
66516
66517         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66518         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66519         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66520
66521 2001-09-26  Jim Meyering  <meyering@lucent.com>
66522
66523         Most macros in unlocked-io.h had the wrong number of arguments.
66524         * lib/gen-uio: New script.
66525         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66526         * lib/unlocked-io.hin: Remove file.
66527         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66528         rather than trying to embed it here.
66529         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66530         Reported by Padraig Brady.
66531
66532 2001-09-25  Volker Borchert  <bt@teknon.de>
66533
66534         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66535         `result'.
66536
66537 2001-09-24  Jim Meyering  <meyering@lucent.com>
66538
66539         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66540
66541 2001-09-23  Jim Meyering  <meyering@lucent.com>
66542
66543         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66544         instead of the mere test for existence of mntent.h.  The latter
66545         would get a false-positive on AIX 3.4 systems.
66546         In the outer getmntent if-block, don't die if neither of the getmntent
66547         tests succeeds.  Instead, just fall through and continue with the
66548         remaining tests.
66549
66550 2001-09-23  Jim Meyering  <meyering@lucent.com>
66551
66552         * lib/mountlist.c: Remove useless parentheses in #if directives.
66553         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66554         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66555
66556 2001-09-22  Jim Meyering  <meyering@lucent.com>
66557
66558         * m4/gettext.m4: New file.  From gettext.
66559         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66560         * m4/progtest.m4: Likewise
66561         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66562         * m4/glibc21.m4: Likewise.
66563
66564         * m4/libintl.m4: Remove.  No longer used.
66565
66566 2001-09-22  Jim Meyering  <meyering@lucent.com>
66567
66568         * lib/localcharset.c: Update from latest gettext.
66569         * lib/config.charset: Likewise.
66570
66571 2001-09-20  Jim Meyering  <meyering@lucent.com>
66572
66573         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66574         strtoimax.
66575         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66576         strtoumax.
66577
66578 2001-09-20  Jim Meyering  <meyering@lucent.com>
66579
66580         * lib/xstrtol.c (strtoimax): Guard declaration with
66581         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66582         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66583         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66584         (strtoumax): Likewise, for completeness (it wasn't necessary).
66585
66586 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66587
66588         * lib/strtoimax.c (HAVE_LONG_LONG):
66589         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66590         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66591         to work around bug in IBM C compiler.
66592
66593 2001-09-17  Jim Meyering  <meyering@lucent.com>
66594
66595         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66596         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66597         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66598         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66599         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66600         whenever the right hand side need not be expanded by the shell.
66601
66602 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66603
66604         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66605         library.  It's not correct, as some older glibcs are buggy.
66606         fnmatch wasn't fixed until glibc 2.2.
66607
66608         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66609         special shell magic here.
66610
66611 2001-09-16  Jim Meyering  <meyering@lucent.com>
66612
66613         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66614         * m4/jm-macros.m4: Require it.
66615
66616 2001-09-16  Jim Meyering  <meyering@lucent.com>
66617
66618         * lib/mkdir.c: New file.
66619
66620 2001-09-15  Jim Meyering  <meyering@lucent.com>
66621
66622         * m4/jm-macros.m4: Check for help2man.
66623
66624 2001-09-11  Jim Meyering  <meyering@lucent.com>
66625
66626         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66627         The body, by Paul Eggert, was moved here from configure.in.
66628         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66629
66630 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66631
66632         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66633         (jm_PREREQ): Use it.
66634
66635 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66636
66637         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66638         Use ssize_t, not int, to store result of readlink.
66639         Check for ssize_t overflow as well as size_t overflow,
66640         as POSIX says the result of readlink is implementation-defined
66641         when ssize_t overflows.
66642         Remove unnecessary cast to char*.
66643         Use free+malloc instead of realloc, as the storage doesn't need
66644         to be preserved and it's clearer and can be more efficient that way.
66645         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66646         * lib/xreadlink.h (xreadlink): Update prototype.
66647
66648 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66649
66650         * lib/xgetcwd.c: Revert some of the previous change; intead,
66651         fix the HAVE_GETCWD_NULL code to behave more like the
66652         !HAVE_GETCWD_NULL code used to.
66653
66654         Include "xalloc.h".
66655         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66656         invoke xalloc_die.
66657
66658 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66659
66660         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66661         sys/param.h, as pathmax.h includes them.
66662
66663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66664
66665         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66666         (jm_PREREQ_XGETCWD): New macro.
66667
66668         * m4/getcwd.m4: New file.
66669
66670 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66671
66672         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66673         like the HAVE_GETCWD_NULL code.
66674         Include pathmax.h if not HAVE_GETCWD.
66675         Do not include xalloc.h.
66676         (INITIAL_BUFFER_SIZE): New symbol.
66677         Do not use xmalloc / xrealloc, since the caller is responsible for
66678         handling errors.  Preserve errno around `free' during failure.
66679         Do not overrun buffer when using getwd.
66680
66681 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66682
66683         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66684         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66685         getcwd (NULL, 0).
66686
66687 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66688
66689         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66690         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66691         spotted by Jim Meyering.
66692
66693 2001-09-03  Jim Meyering  <meyering@lucent.com>
66694
66695         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66696         failure.
66697
66698 2001-09-02  Jim Meyering  <meyering@lucent.com>
66699
66700         * lib/error.c: Update from GNU libc.
66701
66702 2001-09-01  Jim Meyering  <meyering@lucent.com>
66703
66704         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66705         Used by df.
66706
66707 2001-09-01  Jim Meyering  <meyering@lucent.com>
66708
66709         * lib/xreadlink.c: New file.
66710         * lib/xreadlink.h: New file.
66711         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66712         xreadlink.h.
66713
66714         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66715         doesn't conflict with sparc Solaris 7's definition in
66716         /usr/include/sys/int_types.h.
66717
66718         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66719         files.
66720         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66721         and strncasecmp as r-values.  Unixware didn't have declarations.
66722
66723 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66724
66725         * lib/xstrtol.h: Add copyright notice.
66726         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66727         LONGINT_INVALID_SUFFIX_CHAR.
66728
66729 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66730
66731         * lib/xstrtol.c (strtoimax): New decl.
66732
66733 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66734
66735         * lib/xgetcwd.c: Don't include pathmax.h.
66736         Include stdlib.h and unistd.h if available.
66737         Include xalloc.h.
66738         (xmalloc, xstrdup, free): Remove decls.
66739         (xgetcwd): Don't assume sizes fit in unsigned.
66740         Check for overflow when computing sizes.
66741         Simplify reallocation code.
66742
66743 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66744
66745         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66746         a directory's st_size can have an arbitrary value, so the old
66747         usage could waste an arbitrary amount of memory.  All uses
66748         changed.
66749         * lib/savedir.h: Update prototype.
66750
66751 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66752
66753         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66754
66755         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66756         old strtoimax.c.
66757
66758         Also, make the following further changes to make this file's
66759         configuration more similar to that of strtol.c:
66760         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66761         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66762         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66763         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66764         changed to signed values.
66765
66766         And make the following changes as well:
66767         Fix copyright notice, as 1999 was missing.
66768         (verify): New macro.
66769         (strtoimax): Check sizes at compile-time, not run-time.
66770         Prefer strtol to strtoll if both work.
66771         (main): Remove; it was not that useful and was a pain to maintain.
66772
66773         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66774
66775 2001-08-31  Jim Meyering  <meyering@lucent.com>
66776
66777         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66778         Use an initial, malloc'd, buffer of length 128 rather than
66779         a statically allocated one of length 1024.
66780
66781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66782
66783         Simplify code, partly by assuming autoconf 2.52 semantics.
66784
66785         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66786
66787         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66788         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66789         All uses removed.
66790         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66791         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66792         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66793         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66794         jm_AC_HEADER_INTTYPES_H.
66795         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66796
66797         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66798
66799         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66800         Quote first arg of AC_DEFUN.
66801         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66802         since they are needed to parse the include file even if we need
66803         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66805         but with opposite signedness.
66806
66807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66808
66809         Merge 'exclude' changes from tar 1.13.22.
66810         This fixes one or two unlikely storage allocation overflow bugs,
66811         but doesn't change user-visible behavior otherwise.
66812
66813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66814
66815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66816         (jm_PREREQ_EXCLUDE): New macro.
66817
66818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66819
66820         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66821         tm to be declared.
66822
66823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66824
66825         * lib/hash.c: Remove '2001' from copyright notice.
66826
66827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66828
66829         * lib/full-write.h: New file.
66830         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66831         * lib/full-write.c: Correct credits, as cccp.c no longer
66832         exists and anyway it was so heavily changed from the old cccp
66833         code as to be unrecognizable.  Include full-write.h.
66834         (full_write) Return size_t, with short writes meaning failure.
66835         All callers changed.  This fixes a bug with large buffers
66836         on 64-bit hosts.
66837         * lib/utime.c: Include full-write.h.
66838
66839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66840
66841         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66842         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66843         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66844         Include if available.
66845         (<xalloc.h>): Include
66846         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
66847         (verify): New macro.  Use it to verify that EXCLUDE macros do not
66848         collide with FNM macros.
66849         (struct patopts): New struct.
66850         (struct exclude): Use it, as exclude patterns now come with options.
66851         (new_exclude): Support above changes.
66852         (new_exclude, add_exclude_file):
66853         Initial size must now be a power of two to simplify overflow checking.
66854         (free_exclude, fnmatch_no_wildcards): New function.
66855         (excluded_filename): No longer requires options arg, as the options
66856         are determined by add_exclude.  Now returns bool, not int.
66857         (excluded_filename, add_exclude):
66858         Add support for the fancy new exclusion options.
66859         (add_exclude, add_exclude_file): Now takes int options arg.
66860         Check for arithmetic overflow when computing sizes.
66861         (add_exclude_file): xrealloc might modify errno, so don't
66862         realloc until after errno might be used.
66863
66864         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
66865         New macros.
66866         (free_exclude): New decl.
66867         (add_exclude, add_exclude_file): Now takes int options arg.
66868         (excluded_filename): No longer requires options arg, as the options
66869         are determined by add_exclude.  Now returns bool, not int.
66870
66871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66872
66873         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
66874
66875 2001-08-27  Jim Meyering  <meyering@lucent.com>
66876
66877         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
66878
66879         * lib/version-etc.c (N_): Remove definition.
66880         Revert most of last change.
66881         Instead, simply don't mark the `Copyright...' string for translation.
66882         Based on advice from Paul Eggert.
66883
66884         * lib/strtoxmax.c: Tweak comment.
66885
66886 2001-08-26  Jim Meyering  <meyering@lucent.com>
66887
66888         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
66889
66890         * m4/xstrtoimax.m4: New file.
66891         * m4/xstrtoumax.m4: Add comments explaining why we
66892         AC_REPLACE_FUNCS(strtol).
66893
66894 2001-08-26  Jim Meyering  <meyering@lucent.com>
66895
66896         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
66897         of copyright with `%s' so translators don't get an untranslated
66898         message in 2002.
66899         (COPYRIGHT_YEAR): Define.
66900         (version_etc): Use fprintf rather than fputs.
66901         Suggestion from Ulrich Drepper.
66902
66903         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
66904
66905         * lib/strtoll.c: New file, from GNU libc.
66906         * lib/xstrtoimax.c: New file.
66907
66908         * lib/xstrtol.h: Add xstrtoimax.
66909         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
66910         * lib/strtoimax.c: New file.  Likewise, but first define
66911         STRTOUXMAX_SIGNED.
66912
66913         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
66914         ...
66915         * lib/strtoxmax.c: ... then renamed to this.
66916
66917 2001-08-18  Paul Eggert  <eggert@twinsun.com>
66918
66919         * m4/inttypes.m4: Add AC_PREREQ(2.13).
66920         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
66921         (jm_AC_TYPE_INTMAX_T): New macro.
66922         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
66923
66924         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
66925
66926         * m4/longlong.m4: Renamed from ulonglong.m4.
66927         * m4/inttypes.m4: Renamed from inttypes_h.m4.
66928         * m4/uintmax_t.m4: Removed.
66929
66930 2001-08-13  Paul Eggert  <eggert@twinsun.com>
66931
66932         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
66933         Port to Solaris 8, where 'sed' requires a space after the 'r'
66934         command, and where sh dislikes "$/".  Clean up the spacing a bit.
66935         Redirect output to $tmp just once.
66936
66937 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
66938
66939         * lib/addext.c (<errno.h>): Include.
66940         (errno): Declare if not defined.
66941         (addext): Work correctly when pathconf returns -1 and leaves
66942         errno alone because there is no limit.  Also, work even if
66943         pathconf returns a value greater than SIZE_MAX.
66944
66945 2001-08-12  Jim Meyering  <meyering@lucent.com>
66946
66947         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
66948         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
66949         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
66950         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
66951         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
66952         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
66953         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
66954         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
66955         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
66956         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
66957         utime.m4, utimes.m4, xstrtoumax.m4:
66958         Quote the first argument in each use of AC_DEFUN.
66959
66960 2001-08-12  Jim Meyering  <meyering@lucent.com>
66961
66962         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
66963         Simply `return getcwd (NULL, 0);'.
66964         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
66965         Use 1300 as initial value for length, not PATH_MAX.
66966
66967         * lib/pathmax.h: Clean up cpp syntax.
66968
66969 2001-08-12  Jim Meyering  <meyering@lucent.com>
66970
66971         * lib/gettimeofday.c: New file.
66972         * lib/gtod.h: New file.
66973         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
66974
66975 2001-08-05  Jim Meyering  <meyering@lucent.com>
66976
66977         * m4/jm-macros.m4: Require autoconf-2.52.
66978
66979 2001-08-04  Jim Meyering  <meyering@lucent.com>
66980
66981         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
66982         stmt, to get in sync with glibc.
66983
66984 2001-08-03  Paul Eggert  <eggert@twinsun.com>
66985
66986         The following changes are from gettext 0.10.39 as maintained by
66987         Bruno Haible.
66988
66989         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
66990         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
66991         with inverted sense.  All uses changed.
66992
66993         * lib/mbswidth.c: Don't include <limits.h>.
66994         Include <stdlib.h> and <string.h> unconditionally.
66995         (iswcntrl, mbsinit, ISCNTRL): New macros.
66996         (mbsnwidth): Use K&R style function declarations.
66997         Don't bother checking for MB_LEN_MAX == 1, since the compiler
66998         can optimize it when MB_CUR_MAX == 1.
66999         The width of control characters is zero, not 1.
67000
67001 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67002
67003         The following changes are from gettext 0.10.39 as maintained by
67004         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67005
67006         * m4/codeset.m4: Upgrade to serial AM1.
67007         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67008         all uses changed.  Quote first arg of AC_DEFUN.
67009         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67010
67011         * m4/iconv.m4: Upgrade to serial AM2.
67012         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67013         Add --with-libconv-prefix.
67014         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67015         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67016         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67017         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67018         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67019
67020         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67021         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67022         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67023         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67024         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67025         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67026         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67027         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67028         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67029
67030         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67031         string.h any more.
67032
67033         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67034         not the default value.
67035
67036         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67037         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67038         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67039         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67040         Also check for iswcntrl, used for wcwidth fallback.
67041         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67042         to Autoconf 2.13.
67043
67044 2001-08-03  Jim Meyering  <meyering@lucent.com>
67045
67046         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67047         as it was in the original.  Reported by Paul Eggert.
67048
67049 2001-07-16  Jim Meyering  <meyering@lucent.com>
67050
67051         * m4/gettimeofday.m4: New file.
67052         Prompted by a report from Bernhard Baehr.
67053
67054 2001-07-15  Jim Meyering  <meyering@lucent.com>
67055
67056         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67057         stuff. Now it's in ../Makefile.cfg.
67058
67059 2001-07-15  Jim Meyering  <meyering@lucent.com>
67060
67061         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67062         (BUILT_SOURCES): Add unlocked-io.h.
67063         (io_functions): Define.
67064         (unlocked-io.h): New rule.
67065         (DISTCLEANFILES): Add unlocked-io.h.
67066         (all-local): Depend on unlocked-io.h, to ensure it is created.
67067
67068         * lib/unlocked-io.hin: New file
67069
67070         * lib/regex.c: Update from glibc.
67071
67072 2001-07-05  Jim Meyering  <meyering@lucent.com>
67073
67074         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67075         recommendation.
67076         (libfetish_a_SOURCES): Put all .h files here instead.
67077         Remove a thus-exposed (better checks in automake) duplicate and
67078         two unnecessary .h files.
67079
67080 2001-07-04  Jim Meyering  <meyering@lucent.com>
67081
67082         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67083         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67084         distcheck failure.
67085
67086 2001-07-02  Jim Meyering  <meyering@lucent.com>
67087
67088         The following changes were prompted by suggestions from Bruno Haible.
67089
67090         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67091         is now generated.
67092         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67093         definition of EXTRA_DIST.
67094         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67095         ensure that the generated file is created/updated whenever the list
67096         of $(unlocked_functions) is changed.
67097         (jm-glibc-io.m4): New rule.
67098         (unlocked-io.h): New rule -- currently unused.
67099
67100 2001-06-24  Jim Meyering  <meyering@lucent.com>
67101
67102         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67103         unmatched right bracket, rather than kludging it with an extra,
67104         falsely-matching quote in a comment.  Patch by Akim Demaille.
67105
67106 2001-06-11  Jim Meyering  <meyering@lucent.com>
67107
67108         * lib/regex.c: Update from GNU libc.
67109
67110 2001-05-27  Jim Meyering  <meyering@lucent.com>
67111
67112         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67113         Check for ut_type in struct utmp.
67114
67115 2001-05-27  Jim Meyering  <meyering@lucent.com>
67116
67117         * lib/readutmp.h (UT_TYPE): Define.
67118
67119 2001-05-24  Jim Meyering  <meyering@lucent.com>
67120
67121         * lib/argmatch.c: Include "quote.h".
67122         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67123         quote function.  Reported by Göran Uddeborg.
67124
67125 2001-05-22  Jim Meyering  <meyering@lucent.com>
67126
67127         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67128         now that we use the package-supplied version unconditionally.
67129         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67130
67131 2001-05-21  Jim Meyering  <meyering@lucent.com>
67132
67133         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67134         shell syntax errors.
67135
67136 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67137
67138         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67139
67140 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67141
67142         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67143         Don't bother to check library strftime, since
67144         we'll be using our own my_strftime function anyway.
67145         Define my_strftime instead of strftime.
67146
67147 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67148
67149         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67150         which is not yet declared.
67151
67152 2001-05-15  Jim Meyering  <meyering@lucent.com>
67153
67154         * m4/regex.m4: Use proper quoting so brackets appear in the test
67155         program.
67156         Reported by, and with help from, Bruno Haible.
67157
67158 2001-05-13  Jim Meyering  <meyering@lucent.com>
67159
67160         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67161         undefined.
67162
67163 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67164
67165         dirname code cleanup.  base_name now behaves more compatibly
67166         with POSIX basename when given file names that have trailing
67167         slashes, and similarly for dir_name.  Add new primitives
67168         base_len and dir_len.  Put the directory-name-related decls
67169         into dirname.h.
67170
67171         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67172         * lib/backupfile.c (base_name): Likewise.
67173         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67174         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67175         * lib/makepath.c (strip_trailing_slashes): Likewise.
67176         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67177         ISSLASH): Likewise.
67178         * lib/rename.c (strip_trailing_slashes): Likewise.
67179         * lib/same.c (base_name): Likewise.
67180         * lib/stripslash.c (ISSLASH): Likewise.
67181
67182         * lib/addext.c: Include <dirname.h> after size_t is defined.
67183         * lib/backupfile.c: Likewise.
67184
67185         * lib/addext.c (addext): Use base_len to trim redundant
67186         trailing slashes instead of doing it ourselves.
67187         But do not trim the last slash if it is not redundant.
67188
67189         * lib/backupfile.c (find_backup_file_name,
67190         max_backup_version): Use base_len instead of rolling it ourselves.
67191         Handle the case of "" and (on DOS) "C:" correctly.
67192
67193         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67194         needed. Include <string.h>, <dirname.h>.
67195         (base_name): Allow file names ending in slashes, other than names
67196         that are all slashes.  In this case, return the basename followed
67197         by the slashes.  This is more general, and can be used in places
67198         where the original base_name purposely had an assertion failure.
67199         (base_len): New function.
67200
67201         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67202         Do not include <assert.h>; no longer needed.
67203         Include xalloc.h.
67204         (memrchr): Remove decl.
67205         (dir_name_r): Remove.
67206         (dir_len): Renamed from dirlen.  All callers changed.
67207         Rewrite in terms of base_name, for simplicity and consistency.
67208         (dir_name): Never return NULL.  All callers changed.
67209         Do not include <stdlib.h> in test program; no longer needed.
67210         return 0; is fine for test program.
67211
67212         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67213         New macros.
67214         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67215
67216         * lib/path-concat.c (path_concat): Use base_len to compute
67217         base length, not strlen; this means we cannot rely on memcpy
67218         to null-terminate.
67219
67220         * lib/same.c (STREQ): Remove.
67221         (same_name): Handle the case where the basename ends in trailing '/'.
67222
67223         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67224         a slash was stripped.  Do not strip the last slash after a
67225         file system prefix.
67226
67227 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67228
67229         * lib/Makefile.am (libfetish_a_SOURCES):
67230         Add strftime.c, since we now compile it on all hosts.
67231
67232         * lib/strftime.c (my_strftime):
67233         Define to nstrftime if emacs, but only if my_strftime is not defined.
67234         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67235         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67236         Add one more extra argument: a nanoseconds value.
67237         All uses changed.
67238         (ns): New macro.
67239         (my_strftime function): Add %N format.
67240         (emacs_strftimeu): Renamed from emacs_strftime,
67241         with extra ut argument.
67242
67243 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67244
67245         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67246
67247 2001-04-21  Jim Meyering  <meyering@lucent.com>
67248
67249         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67250         doesn't interfere.
67251
67252 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67253
67254         * m4/ftruncate.m4: Check for chsize.
67255         Link with ftruncate.o unconditionally if ftruncate is missing.
67256         This was required when cross-compiling to i586-mingw32msvc.
67257
67258 2001-04-08  Jim Meyering  <meyering@lucent.com>
67259
67260         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67261         recomputed; that's necessary when the offset spans a DST transition.
67262         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67263
67264 2001-04-02  Jim Meyering  <meyering@lucent.com>
67265
67266         * lib/regex.h, regex.c: Update from GNU libc.
67267
67268 2001-03-24  Jim Meyering  <meyering@lucent.com>
67269
67270         * m4/jm-macros.m4: Require autoconf-2.49d.
67271
67272 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67273
67274         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67275
67276 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67277
67278         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67279
67280 2001-03-17  Jim Meyering  <meyering@lucent.com>
67281
67282         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67283         now that the version in autoconf is equivalent.
67284         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67285
67286         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67287         Suggestion from Akim Demaille.
67288
67289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67290         (jm_PREREQ_TEMPNAME): New function.
67291
67292 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67293
67294         * lib/tempname.c (uint64_t): Define to uintmax_t if
67295         not defined, and if UINT64_MAX is not defined.
67296         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67297         Reported by John David Anglin.
67298
67299 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67300
67301         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67302         resolve alias if codeset is empty.
67303         * lib/config.charset (BeOS): Use wildcard syntax.
67304
67305 2001-03-13  Jim Meyering  <meyering@lucent.com>
67306
67307         * lib/path-concat.c (path_concat)
67308         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67309         concatenating e.g., `C:' and `foo'.
67310         From Bruno Haible.
67311
67312 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67313
67314         * lib/localcharset.c (locale_charset): Don't use
67315         setlocale(LC_CTYPE,NULL). Don't return NULL.
67316         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67317
67318 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67319
67320         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67321         support for DOS/DJGPP.
67322
67323 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67324
67325         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67326         lacks mkstemp.  Compile our own tempname.c if we compile our own
67327         mkstemp.c, as mkstemp relies on tempname.
67328
67329 2001-03-01  Jim Meyering  <meyering@lucent.com>
67330
67331         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67332         AH_VERBATIM really does output its argument verbatim.
67333
67334 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67335
67336         * lib/Makefile.am (libfetish_a_SOURCES):
67337         Add dup-safer.c, fopen-safer.c.
67338         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67339
67340         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67341         * lib/unistd-safer.h: New files.
67342
67343 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67344
67345         The mkstemp replacement is taken from glibc 2.2.2, with some
67346         portability fixes for use outside glibc, as follows:
67347
67348         * lib/tempname.c (struct_stat64): New macro.
67349         (direxists, __gen_tempname): Use it.
67350         This avoids a portability problem with Solaris 8.
67351
67352         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67353         (<stddef.h>, <stdint.h>, <string.h>):
67354         Include only if STDC_HEADERS || _LIBC.
67355         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67356         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67357         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67358         (__set_errno): Define this macro if <errno.h> doesn't.
67359         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67360         Define these macros if <stdio.h> doesn't.
67361         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67362         Define these macros if <sys/stat.h>
67363         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67364         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67365         __xstat64): Define if not _LIBC.
67366         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67367         (__gen_tempname): Invoke gettimeofday only if
67368         HAVE_GETTIMEOFDAY || _LIBC;
67369         otherwise, fall back on plain "time".
67370         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67371
67372         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67373
67374         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67375
67376 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67377
67378         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67379
67380 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67381
67382         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67383         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67384         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67385         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67386
67387 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67388
67389         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67390         Remove workaround macros for hosts that have mbrtowc but not
67391         mbstate_t, as we now insist on proper declarations for both
67392         before using mbrtowc.
67393
67394 2001-02-17  Jim Meyering  <meyering@lucent.com>
67395
67396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67397         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67398         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67399         UnixWare 7.1.1.
67400
67401         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67402         rather than AC_CACHE_VAL.
67403
67404 2001-02-17  Jim Meyering  <meyering@lucent.com>
67405
67406         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67407         around included file name.
67408
67409         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67410
67411         * lib/strftime.c: Update from GNU libc (the only changes were to
67412         comments).
67413
67414 2001-02-17  Jim Meyering  <meyering@lucent.com>
67415
67416         * lib/regex.c: Update from libc.
67417
67418 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67419
67420         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67421         clash.
67422
67423 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67424
67425         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67426         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67427         Reported by Mark Hounschell via Paul Eggert.
67428
67429 2001-02-07  Jim Meyering  <meyering@lucent.com>
67430
67431         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67432
67433 2001-02-05  Jim Meyering  <meyering@lucent.com>
67434
67435         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67436         it includes the patch required for `large file' support with at least
67437         HP-UX's 10.20 /bin/cc.
67438
67439 2001-02-03  Jim Meyering  <meyering@lucent.com>
67440
67441         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67442         AS_IF, now that it works once again (mysteriously).
67443         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67444
67445 2001-01-30  Jim Meyering  <meyering@lucent.com>
67446
67447         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67448         * m4/chown.m4: Rename conftestchown to conftest.chown.
67449         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67450         s/conftestdir2/conftest.d2/.
67451         * m4/utimes.m4: s/conftestdata/conftest.data/
67452         Inspired by Pavel Roskin's change in autoconf.
67453
67454 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67455
67456         * lib/config.charset: Update for FreeBSD 4.2.
67457
67458 2001-01-27  Jim Meyering  <meyering@lucent.com>
67459
67460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67461         a use of AS_IF.
67462         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67463
67464 2001-01-26  Jim Meyering  <meyering@lucent.com>
67465
67466         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67467         quotearg.c includes it.
67468
67469 2001-01-26  Jim Meyering  <meyering@lucent.com>
67470
67471         * lib/quotearg.c: Include stddef.h.
67472         * lib/quote.c: Include stddef.h.
67473         Reported by Axel Kittenberger.
67474
67475         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67476         line in double quotes so that it evokes a better diagnostic.
67477         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67478         Reported by Axel Kittenberger.
67479
67480 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67481
67482         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67483         as if it was a `charset'.
67484
67485 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67486
67487         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67488         has const.
67489
67490 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67491
67492         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67493         to avoid a warning.  Add back 'const' to inptr.
67494
67495 2001-01-20  Jim Meyering  <meyering@lucent.com>
67496
67497         Be sure that headers are checked before used in code compiled
67498         for the type checks.
67499         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67500         In place of that, invoke jm_CHECK_ALL_TYPES.
67501         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67502         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67503         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67504         The check for ssize_t was mistakenly run before the test for unistd.h.
67505
67506         The configure-time check for stdbool.h was missing.
67507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67508         (jm_PREREQ_HASH): New function.
67509
67510 2001-01-17  Jim Meyering  <meyering@lucent.com>
67511
67512         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67513         for autoconf-2.49c.
67514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67515
67516 2001-01-16  Jim Meyering  <meyering@lucent.com>
67517
67518         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67519         From Bruno Haible.
67520
67521 2001-01-14  Jim Meyering  <meyering@lucent.com>
67522
67523         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67524         foo and bar.  Create conftestdir/ in the script, not in the C code.
67525         Remove directories in the script, not in the C code.
67526         Remove conftestdir{,2} before trying to create the directory.
67527         Make the entire configure script fail if the mkdir fails.
67528
67529 2001-01-14  Jim Meyering  <meyering@lucent.com>
67530
67531         * lib/rename.c: New file.  From Volker Borchert.
67532         Include stdlib.h, string.h or strings.h, and xalloc.h.
67533         Use strip_trailing_slashes rather than open-coding it.
67534
67535 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67536
67537         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67538
67539 2001-01-03  Jim Meyering  <meyering@lucent.com>
67540
67541         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67542         of local `inptr' to avoid warning with some system declarations of
67543         iconv.
67544
67545 2001-01-02  Volker Borchert  <bt@teknon.de>
67546
67547         * m4/rename.m4: New file.
67548         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67549
67550 2001-01-01  Jim Meyering  <meyering@lucent.com>
67551
67552         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67553         even on systems with utmpx.h.  It's necessary for the declaration of
67554         utmp's ut_user member.  Reported by Andreas Jaeger.
67555
67556         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67557         available. They are required for the declarations of getgrgid and
67558         getpwuid resp.
67559         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67560         Reported by Andreas Jaeger.
67561
67562 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67563
67564         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67565         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67566         so `make install' also works in VPATH builds.
67567
67568 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67569
67570         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67571         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67572         can be used in subdirectories.
67573
67574 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67575
67576         * lib/modechange.c: Do not assume that mode_t uses the
67577         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67578         the other-execute bit of FOO even if S_IXOTH != 1.
67579
67580         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67581         WOTH, XOTH, ALLM): New macros.
67582         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67583          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67584         Use them.
67585         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67586         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67587         (mode_compile):
67588         No need to use uintmax_t; unsigned long is long enough.
67589         Don't bother to get suffix since we don't use it.
67590
67591 2000-12-26  Jim Meyering  <meyering@lucent.com>
67592
67593         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67594         better with autoheader.
67595
67596 2000-12-24  Jim Meyering  <meyering@lucent.com>
67597
67598         * lib/hash.c (is_prime): Return explicit boolean values.
67599         (hash_get_first): Return NULL to appease Irix5.6's 89.
67600         Reported by Nelson Beebe.
67601
67602 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67603
67604         * lib/localcharset.c (locale_charset): Add support for Win32.
67605
67606 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67607
67608         * lib/physmem.h, lib/physmem.c: New files.
67609
67610         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67611         (noinst_HEADERS): Add physmem.h.
67612
67613         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67614         't' for compatibility with Solaris 8 sort.
67615
67616 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67617
67618         * lib/config.charset: Add support for BeOS.
67619
67620 2000-12-17  Jim Meyering  <meyering@lucent.com>
67621
67622         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67623         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67624
67625 2000-12-16  Jim Meyering  <meyering@lucent.com>
67626
67627         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67628         N and M) would have treated it like `chown N:N FILE'.
67629
67630         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67631
67632 2000-12-16  Jim Meyering  <meyering@lucent.com>
67633
67634         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67635         SHELLS_FILE to a file name that's useful on djgpp systems.
67636         Include stdlib.h.
67637         (ADDITIONAL_DEFAULT_SHELLS): Define.
67638         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67639         Based mostly on a patch from Prashant TR.
67640
67641 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67642
67643         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67644         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67645         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67646
67647 2000-12-08  Andreas Schwab  <schwab@suse.de>
67648
67649         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67650         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67651
67652 2000-12-07  Jim Meyering  <meyering@lucent.com>
67653
67654         * lib/stripslash.c (ISSLASH): Define.
67655         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67656         `/'.
67657         From Prashant TR.
67658
67659         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67660         (dir_name_r): Declare this function as static.
67661         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67662         manifest itself on a name containing a mix of slashes and
67663         backslashes.
67664         Make this function work with names starting with a DOS-style
67665         drive letter and colon prefix.
67666         (dir_name): Append `.' if necessary.
67667         Based mostly on patches from Prashant TR and Eli Zaretskii.
67668
67669         * lib/dirname.h (dir_name_r): Remove prototype.
67670
67671 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67672
67673         * m4/off_t-format.m4: Remove this file.
67674         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67675
67676 2000-12-06  Jim Meyering  <meyering@lucent.com>
67677
67678         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67679         replacement strtoull, we may well need the replacement strtoul, too.
67680         Check for declarations of strtoul and strtoull.
67681         Check for strtol.  Mainly as a cue to cause automake to include
67682         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67683         Check for limits.h -- strtol.c needs it.
67684
67685 2000-12-05  Jim Meyering  <meyering@lucent.com>
67686
67687         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67688
67689 2000-12-04  Jim Meyering  <meyering@lucent.com>
67690
67691         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67692         Also include memory.h, stdlib.h, unistd.h if appropriate.
67693         Reported by Andreas Jaeger (conflicting declaration of malloc).
67694
67695 2000-12-02  Jim Meyering  <meyering@lucent.com>
67696
67697         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67698         * m4/jm-macros.m4 (jm_MACROS): require it.
67699
67700 2000-12-02  Jim Meyering  <meyering@lucent.com>
67701
67702         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67703
67704 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67705
67706         * lib/memrchr.c: Include <config.h> before any system include file.
67707
67708 2000-11-30  Jim Meyering  <meyering@lucent.com>
67709
67710         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67711
67712 2000-11-30  Jim Meyering  <meyering@lucent.com>
67713
67714         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67715
67716 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67717
67718         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67719
67720 2000-11-26  Jim Meyering  <meyering@lucent.com>
67721
67722         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67723
67724 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67725
67726         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67727         size of (size_t) -1; it's not portable.
67728
67729 2000-11-17  Jim Meyering  <meyering@lucent.com>
67730
67731         * lib/strstr.c: Update from GNU libc.
67732
67733 2000-11-17  Akim Demaille  <akim@epita.fr>
67734
67735         * lib/obstack.h: Formatting changes.
67736         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67737         prevent type checking.
67738         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67739         cast the value to (void *): assigning a `foo *' to a `void *'
67740         variable is valid.
67741         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67742
67743 2000-11-16  Jim Meyering  <meyering@lucent.com>
67744
67745         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67746
67747 2000-11-11  Jim Meyering  <meyering@lucent.com>
67748
67749         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67750
67751 2000-11-10  Jim Meyering  <meyering@lucent.com>
67752
67753         * lib/obstack.h: Update from GNU libc.
67754         * lib/obstack.c: Likewise.
67755
67756 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67757
67758         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67759
67760 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67761
67762         * lib/getusershell.c (setusershell): Use rewind rather than
67763         fseek/fseeko, to avoid configuration hassles with fseeko.
67764         Don't bother opening SHELLS_FILE if shellstream is NULL;
67765         it's not necessary.
67766
67767 2000-11-05  Jim Meyering  <meyering@lucent.com>
67768
67769         * lib/makepath.h (make_dir): Declare.
67770         * lib/makepath.c (make_dir): Remove `static' attribute.
67771         Tweak a comment.
67772
67773 2000-11-04  Jim Meyering  <meyering@lucent.com>
67774
67775         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67776
67777 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67778
67779         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67780         last one in a bucket, advance to the next bucket.
67781
67782 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67783
67784         * lib/fnmatch.c: Do not comment out all the code if we are using
67785         the GNU C library, because in some cases we are replacing buggy
67786         code in the GNU C library itself.
67787
67788 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67789
67790         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67791         (regex_compile): Catch bogus \(\1\).
67792
67793 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67794
67795         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67796         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67797         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67798
67799 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67800
67801         * lib/error.h, getline.h, modechange.h:
67802         Remove "2000" from Copyright line, as the file hasn't been
67803         changed this year other than in the copyright notice.
67804
67805         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67806         was changed this year.
67807
67808 2000-10-29  Jim Meyering  <meyering@lucent.com>
67809
67810         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67811         renaming.
67812         * m4/ls-mntd-fs.m4: Likewise
67813
67814 2000-10-29  Jim Meyering  <meyering@lucent.com>
67815
67816         * lib/xstat.in: Fix grammar in comment.
67817
67818 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67819
67820         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67821         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67822         doesn't define __restrict_arr.
67823
67824 2000-10-28  Jim Meyering  <meyering@lucent.com>
67825
67826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67827         (jm_PREREQ_MEMCHR): New function.
67828
67829 2000-10-28  Jim Meyering  <meyering@lucent.com>
67830
67831         * lib/memchr.c: Update from libc.
67832         Adjust for portability:
67833         [HAVE_STDLIB_H]: Include stdlib.h.
67834         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67835         Undef __memchr, too.
67836         [!weak_alias]: Define __memchr to memchr.
67837
67838         * lib/regex.c: Update from libc.
67839         * lib/regex.h: Likewise.
67840         * lib/getopt1.c: Likewise.
67841         * lib/memcmp.c: Likewise.
67842
67843         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67844         Avoid using fseek, when possible -- it's broken by design.
67845         Patch by Ulrich Drepper.
67846
67847 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
67848
67849         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
67850         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
67851         Giving in to popular pressure to shut up the compiler with casts.
67852
67853 2000-10-26  Jim Meyering  <meyering@lucent.com>
67854
67855         * lib/strftime.c: Update from libc.
67856
67857 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
67858
67859         * regex.c: More `unsigned char' -> `re_char' changes.
67860         Also change several `int' into `re_wchar_t'.
67861         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
67862         (PUSH_FAILURE_POINTER): Don't cast any more.
67863         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
67864         We want GCC to complain, since this piece of code makes
67865         re_match non-reentrant, which *should* be fixed.
67866         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
67867         (EXTEND_BUFFER): Use RETALLOC.
67868         (SET_LIST_BIT): Don't cast.
67869         (re_wchar_t): New type.
67870         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
67871         that those two functions will always properly return.
67872         (IMMEDIATE_QUIT_CHECK): Cast to void.
67873         (analyse_first): Use recursion rather than an explicit stack.
67874         (re_compile_fastmap): Can't fail anymore.
67875         (re_search_2): Don't check re_compile_fastmap for failure.
67876         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
67877         Now also sets the new value (passed in a new argument).
67878         (re_match_2_internal): Use it.
67879         Also, use a new var `reg' of type size_t when looping through regs
67880         rather than reuse the inappropriate `mcnt'.
67881
67882 2000-10-25  Jim Meyering  <meyering@lucent.com>
67883
67884         * lib/obstack.c: Update from libc.
67885
67886 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
67887
67888         * regex.c (regex_compile): Change the way of handling a range from
67889         a char less than 256 to a char not less than 256.
67890
67891 2000-10-24  Andrew Innes  <andrewi@gnu.org>
67892
67893         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
67894         NT-Emacs only.
67895         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
67896         so that re_search functions only quit when callers expect them to.
67897
67898 2000-10-23  Jim Meyering  <meyering@lucent.com>
67899
67900         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
67901         wrong.  That set_locale call must not have any side effects.
67902         From Paul Eggert.
67903
67904 2000-10-22  Jim Meyering  <meyering@lucent.com>
67905
67906         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
67907         [CYCLIC]: Remove now-unused definition.
67908
67909         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
67910         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
67911         Suggestion from Ulrich Drepper.
67912
67913 2000-10-21  Jim Meyering  <meyering@lucent.com>
67914
67915         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
67916         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
67917         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
67918
67919 2000-10-21  Jim Meyering  <meyering@lucent.com>
67920
67921         * lib/dirname.c (memrchr): Declare if necessary.
67922         (dir_name): Remove the restriction that there be no
67923         trailing slashes.  Now, this code skips past them, effectively
67924         ignoring them.
67925         [TEST_DIRNAME] (main): New unit tests.
67926
67927         * lib/memrchr.c: New file from GNU libc.
67928         Undef __memrchr, too.
67929         [!weak_alias]: Define __memrchr to memrchr.
67930         Guard weak_alias use with `#ifdef weak_alias'.
67931
67932 2000-10-21  Jim Meyering  <meyering@lucent.com>
67933
67934         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
67935         (dir_name): Use dir_name_r.
67936         * lib/dirname.h (dir_name_r): Declare it.
67937
67938 2000-10-17  Jim Meyering  <meyering@lucent.com>
67939
67940         * lib/quote.h (PARAMS): Define and use.
67941         Reported by Akim Demaille.
67942
67943         * lib/getopt.c: Update from libc.
67944
67945 2000-10-16  Jim Meyering  <meyering@lucent.com>
67946
67947         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
67948         setlocale.
67949         From Jan Fedak.
67950
67951 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
67952
67953         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
67954
67955 2000-09-25  Jim Meyering  <meyering@lucent.com>
67956
67957         * lib/md5.h (rol): Define (from GnuPG).
67958
67959         * lib/sha.c: Give credit (GnuPG) where due.
67960         (M): Use rol rather than open-coding it.
67961         Add a FIXME comment.
67962
67963 2000-09-21  Jim Meyering  <meyering@lucent.com>
67964
67965         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
67966         Reported by Michael Stone.
67967
67968 2000-09-20  Jim Meyering  <meyering@lucent.com>
67969
67970         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
67971         (noinst_HEADERS): Add sha.h.
67972         Based on code from Scott G. Miller and from GnuPG.
67973
67974 2000-09-18  Jim Meyering  <meyering@lucent.com>
67975
67976         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
67977         LIBS. Otherwise, everyone ends up linking with -lelf for some
67978         configurations.
67979         Reported by Mike Stone.
67980
67981 2000-09-15  Jim Meyering  <meyering@lucent.com>
67982
67983         * lib/regex.c: Update from libc.
67984
67985 2000-09-10  Jim Meyering  <meyering@lucent.com>
67986
67987         * lib/getopt.c (_getopt_internal): Update from glibc.
67988
67989 2000-09-09  Jim Meyering  <meyering@lucent.com>
67990
67991         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
67992         think it should be used as a general replacement for isascii.
67993         * lib/fnmatch.c: Likewise.
67994         * lib/mbswidth.c: Likewise
67995         * lib/regex.c: Likewise.
67996
67997         Don't use atoi.
67998         * lib/userspec.c: Include sys/param.h and limits.h.
67999         Include xstrtol.h.
68000         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68001         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68002         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68003         UID, GID.  Check range.
68004
68005 2000-09-06  Jim Meyering  <meyering@lucent.com>
68006
68007         * lib/getopt.c (_getopt_internal): Update from glibc.
68008
68009 2000-08-30  Jim Meyering  <meyering@lucent.com>
68010
68011         * lib/strftime.c: Merge in changes from GNU libc.
68012
68013 2000-08-26  Jim Meyering  <meyering@lucent.com>
68014
68015         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68016         * m4/fpending.m4: New file.
68017
68018 2000-08-26  Jim Meyering  <meyering@lucent.com>
68019
68020         * lib/closeout.c: Include "__fpending.h".
68021         (close_stdout_status): Return right away if there's nothing to flush.
68022
68023         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68024         * lib/__fpending.c: New file.
68025         * lib/__fpending.h: New file.
68026
68027 2000-08-20  Jim Meyering  <meyering@lucent.com>
68028
68029         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68030         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68031         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68032
68033 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68034
68035         Improve fileutils installation on systems where running
68036         programs (like install) can't be unlinked.
68037         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68038         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68039
68040 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68041
68042         Standardize on "memory exhausted" instead of "Memory exhausted"
68043         or "virtual memory exhausted".
68044         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68045         "virtual memory exhausted".
68046         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68047         our own message.
68048         * lib/userspec.c (parse_user_spec): Likewise.
68049         * lib/bumpalloc.h: comment fix
68050         * lib/same.c, userspec.c: Include xalloc.h.
68051
68052         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68053         not char *const and pointing to a constant array.
68054         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68055         (xrealloc): Comment fix.
68056
68057         * lib/userspec.c (parse_user_spec):
68058         Don't translate a message until just before returning,
68059         to avoid unnecessary translation.
68060
68061 2000-08-07  Jim Meyering  <meyering@lucent.com>
68062
68063         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68064         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68065         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68066         getgroups.c, gethostname.c, getopt.h, group-member.c,
68067         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68068         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68069         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68070         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68071         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68072         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68073         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68074         yesno.c: Back out Copyright date changes for each file with no change
68075         this year.  This eases coordination with other programs using the same
68076         source code modules.  From Paul Eggert.
68077
68078 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68079
68080         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68081         not char, for compatibility with glibc 2.1.3 strftime.c.
68082
68083 2000-08-03  Greg McGary  <greg@mcgary.org>
68084
68085         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68086         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68087         (EXTEND_BUFFER): Use them.
68088
68089 2000-08-01  Jim Meyering  <meyering@lucent.com>
68090
68091         * lib/dirname.c (ISSLASH): Define.
68092         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68093         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68094         both `\' and `/' may be use as path separators.
68095         Based on a patch from Prashant TR.
68096
68097 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68098
68099         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68100         slot vector a constant, since it might get modified.
68101
68102 2000-07-31  Jim Meyering  <meyering@lucent.com>
68103
68104         * lib/xmalloc.c: Use `virtual memory exhausted', not
68105         `Memory exhausted'.
68106         * lib/obstack.c (print_and_abort): Likewise.
68107
68108 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68109
68110         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68111         buffer, so that the caller can always quote one small
68112         component of a "memory exhausted" message in slot 0.
68113         From a suggestion by Jim Meyering.
68114
68115 2000-07-30  Jim Meyering  <meyering@lucent.com>
68116
68117         * lib/makepath.c (make_path): Quote the other instance, too.
68118
68119         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68120         (STATIC_BUF_SIZE): Define.
68121         (quotearg_n_options): Use only statically allocated storage when
68122         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68123         than STATIC_BUF_SIZE.
68124
68125 2000-07-29  Jim Meyering  <meyering@lucent.com>
68126
68127         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68128         * lib/dirname.c (dir_name): Likewise.
68129
68130         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68131         `/'.
68132
68133         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68134         (dir_name): Assert that there are no trailing slashes.
68135
68136 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68137
68138         * lib/mbswidth.h (mbswidth): Add a flags argument.
68139         (mbswidth): New declaration.
68140         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68141         * lib/mbswidth.c (mbswidth): Add a flags argument.
68142         (mbsnwidth): New function.
68143
68144 2000-07-24  Jim Meyering  <meyering@lucent.com>
68145
68146         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68147
68148 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68149
68150         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68151
68152 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68153
68154         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68155         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68156         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68157         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68158         invoke multibyte primitives.
68159
68160 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68161
68162         * lib/quotearg.c:
68163         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68164         so that mbstate_t is always defined.
68165
68166         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68167         be 1 in at least one GCC installation, and this configuration
68168         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68169         performance on hosts that have mbrtowc but have only unibyte
68170         locales, but I assume these hosts are rare.
68171
68172 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68173
68174         * lib/mbswidth.c (_XOPEN_SOURCE):
68175         Don't define; this causes problems on Solaris 7.
68176         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68177
68178 2000-07-23  Jim Meyering  <meyering@lucent.com>
68179
68180         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68181         too: getgrgid, getpwuid, getuid.
68182
68183 2000-07-23  Jim Meyering  <meyering@lucent.com>
68184
68185         * lib/basename.c (base_name): Add an assertion.
68186
68187 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68188
68189         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68190         shadow its mbsinit function.
68191
68192 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68193
68194         * lib/mbswidth.h: New file.
68195         * lib/mbswidth.c: New file.
68196         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68197         (noinst_HEADERS): Add mbswidth.h.
68198
68199 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68200
68201         * lib/config.charset: Add support for FreeBSD. Improve support for
68202         HP-UX and IRIX 6.
68203
68204 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68205
68206         * m4/mbswidth.m4: New file.
68207         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68208
68209 2000-07-15  Jim Meyering  <meyering@lucent.com>
68210
68211         * lib/makepath.c: Include quote.h.
68212         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68213         corresponding argument in a `quote (...)' call.
68214         Give better diagnostics.
68215
68216         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68217         (noinst_HEADERS): Add quote.h.
68218
68219         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68220         from tar's src/misc.c.
68221         * lib/quote.h: New file.  Prototypes for same.
68222
68223 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68224
68225         From a suggestion by Bruno Haible.
68226         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68227         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68228         to decide whether to define the BeOS workaround macro;
68229         this adjusts to the change to AC_MBSTATE_T.
68230
68231 2000-07-14  Jim Meyering  <meyering@lucent.com>
68232
68233         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68234         jm_AC_TYPE_UINTMAX_T.
68235
68236 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68237
68238         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68239
68240         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68241         quotearg_buffer_restyled): Add support for
68242         clocale_quoting_style.  Undo previous change to
68243         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68244         and "{RIGHT QUOTATION MARK}" msgids.
68245
68246 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68247
68248         From a suggestion by Bruno Haible.
68249         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68250         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68251         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68252         and mbstate_t, to a single-part test that simply defines mbstate_t.
68253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68254         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68255
68256 2000-07-10  Jim Meyering  <meyering@lucent.com>
68257
68258         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68259
68260         * m4/gnu-source.m4: Output to confdefs.h directly.
68261         Suggestion from Akim Demaille.
68262
68263 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68264
68265         The old behavior of quoting `like this' doesn't look good with
68266         newer, ISO-style fonts.  See:
68267         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68268
68269         Instead, quote "like this" by default.  Let the translator
68270         tailor the locale-specific quoting behavior by providing
68271         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68272
68273         * lib/quotearg.c (N_): New macro.
68274         (gettext_default): New function.
68275         (quotearg_buffer_restyled): Use
68276         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68277         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68278
68279 2000-07-09  Jim Meyering  <meyering@lucent.com>
68280
68281         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68282         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68283
68284         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68286
68287 2000-07-09  Jim Meyering  <meyering@lucent.com>
68288
68289         * lib/Most files: Update copyright dates to include 2000.
68290
68291 2000-07-08  Jim Meyering  <meyering@lucent.com>
68292
68293         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68294         if not defined.
68295         (xgethostname): Remove now-unnecessary #ifdef.
68296         Move declaration of `err' into loop where it's used.
68297
68298 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68299         and Bruno Haible  <haible@clisp.cons.org>
68300
68301         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68302         only if the test for an object-type mbstate_t fails.  This
68303         prevents us from mistakenly reporting that mbstate_t is a
68304         system object type after we "#define mbstate_t int" to work
68305         around its lack.
68306
68307 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68308         and Bruno Haible  <haible@clisp.cons.org>
68309
68310         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68311
68312 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68313
68314         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68315         to strerror_r.
68316         Include <ctype.h> for use of isalpha.
68317
68318 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68319
68320         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68321         by allocating a larger buffer. Test the gethostname return value for
68322         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68323         returns an error and ENAMETOOLONG isn't defined.
68324
68325 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68326
68327         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68328         dimension.
68329
68330 2000-07-04  Jim Meyering  <meyering@lucent.com>
68331
68332         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68333         of the deprecated AC_CHECKING.
68334
68335 2000-07-04  Jim Meyering  <meyering@lucent.com>
68336
68337         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68338         Reported by Bruno Haible.
68339
68340 2000-07-04  Jim Meyering  <meyering@lucent.com>
68341
68342         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68343         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68344         lacks mbrtowc.
68345
68346 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68347
68348         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68349         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68350
68351 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68352         and Bruno Haible  <haible@clisp.cons.org>
68353
68354         * lib/quotearg.c (mbrtowc):
68355         Assign to *pwc, and return 1 only if result is nonzero.
68356         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68357
68358 2000-07-03  Jim Meyering  <meyering@lucent.com>
68359
68360         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68361
68362 2000-07-03  Jim Meyering  <meyering@lucent.com>
68363
68364         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68365         This is necessary to get a definition of e.g., UTMP_FILE on
68366         HP-UX 10.20.
68367         From Bob Proulx.
68368
68369 2000-07-02  Jim Meyering  <meyering@lucent.com>
68370
68371         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68372
68373         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68374         AC_LIBOBJ(function_name).
68375         * m4/chown.m4: Likewise.
68376         * m4/fnmatch.m4: Likewise.
68377         * m4/ftruncate.m4: Likewise.
68378         * m4/getgroups.m4: Likewise.
68379         * m4/getline.m4: Likewise.
68380         * m4/group-member.m4: Likewise.
68381         * m4/jm-macros.m4: Likewise.
68382         * m4/lstat.m4: Likewise.
68383         * m4/malloc.m4: Likewise.
68384         * m4/memcmp.m4: Likewise.
68385         * m4/nanosleep.m4: Likewise.
68386         * m4/putenv.m4: Likewise.
68387         * m4/realloc.m4: Likewise.
68388         * m4/regex.m4: Likewise.
68389         * m4/stat.m4: Likewise.
68390         * m4/strftime.m4: Likewise.
68391
68392 2000-07-02  Jim Meyering  <meyering@lucent.com>
68393
68394         * lib/quotearg.c (mbstate_t): Don't define here.
68395
68396 2000-07-02  Jim Meyering  <meyering@lucent.com>
68397
68398         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68399
68400 2000-07-01  Jim Meyering  <meyering@lucent.com>
68401
68402         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68403
68404 2000-07-01  Jim Meyering  <meyering@lucent.com>
68405
68406         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68407         problem.
68408
68409 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68410
68411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68412         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68413
68414 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68415
68416         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68417         per change in ../m4/ls-mntd-fs.m4.
68418         (read_filesystem_list): Ignore symbolic links.
68419
68420 2000-06-29  Jim Meyering  <meyering@lucent.com>
68421
68422         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68423         for declaration of strcmp.
68424
68425         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68426
68427         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68428         Avoid warning by casting result to `char *' to remove `const'.
68429
68430 2000-06-28  Jim Meyering  <meyering@lucent.com>
68431
68432         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68433         included by quotearg.c, for which we perform this test.  From
68434         Bruno Haible.
68435
68436 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68437
68438         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68439         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68440         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68441
68442 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68443
68444         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68445
68446 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68447
68448         savedir now sets errno on failure and invokes xmalloc to get memory.
68449         Fix a couple of other minor bugs while we're at it.
68450
68451         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68452         (NAMLEN): Remove macro.
68453         (malloc, realloc): Remove decls.
68454         (stpcpy): Likewise.
68455         ("xalloc.h"): Include.
68456         (NAME_SIZE_DEFAULT): New macro.
68457         (savedir): Use xmalloc / xrealloc to allocate memory.
68458         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68459         Skip "" directory entries.
68460         Use strlen to calculate directory entry length, since the old method
68461         is rarely used these days and isn't worth supporting.
68462         Don't use a pointer after freeing it.
68463         Check for integer overflow when calculating allocation size.
68464         Use memcpy to copy entries, instead of stpcpy.
68465         Set errno properly when returning NULL.
68466         Check for readdir error.
68467
68468 2000-06-26  Jim Meyering  <meyering@lucent.com>
68469
68470         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68471
68472 2000-06-25  Jim Meyering  <meyering@lucent.com>
68473
68474         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68475         Linux header bug when _XOPEN_SOURCE is defined to 500.
68476
68477 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68478
68479         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68480         deficiency.
68481
68482 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68483
68484         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68485         Include xalloc.h.
68486         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68487
68488 2000-06-24  Jim Meyering  <meyering@lucent.com>
68489
68490         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68491         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68492         for which strerror does return char*, but which lacks a conveniently
68493         accessible declaration of the function.  If the compile-test says
68494         strerror_r doesn't work, then resort to a `run'-test that works on
68495         BeOS and segfaults on DEC Unix.
68496
68497 2000-06-24  Jim Meyering  <meyering@lucent.com>
68498
68499         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68500
68501 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68502
68503         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68505
68506 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68507
68508         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68509         (mbrtowc, mbstate_t): Define substitutes if
68510         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68511         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68512         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68513
68514 2000-06-23  Jim Meyering  <meyering@lucent.com>
68515
68516         * m4/afs.m4: Add missing AC_MSG_RESULT.
68517         Reported by Bruno Haible.
68518
68519         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68520         Suggestion from Bruno Haible.
68521
68522 2000-06-23  Jim Meyering  <meyering@lucent.com>
68523
68524         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68525
68526 2000-06-21  Jim Meyering  <meyering@lucent.com>
68527
68528         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68529
68530 2000-06-21  Jim Meyering  <meyering@lucent.com>
68531
68532         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68533         (noinst_HEADERS): Add getstr.h.
68534
68535         * lib/getline.c (getstr): Move into a separate file.
68536         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68537         the following changes: new parameter, delim2; both delim[12]
68538         parameters have type `int', not `char'.  The latter would lose
68539         with 8-bit delimiters.
68540         * lib/getstr.h: New file.
68541
68542 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68543
68544         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68545         than 1024, return a memory chunk of least possible size, instead
68546         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68547         Use free/xmalloc instead of xrealloc to avoid copying for very long
68548         paths.
68549
68550 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68551
68552         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68553         the empty string.
68554
68555 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68556
68557         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68558         address, not strdup.  Include <stdlib.h> and don't declare free().
68559
68560 2000-06-19  Jim Meyering  <meyering@lucent.com>
68561
68562         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68563
68564 2000-06-18  Jim Meyering  <meyering@lucent.com>
68565
68566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68567
68568         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68569         `checking whether...' message to be consistent with that of the
68570         lstat test.
68571
68572 2000-06-18  Jim Meyering  <meyering@lucent.com>
68573
68574         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68575         Besides, these days every porting target provides a mkdir function.
68576
68577         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68578         needed. (this snippet comes from src/system.h).
68579
68580 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68581
68582         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68583
68584 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68585
68586         * lib/human.c (adjust_value): New function.
68587         (human_readable_inexact): Apply rounding style even when
68588         printing approximate values.
68589
68590 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68591
68592         * lib/human.c (human_readable_inexact): Allow an input block
68593         size that is not a multiple of the output block size, and vice versa.
68594         Reported by Piergiorgio Sartor.
68595
68596 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68597
68598         * lib/getdate.y (get_date): Apply relative times after time
68599         zone indicator, not before.  Reported by Todd A. Jacobs.
68600
68601 2000-06-13  Jim Meyering  <meyering@lucent.com>
68602
68603         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68604
68605         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68606
68607 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68608
68609         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68610
68611 2000-06-12  Jim Meyering  <meyering@lucent.com>
68612
68613         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68614         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68615         optional argument.
68616         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68617         the optional argument, `lib'.
68618
68619 2000-06-08  Jim Meyering  <meyering@lucent.com>
68620
68621         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68622
68623 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68624
68625         Rewrite largefile configuration so that we don't need to run
68626         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68627         AC_CANONICAL_HOST in configure.in -- jmm]
68628
68629         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68630         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68631         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68632         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68633         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68634         All uses changed.
68635         Instead of inspecting the output of getconf, try to compile the
68636         test program without and with the macro definition.
68637         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68638         for getconf.  Instead, check for the needed flags by compiling
68639         test programs.
68640
68641 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68642
68643         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68644
68645 2000-06-04  Jim Meyering  <meyering@lucent.com>
68646
68647         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68648         SunOS 4.1.4 for which gid_t is an unsigned type.
68649
68650 2000-06-03  Jim Meyering  <meyering@lucent.com>
68651
68652         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68653         now that autoconf requires that.
68654
68655         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68656         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68657         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68658
68659 2000-06-03  Jim Meyering  <meyering@lucent.com>
68660
68661         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68662
68663 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68664
68665         * m4/glibc21.m4: New file.
68666         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68667
68668 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68669
68670         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68671         newer, don't install charset.alias.
68672         * lib/config.charset: Change the Linux/glibc rules so they become empty
68673         on glibc-2.1 or newer.
68674
68675 2000-06-02  Jim Meyering  <meyering@lucent.com>
68676
68677         * lib/mountlist.c: Back out last change.  Instead, do this...
68678         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68679         me_dummy member using the same `ignore'-testing code.
68680         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68681         fs_type strings.
68682         From Mark D. Roth.
68683
68684 2000-05-29  Jim Meyering  <meyering@lucent.com>
68685
68686         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68687         mounts with the `ignore' attribute.  Based on a patch from
68688         Mark D. Roth.
68689
68690 2000-05-28  Jim Meyering  <meyering@lucent.com>
68691
68692         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68693         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68694         * m4/stat.m4: Likewise.
68695         * m4/lstat.m4: Likewise.
68696         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68697
68698         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68699         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68700
68701 2000-05-26  Jim Meyering  <meyering@lucent.com>
68702
68703         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68704
68705 2000-05-24  Jim Meyering  <meyering@lucent.com>
68706
68707         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68708         autoconf requires that.
68709         * m4/lib-check.m4: Likewise.
68710         * m4/jm-macros.m4: Likewise.
68711         * m4/strftime.m4: Likewise.
68712
68713         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68714         AC_CHECK_DECLS, now that autoconf requires that.
68715
68716 2000-05-22  Jim Meyering  <meyering@lucent.com>
68717
68718         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68719         * m4/lstat.m4: Likewise.
68720
68721 2000-05-22  Jim Meyering  <meyering@lucent.com>
68722
68723         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68724
68725 2000-05-20  Jim Meyering  <meyering@lucent.com>
68726
68727         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68728         (jm_PREREQ): Use it.
68729
68730 2000-05-18  Jim Meyering  <meyering@lucent.com>
68731
68732         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68733         back, too, since it may have been modified by allocate_entry.
68734         (hash_delete): Rewrite to use neither the assignment operator
68735         nor the comma operator in an if-expression.
68736
68737 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68738
68739         * lib/closeout.c:
68740         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68741         Remove; no longer needed.
68742         "quotearg.h": Add include.
68743         (file_name): Do not bother to explicitly initialize to NULL; it's less
68744         efficient on some hosts.
68745         (close_stdout_status): Remove test as to whether stdout was already
68746         closed; it breaks for the case "echo x | sort >&-".
68747         Quote file name colons.
68748         Do not assume that _("write error") lacks format strings.
68749
68750 2000-05-15  Jim Meyering  <meyering@lucent.com>
68751
68752         * lib/version-etc.c (version_etc_copyright): Update the copyright
68753         string used in all --version output.
68754
68755 2000-05-14  Jim Meyering  <meyering@lucent.com>
68756
68757         * lib/closeout.c (close_stdout_set_file_name): New function.
68758         (close_stdout_status): Use new file-scoped global.
68759         Return right away if fstat says the stdout file descriptor is invalid.
68760         * lib/closeout.h (close_stdout_set_file_name): Declare.
68761
68762 2000-05-10  Jim Meyering  <meyering@lucent.com>
68763
68764         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68765         (close_stdout_set_status): New function.
68766         * lib/closeout.h (close_stdout_set_status): Declare.
68767
68768 2000-05-09  Jim Meyering  <meyering@lucent.com>
68769
68770         * m4/gettext.m4: Rename this...
68771         * m4/libintl.m4: ...to this.
68772
68773 2000-05-08  Jim Meyering  <meyering@lucent.com>
68774
68775         * lib/long-options.c: Don't include closeout.h.
68776         (parse_long_options): Don't call close_stdout for --version.
68777
68778 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68779
68780         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68781         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68782         2.1.3 bug.  This avoids a clash when files like regex.c define
68783         _GNU_SOURCE.
68784
68785 2000-05-06  Jim Meyering  <meyering@lucent.com>
68786
68787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68788         (AC_REPLACE_FUNCS): Add strnlen.
68789
68790         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68791         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68792
68793         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68794         AC_SEARCH_LIBS call for nanosleep.
68795         (LIB_NANOSLEEP): Set and AC_SUBST.
68796
68797 2000-05-06  Jim Meyering  <meyering@lucent.com>
68798
68799         * lib/strnlen.c: Undefine __strnlen and strnlen.
68800         [!weak_alias]: Define __strnlen to strnlen.
68801
68802         * lib/atexit.c: New file, from libiberty.
68803
68804 2000-05-06  Jim Meyering  <meyering@lucent.com>
68805
68806         * lib/closeout.c (close_stdout_status): Also check for errors on the
68807         stderr stream.
68808
68809 2000-05-05  Jim Meyering  <meyering@lucent.com>
68810
68811         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68812         AC_SEARCH_LIBS call for clock_gettime.
68813         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68814
68815         * m4/search-libs.m4: Update from autoconf.
68816
68817         su doesn't work on Solaris 2.6.
68818         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68819         <shadow.h>.  Reported by Dragos Harabor.
68820
68821 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68822
68823         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68824         memcpy instead of xmalloc, xrealloc, path_concat.
68825         (locale_charset): Treat empty environment variables as absent.
68826         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68827
68828 2000-05-04  Jim Meyering  <meyering@lucent.com>
68829
68830         * lib/getopt.c: Update from glibc.
68831         * lib/obstack.c: Likewise.
68832         * lib/obstack.h: Likewise.
68833         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68834         file
68835
68836         * lib/regex.h: Likewise.
68837         * lib/strndup.c: Likewise.
68838         * lib/strnlen.c: New file, from glibc.
68839
68840 2000-05-03  Jim Meyering  <meyering@lucent.com>
68841
68842         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68843
68844 2000-05-02  Paul Eggert  <eggert@twinsun.com>
68845
68846         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
68847         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
68848         compile-time test, rather than inspecting host and OS, to
68849         decide whether to define _LARGEFILE_SOURCE.
68850
68851 2000-05-01  Jim Meyering  <meyering@lucent.com>
68852
68853         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
68854
68855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
68856         Based on a patch from Bruno Haible.
68857
68858 2000-05-01  Jim Meyering  <meyering@lucent.com>
68859
68860         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
68861
68862 2000-04-29  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/path-concat.c: Declare strdup only if it's not defined.
68865         * lib/canon-host.c: Likewise.
68866
68867 2000-04-28  Jim Meyering  <meyering@lucent.com>
68868
68869         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
68870         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
68871         is included first, then limits.h is included by locale.h by libintl.h.
68872         From John David Anglin.
68873
68874 2000-04-25  Jim Meyering  <meyering@lucent.com>
68875
68876         * lib/makepath.c (S_IRWXUGO): Define.
68877         (make_path): Always perform explicit chmod if MODE specifies any
68878         of the `special' permission bits.  Prompted by a bug report against
68879         install from Mate Wierdl and Joost van Baal.
68880
68881 2000-04-18  Jim Meyering  <meyering@lucent.com>
68882
68883         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
68884         (jm_PREREQ): Use it.
68885
68886 2000-04-18  Jim Meyering  <meyering@lucent.com>
68887
68888         * lib/README: New file.
68889
68890         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
68891         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
68892
68893 2000-04-17  Jim Meyering  <meyering@lucent.com>
68894
68895         Get it right :-)
68896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
68897         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
68898         Suggestion from Akim Demaille.
68899
68900 2000-04-17  Jim Meyering  <meyering@lucent.com>
68901
68902         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
68903         the definition of it to rpl_strftime also defined-away the system's
68904         declaration.
68905
68906 2000-04-15  Jim Meyering  <meyering@lucent.com>
68907
68908         Use `C' to denote so-called `contiguous' files, the same way
68909         that tar does.
68910         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
68911         (ftypelet): Use S_ISCTG.
68912         From Michael Deutschmann.
68913
68914 2000-04-14  Jim Meyering  <meyering@lucent.com>
68915
68916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
68917         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
68918         clobbered.
68919
68920 2000-04-14  Jim Meyering  <meyering@lucent.com>
68921
68922         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
68923
68924 2000-04-13  Jim Meyering  <meyering@lucent.com>
68925
68926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
68927         AH_VERBATIM to insert required #ifndef into config.h.in.
68928         Suggestion from Akim Demaille.
68929
68930 2000-04-12  Jim Meyering  <meyering@lucent.com>
68931
68932         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
68933         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
68934         Christian Krackowizer.
68935
68936         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
68937         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
68938         (AC_SYS_LARGEFILE): Require.
68939         (AM_C_PROTOTYPES): Require.
68940
68941 2000-04-08  Jim Meyering  <meyering@lucent.com>
68942
68943         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
68944         names don't conflict.  Reported by Eli Zaretskii.
68945
68946 2000-04-07  Jim Meyering  <meyering@lucent.com>
68947
68948         * lib/putenv.c: Move inclusion of errno.h so it follows that of
68949         sys/types.h, to work around system header problems on AIX 3.2.5.
68950         From Bruno Haible.
68951
68952 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
68953
68954         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
68955         bug.  Deal with the different error behavior of Irix iconv.
68956
68957 2000-04-05  Paul Eggert  <eggert@twinsun.com>
68958
68959         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
68960         IRIX if the installer said otherwise.
68961
68962 2000-04-05  Jim Meyering  <meyering@lucent.com>
68963
68964         Portability tweaks required for ultrix4.3.
68965         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
68966         (jm_CHECK_DECLS): Add getutent to the list of functions.
68967         (_jm_DECL_HEADERS): Add utmpx.h.
68968         From John David Anglin.
68969
68970         * m4/strftime.m4: Back out the 2000-04-02 change.
68971         Instead of that change, simply undefine putenv in the test program.
68972
68973 2000-04-05  Jim Meyering  <meyering@lucent.com>
68974
68975         Portability tweaks required for ultrix4.3.
68976         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
68977         getutent.
68978         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
68979         * lib/canon-host.c: Declare strdup.
68980         * lib/path-concat.c: Likewise.
68981         From John David Anglin.
68982
68983 2000-04-04  Jim Meyering  <meyering@lucent.com>
68984
68985         Be more DOS 8.3-friendly.
68986         * lib/ref-add.sin: Renamed from ref-add.sed.in.
68987         * lib/ref-del.sin: Renamed from ref-del.sed.in.
68988         * lib/Makefile.am: Reflect renaming.
68989         Reported by Eli Zaretskii.
68990
68991         Use a temporary file name that won't clash with `charset.alias'
68992         in the DOS 8.3 name space.
68993         * lib/Makefile.am (charset_tmp): Define.
68994         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
68995         (uninstall-local): Likewise.
68996         Reported by Eli Zaretskii.
68997
68998 2000-04-03  Jim Meyering  <meyering@lucent.com>
68999
69000         * m4/gettext.m4: Fix typo in comment.
69001
69002         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69003         textutils/configure.in).  Suggestion from Paul Eggert.
69004         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69005
69006 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69007
69008         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69009         variable in the shell rather than using putenv, which isn't
69010         portable.  This avoids the configure-time inter-test dependency
69011         on the potentially-renamed putenv function.
69012
69013 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69014
69015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69016         before checking struct stat.st_blksize, so that
69017         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69018
69019 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69020
69021         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69022         since strftime.c uses HAVE_STRFTIME to decide whether to use
69023         the underlying strftime.
69024
69025 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69026
69027         * lib/time/strftime.c (my_strftime): Make sure we call the system
69028         strftime, not ourselves, when invoking the underlying strftime.
69029
69030 2000-03-24  Jim Meyering  <meyering@lucent.com>
69031
69032         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69033         (charset_alias): Define.
69034         (install-exec-local): Factor out common code.
69035         (uninstall-local): Split lines longer than 80.
69036         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69037         (SUFFIXES): Define.
69038         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69039         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69040
69041 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69042
69043         * lib/config.charset: Output a line containing "Packages using this
69044         file".
69045         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69046         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69047         ref-del.sed): New rules.
69048
69049 2000-03-17  Jim Meyering  <meyering@lucent.com>
69050
69051         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69052         Otherwise, include <strings.h>
69053
69054 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69055
69056         * lib/unicodeio.c (utf8_wctomb): New function.
69057         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69058         format instead of in UCS-4 with platform dependent endianness.
69059
69060 2000-03-10  Jim Meyering  <meyering@lucent.com>
69061
69062         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69063         From Marco Franzen.
69064
69065 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69066
69067         * lib/savedir.c (savedir): Work even if directory size is
69068         negative; this can happen with some screwy NFS configurations.
69069
69070 2000-03-06  Jim Meyering  <meyering@lucent.com>
69071
69072         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69073         if it's NULL (because we ran out of memory).  From Bruno Haible.
69074
69075 2000-03-05  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/localcharset.c ("path-concat.h"): Include.
69078         (get_charset_aliases): Use path_concat instead of ANSI string
69079         concatenation.
69080
69081         * lib/unicodeio.h (PARAMS): Define.
69082         Use it to guard prototype.
69083
69084 2000-03-04  Jim Meyering  <meyering@lucent.com>
69085
69086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69087         for lib/localcharset.c.
69088
69089 2000-03-04  Jim Meyering  <meyering@lucent.com>
69090
69091         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69092         installing into it.
69093         (uninstall-local): Uncomment this rule so `make distcheck' works
69094         once again.
69095
69096         * lib/unicodeio.c (<errno.h>): Include it.
69097         (errno): Declare if not defined.
69098
69099         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69100
69101         * lib/config.charset: New version, incorporating remarks from a linux
69102         i18n mailing list.  From Bruno Haible.
69103
69104 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69105
69106         * m4/codeset.m4: New file.
69107         * m4/iconv.m4: New file.
69108         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69109
69110 2000-03-03  Jim Meyering  <meyering@lucent.com>
69111
69112         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69113
69114 2000-03-02  Jim Meyering  <meyering@lucent.com>
69115
69116         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69117         the messages come out on separate lines.
69118
69119         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69120         rather than jm_CHECK_DECLARATIONS.
69121         * m4/decl.m4: Remove now-unused file.
69122
69123         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69124         geteuid.
69125
69126 2000-03-02  Jim Meyering  <meyering@lucent.com>
69127
69128         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69129
69130 2000-03-01  Jim Meyering  <meyering@lucent.com>
69131
69132         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69133         * lib/unicodeio.c: Likewise.
69134
69135 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69136
69137         * lib/config.charset: New file.
69138         * lib/localcharset.c: New file.
69139         * lib/unicodeio.h, lib/unicodeio.c: New files.
69140         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69141         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69142         (noinst_HEADERS): Add unicodeio.h.
69143         (all-local, install-exec-local, charset.alias): New targets.
69144
69145 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69146
69147         * lib/quotearg.c (ALERT_CHAR): New macro.
69148         (quotearg_buffer_restyled): Use it.
69149
69150 2000-02-27  Jim Meyering  <meyering@lucent.com>
69151
69152         * m4/check-decl.m4: Add getenv to the list.
69153
69154 2000-02-27  Jim Meyering  <meyering@lucent.com>
69155
69156         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69157         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69158
69159         * lib/backupfile.c: Guard inclusion of stdlib.h with
69160         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69161         Declare malloc if needed.
69162
69163         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69164         `#ifndef HAVE_DECL..'
69165         now that autoconf always defines the HAVE_DECL_ symbols.
69166         * lib/human.c: Likewise.
69167         * lib/same.c: Likewise.
69168         * lib/strtoumax.c: Likewise.
69169
69170         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69171         declaration check was not run.
69172         * lib/hash.c: Likewise.
69173         * lib/human.c: Likewise.
69174         * lib/same.c: Likewise.
69175         * lib/strtoumax.c: Likewise.
69176
69177         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69178         `.', then first look up the entire `.'-containing string as a login
69179         name.
69180
69181 2000-02-23  Jim Meyering  <meyering@lucent.com>
69182
69183         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69184         in place of my hack.
69185
69186 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69187
69188         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69189         (textint): New typedef.
69190         (parser_control): Member year changed from int to textint.
69191         All uses changed.
69192         (YYSTYPE): Removed; replaced by %union with int and textint members.
69193         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69194         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69195         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69196         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69197         (date, number, to_year): Use width of number in digits, not its value,
69198         to determine whether it's a 2-digit year, or a 2-digit time.
69199         (yylex): Store number of digits of numeric tokens.
69200         Reported by John Kendall.
69201
69202         (parser_control): Changed from struct parser_control to typedef (for
69203         consistency).  All uses changed.
69204
69205         (tID): Removed; not used.
69206         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69207
69208 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69209
69210         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69211         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69212
69213 2000-02-12  Jim Meyering  <meyering@lucent.com>
69214
69215         * lib/userspec.c (ISDIGIT): Define it.
69216         (isdigit): Remove definition.
69217         (is_number): Use ISDIGIT, not isdigit.
69218         <libintl.h>: Include.
69219         (_ and N_): Define.
69220         (parse_user_spec): Mark translatable strings.
69221
69222 2000-02-10  Jim Meyering  <meyering@lucent.com>
69223
69224         With these changes, nanosleep.[ch] are finally enough like the other
69225         lib/* replacement files to compile on a few more losing systems.
69226
69227         * lib/nanosleep.h: Don't include config.h.
69228         Remove prototype from declaration of nanosleep.
69229         (PARAMS): Remove now-unneeded definition.
69230         * lib/nanosleep.c: #undef nanosleep.
69231         (rpl_nanosleep): Rename from nanosleep.
69232
69233 2000-02-10  Jim Meyering  <meyering@lucent.com>
69234
69235         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69236         gnu_nanosleep to rpl_nanosleep.
69237
69238 2000-02-09  Jim Meyering  <meyering@lucent.com>
69239
69240         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69241         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69242
69243 2000-02-08  Akim Demaille  <akim@epita.fr>
69244
69245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69246         `[' and `]' and remove uses of `changequote'.
69247         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69248         (AC_SYS_LARGEFILE): Likewise.
69249         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69250         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69251         of changequote.
69252         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69253         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69254         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69255         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69256
69257 2000-02-05  Jim Meyering  <meyering@lucent.com>
69258
69259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69260         Remove explicit use of AC_HEADER_TIME.  It is required by
69261         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69262         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69263         in autoconf whereby the expansion of the latter ended up preceding
69264         the expansion of its prerequisite, AC_HEADER_TIME.
69265         Reported by Volker Borchert.
69266
69267 2000-02-03  Jim Meyering  <meyering@lucent.com>
69268
69269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69270
69271 2000-02-03  Jim Meyering  <meyering@lucent.com>
69272
69273         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69274         rather than with `#if HAVE_UTMPNAME'.
69275
69276 2000-02-02  Jim Meyering  <meyering@lucent.com>
69277
69278         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69279         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69280         Reported by Eli Zaretskii.
69281
69282 2000-02-01  Jim Meyering  <meyering@lucent.com>
69283
69284         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69285
69286 2000-01-31  Jim Meyering  <meyering@lucent.com>
69287
69288         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69289         functions.  Add the time.h and sys/time.h headers along with the
69290         AC_REQUIRE'ment of AC_HEADER_TIME.
69291
69292 2000-01-31  Jim Meyering  <meyering@lucent.com>
69293
69294         * lib/nanosleep.h (nanosleep): Guard declaration with
69295         `#if ! HAVE_DECL_NANOSLEEP'.
69296         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69297         the declaration in that vendor's sys/timers.h.
69298         Reported by Christian Krackowizer.
69299
69300         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69301         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69302         (ISPRINT): Likewise.
69303         Reported by Tom Tromey.
69304
69305 2000-01-30  Jim Meyering  <meyering@lucent.com>
69306
69307         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69308
69309         * m4/prereq.m4 (utmp_includes): Define.
69310         Check for ut_user and ut_name members in both struct utmpx
69311         and struct utmp.
69312
69313 2000-01-30  Jim Meyering  <meyering@lucent.com>
69314
69315         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69316         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69317         header files where only utmpx.ut_user is declared.
69318
69319         * lib/readutmp.h (UT_USER): Define.
69320
69321 2000-01-29  Jim Meyering  <meyering@lucent.com>
69322
69323         * m4/lib-check.m4: New file containing library-related checks from
69324         fileutils and sh-utils (textutils had none).
69325
69326 2000-01-28  Jim Meyering  <meyering@lucent.com>
69327
69328         * m4/perl.m4: Change format of warning message to look more like that
69329         from the missing script.  Suggestion from François Pinard.
69330
69331 2000-01-25  Jim Meyering  <meyering@lucent.com>
69332
69333         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69334         well as time.h in the compile check.
69335         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69336         Fix typo in cross-compiling case: s/yes/no/.
69337
69338 2000-01-23  Jim Meyering  <meyering@lucent.com>
69339
69340         * m4/jm-macros.m4: Move df-related tests here from
69341         fileutils/configure.in
69342
69343         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69344         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69345
69346         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69347         s/space/ac_fsusage_space/.
69348         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69349
69350         * m4/ftruncate.m4: New file (derived from part of
69351         fileutils/configure.in).
69352         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69353         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69354
69355         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69356         AC_SUBST these here, rather than just in sh-util/configure.in, so
69357         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69358         all the same.
69359         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69360         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69361         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69362         (AC_SUBST(POW_LIBM)): Likewise.
69363         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69364
69365 2000-01-23  Jim Meyering  <meyering@lucent.com>
69366
69367         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69368         obstack.c.
69369
69370 2000-01-22  Jim Meyering  <meyering@lucent.com>
69371
69372         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69373
69374         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69375
69376         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69377         configure.in
69378         (AC_CHECK_HEADERS): Likewise for sh-utils.
69379         (AC_CHECK_HEADERS): Likewise for textutils.
69380         Merge the three lists of headers.
69381
69382         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69383         from fileutils' configure.in.
69384
69385         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69386         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69387         check-decl.m4.
69388
69389         * m4/check-decl.m4: Use #if rather than #ifdef.
69390         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69391         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69392         (_jm_DECL_HEADERS): Define new function.
69393         (jm_CHECK_DECLARATIONS): Require it.
69394
69395 2000-01-22  Jim Meyering  <meyering@lucent.com>
69396
69397         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69398         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69399         Required for some AIX systems.  Reported by Christian Krackowizer.
69400         [TESTING] (main): New function.
69401
69402         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69403         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69404         letters.
69405
69406         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69407         iswprint.
69408
69409         * lib/strverscmp.c (ISDIGIT): Define.
69410         (strverscmp): Use ISDIGIT, not isdigit.
69411
69412 2000-01-19  Jim Meyering  <meyering@lucent.com>
69413
69414         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69415         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69416         defines `struct timespec' in <sys/time.h>
69417
69418         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69419         Thanks to Akim for explaining.
69420
69421 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69422
69423         * lib/nanosleep.c (nanosleep):
69424         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69425         POSIX.1 doesn't require SA_INTERRUPT and some systems
69426         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69427         it's been part of POSIX.1 since day 1 (in 1988).
69428
69429 2000-01-17  Jim Meyering  <meyering@lucent.com>
69430
69431         * lib/interlock: Remove unused file.  Reported by François Pinard.
69432
69433 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69434
69435         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69436         alert, backslash, formfeed, and vertical tab unnecessarily in
69437         shell quoting style.
69438
69439 2000-01-16  Jim Meyering  <meyering@lucent.com>
69440
69441         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69442         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69443         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69444         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69445
69446 2000-01-16  Jim Meyering  <meyering@lucent.com>
69447
69448         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69449         because the latter didn't work.
69450
69451 2000-01-15  Jim Meyering  <meyering@lucent.com>
69452
69453         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69454         (AC_REPLACE_FUNCS): Add memcpy and memset.
69455         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69456         Add strpbrk.
69457         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69458
69459 2000-01-12  Jim Meyering  <meyering@lucent.com>
69460
69461         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69462         (jm_PREREQ): Use it.
69463         (jm_PREREQ_READUTMP): New macro.
69464         (jm_PREREQ): Use it.
69465
69466 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69467
69468         Quote multibyte characters correctly.
69469         * m4/c-bs-a.m4: New file.
69470         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69471         (jm_PREREQ): Use it.
69472
69473 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69474
69475         * m4/uintmax_t.m4: Port to autoconf 2.13.
69476
69477 2000-01-08  Jim Meyering  <meyering@ascend.com>
69478
69479         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69480         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69481
69482 2000-01-04  Jim Meyering  <meyering@ascend.com>
69483
69484         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69485         jm_STRUCT_DIRENT_D_TYPE.
69486         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69487         jm_STRUCT_DIRENT_D_INO.
69488         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69489         jm_STRUCT_UTIMBUF.
69490         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69491         renamings.
69492         * m4/utime.m4: Likewise.
69493
69494         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69495         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69496
69497 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69498
69499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69500         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69501
69502 2000-01-02  Jim Meyering  <meyering@ascend.com>
69503
69504         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69505         remember if this is necessary.
69506
69507 1999-12-26  Jim Meyering  <meyering@ascend.com>
69508
69509         * m4/jm-macros.m4: Use it here.
69510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69511
69512 1999-12-23  Jim Meyering  <meyering@ascend.com>
69513
69514         * m4/jm-macros.m4: Check for clock_gettime (moved from
69515         fileutils/configure.in)
69516         Check for gettimeofday.
69517
69518 1999-12-20  Jim Meyering  <meyering@ascend.com>
69519
69520         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69521         autoconf-2.14a-1999-12-20.
69522
69523 1999-12-19  Jim Meyering  <meyering@ascend.com>
69524
69525         * m4/lstat-slash.m4: New file.
69526         * m4/jm-macros.m4: Use the new macro:
69527         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69528
69529 1999-12-07  Jim Meyering  <meyering@ascend.com>
69530
69531         * m4/perl.m4: Require that File::Compare be available, too.
69532         Too many systems seem to lack it.
69533
69534         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69535         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69536
69537 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69538
69539         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69540         problem with the QNX 4.25 shell, which doesn't propagate exit
69541         status of failed commands inside shell assignments.
69542
69543 1999-11-17  Jim Meyering  <meyering@ascend.com>
69544
69545         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69546
69547 1999-11-07  Jim Meyering  <meyering@ascend.com>
69548
69549         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69550
69551 1999-11-06  Jim Meyering  <meyering@ascend.com>
69552
69553         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69554         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69555
69556 1999-11-05  Jim Meyering  <meyering@ascend.com>
69557
69558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69559         configure.in of textutils, fileutils, and sh-utils into this one
69560         (shared between those packages) file.
69561         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69562         AC_STRUCT_ST_BLKSIZE.
69563
69564 1999-11-03  Jim Meyering  <meyering@ascend.com>
69565
69566         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69567         of AC_CHECK_TYPE checks includes unistd.h.
69568         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69569         Suggestion from Akim Demaille.
69570
69571 1999-10-30  Jim Meyering  <meyering@ascend.com>
69572
69573         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69574         m4-quoted string.
69575         * m4/ls-mntd-fs.m4: Likewise.
69576         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69577         * m4/jm-winsz1.m4: Likewise.
69578
69579         * m4/const.m4: Remove file, since the fix made it into the experimental
69580         version of autoconf.
69581         * m4/mktime.m4: Likewise.
69582
69583         * m4/check-type.m4: Remove file, now that the latest version of
69584         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69585
69586         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69587         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69588         AC_CHECK_TYPE.
69589
69590 1999-10-04  Jim Meyering  <meyering@ascend.com>
69591
69592         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69593
69594 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69595
69596         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69597         2.95.1 bug with HP-UX 10.20.
69598
69599 1999-09-17  Jim Meyering  <meyering@ascend.com>
69600
69601         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69602         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69603         due to missing strdup (against sh-utils-2.0).
69604
69605 1999-08-29  Jim Meyering  <meyering@ascend.com>
69606
69607         * m4/jm-macros.m4: Require jm_BISON.
69608         * m4/bison.m4: New file.
69609
69610 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69611
69612         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69613         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69614
69615 1999-08-05  Jim Meyering  <meyering@ascend.com>
69616
69617         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69618         to avoid conflicts with `conftest' on 8+3 filesystems.
69619         Suggestion from Eli Zaretskii.
69620
69621 1999-08-04  Jim Meyering  <meyering@ascend.com>
69622
69623         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69624         fileutils and sh-utils (textutils's getline test was inadequate).
69625         (AM_FUNC_GETLINE): Run this test.
69626         (AC_CHECK_FUNCS): Check for getdelim.
69627         Reported by Bob Proulx.
69628
69629 1999-08-02  Jim Meyering  <meyering@ascend.com>
69630
69631         * m4/jm-macros.m4: Add a comment.
69632
69633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69634
69635         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69636         <inttypes.h> defines strtoumax as a macro (and not as a
69637         function).
69638
69639 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69640
69641         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69642         that we can shift, multiply and divide unsigned long long
69643         values; Ultrix cc can't do it.
69644
69645 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69646
69647         * m4/mktime.m4: New file, which is a preview of what should appear
69648         in the next public autoconf release.
69649
69650 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69651
69652         * m4/lfs.m4: Remove this file.
69653         * m4/largefile.m4: New file.  It contains the old contents of
69654         lfs.m4, except that all names with prefix AC_LFS have been
69655         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69656         compatible with future autoconf versions.  Also, some minor m4
69657         quoting problems have been fixed.
69658
69659 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69660
69661         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69662         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69663         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69664         and simplify the shell code.
69665
69666 1999-08-01  Jim Meyering  <meyering@ascend.com>
69667
69668         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69669         m4.
69670
69671 1999-07-20  Jim Meyering  <meyering@ascend.com>
69672
69673         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69674
69675 1999-07-15  Jim Meyering  <meyering@ascend.com>
69676
69677         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69678
69679 1999-05-22  Jim Meyering  <meyering@ascend.com>
69680
69681         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69682
69683 1999-05-20  Jim Meyering  <meyering@ascend.com>
69684
69685         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69686         Add a colon after each `then' in case $4 is empty.
69687
69688 1999-05-16  Jim Meyering  <meyering@ascend.com>
69689
69690         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69691
69692 1999-05-10  Jim Meyering  <meyering@ascend.com>
69693
69694         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69695
69696         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69697         AC_FUNC_MKTIME.
69698
69699 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69700
69701         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69702
69703 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69704
69705         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69706         not CPPFLAGS, so that linking works correctly in IRIX.
69707
69708 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69709
69710         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69711
69712 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69713
69714         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69715         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69717         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69718         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69719
69720         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69721
69722 1999-04-20  Jim Meyering  <meyering@ascend.com>
69723
69724         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69725         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69726         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69727
69728 1999-04-18  Jim Meyering  <meyering@ascend.com>
69729
69730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69731         * m4/jm-macros.m4: Use it.
69732
69733 1999-04-06  Jim Meyering  <meyering@ascend.com>
69734
69735         * m4/strftime.m4: Remove test for %f.
69736
69737 1999-03-29  Jim Meyering  <meyering@ascend.com>
69738
69739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69740         superset of the AC_TYPE_* checks in the textutils, fileutils,
69741         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69742         AC_TYPE_PID_T.
69743
69744 1999-03-28  Jim Meyering  <meyering@ascend.com>
69745
69746         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69747         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69748         replaced e.g., in the *.sh files of the sh-utils.
69749
69750 1999-03-20  Jim Meyering  <meyering@ascend.com>
69751
69752         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69753         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69754         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69755
69756 1999-03-19  Jim Meyering  <meyering@ascend.com>
69757
69758         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69759
69760 1999-03-12  Jim Meyering  <meyering@ascend.com>
69761
69762         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69763
69764 1999-03-07  Jim Meyering  <meyering@ascend.com>
69765
69766         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69767         declared.
69768
69769 1999-02-17  Jim Meyering  <meyering@ascend.com>
69770
69771         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69772         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69773
69774 1999-02-07  Jim Meyering  <meyering@ascend.com>
69775
69776         * m4/group-member.m4: New file -- extracted from sh-utils'
69777         configure.in.
69778
69779         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69780         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69781
69782 1999-02-06  Jim Meyering  <meyering@ascend.com>
69783
69784         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69785         * m4/fnmatch.m4: Likewise.
69786         * m4/getgroups.m4: Likewise.
69787         * m4/lstat.m4: Likewise.
69788         * m4/malloc.m4: Likewise.
69789         * m4/putenv.m4: Likewise.
69790         * m4/realloc.m4: Likewise.
69791         * m4/regex.m4: Likewise.
69792         * m4/stat.m4: Likewise.
69793         * m4/strftime.m4: Likewise.
69794         Suggestion from Alain Magloire.
69795
69796         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69797         * m4/fnmatch.m4: Likewise.
69798         * m4/getgroups.m4: Likewise.
69799         * m4/getline.m4: Likewise.
69800         * m4/lstat.m4: Likewise.
69801         * m4/malloc.m4: Likewise.
69802         * m4/memcmp.m4: Likewise.
69803         * m4/putenv.m4: Likewise.
69804         * m4/realloc.m4: Likewise.
69805         * m4/regex.m4: Likewise.
69806         * m4/stat.m4: Likewise.
69807         * m4/strftime.m4: Likewise.
69808         Suggestion from Alain Magloire.
69809
69810         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69811         an argument.
69812
69813         * m4/regex.m4: Add a run-time Test for proper operation of
69814         re_compile_pattern.
69815
69816 1999-01-31  Jim Meyering  <meyering@ascend.com>
69817
69818         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69819
69820 1999-01-30  Jim Meyering  <meyering@ascend.com>
69821
69822         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69823
69824         * m4/jm-mktime.m4: Make this a wrapper around the official
69825         AM_FUNC_MKTIME rather than my private copy, now that the official one
69826         is up to date.
69827         * m4/mktime.m4: Remove file.
69828
69829         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69830         * m4/uptime.m4: Likewise.
69831         * m4/uintmax_t.m4: Likewise.
69832
69833 1999-01-28  Jim Meyering  <meyering@ascend.com>
69834
69835         * m4/jm-macros.m4: Use jm_AFS.
69836         * m4/afs.m4: New file (from fileutils' configure.in).
69837
69838         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69839         * m4/chown.m4: Likewise.
69840         * m4/d-ino.m4: Likewise.
69841         * m4/d-type.m4: Likewise.
69842         * m4/fnmatch.m4: Likewise.
69843         * m4/getgroups.m4: Likewise.
69844         * m4/gettext.m4: Likewise.
69845         * m4/jm-mktime.m4: Likewise.
69846         * m4/jm-winsz2.m4: Likewise.
69847         * m4/lcmessage.m4: Likewise.
69848         * m4/ls-mntd-fs.m4: Likewise.
69849         * m4/malloc.m4: Likewise.
69850         * m4/memcmp.m4: Likewise.
69851         * m4/putenv.m4: Likewise.
69852         * m4/realloc.m4: Likewise.
69853         * m4/st_mtim.m4: Likewise.
69854         * m4/strftime.m4: Likewise.
69855
69856 1999-01-16  Jim Meyering  <meyering@ascend.com>
69857
69858         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
69859         (ARGMATCH_DIE_DECL): Define.
69860
69861 1999-01-12  Jim Meyering  <meyering@ascend.com>
69862
69863         * m4/Makefile.am.in: Rewrite to avoid using fmt.
69864         Reported by Lars Hecking.
69865
69866 1999-01-10  Jim Meyering  <meyering@ascend.com>
69867
69868         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
69869         gross kludge.
69870         * m4/inttypes_h.m4: Likewise.
69871         * m4/lstat.m4: Likewise.
69872         * m4/malloc.m4: Likewise.
69873         * m4/readdir.m4: Likewise.
69874         * m4/realloc.m4: Likewise.
69875         * m4/st_dm_mode.m4: Likewise.
69876         * m4/stat.m4: Likewise.
69877         * m4/utimbuf.m4: Likewise.
69878         * m4/utimes.m4: Likewise.
69879
69880         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
69881         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
69882         comments in config.h.in are meaningful.
69883
69884         * m4/jm-macros.m4: Require autoconf-2.13 here.
69885
69886         * m4/regex.m4: By default, don't use the included regex.c on systems
69887         with glibc 2.  Suggestion from Uli Drepper.
69888
69889 1999-01-02  Jim Meyering  <meyering@ascend.com>
69890
69891         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
69892
69893 1998-12-18  Jim Meyering  <meyering@ascend.com>
69894
69895         * m4/Makefile.am.in (Makefile.am): Simplify rule.
69896         Based on a suggestion from Lars Hecking.
69897
69898 1998-11-16  Paul Eggert  <eggert@twinsun.com>
69899
69900         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
69901
69902 1998-11-16  Jim Meyering  <meyering@ascend.com>
69903
69904         * m4/lfs.m4: Double-quote the `uname...` expression.
69905
69906 1998-11-14  Jim Meyering  <meyering@ascend.com>
69907
69908         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
69909         * m4/stat.m4: Likewise.
69910
69911 1998-11-03  Jim Meyering  <meyering@ascend.com>
69912
69913         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
69914         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
69915
69916 1998-10-18  Jim Meyering  <meyering@ascend.com>
69917
69918         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
69919
69920 1998-10-17  Jim Meyering  <meyering@ascend.com>
69921
69922         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
69923         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
69924         calls for those previously hard-coded headers.  Instead, take a new
69925         parameter.
69926         (jm_CHECK_DECLARATIONS): Reflect interface change.
69927         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
69928         (jm_CHECK_DECL_LOCALTIME_R): New macro.
69929
69930         * m4/mktime.m4: Test for spring-forward gap before long-running test.
69931
69932 1998-10-14  Jim Meyering  <meyering@ascend.com>
69933
69934         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
69935         instead of "TZ=America/Vancouver".  From Paul Eggert.
69936
69937 1998-10-11  Jim Meyering  <meyering@ascend.com>
69938
69939         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
69940         This adds a test for a recently added compatibility fix for mktime.c.
69941         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
69942
69943 1998-09-27  Jim Meyering  <meyering@ascend.com>
69944
69945         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
69946
69947         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
69948         ../configure.in, including a change from Gordon Matzigkeit to allow
69949         cross-compiling for the Hurd.
69950
69951         * m4/glibc.m4: New file/macro to test for the GNU C Library
69952         versions 1 and 2.  From Gordon Matzigkeit.
69953         Indent.
69954
69955 1998-09-21  Jim Meyering  <meyering@ascend.com>
69956
69957         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
69958
69959 1998-08-18  Paul Eggert  <eggert@twinsun.com>
69960
69961         Port nanosecond-resolution times to UnixWare 2.1.2 and
69962         pedantic Solaris 2.6.
69963
69964         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
69965         AC_STRUCT_ST_MTIM.
69966         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
69967         Generate name of ns member, instead of just 1 or undef.
69968         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
69969
69970 1998-08-15  Jim Meyering  <meyering@ascend.com>
69971
69972         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
69973         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
69974         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
69975         instead of jm_TYPE_SSIZE_T.
69976
69977 1998-08-12  Jim Meyering  <meyering@ascend.com>
69978
69979         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
69980
69981 1998-08-02  Jim Meyering  <meyering@ascend.com>
69982
69983         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
69984         in acconfig.h manually.
69985
69986 1998-07-31  Paul Eggert  <eggert@twinsun.com>
69987
69988         * m4/st_mtim.m4: New file.
69989
69990 1998-07-28  Jim Meyering  <meyering@ascend.com>
69991
69992         * m4/utimes.m4: Undef stat.
69993
69994 1998-07-25  Jim Meyering  <meyering@ascend.com>
69995
69996         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
69997         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
69998
69999 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70000
70001         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70002         uid and gid actually remain unchanged.
70003
70004 1998-07-07  Jim Meyering  <meyering@ascend.com>
70005
70006         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70007
70008 1998-07-04  Jim Meyering  <meyering@ascend.com>
70009
70010         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70011         to prove that this macro can be used in packages without regex.c.
70012
70013 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70014
70015         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70016         is to be used.
70017
70018 1998-07-03  Jim Meyering  <meyering@ascend.com>
70019
70020         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70021
70022         * m4/gettext.m4: New file -- from gettext-0.10.35.
70023         * m4/lcmessage.m4: Likewise.
70024         * m4/progtest.m4: Likewise.
70025
70026         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70027         * m4/jm-macros.m4: Require the new macro.
70028
70029 1998-06-29  Jim Meyering  <meyering@ascend.com>
70030
70031         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70032         for the definition of NGROUPS (used in a system header included
70033         by sys/mount.h).
70034
70035 1998-06-28  Jim Meyering  <meyering@ascend.com>
70036
70037         * m4/ls-mntd-fs.m4: New file.
70038         * m4/fstypename.m4: New file.
70039
70040         * m4/jm-macros.m4: Require the new macro.
70041         * m4/jm-glibc-io.m4: New file.
70042
70043 1998-05-19  Jim Meyering  <meyering@ascend.com>
70044
70045         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70046         * m4/lchown.m4: New file.
70047
70048         * m4/Makefile.am.in: New file.
70049         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70050
70051 1998-05-14  Jim Meyering  <meyering@ascend.com>
70052
70053         * m4/Makefile.am (EXTRA_DIST): Add them.
70054         * m4/jm-macros.m4: New file.
70055         * m4/utimbuf.m4: New file.
70056
70057 1998-05-12  Jim Meyering  <meyering@ascend.com>
70058
70059         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70060
70061 1998-05-11  Jim Meyering  <meyering@ascend.com>
70062
70063         * m4/isc-posix.m4: New file.
70064
70065 1998-05-10  Jim Meyering  <meyering@ascend.com>
70066
70067         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70068
70069 1998-05-09  Jim Meyering  <meyering@ascend.com>
70070
70071         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70072         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70073         with automake.
70074
70075         * m4/ssize_t.m4: New file.
70076         * m4/mktime.m4: Remove file -- the new automake has this now.
70077
70078 1998-04-26  Jim Meyering  <meyering@ascend.com>
70079
70080         * m4/assert.m4: New file.
70081         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70082
70083 1998-04-05  Jim Meyering  <meyering@ascend.com>
70084
70085         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70086         (jm_PREREQ): Use it here.
70087
70088 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70089
70090         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70091         in acconfig.h.
70092
70093 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70094
70095         * m4/prereq.m4: New file.
70096         * m4/error.m4: New file.
70097         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70098
70099 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70100
70101         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70102         cache-check for the same variable -- that defeated the purpose of
70103         the test; the test program was never run.  This was a problem only
70104         on systems with losing getline functions -- HP-UX 10.20 is one.
70105         Reported by Bjorn Helgaas.
70106
70107 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70108
70109         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70110
70111 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70112
70113         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70114
70115         * m4/const.m4: New file.  Use an initializer in this declaration
70116         typedef int charset[2]; const charset x;
70117         Reported by Bob Glickstein.
70118
70119 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70120
70121         * m4/chown.m4: Fix reversed types on -1 args to chown.
70122         From Kaveh Ghazi.
70123
70124 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70125
70126         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70127         Add lseek and memchr.
70128
70129         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70130         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70131         have a 20-character limit on names.
70132
70133 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70134
70135         * m4/inttypes_h.m4: New file.
70136         * m4/uintmax_t.m4: New file.
70137         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70138
70139
70140         -----
70141
70142         Local Variables:
70143         coding: utf-8
70144         End:
70145
70146         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70147
70148         Copying and distribution of this file, with or without
70149         modification, are permitted provided the copyright notice
70150         and this notice are preserved.